From ee4edd22e3bb3d8395518f92785f76bd8331a2fc Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 00:23:44 +0530 Subject: [PATCH 01/40] init repo commit --- .github/workflows/generate.yml | 85 + .github/workflows/release.yml | 419 + .gitignore | 121 + README.md | 100 + openapi/keynetra.yaml | 2245 +++++ openapi/openapi.json | 3587 ++++++++ openapitools.json | 7 + scripts/generate-all.sh | 115 + scripts/prepare-packages.sh | 534 ++ sdks/csharp/.gitignore | 362 + sdks/csharp/KeyNetra.Client.sln | 27 + sdks/csharp/README.md | 52 + sdks/csharp/api/openapi.yaml | 2811 ++++++ sdks/csharp/appveyor.yml | 9 + sdks/csharp/docs/apis/AccessApi.md | 117 + sdks/csharp/docs/apis/AuthApi.md | 79 + sdks/csharp/docs/apis/DevApi.md | 74 + sdks/csharp/docs/apis/HealthApi.md | 100 + sdks/csharp/docs/apis/ManagementApi.md | 1029 +++ sdks/csharp/docs/apis/PlaygroundApi.md | 43 + sdks/csharp/docs/models/ACLCreate.md | 15 + sdks/csharp/docs/models/ACLOut.md | 18 + .../docs/models/AccessDecisionResponse.md | 16 + sdks/csharp/docs/models/AccessRequest.md | 16 + sdks/csharp/docs/models/AdminLoginRequest.md | 11 + sdks/csharp/docs/models/AdminLoginResponse.md | 14 + sdks/csharp/docs/models/AuditRecordOut.md | 22 + sdks/csharp/docs/models/AuthModelCreate.md | 10 + sdks/csharp/docs/models/AuthModelOut.md | 14 + sdks/csharp/docs/models/BatchAccessItem.md | 11 + sdks/csharp/docs/models/BatchAccessRequest.md | 13 + .../csharp/docs/models/BatchAccessResponse.md | 11 + sdks/csharp/docs/models/BatchAccessResult.md | 12 + sdks/csharp/docs/models/DataValue.md | 9 + .../csharp/docs/models/HTTPValidationError.md | 10 + .../docs/models/ImpactAnalysisRequest.md | 10 + .../docs/models/ImpactAnalysisResponse.md | 11 + sdks/csharp/docs/models/LocationInner.md | 9 + sdks/csharp/docs/models/MetaBody.md | 13 + sdks/csharp/docs/models/PermissionCreate.md | 10 + sdks/csharp/docs/models/PermissionOut.md | 11 + sdks/csharp/docs/models/PermissionUpdate.md | 10 + .../docs/models/PlaygroundEvaluateRequest.md | 11 + sdks/csharp/docs/models/PlaygroundInput.md | 13 + sdks/csharp/docs/models/PlaygroundPolicy.md | 14 + sdks/csharp/docs/models/PolicyCreate.md | 14 + sdks/csharp/docs/models/PolicyOut.md | 15 + .../docs/models/PolicySimulationInput.md | 12 + .../docs/models/PolicySimulationRequest.md | 11 + .../docs/models/PolicySimulationResponse.md | 11 + sdks/csharp/docs/models/RelationshipCreate.md | 14 + sdks/csharp/docs/models/RelationshipOut.md | 15 + sdks/csharp/docs/models/RoleCreate.md | 10 + sdks/csharp/docs/models/RoleOut.md | 11 + sdks/csharp/docs/models/RoleUpdate.md | 10 + sdks/csharp/docs/models/SimulationResponse.md | 16 + .../docs/models/SuccessResponseACLOut.md | 12 + .../SuccessResponseAccessDecisionResponse.md | 12 + .../SuccessResponseAdminLoginResponse.md | 12 + .../models/SuccessResponseAuthModelOut.md | 12 + .../SuccessResponseBatchAccessResponse.md | 12 + .../docs/models/SuccessResponseDictStrAny.md | 12 + .../docs/models/SuccessResponseDictStrInt.md | 12 + .../models/SuccessResponseDictStrObject.md | 12 + .../docs/models/SuccessResponseDictStrStr.md | 12 + .../SuccessResponseDictStrUnionIntStr.md | 12 + .../SuccessResponseImpactAnalysisResponse.md | 12 + .../docs/models/SuccessResponseListACLOut.md | 12 + .../SuccessResponseListAuditRecordOut.md | 12 + .../models/SuccessResponseListDictStrStr.md | 12 + .../SuccessResponseListPermissionOut.md | 12 + .../models/SuccessResponseListPolicyOut.md | 12 + .../docs/models/SuccessResponseListRoleOut.md | 12 + .../models/SuccessResponsePermissionOut.md | 12 + .../docs/models/SuccessResponsePolicyOut.md | 12 + ...SuccessResponsePolicySimulationResponse.md | 12 + .../models/SuccessResponseRelationshipOut.md | 12 + .../SuccessResponseSimulationResponse.md | 12 + sdks/csharp/docs/models/ValidationError.md | 14 + sdks/csharp/docs/scripts/git_push.ps1 | 75 + sdks/csharp/docs/scripts/git_push.sh | 49 + sdks/go/.gitignore | 24 + sdks/go/.travis.yml | 8 + sdks/go/README.md | 53 + sdks/go/api/openapi.yaml | 2810 ++++++ sdks/go/api_access.go | 484 + sdks/go/api_auth.go | 286 + sdks/go/api_dev.go | 268 + sdks/go/api_health.go | 353 + sdks/go/api_management.go | 4133 +++++++++ sdks/go/api_playground.go | 170 + sdks/go/client.go | 673 ++ sdks/go/configuration.go | 221 + sdks/go/docs/ACLCreate.md | 156 + sdks/go/docs/ACLOut.md | 234 + sdks/go/docs/AccessAPI.md | 207 + sdks/go/docs/AccessDecisionResponse.md | 232 + sdks/go/docs/AccessRequest.md | 191 + sdks/go/docs/AdminLoginRequest.md | 72 + sdks/go/docs/AdminLoginResponse.md | 145 + sdks/go/docs/AuditRecordOut.md | 333 + sdks/go/docs/AuthAPI.md | 138 + sdks/go/docs/AuthModelCreate.md | 51 + sdks/go/docs/AuthModelOut.md | 135 + sdks/go/docs/BatchAccessItem.md | 77 + sdks/go/docs/BatchAccessRequest.md | 139 + sdks/go/docs/BatchAccessResponse.md | 87 + sdks/go/docs/BatchAccessResult.md | 108 + sdks/go/docs/DataValue.md | 30 + sdks/go/docs/DevAPI.md | 133 + sdks/go/docs/HTTPValidationError.md | 56 + sdks/go/docs/HealthAPI.md | 188 + sdks/go/docs/ImpactAnalysisRequest.md | 51 + sdks/go/docs/ImpactAnalysisResponse.md | 82 + sdks/go/docs/LocationInner.md | 30 + sdks/go/docs/ManagementAPI.md | 1918 ++++ sdks/go/docs/MetaBody.md | 164 + sdks/go/docs/PermissionCreate.md | 51 + sdks/go/docs/PermissionOut.md | 72 + sdks/go/docs/PermissionUpdate.md | 51 + sdks/go/docs/PlaygroundAPI.md | 73 + sdks/go/docs/PlaygroundEvaluateRequest.md | 72 + sdks/go/docs/PlaygroundInput.md | 134 + sdks/go/docs/PlaygroundPolicy.md | 165 + sdks/go/docs/PolicyCreate.md | 155 + sdks/go/docs/PolicyOut.md | 161 + sdks/go/docs/PolicySimulationInput.md | 138 + sdks/go/docs/PolicySimulationRequest.md | 82 + sdks/go/docs/PolicySimulationResponse.md | 72 + sdks/go/docs/RelationshipCreate.md | 135 + sdks/go/docs/RelationshipOut.md | 156 + sdks/go/docs/RoleCreate.md | 51 + sdks/go/docs/RoleOut.md | 72 + sdks/go/docs/RoleUpdate.md | 51 + sdks/go/docs/SimulationResponse.md | 232 + sdks/go/docs/SuccessResponseACLOut.md | 103 + .../SuccessResponseAccessDecisionResponse.md | 103 + .../docs/SuccessResponseAdminLoginResponse.md | 103 + sdks/go/docs/SuccessResponseAuthModelOut.md | 103 + .../SuccessResponseBatchAccessResponse.md | 103 + sdks/go/docs/SuccessResponseDictStrAny.md | 103 + sdks/go/docs/SuccessResponseDictStrInt.md | 103 + sdks/go/docs/SuccessResponseDictStrObject.md | 103 + sdks/go/docs/SuccessResponseDictStrStr.md | 103 + .../docs/SuccessResponseDictStrUnionIntStr.md | 103 + .../SuccessResponseImpactAnalysisResponse.md | 103 + sdks/go/docs/SuccessResponseListACLOut.md | 103 + .../docs/SuccessResponseListAuditRecordOut.md | 103 + sdks/go/docs/SuccessResponseListDictStrStr.md | 103 + .../docs/SuccessResponseListPermissionOut.md | 103 + sdks/go/docs/SuccessResponseListPolicyOut.md | 103 + sdks/go/docs/SuccessResponseListRoleOut.md | 103 + sdks/go/docs/SuccessResponsePermissionOut.md | 103 + sdks/go/docs/SuccessResponsePolicyOut.md | 103 + ...SuccessResponsePolicySimulationResponse.md | 103 + .../go/docs/SuccessResponseRelationshipOut.md | 103 + .../docs/SuccessResponseSimulationResponse.md | 103 + sdks/go/docs/ValidationError.md | 155 + sdks/go/git_push.sh | 57 + sdks/go/go.mod | 6 + sdks/go/go.sum | 11 + sdks/go/keynetra_client.go | 29 + sdks/go/model_access_decision_response.go | 396 + sdks/go/model_access_request.go | 352 + sdks/go/model_acl_create.go | 298 + sdks/go/model_acl_out.go | 401 + sdks/go/model_admin_login_request.go | 186 + sdks/go/model_admin_login_response.go | 294 + sdks/go/model_audit_record_out.go | 531 ++ sdks/go/model_auth_model_create.go | 158 + sdks/go/model_auth_model_out.go | 270 + sdks/go/model_batch_access_item.go | 194 + sdks/go/model_batch_access_request.go | 280 + sdks/go/model_batch_access_response.go | 204 + sdks/go/model_batch_access_result.go | 232 + sdks/go/model_data_value.go | 107 + sdks/go/model_http_validation_error.go | 126 + sdks/go/model_impact_analysis_request.go | 158 + sdks/go/model_impact_analysis_response.go | 162 + sdks/go/model_location_inner.go | 107 + sdks/go/model_meta_body.go | 264 + sdks/go/model_permission_create.go | 158 + sdks/go/model_permission_out.go | 186 + sdks/go/model_permission_update.go | 158 + sdks/go/model_playground_evaluate_request.go | 186 + sdks/go/model_playground_input.go | 238 + sdks/go/model_playground_policy.go | 320 + sdks/go/model_policy_create.go | 314 + sdks/go/model_policy_out.go | 310 + sdks/go/model_policy_simulation_input.go | 210 + sdks/go/model_policy_simulation_request.go | 162 + sdks/go/model_policy_simulation_response.go | 186 + sdks/go/model_relationship_create.go | 270 + sdks/go/model_relationship_out.go | 298 + sdks/go/model_role_create.go | 158 + sdks/go/model_role_out.go | 186 + sdks/go/model_role_update.go | 158 + sdks/go/model_simulation_response.go | 396 + ...cess_response_access_decision_response_.go | 230 + sdks/go/model_success_response_acl_out_.go | 230 + ..._success_response_admin_login_response_.go | 230 + .../model_success_response_auth_model_out_.go | 230 + ...success_response_batch_access_response_.go | 230 + .../model_success_response_dict_str__any__.go | 230 + .../model_success_response_dict_str__int__.go | 230 + ...del_success_response_dict_str__object__.go | 230 + .../model_success_response_dict_str__str__.go | 230 + ...ss_response_dict_str__union_int__str___.go | 230 + ...cess_response_impact_analysis_response_.go | 230 + .../model_success_response_list_acl_out__.go | 230 + ...uccess_response_list_audit_record_out__.go | 230 + ..._success_response_list_dict_str__str___.go | 230 + ..._success_response_list_permission_out__.go | 230 + ...odel_success_response_list_policy_out__.go | 230 + .../model_success_response_list_role_out__.go | 230 + .../model_success_response_permission_out_.go | 230 + sdks/go/model_success_response_policy_out_.go | 230 + ...ss_response_policy_simulation_response_.go | 230 + ...odel_success_response_relationship_out_.go | 230 + ...l_success_response_simulation_response_.go | 230 + sdks/go/model_validation_error.go | 287 + sdks/go/response.go | 47 + sdks/go/test/api_access_test.go | 61 + sdks/go/test/api_auth_test.go | 49 + sdks/go/test/api_dev_test.go | 49 + sdks/go/test/api_health_test.go | 61 + sdks/go/test/api_management_test.go | 391 + sdks/go/test/api_playground_test.go | 37 + sdks/go/utils.go | 361 + sdks/java/.github/workflows/maven.yml | 30 + sdks/java/.gitignore | 21 + sdks/java/.travis.yml | 22 + sdks/java/README.md | 58 + sdks/java/api/openapi.yaml | 2903 ++++++ sdks/java/build.gradle | 166 + sdks/java/build.sbt | 27 + sdks/java/docs/ACLCreate.md | 18 + sdks/java/docs/ACLOut.md | 21 + sdks/java/docs/AccessApi.md | 231 + sdks/java/docs/AccessDecisionResponse.md | 19 + sdks/java/docs/AccessRequest.md | 19 + sdks/java/docs/AdminLoginRequest.md | 14 + sdks/java/docs/AdminLoginResponse.md | 17 + sdks/java/docs/AuditRecordOut.md | 25 + sdks/java/docs/AuthApi.md | 132 + sdks/java/docs/AuthModelCreate.md | 13 + sdks/java/docs/AuthModelOut.md | 17 + sdks/java/docs/BatchAccessItem.md | 14 + sdks/java/docs/BatchAccessRequest.md | 16 + sdks/java/docs/BatchAccessResponse.md | 14 + sdks/java/docs/BatchAccessResult.md | 15 + sdks/java/docs/DataValue.md | 12 + sdks/java/docs/DevApi.md | 127 + sdks/java/docs/HTTPValidationError.md | 13 + sdks/java/docs/HealthApi.md | 179 + sdks/java/docs/ImpactAnalysisRequest.md | 13 + sdks/java/docs/ImpactAnalysisResponse.md | 14 + sdks/java/docs/LocationInner.md | 12 + sdks/java/docs/ManagementApi.md | 2085 +++++ sdks/java/docs/MetaBody.md | 16 + sdks/java/docs/PermissionCreate.md | 13 + sdks/java/docs/PermissionOut.md | 14 + sdks/java/docs/PermissionUpdate.md | 13 + sdks/java/docs/PlaygroundApi.md | 81 + sdks/java/docs/PlaygroundEvaluateRequest.md | 14 + sdks/java/docs/PlaygroundInput.md | 16 + sdks/java/docs/PlaygroundPolicy.md | 17 + sdks/java/docs/PolicyCreate.md | 17 + sdks/java/docs/PolicyOut.md | 18 + sdks/java/docs/PolicySimulationInput.md | 15 + sdks/java/docs/PolicySimulationRequest.md | 14 + sdks/java/docs/PolicySimulationResponse.md | 14 + sdks/java/docs/RelationshipCreate.md | 17 + sdks/java/docs/RelationshipOut.md | 18 + sdks/java/docs/RoleCreate.md | 13 + sdks/java/docs/RoleOut.md | 14 + sdks/java/docs/RoleUpdate.md | 13 + sdks/java/docs/SimulationResponse.md | 19 + sdks/java/docs/SuccessResponseACLOut.md | 15 + .../SuccessResponseAccessDecisionResponse.md | 15 + .../docs/SuccessResponseAdminLoginResponse.md | 15 + sdks/java/docs/SuccessResponseAuthModelOut.md | 15 + .../SuccessResponseBatchAccessResponse.md | 15 + sdks/java/docs/SuccessResponseDictStrAny.md | 15 + sdks/java/docs/SuccessResponseDictStrInt.md | 15 + .../java/docs/SuccessResponseDictStrObject.md | 15 + sdks/java/docs/SuccessResponseDictStrStr.md | 15 + .../docs/SuccessResponseDictStrUnionIntStr.md | 15 + .../SuccessResponseImpactAnalysisResponse.md | 15 + sdks/java/docs/SuccessResponseListACLOut.md | 15 + .../docs/SuccessResponseListAuditRecordOut.md | 15 + .../docs/SuccessResponseListDictStrStr.md | 15 + .../docs/SuccessResponseListPermissionOut.md | 15 + .../java/docs/SuccessResponseListPolicyOut.md | 15 + sdks/java/docs/SuccessResponseListRoleOut.md | 15 + .../java/docs/SuccessResponsePermissionOut.md | 15 + sdks/java/docs/SuccessResponsePolicyOut.md | 15 + ...SuccessResponsePolicySimulationResponse.md | 15 + .../docs/SuccessResponseRelationshipOut.md | 15 + .../docs/SuccessResponseSimulationResponse.md | 15 + sdks/java/docs/ValidationError.md | 17 + sdks/java/git_push.sh | 57 + sdks/java/gradle.properties | 6 + sdks/java/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 43453 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 + sdks/java/gradlew | 249 + sdks/java/gradlew.bat | 92 + sdks/java/pom.xml | 340 + sdks/java/settings.gradle | 1 + sdks/kotlin/README.md | 48 + sdks/kotlin/build.gradle.kts | 97 + sdks/kotlin/docs/ACLCreate.md | 15 + sdks/kotlin/docs/ACLOut.md | 18 + sdks/kotlin/docs/AccessApi.md | 162 + sdks/kotlin/docs/AccessDecisionResponse.md | 16 + sdks/kotlin/docs/AccessRequest.md | 15 + sdks/kotlin/docs/AdminLoginRequest.md | 11 + sdks/kotlin/docs/AdminLoginResponse.md | 14 + sdks/kotlin/docs/AuditRecordOut.md | 22 + sdks/kotlin/docs/AuthApi.md | 98 + sdks/kotlin/docs/AuthModelCreate.md | 10 + sdks/kotlin/docs/AuthModelOut.md | 14 + sdks/kotlin/docs/BatchAccessItem.md | 11 + sdks/kotlin/docs/BatchAccessRequest.md | 13 + sdks/kotlin/docs/BatchAccessResponse.md | 11 + sdks/kotlin/docs/BatchAccessResult.md | 12 + sdks/kotlin/docs/DataValue.md | 9 + sdks/kotlin/docs/DevApi.md | 95 + sdks/kotlin/docs/HTTPValidationError.md | 10 + sdks/kotlin/docs/HealthApi.md | 134 + sdks/kotlin/docs/ImpactAnalysisRequest.md | 10 + sdks/kotlin/docs/ImpactAnalysisResponse.md | 11 + sdks/kotlin/docs/LocationInner.md | 9 + sdks/kotlin/docs/ManagementApi.md | 1443 +++ sdks/kotlin/docs/MetaBody.md | 13 + sdks/kotlin/docs/PermissionCreate.md | 10 + sdks/kotlin/docs/PermissionOut.md | 11 + sdks/kotlin/docs/PermissionUpdate.md | 10 + sdks/kotlin/docs/PlaygroundApi.md | 58 + sdks/kotlin/docs/PlaygroundEvaluateRequest.md | 11 + sdks/kotlin/docs/PlaygroundInput.md | 13 + sdks/kotlin/docs/PlaygroundPolicy.md | 14 + sdks/kotlin/docs/PolicyCreate.md | 14 + sdks/kotlin/docs/PolicyOut.md | 15 + sdks/kotlin/docs/PolicySimulationInput.md | 12 + sdks/kotlin/docs/PolicySimulationRequest.md | 11 + sdks/kotlin/docs/PolicySimulationResponse.md | 11 + sdks/kotlin/docs/RelationshipCreate.md | 14 + sdks/kotlin/docs/RelationshipOut.md | 15 + sdks/kotlin/docs/RoleCreate.md | 10 + sdks/kotlin/docs/RoleOut.md | 11 + sdks/kotlin/docs/RoleUpdate.md | 10 + sdks/kotlin/docs/SimulationResponse.md | 16 + sdks/kotlin/docs/SuccessResponseACLOut.md | 12 + .../SuccessResponseAccessDecisionResponse.md | 12 + .../docs/SuccessResponseAdminLoginResponse.md | 12 + .../docs/SuccessResponseAuthModelOut.md | 12 + .../SuccessResponseBatchAccessResponse.md | 12 + sdks/kotlin/docs/SuccessResponseDictStrAny.md | 12 + sdks/kotlin/docs/SuccessResponseDictStrInt.md | 12 + .../docs/SuccessResponseDictStrObject.md | 12 + sdks/kotlin/docs/SuccessResponseDictStrStr.md | 12 + .../docs/SuccessResponseDictStrUnionIntStr.md | 12 + .../SuccessResponseImpactAnalysisResponse.md | 12 + sdks/kotlin/docs/SuccessResponseListACLOut.md | 12 + .../docs/SuccessResponseListAuditRecordOut.md | 12 + .../docs/SuccessResponseListDictStrStr.md | 12 + .../docs/SuccessResponseListPermissionOut.md | 12 + .../docs/SuccessResponseListPolicyOut.md | 12 + .../kotlin/docs/SuccessResponseListRoleOut.md | 12 + .../docs/SuccessResponsePermissionOut.md | 12 + sdks/kotlin/docs/SuccessResponsePolicyOut.md | 12 + ...SuccessResponsePolicySimulationResponse.md | 12 + .../docs/SuccessResponseRelationshipOut.md | 12 + .../docs/SuccessResponseSimulationResponse.md | 12 + sdks/kotlin/docs/ValidationError.md | 14 + sdks/kotlin/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 43504 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 + sdks/kotlin/gradlew | 252 + sdks/kotlin/gradlew.bat | 94 + sdks/kotlin/settings.gradle.kts | 1 + sdks/php/.gitignore | 15 + sdks/php/.php-cs-fixer.dist.php | 29 + sdks/php/.travis.yml | 8 + sdks/php/README.md | 48 + sdks/php/composer.json | 39 + sdks/php/docs/Api/AccessApi.md | 205 + sdks/php/docs/Api/AuthApi.md | 119 + sdks/php/docs/Api/DevApi.md | 116 + sdks/php/docs/Api/HealthApi.md | 165 + sdks/php/docs/Api/ManagementApi.md | 1836 ++++ sdks/php/docs/Api/PlaygroundApi.md | 73 + sdks/php/docs/Model/ACLCreate.md | 14 + sdks/php/docs/Model/ACLOut.md | 17 + sdks/php/docs/Model/AccessDecisionResponse.md | 15 + sdks/php/docs/Model/AccessRequest.md | 14 + sdks/php/docs/Model/AdminLoginRequest.md | 10 + sdks/php/docs/Model/AdminLoginResponse.md | 13 + sdks/php/docs/Model/AuditRecordOut.md | 21 + sdks/php/docs/Model/AuthModelCreate.md | 9 + sdks/php/docs/Model/AuthModelOut.md | 13 + sdks/php/docs/Model/BatchAccessItem.md | 10 + sdks/php/docs/Model/BatchAccessRequest.md | 12 + sdks/php/docs/Model/BatchAccessResponse.md | 10 + sdks/php/docs/Model/BatchAccessResult.md | 11 + sdks/php/docs/Model/DataValue.md | 8 + sdks/php/docs/Model/HTTPValidationError.md | 9 + sdks/php/docs/Model/ImpactAnalysisRequest.md | 9 + sdks/php/docs/Model/ImpactAnalysisResponse.md | 10 + sdks/php/docs/Model/LocationInner.md | 8 + sdks/php/docs/Model/MetaBody.md | 12 + sdks/php/docs/Model/PermissionCreate.md | 9 + sdks/php/docs/Model/PermissionOut.md | 10 + sdks/php/docs/Model/PermissionUpdate.md | 9 + .../docs/Model/PlaygroundEvaluateRequest.md | 10 + sdks/php/docs/Model/PlaygroundInput.md | 12 + sdks/php/docs/Model/PlaygroundPolicy.md | 13 + sdks/php/docs/Model/PolicyCreate.md | 13 + sdks/php/docs/Model/PolicyOut.md | 14 + sdks/php/docs/Model/PolicySimulationInput.md | 11 + .../php/docs/Model/PolicySimulationRequest.md | 10 + .../docs/Model/PolicySimulationResponse.md | 10 + sdks/php/docs/Model/RelationshipCreate.md | 13 + sdks/php/docs/Model/RelationshipOut.md | 14 + sdks/php/docs/Model/RoleCreate.md | 9 + sdks/php/docs/Model/RoleOut.md | 10 + sdks/php/docs/Model/RoleUpdate.md | 9 + sdks/php/docs/Model/SimulationResponse.md | 15 + sdks/php/docs/Model/SuccessResponseACLOut.md | 11 + .../SuccessResponseAccessDecisionResponse.md | 11 + .../SuccessResponseAdminLoginResponse.md | 11 + .../docs/Model/SuccessResponseAuthModelOut.md | 11 + .../SuccessResponseBatchAccessResponse.md | 11 + .../docs/Model/SuccessResponseDictStrAny.md | 11 + .../docs/Model/SuccessResponseDictStrInt.md | 11 + .../Model/SuccessResponseDictStrObject.md | 11 + .../docs/Model/SuccessResponseDictStrStr.md | 11 + .../SuccessResponseDictStrUnionIntStr.md | 11 + .../SuccessResponseImpactAnalysisResponse.md | 11 + .../docs/Model/SuccessResponseListACLOut.md | 11 + .../SuccessResponseListAuditRecordOut.md | 11 + .../Model/SuccessResponseListDictStrStr.md | 11 + .../Model/SuccessResponseListPermissionOut.md | 11 + .../Model/SuccessResponseListPolicyOut.md | 11 + .../docs/Model/SuccessResponseListRoleOut.md | 11 + .../Model/SuccessResponsePermissionOut.md | 11 + .../docs/Model/SuccessResponsePolicyOut.md | 11 + ...SuccessResponsePolicySimulationResponse.md | 11 + .../Model/SuccessResponseRelationshipOut.md | 11 + .../SuccessResponseSimulationResponse.md | 11 + sdks/php/docs/Model/ValidationError.md | 13 + sdks/php/git_push.sh | 57 + sdks/php/phpunit.xml.dist | 18 + sdks/php/test/Api/AccessApiTest.php | 109 + sdks/php/test/Api/AuthApiTest.php | 97 + sdks/php/test/Api/DevApiTest.php | 97 + sdks/php/test/Api/HealthApiTest.php | 109 + sdks/php/test/Api/ManagementApiTest.php | 409 + sdks/php/test/Api/PlaygroundApiTest.php | 85 + sdks/php/test/Model/ACLCreateTest.php | 135 + sdks/php/test/Model/ACLOutTest.php | 162 + .../test/Model/AccessDecisionResponseTest.php | 144 + sdks/php/test/Model/AccessRequestTest.php | 135 + sdks/php/test/Model/AdminLoginRequestTest.php | 99 + .../php/test/Model/AdminLoginResponseTest.php | 126 + sdks/php/test/Model/AuditRecordOutTest.php | 198 + sdks/php/test/Model/AuthModelCreateTest.php | 90 + sdks/php/test/Model/AuthModelOutTest.php | 126 + sdks/php/test/Model/BatchAccessItemTest.php | 99 + .../php/test/Model/BatchAccessRequestTest.php | 117 + .../test/Model/BatchAccessResponseTest.php | 99 + sdks/php/test/Model/BatchAccessResultTest.php | 108 + sdks/php/test/Model/DataValueTest.php | 81 + .../test/Model/HTTPValidationErrorTest.php | 90 + .../test/Model/ImpactAnalysisRequestTest.php | 90 + .../test/Model/ImpactAnalysisResponseTest.php | 99 + sdks/php/test/Model/LocationInnerTest.php | 81 + sdks/php/test/Model/MetaBodyTest.php | 117 + sdks/php/test/Model/PermissionCreateTest.php | 90 + sdks/php/test/Model/PermissionOutTest.php | 99 + sdks/php/test/Model/PermissionUpdateTest.php | 90 + .../Model/PlaygroundEvaluateRequestTest.php | 99 + sdks/php/test/Model/PlaygroundInputTest.php | 117 + sdks/php/test/Model/PlaygroundPolicyTest.php | 126 + sdks/php/test/Model/PolicyCreateTest.php | 126 + sdks/php/test/Model/PolicyOutTest.php | 135 + .../test/Model/PolicySimulationInputTest.php | 108 + .../Model/PolicySimulationRequestTest.php | 99 + .../Model/PolicySimulationResponseTest.php | 99 + .../php/test/Model/RelationshipCreateTest.php | 126 + sdks/php/test/Model/RelationshipOutTest.php | 135 + sdks/php/test/Model/RoleCreateTest.php | 90 + sdks/php/test/Model/RoleOutTest.php | 99 + sdks/php/test/Model/RoleUpdateTest.php | 90 + .../php/test/Model/SimulationResponseTest.php | 144 + .../test/Model/SuccessResponseACLOutTest.php | 108 + ...cessResponseAccessDecisionResponseTest.php | 108 + .../SuccessResponseAdminLoginResponseTest.php | 108 + .../Model/SuccessResponseAuthModelOutTest.php | 108 + ...SuccessResponseBatchAccessResponseTest.php | 108 + .../Model/SuccessResponseDictStrAnyTest.php | 108 + .../Model/SuccessResponseDictStrIntTest.php | 108 + .../SuccessResponseDictStrObjectTest.php | 108 + .../Model/SuccessResponseDictStrStrTest.php | 108 + .../SuccessResponseDictStrUnionIntStrTest.php | 108 + ...cessResponseImpactAnalysisResponseTest.php | 108 + .../Model/SuccessResponseListACLOutTest.php | 108 + .../SuccessResponseListAuditRecordOutTest.php | 108 + .../SuccessResponseListDictStrStrTest.php | 108 + .../SuccessResponseListPermissionOutTest.php | 108 + .../SuccessResponseListPolicyOutTest.php | 108 + .../Model/SuccessResponseListRoleOutTest.php | 108 + .../SuccessResponsePermissionOutTest.php | 108 + .../Model/SuccessResponsePolicyOutTest.php | 108 + ...ssResponsePolicySimulationResponseTest.php | 108 + .../SuccessResponseRelationshipOutTest.php | 108 + .../SuccessResponseSimulationResponseTest.php | 108 + sdks/php/test/Model/ValidationErrorTest.php | 126 + sdks/python/.github/workflows/python.yml | 34 + sdks/python/.gitignore | 66 + sdks/python/.gitlab-ci.yml | 31 + sdks/python/.travis.yml | 17 + sdks/python/README.md | 52 + sdks/python/docs/ACLCreate.md | 34 + sdks/python/docs/ACLOut.md | 37 + sdks/python/docs/AccessApi.md | 270 + sdks/python/docs/AccessDecisionResponse.md | 35 + sdks/python/docs/AccessRequest.md | 35 + sdks/python/docs/AdminLoginRequest.md | 30 + sdks/python/docs/AdminLoginResponse.md | 33 + sdks/python/docs/AuditRecordOut.md | 41 + sdks/python/docs/AuthApi.md | 146 + sdks/python/docs/AuthModelCreate.md | 29 + sdks/python/docs/AuthModelOut.md | 33 + sdks/python/docs/BatchAccessItem.md | 30 + sdks/python/docs/BatchAccessRequest.md | 32 + sdks/python/docs/BatchAccessResponse.md | 30 + sdks/python/docs/BatchAccessResult.md | 31 + sdks/python/docs/DataValue.md | 28 + sdks/python/docs/DevApi.md | 139 + sdks/python/docs/HTTPValidationError.md | 29 + sdks/python/docs/HealthApi.md | 197 + sdks/python/docs/ImpactAnalysisRequest.md | 29 + sdks/python/docs/ImpactAnalysisResponse.md | 30 + sdks/python/docs/LocationInner.md | 28 + sdks/python/docs/ManagementApi.md | 2432 +++++ sdks/python/docs/MetaBody.md | 32 + sdks/python/docs/PermissionCreate.md | 29 + sdks/python/docs/PermissionOut.md | 30 + sdks/python/docs/PermissionUpdate.md | 29 + sdks/python/docs/PlaygroundApi.md | 94 + sdks/python/docs/PlaygroundEvaluateRequest.md | 30 + sdks/python/docs/PlaygroundInput.md | 32 + sdks/python/docs/PlaygroundPolicy.md | 33 + sdks/python/docs/PolicyCreate.md | 33 + sdks/python/docs/PolicyOut.md | 34 + sdks/python/docs/PolicySimulationInput.md | 31 + sdks/python/docs/PolicySimulationRequest.md | 30 + sdks/python/docs/PolicySimulationResponse.md | 30 + sdks/python/docs/RelationshipCreate.md | 33 + sdks/python/docs/RelationshipOut.md | 34 + sdks/python/docs/RoleCreate.md | 29 + sdks/python/docs/RoleOut.md | 30 + sdks/python/docs/RoleUpdate.md | 29 + sdks/python/docs/SimulationResponse.md | 35 + sdks/python/docs/SuccessResponseACLOut.md | 31 + .../SuccessResponseAccessDecisionResponse.md | 31 + .../docs/SuccessResponseAdminLoginResponse.md | 31 + .../docs/SuccessResponseAuthModelOut.md | 31 + .../SuccessResponseBatchAccessResponse.md | 31 + sdks/python/docs/SuccessResponseDictStrAny.md | 31 + sdks/python/docs/SuccessResponseDictStrInt.md | 31 + .../docs/SuccessResponseDictStrObject.md | 31 + sdks/python/docs/SuccessResponseDictStrStr.md | 31 + .../docs/SuccessResponseDictStrUnionIntStr.md | 31 + .../SuccessResponseImpactAnalysisResponse.md | 31 + sdks/python/docs/SuccessResponseListACLOut.md | 31 + .../docs/SuccessResponseListAuditRecordOut.md | 31 + .../docs/SuccessResponseListDictStrStr.md | 31 + .../docs/SuccessResponseListPermissionOut.md | 31 + .../docs/SuccessResponseListPolicyOut.md | 31 + .../python/docs/SuccessResponseListRoleOut.md | 31 + .../docs/SuccessResponsePermissionOut.md | 31 + sdks/python/docs/SuccessResponsePolicyOut.md | 31 + ...SuccessResponsePolicySimulationResponse.md | 31 + .../docs/SuccessResponseRelationshipOut.md | 31 + .../docs/SuccessResponseSimulationResponse.md | 31 + sdks/python/docs/ValidationError.md | 33 + sdks/python/git_push.sh | 57 + sdks/python/keynetra_client/__init__.py | 3 + sdks/python/keynetra_client/api/__init__.py | 10 + sdks/python/keynetra_client/api/access_api.py | 900 ++ sdks/python/keynetra_client/api/auth_api.py | 582 ++ sdks/python/keynetra_client/api/dev_api.py | 542 ++ sdks/python/keynetra_client/api/health_api.py | 762 ++ .../keynetra_client/api/management_api.py | 7865 +++++++++++++++++ .../keynetra_client/api/playground_api.py | 311 + sdks/python/keynetra_client/api_client.py | 808 ++ sdks/python/keynetra_client/api_response.py | 21 + sdks/python/keynetra_client/client.py | 25 + sdks/python/keynetra_client/configuration.py | 634 ++ sdks/python/keynetra_client/exceptions.py | 218 + .../python/keynetra_client/models/__init__.py | 75 + .../models/access_decision_response.py | 115 + .../keynetra_client/models/access_request.py | 103 + .../keynetra_client/models/acl_create.py | 98 + sdks/python/keynetra_client/models/acl_out.py | 110 + .../models/admin_login_request.py | 90 + .../models/admin_login_response.py | 96 + .../models/audit_record_out.py | 123 + .../models/auth_model_create.py | 88 + .../keynetra_client/models/auth_model_out.py | 96 + .../models/batch_access_item.py | 90 + .../models/batch_access_request.py | 107 + .../models/batch_access_response.py | 103 + .../models/batch_access_result.py | 97 + .../keynetra_client/models/data_value.py | 138 + .../models/http_validation_error.py | 96 + .../models/impact_analysis_request.py | 88 + .../models/impact_analysis_response.py | 90 + .../keynetra_client/models/location_inner.py | 138 + .../keynetra_client/models/meta_body.py | 109 + .../models/permission_create.py | 88 + .../keynetra_client/models/permission_out.py | 90 + .../models/permission_update.py | 88 + .../models/playground_evaluate_request.py | 102 + .../models/playground_input.py | 94 + .../models/playground_policy.py | 101 + .../keynetra_client/models/policy_create.py | 96 + .../keynetra_client/models/policy_out.py | 98 + .../models/policy_simulation_input.py | 107 + .../models/policy_simulation_request.py | 94 + .../models/policy_simulation_response.py | 90 + .../models/relationship_create.py | 96 + .../models/relationship_out.py | 98 + .../keynetra_client/models/role_create.py | 88 + .../python/keynetra_client/models/role_out.py | 90 + .../keynetra_client/models/role_update.py | 88 + .../models/simulation_response.py | 115 + ...ccess_response_access_decision_response.py | 103 + .../models/success_response_acl_out.py | 103 + .../success_response_admin_login_response.py | 103 + .../models/success_response_auth_model_out.py | 103 + .../success_response_batch_access_response.py | 103 + .../models/success_response_dict_str_any.py | 99 + .../models/success_response_dict_str_int.py | 99 + .../success_response_dict_str_object.py | 99 + .../models/success_response_dict_str_str.py | 99 + ...success_response_dict_str_union_int_str.py | 112 + ...ccess_response_impact_analysis_response.py | 103 + .../models/success_response_list_acl_out.py | 107 + .../success_response_list_audit_record_out.py | 107 + .../success_response_list_dict_str_str.py | 99 + .../success_response_list_permission_out.py | 107 + .../success_response_list_policy_out.py | 107 + .../models/success_response_list_role_out.py | 107 + .../models/success_response_permission_out.py | 103 + .../models/success_response_policy_out.py | 103 + ...ess_response_policy_simulation_response.py | 103 + .../success_response_relationship_out.py | 103 + .../success_response_simulation_response.py | 103 + .../models/validation_error.py | 109 + sdks/python/keynetra_client/py.typed | 0 sdks/python/keynetra_client/rest.py | 263 + sdks/python/pyproject.toml | 21 + sdks/python/requirements.txt | 4 + sdks/python/setup.cfg | 2 + sdks/python/setup.py | 47 + sdks/python/test-requirements.txt | 6 + sdks/python/test/__init__.py | 0 sdks/python/test/test_access_api.py | 52 + .../test/test_access_decision_response.py | 63 + sdks/python/test/test_access_request.py | 57 + sdks/python/test/test_acl_create.py | 62 + sdks/python/test/test_acl_out.py | 67 + sdks/python/test/test_admin_login_request.py | 54 + sdks/python/test/test_admin_login_response.py | 58 + sdks/python/test/test_audit_record_out.py | 86 + sdks/python/test/test_auth_api.py | 45 + sdks/python/test/test_auth_model_create.py | 52 + sdks/python/test/test_auth_model_out.py | 60 + sdks/python/test/test_batch_access_item.py | 53 + sdks/python/test/test_batch_access_request.py | 63 + .../python/test/test_batch_access_response.py | 63 + sdks/python/test/test_batch_access_result.py | 55 + sdks/python/test/test_data_value.py | 50 + sdks/python/test/test_dev_api.py | 45 + sdks/python/test/test_health_api.py | 52 + .../python/test/test_http_validation_error.py | 60 + .../test/test_impact_analysis_request.py | 52 + .../test/test_impact_analysis_response.py | 56 + sdks/python/test/test_location_inner.py | 50 + sdks/python/test/test_management_api.py | 227 + sdks/python/test/test_meta_body.py | 54 + sdks/python/test/test_permission_create.py | 52 + sdks/python/test/test_permission_out.py | 54 + sdks/python/test/test_permission_update.py | 52 + sdks/python/test/test_playground_api.py | 38 + .../test/test_playground_evaluate_request.py | 76 + sdks/python/test/test_playground_input.py | 54 + sdks/python/test/test_playground_policy.py | 56 + sdks/python/test/test_policy_create.py | 56 + sdks/python/test/test_policy_out.py | 61 + .../test/test_policy_simulation_input.py | 53 + .../test/test_policy_simulation_request.py | 55 + .../test/test_policy_simulation_response.py | 54 + sdks/python/test/test_relationship_create.py | 60 + sdks/python/test/test_relationship_out.py | 62 + sdks/python/test/test_role_create.py | 52 + sdks/python/test/test_role_out.py | 54 + sdks/python/test/test_role_update.py | 52 + sdks/python/test/test_simulation_response.py | 67 + ...ccess_response_access_decision_response.py | 80 + .../test/test_success_response_acl_out.py | 76 + ...t_success_response_admin_login_response.py | 68 + .../test_success_response_auth_model_out.py | 68 + ..._success_response_batch_access_response.py | 72 + .../test_success_response_dict_str_any.py | 58 + .../test_success_response_dict_str_int.py | 62 + .../test_success_response_dict_str_object.py | 58 + .../test_success_response_dict_str_str.py | 62 + ...success_response_dict_str_union_int_str.py | 62 + ...ccess_response_impact_analysis_response.py | 70 + .../test_success_response_list_acl_out.py | 80 + ..._success_response_list_audit_record_out.py | 100 + ...test_success_response_list_dict_str_str.py | 66 + ...st_success_response_list_permission_out.py | 66 + .../test_success_response_list_policy_out.py | 74 + .../test_success_response_list_role_out.py | 66 + .../test_success_response_permission_out.py | 62 + .../test/test_success_response_policy_out.py | 70 + ...ess_response_policy_simulation_response.py | 62 + .../test_success_response_relationship_out.py | 70 + ...st_success_response_simulation_response.py | 84 + sdks/python/test/test_validation_error.py | 62 + sdks/python/tox.ini | 9 + sdks/ruby/.gitignore | 39 + sdks/ruby/.gitlab-ci.yml | 26 + sdks/ruby/.rspec | 2 + sdks/ruby/.rubocop.yml | 148 + sdks/ruby/.travis.yml | 11 + sdks/ruby/Gemfile | 9 + sdks/ruby/README.md | 48 + sdks/ruby/Rakefile | 10 + sdks/ruby/docs/ACLCreate.md | 28 + sdks/ruby/docs/ACLOut.md | 34 + sdks/ruby/docs/AccessApi.md | 234 + sdks/ruby/docs/AccessDecisionResponse.md | 30 + sdks/ruby/docs/AccessRequest.md | 28 + sdks/ruby/docs/AdminLoginRequest.md | 20 + sdks/ruby/docs/AdminLoginResponse.md | 26 + sdks/ruby/docs/AuditRecordOut.md | 42 + sdks/ruby/docs/AuthApi.md | 133 + sdks/ruby/docs/AuthModelCreate.md | 18 + sdks/ruby/docs/AuthModelOut.md | 26 + sdks/ruby/docs/BatchAccessItem.md | 20 + sdks/ruby/docs/BatchAccessRequest.md | 24 + sdks/ruby/docs/BatchAccessResponse.md | 20 + sdks/ruby/docs/BatchAccessResult.md | 22 + sdks/ruby/docs/DataValue.md | 15 + sdks/ruby/docs/DevApi.md | 132 + sdks/ruby/docs/HTTPValidationError.md | 18 + sdks/ruby/docs/HealthApi.md | 187 + sdks/ruby/docs/ImpactAnalysisRequest.md | 18 + sdks/ruby/docs/ImpactAnalysisResponse.md | 20 + sdks/ruby/docs/LocationInner.md | 15 + sdks/ruby/docs/ManagementApi.md | 2096 +++++ sdks/ruby/docs/MetaBody.md | 24 + sdks/ruby/docs/PermissionCreate.md | 18 + sdks/ruby/docs/PermissionOut.md | 20 + sdks/ruby/docs/PermissionUpdate.md | 18 + sdks/ruby/docs/PlaygroundApi.md | 80 + sdks/ruby/docs/PlaygroundEvaluateRequest.md | 20 + sdks/ruby/docs/PlaygroundInput.md | 24 + sdks/ruby/docs/PlaygroundPolicy.md | 26 + sdks/ruby/docs/PolicyCreate.md | 26 + sdks/ruby/docs/PolicyOut.md | 28 + sdks/ruby/docs/PolicySimulationInput.md | 22 + sdks/ruby/docs/PolicySimulationRequest.md | 20 + sdks/ruby/docs/PolicySimulationResponse.md | 20 + sdks/ruby/docs/RelationshipCreate.md | 26 + sdks/ruby/docs/RelationshipOut.md | 28 + sdks/ruby/docs/RoleCreate.md | 18 + sdks/ruby/docs/RoleOut.md | 20 + sdks/ruby/docs/RoleUpdate.md | 18 + sdks/ruby/docs/SimulationResponse.md | 30 + sdks/ruby/docs/SuccessResponseACLOut.md | 22 + .../SuccessResponseAccessDecisionResponse.md | 22 + .../docs/SuccessResponseAdminLoginResponse.md | 22 + sdks/ruby/docs/SuccessResponseAuthModelOut.md | 22 + .../SuccessResponseBatchAccessResponse.md | 22 + sdks/ruby/docs/SuccessResponseDictStrAny.md | 22 + sdks/ruby/docs/SuccessResponseDictStrInt.md | 22 + .../ruby/docs/SuccessResponseDictStrObject.md | 22 + sdks/ruby/docs/SuccessResponseDictStrStr.md | 22 + .../docs/SuccessResponseDictStrUnionIntStr.md | 22 + .../SuccessResponseImpactAnalysisResponse.md | 22 + sdks/ruby/docs/SuccessResponseListACLOut.md | 22 + .../docs/SuccessResponseListAuditRecordOut.md | 22 + .../docs/SuccessResponseListDictStrStr.md | 22 + .../docs/SuccessResponseListPermissionOut.md | 22 + .../ruby/docs/SuccessResponseListPolicyOut.md | 22 + sdks/ruby/docs/SuccessResponseListRoleOut.md | 22 + .../ruby/docs/SuccessResponsePermissionOut.md | 22 + sdks/ruby/docs/SuccessResponsePolicyOut.md | 22 + ...SuccessResponsePolicySimulationResponse.md | 22 + .../docs/SuccessResponseRelationshipOut.md | 22 + .../docs/SuccessResponseSimulationResponse.md | 22 + sdks/ruby/docs/ValidationError.md | 26 + sdks/ruby/git_push.sh | 57 + sdks/ruby/keynetra-client.gemspec | 39 + sdks/ruby/spec/api/access_api_spec.rb | 70 + sdks/ruby/spec/api/auth_api_spec.rb | 57 + sdks/ruby/spec/api/dev_api_spec.rb | 56 + sdks/ruby/spec/api/health_api_spec.rb | 65 + sdks/ruby/spec/api/management_api_spec.rb | 361 + sdks/ruby/spec/api/playground_api_spec.rb | 46 + .../models/access_decision_response_spec.rb | 72 + sdks/ruby/spec/models/access_request_spec.rb | 66 + sdks/ruby/spec/models/acl_create_spec.rb | 66 + sdks/ruby/spec/models/acl_out_spec.rb | 84 + .../spec/models/admin_login_request_spec.rb | 42 + .../spec/models/admin_login_response_spec.rb | 60 + .../ruby/spec/models/audit_record_out_spec.rb | 108 + .../spec/models/auth_model_create_spec.rb | 36 + sdks/ruby/spec/models/auth_model_out_spec.rb | 60 + .../spec/models/batch_access_item_spec.rb | 42 + .../spec/models/batch_access_request_spec.rb | 54 + .../spec/models/batch_access_response_spec.rb | 42 + .../spec/models/batch_access_result_spec.rb | 48 + sdks/ruby/spec/models/data_value_spec.rb | 21 + .../spec/models/http_validation_error_spec.rb | 36 + .../models/impact_analysis_request_spec.rb | 36 + .../models/impact_analysis_response_spec.rb | 42 + sdks/ruby/spec/models/location_inner_spec.rb | 21 + sdks/ruby/spec/models/meta_body_spec.rb | 54 + .../spec/models/permission_create_spec.rb | 36 + sdks/ruby/spec/models/permission_out_spec.rb | 42 + .../spec/models/permission_update_spec.rb | 36 + .../playground_evaluate_request_spec.rb | 42 + .../ruby/spec/models/playground_input_spec.rb | 54 + .../spec/models/playground_policy_spec.rb | 60 + sdks/ruby/spec/models/policy_create_spec.rb | 60 + sdks/ruby/spec/models/policy_out_spec.rb | 66 + .../models/policy_simulation_input_spec.rb | 48 + .../models/policy_simulation_request_spec.rb | 42 + .../models/policy_simulation_response_spec.rb | 42 + .../spec/models/relationship_create_spec.rb | 60 + .../ruby/spec/models/relationship_out_spec.rb | 66 + sdks/ruby/spec/models/role_create_spec.rb | 36 + sdks/ruby/spec/models/role_out_spec.rb | 42 + sdks/ruby/spec/models/role_update_spec.rb | 36 + .../spec/models/simulation_response_spec.rb | 72 + ..._response_access_decision_response_spec.rb | 48 + .../models/success_response_acl_out_spec.rb | 48 + ...cess_response_admin_login_response_spec.rb | 48 + .../success_response_auth_model_out_spec.rb | 48 + ...ess_response_batch_access_response_spec.rb | 48 + .../success_response_dict_str_any_spec.rb | 48 + .../success_response_dict_str_int_spec.rb | 48 + .../success_response_dict_str_object_spec.rb | 48 + .../success_response_dict_str_str_spec.rb | 48 + ...ss_response_dict_str_union_int_str_spec.rb | 48 + ..._response_impact_analysis_response_spec.rb | 48 + .../success_response_list_acl_out_spec.rb | 48 + ...ess_response_list_audit_record_out_spec.rb | 48 + ...success_response_list_dict_str_str_spec.rb | 48 + ...ccess_response_list_permission_out_spec.rb | 48 + .../success_response_list_policy_out_spec.rb | 48 + .../success_response_list_role_out_spec.rb | 48 + .../success_response_permission_out_spec.rb | 48 + .../success_response_policy_out_spec.rb | 48 + ...esponse_policy_simulation_response_spec.rb | 48 + .../success_response_relationship_out_spec.rb | 48 + ...ccess_response_simulation_response_spec.rb | 48 + .../ruby/spec/models/validation_error_spec.rb | 60 + sdks/ruby/spec/spec_helper.rb | 111 + sdks/rust/.gitignore | 3 + sdks/rust/.travis.yml | 1 + sdks/rust/Cargo.toml | 21 + sdks/rust/README.md | 50 + sdks/rust/docs/AccessApi.md | 97 + sdks/rust/docs/AccessDecisionResponse.md | 17 + sdks/rust/docs/AccessRequest.md | 16 + sdks/rust/docs/AclCreate.md | 16 + sdks/rust/docs/AclOut.md | 19 + sdks/rust/docs/AdminLoginRequest.md | 12 + sdks/rust/docs/AdminLoginResponse.md | 15 + sdks/rust/docs/AuditRecordOut.md | 23 + sdks/rust/docs/AuthApi.md | 66 + sdks/rust/docs/AuthModelCreate.md | 11 + sdks/rust/docs/AuthModelOut.md | 15 + sdks/rust/docs/BatchAccessItem.md | 12 + sdks/rust/docs/BatchAccessRequest.md | 14 + sdks/rust/docs/BatchAccessResponse.md | 12 + sdks/rust/docs/BatchAccessResult.md | 13 + sdks/rust/docs/DataValue.md | 10 + sdks/rust/docs/DevApi.md | 63 + sdks/rust/docs/HealthApi.md | 86 + sdks/rust/docs/HttpValidationError.md | 11 + sdks/rust/docs/ImpactAnalysisRequest.md | 11 + sdks/rust/docs/ImpactAnalysisResponse.md | 12 + sdks/rust/docs/LocationInner.md | 10 + sdks/rust/docs/ManagementApi.md | 836 ++ sdks/rust/docs/MetaBody.md | 14 + sdks/rust/docs/PermissionCreate.md | 11 + sdks/rust/docs/PermissionOut.md | 12 + sdks/rust/docs/PermissionUpdate.md | 11 + sdks/rust/docs/PlaygroundApi.md | 37 + sdks/rust/docs/PlaygroundEvaluateRequest.md | 12 + sdks/rust/docs/PlaygroundInput.md | 14 + sdks/rust/docs/PlaygroundPolicy.md | 15 + sdks/rust/docs/PolicyCreate.md | 15 + sdks/rust/docs/PolicyOut.md | 16 + sdks/rust/docs/PolicySimulationInput.md | 13 + sdks/rust/docs/PolicySimulationRequest.md | 12 + sdks/rust/docs/PolicySimulationResponse.md | 12 + sdks/rust/docs/RelationshipCreate.md | 15 + sdks/rust/docs/RelationshipOut.md | 16 + sdks/rust/docs/RoleCreate.md | 11 + sdks/rust/docs/RoleOut.md | 12 + sdks/rust/docs/RoleUpdate.md | 11 + sdks/rust/docs/SimulationResponse.md | 17 + .../SuccessResponseAccessDecisionResponse.md | 13 + sdks/rust/docs/SuccessResponseAclOut.md | 13 + .../docs/SuccessResponseAdminLoginResponse.md | 13 + sdks/rust/docs/SuccessResponseAuthModelOut.md | 13 + .../SuccessResponseBatchAccessResponse.md | 13 + sdks/rust/docs/SuccessResponseDictStrAny.md | 13 + sdks/rust/docs/SuccessResponseDictStrInt.md | 13 + .../rust/docs/SuccessResponseDictStrObject.md | 13 + sdks/rust/docs/SuccessResponseDictStrStr.md | 13 + .../docs/SuccessResponseDictStrUnionIntStr.md | 13 + .../SuccessResponseImpactAnalysisResponse.md | 13 + sdks/rust/docs/SuccessResponseListAclOut.md | 13 + .../docs/SuccessResponseListAuditRecordOut.md | 13 + .../docs/SuccessResponseListDictStrStr.md | 13 + .../docs/SuccessResponseListPermissionOut.md | 13 + .../rust/docs/SuccessResponseListPolicyOut.md | 13 + sdks/rust/docs/SuccessResponseListRoleOut.md | 13 + .../rust/docs/SuccessResponsePermissionOut.md | 13 + sdks/rust/docs/SuccessResponsePolicyOut.md | 13 + ...SuccessResponsePolicySimulationResponse.md | 13 + .../docs/SuccessResponseRelationshipOut.md | 13 + .../docs/SuccessResponseSimulationResponse.md | 13 + sdks/rust/docs/ValidationError.md | 15 + sdks/rust/git_push.sh | 57 + sdks/swift/.gitignore | 100 + sdks/swift/.swiftformat | 45 + sdks/swift/Cartfile | 1 + sdks/swift/KeyNetraClient.podspec | 16 + .../Classes/OpenAPIs/APIHelper.swift | 121 + .../Classes/OpenAPIs/APIs.swift | 68 + .../Classes/OpenAPIs/APIs/AccessAPI.swift | 171 + .../Classes/OpenAPIs/APIs/AuthAPI.swift | 100 + .../Classes/OpenAPIs/APIs/DevAPI.swift | 101 + .../Classes/OpenAPIs/APIs/HealthAPI.swift | 137 + .../Classes/OpenAPIs/APIs/ManagementAPI.swift | 1503 ++++ .../Classes/OpenAPIs/APIs/PlaygroundAPI.swift | 63 + .../Classes/OpenAPIs/CodableHelper.swift | 49 + .../Classes/OpenAPIs/Configuration.swift | 18 + .../Classes/OpenAPIs/Extensions.swift | 237 + .../Classes/OpenAPIs/JSONDataEncoding.swift | 56 + .../Classes/OpenAPIs/JSONEncodingHelper.swift | 45 + .../Classes/OpenAPIs/Models.swift | 129 + .../Classes/OpenAPIs/Models/ACLCreate.swift | 52 + .../Classes/OpenAPIs/Models/ACLOut.swift | 67 + .../Models/AccessDecisionResponse.swift | 56 + .../OpenAPIs/Models/AccessRequest.swift | 53 + .../OpenAPIs/Models/AdminLoginRequest.swift | 36 + .../OpenAPIs/Models/AdminLoginResponse.swift | 48 + .../OpenAPIs/Models/AuditRecordOut.swift | 83 + .../OpenAPIs/Models/AuthModelCreate.swift | 32 + .../OpenAPIs/Models/AuthModelOut.swift | 51 + .../OpenAPIs/Models/BatchAccessItem.swift | 36 + .../OpenAPIs/Models/BatchAccessRequest.swift | 44 + .../OpenAPIs/Models/BatchAccessResponse.swift | 36 + .../OpenAPIs/Models/BatchAccessResult.swift | 40 + .../Classes/OpenAPIs/Models/DataValue.swift | 25 + .../OpenAPIs/Models/HTTPValidationError.swift | 32 + .../Models/ImpactAnalysisRequest.swift | 32 + .../Models/ImpactAnalysisResponse.swift | 36 + .../OpenAPIs/Models/LocationInner.swift | 25 + .../Classes/OpenAPIs/Models/MetaBody.swift | 44 + .../OpenAPIs/Models/PermissionCreate.swift | 32 + .../OpenAPIs/Models/PermissionOut.swift | 39 + .../OpenAPIs/Models/PermissionUpdate.swift | 32 + .../Models/PlaygroundEvaluateRequest.swift | 36 + .../OpenAPIs/Models/PlaygroundInput.swift | 44 + .../OpenAPIs/Models/PlaygroundPolicy.swift | 48 + .../OpenAPIs/Models/PolicyCreate.swift | 48 + .../Classes/OpenAPIs/Models/PolicyOut.swift | 55 + .../Models/PolicySimulationInput.swift | 40 + .../Models/PolicySimulationRequest.swift | 36 + .../Models/PolicySimulationResponse.swift | 36 + .../OpenAPIs/Models/RelationshipCreate.swift | 48 + .../OpenAPIs/Models/RelationshipOut.swift | 55 + .../Classes/OpenAPIs/Models/RoleCreate.swift | 32 + .../Classes/OpenAPIs/Models/RoleOut.swift | 39 + .../Classes/OpenAPIs/Models/RoleUpdate.swift | 32 + .../OpenAPIs/Models/SimulationResponse.swift | 56 + .../Models/SuccessResponseACLOut.swift | 40 + ...uccessResponseAccessDecisionResponse.swift | 40 + .../SuccessResponseAdminLoginResponse.swift | 40 + .../Models/SuccessResponseAuthModelOut.swift | 40 + .../SuccessResponseBatchAccessResponse.swift | 40 + .../Models/SuccessResponseDictStrAny.swift | 40 + .../Models/SuccessResponseDictStrInt.swift | 40 + .../Models/SuccessResponseDictStrObject.swift | 40 + .../Models/SuccessResponseDictStrStr.swift | 40 + .../SuccessResponseDictStrUnionIntStr.swift | 40 + ...uccessResponseImpactAnalysisResponse.swift | 40 + .../Models/SuccessResponseListACLOut.swift | 40 + .../SuccessResponseListAuditRecordOut.swift | 40 + .../SuccessResponseListDictStrStr.swift | 40 + .../SuccessResponseListPermissionOut.swift | 40 + .../Models/SuccessResponseListPolicyOut.swift | 40 + .../Models/SuccessResponseListRoleOut.swift | 40 + .../Models/SuccessResponsePermissionOut.swift | 40 + .../Models/SuccessResponsePolicyOut.swift | 40 + ...cessResponsePolicySimulationResponse.swift | 40 + .../SuccessResponseRelationshipOut.swift | 40 + .../SuccessResponseSimulationResponse.swift | 40 + .../OpenAPIs/Models/ValidationError.swift | 48 + .../OpenAPIs/OpenISO8601DateFormatter.swift | 56 + .../OpenAPIs/SynchronizedDictionary.swift | 26 + .../OpenAPIs/URLSessionImplementations.swift | 682 ++ .../Classes/OpenAPIs/Validation.swift | 161 + sdks/swift/Package.swift | 33 + sdks/swift/README.md | 50 + sdks/swift/docs/ACLCreate.md | 15 + sdks/swift/docs/ACLOut.md | 18 + sdks/swift/docs/AccessAPI.md | 159 + sdks/swift/docs/AccessDecisionResponse.md | 16 + sdks/swift/docs/AccessRequest.md | 15 + sdks/swift/docs/AdminLoginRequest.md | 11 + sdks/swift/docs/AdminLoginResponse.md | 14 + sdks/swift/docs/AuditRecordOut.md | 22 + sdks/swift/docs/AuthAPI.md | 106 + sdks/swift/docs/AuthModelCreate.md | 10 + sdks/swift/docs/AuthModelOut.md | 14 + sdks/swift/docs/BatchAccessItem.md | 11 + sdks/swift/docs/BatchAccessRequest.md | 13 + sdks/swift/docs/BatchAccessResponse.md | 11 + sdks/swift/docs/BatchAccessResult.md | 12 + sdks/swift/docs/DataValue.md | 9 + sdks/swift/docs/DevAPI.md | 102 + sdks/swift/docs/HTTPValidationError.md | 10 + sdks/swift/docs/HealthAPI.md | 143 + sdks/swift/docs/ImpactAnalysisRequest.md | 10 + sdks/swift/docs/ImpactAnalysisResponse.md | 11 + sdks/swift/docs/LocationInner.md | 9 + sdks/swift/docs/ManagementAPI.md | 1414 +++ sdks/swift/docs/MetaBody.md | 13 + sdks/swift/docs/PermissionCreate.md | 10 + sdks/swift/docs/PermissionOut.md | 11 + sdks/swift/docs/PermissionUpdate.md | 10 + sdks/swift/docs/PlaygroundAPI.md | 57 + sdks/swift/docs/PlaygroundEvaluateRequest.md | 11 + sdks/swift/docs/PlaygroundInput.md | 13 + sdks/swift/docs/PlaygroundPolicy.md | 14 + sdks/swift/docs/PolicyCreate.md | 14 + sdks/swift/docs/PolicyOut.md | 15 + sdks/swift/docs/PolicySimulationInput.md | 12 + sdks/swift/docs/PolicySimulationRequest.md | 11 + sdks/swift/docs/PolicySimulationResponse.md | 11 + sdks/swift/docs/RelationshipCreate.md | 14 + sdks/swift/docs/RelationshipOut.md | 15 + sdks/swift/docs/RoleCreate.md | 10 + sdks/swift/docs/RoleOut.md | 11 + sdks/swift/docs/RoleUpdate.md | 10 + sdks/swift/docs/SimulationResponse.md | 16 + sdks/swift/docs/SuccessResponseACLOut.md | 12 + .../SuccessResponseAccessDecisionResponse.md | 12 + .../docs/SuccessResponseAdminLoginResponse.md | 12 + .../swift/docs/SuccessResponseAuthModelOut.md | 12 + .../SuccessResponseBatchAccessResponse.md | 12 + sdks/swift/docs/SuccessResponseDictStrAny.md | 12 + sdks/swift/docs/SuccessResponseDictStrInt.md | 12 + .../docs/SuccessResponseDictStrObject.md | 12 + sdks/swift/docs/SuccessResponseDictStrStr.md | 12 + .../docs/SuccessResponseDictStrUnionIntStr.md | 12 + .../SuccessResponseImpactAnalysisResponse.md | 12 + sdks/swift/docs/SuccessResponseListACLOut.md | 12 + .../docs/SuccessResponseListAuditRecordOut.md | 12 + .../docs/SuccessResponseListDictStrStr.md | 12 + .../docs/SuccessResponseListPermissionOut.md | 12 + .../docs/SuccessResponseListPolicyOut.md | 12 + sdks/swift/docs/SuccessResponseListRoleOut.md | 12 + .../docs/SuccessResponsePermissionOut.md | 12 + sdks/swift/docs/SuccessResponsePolicyOut.md | 12 + ...SuccessResponsePolicySimulationResponse.md | 12 + .../docs/SuccessResponseRelationshipOut.md | 12 + .../docs/SuccessResponseSimulationResponse.md | 12 + sdks/swift/docs/ValidationError.md | 14 + sdks/swift/git_push.sh | 57 + sdks/swift/project.yml | 15 + sdks/typescript/.gitignore | 4 + sdks/typescript/.npmignore | 1 + sdks/typescript/README.md | 52 + sdks/typescript/docs/ACLCreate.md | 44 + sdks/typescript/docs/ACLOut.md | 50 + sdks/typescript/docs/AccessApi.md | 233 + .../typescript/docs/AccessDecisionResponse.md | 46 + sdks/typescript/docs/AccessRequest.md | 45 + sdks/typescript/docs/AdminLoginRequest.md | 36 + sdks/typescript/docs/AdminLoginResponse.md | 42 + sdks/typescript/docs/AuditRecordOut.md | 58 + sdks/typescript/docs/AuthApi.md | 142 + sdks/typescript/docs/AuthModelCreate.md | 34 + sdks/typescript/docs/AuthModelOut.md | 42 + sdks/typescript/docs/BatchAccessItem.md | 36 + sdks/typescript/docs/BatchAccessRequest.md | 40 + sdks/typescript/docs/BatchAccessResponse.md | 36 + sdks/typescript/docs/BatchAccessResult.md | 38 + sdks/typescript/docs/DataValue.md | 32 + sdks/typescript/docs/DevApi.md | 133 + sdks/typescript/docs/HTTPValidationError.md | 34 + sdks/typescript/docs/HealthApi.md | 182 + sdks/typescript/docs/ImpactAnalysisRequest.md | 34 + .../typescript/docs/ImpactAnalysisResponse.md | 36 + sdks/typescript/docs/LocationInner.md | 32 + sdks/typescript/docs/ManagementApi.md | 2100 +++++ sdks/typescript/docs/MetaBody.md | 40 + sdks/typescript/docs/PermissionCreate.md | 34 + sdks/typescript/docs/PermissionOut.md | 36 + sdks/typescript/docs/PermissionUpdate.md | 34 + sdks/typescript/docs/PlaygroundApi.md | 81 + .../docs/PlaygroundEvaluateRequest.md | 36 + sdks/typescript/docs/PlaygroundInput.md | 40 + sdks/typescript/docs/PlaygroundPolicy.md | 42 + sdks/typescript/docs/PolicyCreate.md | 42 + sdks/typescript/docs/PolicyOut.md | 44 + sdks/typescript/docs/PolicySimulationInput.md | 38 + .../docs/PolicySimulationRequest.md | 36 + .../docs/PolicySimulationResponse.md | 36 + sdks/typescript/docs/RelationshipCreate.md | 42 + sdks/typescript/docs/RelationshipOut.md | 44 + sdks/typescript/docs/RoleCreate.md | 34 + sdks/typescript/docs/RoleOut.md | 36 + sdks/typescript/docs/RoleUpdate.md | 34 + sdks/typescript/docs/SimulationResponse.md | 46 + sdks/typescript/docs/SuccessResponseACLOut.md | 38 + .../SuccessResponseAccessDecisionResponse.md | 38 + .../docs/SuccessResponseAdminLoginResponse.md | 38 + .../docs/SuccessResponseAuthModelOut.md | 38 + .../SuccessResponseBatchAccessResponse.md | 38 + .../docs/SuccessResponseDictStrAny.md | 38 + .../docs/SuccessResponseDictStrInt.md | 38 + .../docs/SuccessResponseDictStrObject.md | 38 + .../docs/SuccessResponseDictStrStr.md | 38 + .../docs/SuccessResponseDictStrUnionIntStr.md | 38 + .../SuccessResponseImpactAnalysisResponse.md | 38 + .../docs/SuccessResponseListACLOut.md | 38 + .../docs/SuccessResponseListAuditRecordOut.md | 38 + .../docs/SuccessResponseListDictStrStr.md | 38 + .../docs/SuccessResponseListPermissionOut.md | 38 + .../docs/SuccessResponseListPolicyOut.md | 38 + .../docs/SuccessResponseListRoleOut.md | 38 + .../docs/SuccessResponsePermissionOut.md | 38 + .../docs/SuccessResponsePolicyOut.md | 38 + ...SuccessResponsePolicySimulationResponse.md | 38 + .../docs/SuccessResponseRelationshipOut.md | 38 + .../docs/SuccessResponseSimulationResponse.md | 38 + sdks/typescript/docs/ValidationError.md | 42 + sdks/typescript/package.json | 27 + sdks/typescript/tsconfig.esm.json | 7 + sdks/typescript/tsconfig.json | 14 + templates/csharp-config.yaml | 11 + templates/go-config.yaml | 11 + templates/java-config.yaml | 16 + templates/kotlin-config.yaml | 12 + templates/php-config.yaml | 12 + templates/python-config.yaml | 11 + templates/ruby-config.yaml | 9 + templates/rust-config.yaml | 10 + templates/swift-config.yaml | 10 + templates/typescript-config.yaml | 12 + tests/csharp/TestInstantiation.cs | 21 + tests/go/go.mod | 5 + tests/go/test_instantiation.go | 31 + tests/java/TestInstantiation.java | 15 + tests/python/test_full.py | 37 + tests/python/test_instantiation.py | 36 + tests/rust/test_instantiation.rs | 8 + tests/typescript/test_instantiation.ts | 23 + 1186 files changed, 122287 insertions(+) create mode 100644 .github/workflows/generate.yml create mode 100644 .github/workflows/release.yml create mode 100644 .gitignore create mode 100644 README.md create mode 100644 openapi/keynetra.yaml create mode 100644 openapi/openapi.json create mode 100644 openapitools.json create mode 100755 scripts/generate-all.sh create mode 100755 scripts/prepare-packages.sh create mode 100644 sdks/csharp/.gitignore create mode 100644 sdks/csharp/KeyNetra.Client.sln create mode 100644 sdks/csharp/README.md create mode 100644 sdks/csharp/api/openapi.yaml create mode 100644 sdks/csharp/appveyor.yml create mode 100644 sdks/csharp/docs/apis/AccessApi.md create mode 100644 sdks/csharp/docs/apis/AuthApi.md create mode 100644 sdks/csharp/docs/apis/DevApi.md create mode 100644 sdks/csharp/docs/apis/HealthApi.md create mode 100644 sdks/csharp/docs/apis/ManagementApi.md create mode 100644 sdks/csharp/docs/apis/PlaygroundApi.md create mode 100644 sdks/csharp/docs/models/ACLCreate.md create mode 100644 sdks/csharp/docs/models/ACLOut.md create mode 100644 sdks/csharp/docs/models/AccessDecisionResponse.md create mode 100644 sdks/csharp/docs/models/AccessRequest.md create mode 100644 sdks/csharp/docs/models/AdminLoginRequest.md create mode 100644 sdks/csharp/docs/models/AdminLoginResponse.md create mode 100644 sdks/csharp/docs/models/AuditRecordOut.md create mode 100644 sdks/csharp/docs/models/AuthModelCreate.md create mode 100644 sdks/csharp/docs/models/AuthModelOut.md create mode 100644 sdks/csharp/docs/models/BatchAccessItem.md create mode 100644 sdks/csharp/docs/models/BatchAccessRequest.md create mode 100644 sdks/csharp/docs/models/BatchAccessResponse.md create mode 100644 sdks/csharp/docs/models/BatchAccessResult.md create mode 100644 sdks/csharp/docs/models/DataValue.md create mode 100644 sdks/csharp/docs/models/HTTPValidationError.md create mode 100644 sdks/csharp/docs/models/ImpactAnalysisRequest.md create mode 100644 sdks/csharp/docs/models/ImpactAnalysisResponse.md create mode 100644 sdks/csharp/docs/models/LocationInner.md create mode 100644 sdks/csharp/docs/models/MetaBody.md create mode 100644 sdks/csharp/docs/models/PermissionCreate.md create mode 100644 sdks/csharp/docs/models/PermissionOut.md create mode 100644 sdks/csharp/docs/models/PermissionUpdate.md create mode 100644 sdks/csharp/docs/models/PlaygroundEvaluateRequest.md create mode 100644 sdks/csharp/docs/models/PlaygroundInput.md create mode 100644 sdks/csharp/docs/models/PlaygroundPolicy.md create mode 100644 sdks/csharp/docs/models/PolicyCreate.md create mode 100644 sdks/csharp/docs/models/PolicyOut.md create mode 100644 sdks/csharp/docs/models/PolicySimulationInput.md create mode 100644 sdks/csharp/docs/models/PolicySimulationRequest.md create mode 100644 sdks/csharp/docs/models/PolicySimulationResponse.md create mode 100644 sdks/csharp/docs/models/RelationshipCreate.md create mode 100644 sdks/csharp/docs/models/RelationshipOut.md create mode 100644 sdks/csharp/docs/models/RoleCreate.md create mode 100644 sdks/csharp/docs/models/RoleOut.md create mode 100644 sdks/csharp/docs/models/RoleUpdate.md create mode 100644 sdks/csharp/docs/models/SimulationResponse.md create mode 100644 sdks/csharp/docs/models/SuccessResponseACLOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/csharp/docs/models/SuccessResponseAuthModelOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrAny.md create mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrInt.md create mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrObject.md create mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrStr.md create mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/csharp/docs/models/SuccessResponseListACLOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseListDictStrStr.md create mode 100644 sdks/csharp/docs/models/SuccessResponseListPermissionOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseListPolicyOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseListRoleOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponsePermissionOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponsePolicyOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/csharp/docs/models/SuccessResponseRelationshipOut.md create mode 100644 sdks/csharp/docs/models/SuccessResponseSimulationResponse.md create mode 100644 sdks/csharp/docs/models/ValidationError.md create mode 100644 sdks/csharp/docs/scripts/git_push.ps1 create mode 100644 sdks/csharp/docs/scripts/git_push.sh create mode 100644 sdks/go/.gitignore create mode 100644 sdks/go/.travis.yml create mode 100644 sdks/go/README.md create mode 100644 sdks/go/api/openapi.yaml create mode 100644 sdks/go/api_access.go create mode 100644 sdks/go/api_auth.go create mode 100644 sdks/go/api_dev.go create mode 100644 sdks/go/api_health.go create mode 100644 sdks/go/api_management.go create mode 100644 sdks/go/api_playground.go create mode 100644 sdks/go/client.go create mode 100644 sdks/go/configuration.go create mode 100644 sdks/go/docs/ACLCreate.md create mode 100644 sdks/go/docs/ACLOut.md create mode 100644 sdks/go/docs/AccessAPI.md create mode 100644 sdks/go/docs/AccessDecisionResponse.md create mode 100644 sdks/go/docs/AccessRequest.md create mode 100644 sdks/go/docs/AdminLoginRequest.md create mode 100644 sdks/go/docs/AdminLoginResponse.md create mode 100644 sdks/go/docs/AuditRecordOut.md create mode 100644 sdks/go/docs/AuthAPI.md create mode 100644 sdks/go/docs/AuthModelCreate.md create mode 100644 sdks/go/docs/AuthModelOut.md create mode 100644 sdks/go/docs/BatchAccessItem.md create mode 100644 sdks/go/docs/BatchAccessRequest.md create mode 100644 sdks/go/docs/BatchAccessResponse.md create mode 100644 sdks/go/docs/BatchAccessResult.md create mode 100644 sdks/go/docs/DataValue.md create mode 100644 sdks/go/docs/DevAPI.md create mode 100644 sdks/go/docs/HTTPValidationError.md create mode 100644 sdks/go/docs/HealthAPI.md create mode 100644 sdks/go/docs/ImpactAnalysisRequest.md create mode 100644 sdks/go/docs/ImpactAnalysisResponse.md create mode 100644 sdks/go/docs/LocationInner.md create mode 100644 sdks/go/docs/ManagementAPI.md create mode 100644 sdks/go/docs/MetaBody.md create mode 100644 sdks/go/docs/PermissionCreate.md create mode 100644 sdks/go/docs/PermissionOut.md create mode 100644 sdks/go/docs/PermissionUpdate.md create mode 100644 sdks/go/docs/PlaygroundAPI.md create mode 100644 sdks/go/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/go/docs/PlaygroundInput.md create mode 100644 sdks/go/docs/PlaygroundPolicy.md create mode 100644 sdks/go/docs/PolicyCreate.md create mode 100644 sdks/go/docs/PolicyOut.md create mode 100644 sdks/go/docs/PolicySimulationInput.md create mode 100644 sdks/go/docs/PolicySimulationRequest.md create mode 100644 sdks/go/docs/PolicySimulationResponse.md create mode 100644 sdks/go/docs/RelationshipCreate.md create mode 100644 sdks/go/docs/RelationshipOut.md create mode 100644 sdks/go/docs/RoleCreate.md create mode 100644 sdks/go/docs/RoleOut.md create mode 100644 sdks/go/docs/RoleUpdate.md create mode 100644 sdks/go/docs/SimulationResponse.md create mode 100644 sdks/go/docs/SuccessResponseACLOut.md create mode 100644 sdks/go/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/go/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/go/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/go/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/go/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/go/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/go/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/go/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/go/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/go/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/go/docs/SuccessResponseListACLOut.md create mode 100644 sdks/go/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/go/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/go/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/go/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/go/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/go/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/go/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/go/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/go/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/go/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/go/docs/ValidationError.md create mode 100644 sdks/go/git_push.sh create mode 100644 sdks/go/go.mod create mode 100644 sdks/go/go.sum create mode 100644 sdks/go/keynetra_client.go create mode 100644 sdks/go/model_access_decision_response.go create mode 100644 sdks/go/model_access_request.go create mode 100644 sdks/go/model_acl_create.go create mode 100644 sdks/go/model_acl_out.go create mode 100644 sdks/go/model_admin_login_request.go create mode 100644 sdks/go/model_admin_login_response.go create mode 100644 sdks/go/model_audit_record_out.go create mode 100644 sdks/go/model_auth_model_create.go create mode 100644 sdks/go/model_auth_model_out.go create mode 100644 sdks/go/model_batch_access_item.go create mode 100644 sdks/go/model_batch_access_request.go create mode 100644 sdks/go/model_batch_access_response.go create mode 100644 sdks/go/model_batch_access_result.go create mode 100644 sdks/go/model_data_value.go create mode 100644 sdks/go/model_http_validation_error.go create mode 100644 sdks/go/model_impact_analysis_request.go create mode 100644 sdks/go/model_impact_analysis_response.go create mode 100644 sdks/go/model_location_inner.go create mode 100644 sdks/go/model_meta_body.go create mode 100644 sdks/go/model_permission_create.go create mode 100644 sdks/go/model_permission_out.go create mode 100644 sdks/go/model_permission_update.go create mode 100644 sdks/go/model_playground_evaluate_request.go create mode 100644 sdks/go/model_playground_input.go create mode 100644 sdks/go/model_playground_policy.go create mode 100644 sdks/go/model_policy_create.go create mode 100644 sdks/go/model_policy_out.go create mode 100644 sdks/go/model_policy_simulation_input.go create mode 100644 sdks/go/model_policy_simulation_request.go create mode 100644 sdks/go/model_policy_simulation_response.go create mode 100644 sdks/go/model_relationship_create.go create mode 100644 sdks/go/model_relationship_out.go create mode 100644 sdks/go/model_role_create.go create mode 100644 sdks/go/model_role_out.go create mode 100644 sdks/go/model_role_update.go create mode 100644 sdks/go/model_simulation_response.go create mode 100644 sdks/go/model_success_response_access_decision_response_.go create mode 100644 sdks/go/model_success_response_acl_out_.go create mode 100644 sdks/go/model_success_response_admin_login_response_.go create mode 100644 sdks/go/model_success_response_auth_model_out_.go create mode 100644 sdks/go/model_success_response_batch_access_response_.go create mode 100644 sdks/go/model_success_response_dict_str__any__.go create mode 100644 sdks/go/model_success_response_dict_str__int__.go create mode 100644 sdks/go/model_success_response_dict_str__object__.go create mode 100644 sdks/go/model_success_response_dict_str__str__.go create mode 100644 sdks/go/model_success_response_dict_str__union_int__str___.go create mode 100644 sdks/go/model_success_response_impact_analysis_response_.go create mode 100644 sdks/go/model_success_response_list_acl_out__.go create mode 100644 sdks/go/model_success_response_list_audit_record_out__.go create mode 100644 sdks/go/model_success_response_list_dict_str__str___.go create mode 100644 sdks/go/model_success_response_list_permission_out__.go create mode 100644 sdks/go/model_success_response_list_policy_out__.go create mode 100644 sdks/go/model_success_response_list_role_out__.go create mode 100644 sdks/go/model_success_response_permission_out_.go create mode 100644 sdks/go/model_success_response_policy_out_.go create mode 100644 sdks/go/model_success_response_policy_simulation_response_.go create mode 100644 sdks/go/model_success_response_relationship_out_.go create mode 100644 sdks/go/model_success_response_simulation_response_.go create mode 100644 sdks/go/model_validation_error.go create mode 100644 sdks/go/response.go create mode 100644 sdks/go/test/api_access_test.go create mode 100644 sdks/go/test/api_auth_test.go create mode 100644 sdks/go/test/api_dev_test.go create mode 100644 sdks/go/test/api_health_test.go create mode 100644 sdks/go/test/api_management_test.go create mode 100644 sdks/go/test/api_playground_test.go create mode 100644 sdks/go/utils.go create mode 100644 sdks/java/.github/workflows/maven.yml create mode 100644 sdks/java/.gitignore create mode 100644 sdks/java/.travis.yml create mode 100644 sdks/java/README.md create mode 100644 sdks/java/api/openapi.yaml create mode 100644 sdks/java/build.gradle create mode 100644 sdks/java/build.sbt create mode 100644 sdks/java/docs/ACLCreate.md create mode 100644 sdks/java/docs/ACLOut.md create mode 100644 sdks/java/docs/AccessApi.md create mode 100644 sdks/java/docs/AccessDecisionResponse.md create mode 100644 sdks/java/docs/AccessRequest.md create mode 100644 sdks/java/docs/AdminLoginRequest.md create mode 100644 sdks/java/docs/AdminLoginResponse.md create mode 100644 sdks/java/docs/AuditRecordOut.md create mode 100644 sdks/java/docs/AuthApi.md create mode 100644 sdks/java/docs/AuthModelCreate.md create mode 100644 sdks/java/docs/AuthModelOut.md create mode 100644 sdks/java/docs/BatchAccessItem.md create mode 100644 sdks/java/docs/BatchAccessRequest.md create mode 100644 sdks/java/docs/BatchAccessResponse.md create mode 100644 sdks/java/docs/BatchAccessResult.md create mode 100644 sdks/java/docs/DataValue.md create mode 100644 sdks/java/docs/DevApi.md create mode 100644 sdks/java/docs/HTTPValidationError.md create mode 100644 sdks/java/docs/HealthApi.md create mode 100644 sdks/java/docs/ImpactAnalysisRequest.md create mode 100644 sdks/java/docs/ImpactAnalysisResponse.md create mode 100644 sdks/java/docs/LocationInner.md create mode 100644 sdks/java/docs/ManagementApi.md create mode 100644 sdks/java/docs/MetaBody.md create mode 100644 sdks/java/docs/PermissionCreate.md create mode 100644 sdks/java/docs/PermissionOut.md create mode 100644 sdks/java/docs/PermissionUpdate.md create mode 100644 sdks/java/docs/PlaygroundApi.md create mode 100644 sdks/java/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/java/docs/PlaygroundInput.md create mode 100644 sdks/java/docs/PlaygroundPolicy.md create mode 100644 sdks/java/docs/PolicyCreate.md create mode 100644 sdks/java/docs/PolicyOut.md create mode 100644 sdks/java/docs/PolicySimulationInput.md create mode 100644 sdks/java/docs/PolicySimulationRequest.md create mode 100644 sdks/java/docs/PolicySimulationResponse.md create mode 100644 sdks/java/docs/RelationshipCreate.md create mode 100644 sdks/java/docs/RelationshipOut.md create mode 100644 sdks/java/docs/RoleCreate.md create mode 100644 sdks/java/docs/RoleOut.md create mode 100644 sdks/java/docs/RoleUpdate.md create mode 100644 sdks/java/docs/SimulationResponse.md create mode 100644 sdks/java/docs/SuccessResponseACLOut.md create mode 100644 sdks/java/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/java/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/java/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/java/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/java/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/java/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/java/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/java/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/java/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/java/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/java/docs/SuccessResponseListACLOut.md create mode 100644 sdks/java/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/java/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/java/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/java/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/java/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/java/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/java/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/java/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/java/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/java/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/java/docs/ValidationError.md create mode 100644 sdks/java/git_push.sh create mode 100644 sdks/java/gradle.properties create mode 100644 sdks/java/gradle/wrapper/gradle-wrapper.jar create mode 100644 sdks/java/gradle/wrapper/gradle-wrapper.properties create mode 100644 sdks/java/gradlew create mode 100644 sdks/java/gradlew.bat create mode 100644 sdks/java/pom.xml create mode 100644 sdks/java/settings.gradle create mode 100644 sdks/kotlin/README.md create mode 100644 sdks/kotlin/build.gradle.kts create mode 100644 sdks/kotlin/docs/ACLCreate.md create mode 100644 sdks/kotlin/docs/ACLOut.md create mode 100644 sdks/kotlin/docs/AccessApi.md create mode 100644 sdks/kotlin/docs/AccessDecisionResponse.md create mode 100644 sdks/kotlin/docs/AccessRequest.md create mode 100644 sdks/kotlin/docs/AdminLoginRequest.md create mode 100644 sdks/kotlin/docs/AdminLoginResponse.md create mode 100644 sdks/kotlin/docs/AuditRecordOut.md create mode 100644 sdks/kotlin/docs/AuthApi.md create mode 100644 sdks/kotlin/docs/AuthModelCreate.md create mode 100644 sdks/kotlin/docs/AuthModelOut.md create mode 100644 sdks/kotlin/docs/BatchAccessItem.md create mode 100644 sdks/kotlin/docs/BatchAccessRequest.md create mode 100644 sdks/kotlin/docs/BatchAccessResponse.md create mode 100644 sdks/kotlin/docs/BatchAccessResult.md create mode 100644 sdks/kotlin/docs/DataValue.md create mode 100644 sdks/kotlin/docs/DevApi.md create mode 100644 sdks/kotlin/docs/HTTPValidationError.md create mode 100644 sdks/kotlin/docs/HealthApi.md create mode 100644 sdks/kotlin/docs/ImpactAnalysisRequest.md create mode 100644 sdks/kotlin/docs/ImpactAnalysisResponse.md create mode 100644 sdks/kotlin/docs/LocationInner.md create mode 100644 sdks/kotlin/docs/ManagementApi.md create mode 100644 sdks/kotlin/docs/MetaBody.md create mode 100644 sdks/kotlin/docs/PermissionCreate.md create mode 100644 sdks/kotlin/docs/PermissionOut.md create mode 100644 sdks/kotlin/docs/PermissionUpdate.md create mode 100644 sdks/kotlin/docs/PlaygroundApi.md create mode 100644 sdks/kotlin/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/kotlin/docs/PlaygroundInput.md create mode 100644 sdks/kotlin/docs/PlaygroundPolicy.md create mode 100644 sdks/kotlin/docs/PolicyCreate.md create mode 100644 sdks/kotlin/docs/PolicyOut.md create mode 100644 sdks/kotlin/docs/PolicySimulationInput.md create mode 100644 sdks/kotlin/docs/PolicySimulationRequest.md create mode 100644 sdks/kotlin/docs/PolicySimulationResponse.md create mode 100644 sdks/kotlin/docs/RelationshipCreate.md create mode 100644 sdks/kotlin/docs/RelationshipOut.md create mode 100644 sdks/kotlin/docs/RoleCreate.md create mode 100644 sdks/kotlin/docs/RoleOut.md create mode 100644 sdks/kotlin/docs/RoleUpdate.md create mode 100644 sdks/kotlin/docs/SimulationResponse.md create mode 100644 sdks/kotlin/docs/SuccessResponseACLOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/kotlin/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/kotlin/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/kotlin/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/kotlin/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/kotlin/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/kotlin/docs/SuccessResponseListACLOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/kotlin/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/kotlin/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/kotlin/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/kotlin/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/kotlin/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/kotlin/docs/ValidationError.md create mode 100644 sdks/kotlin/gradle/wrapper/gradle-wrapper.jar create mode 100644 sdks/kotlin/gradle/wrapper/gradle-wrapper.properties create mode 100644 sdks/kotlin/gradlew create mode 100644 sdks/kotlin/gradlew.bat create mode 100644 sdks/kotlin/settings.gradle.kts create mode 100644 sdks/php/.gitignore create mode 100644 sdks/php/.php-cs-fixer.dist.php create mode 100644 sdks/php/.travis.yml create mode 100644 sdks/php/README.md create mode 100644 sdks/php/composer.json create mode 100644 sdks/php/docs/Api/AccessApi.md create mode 100644 sdks/php/docs/Api/AuthApi.md create mode 100644 sdks/php/docs/Api/DevApi.md create mode 100644 sdks/php/docs/Api/HealthApi.md create mode 100644 sdks/php/docs/Api/ManagementApi.md create mode 100644 sdks/php/docs/Api/PlaygroundApi.md create mode 100644 sdks/php/docs/Model/ACLCreate.md create mode 100644 sdks/php/docs/Model/ACLOut.md create mode 100644 sdks/php/docs/Model/AccessDecisionResponse.md create mode 100644 sdks/php/docs/Model/AccessRequest.md create mode 100644 sdks/php/docs/Model/AdminLoginRequest.md create mode 100644 sdks/php/docs/Model/AdminLoginResponse.md create mode 100644 sdks/php/docs/Model/AuditRecordOut.md create mode 100644 sdks/php/docs/Model/AuthModelCreate.md create mode 100644 sdks/php/docs/Model/AuthModelOut.md create mode 100644 sdks/php/docs/Model/BatchAccessItem.md create mode 100644 sdks/php/docs/Model/BatchAccessRequest.md create mode 100644 sdks/php/docs/Model/BatchAccessResponse.md create mode 100644 sdks/php/docs/Model/BatchAccessResult.md create mode 100644 sdks/php/docs/Model/DataValue.md create mode 100644 sdks/php/docs/Model/HTTPValidationError.md create mode 100644 sdks/php/docs/Model/ImpactAnalysisRequest.md create mode 100644 sdks/php/docs/Model/ImpactAnalysisResponse.md create mode 100644 sdks/php/docs/Model/LocationInner.md create mode 100644 sdks/php/docs/Model/MetaBody.md create mode 100644 sdks/php/docs/Model/PermissionCreate.md create mode 100644 sdks/php/docs/Model/PermissionOut.md create mode 100644 sdks/php/docs/Model/PermissionUpdate.md create mode 100644 sdks/php/docs/Model/PlaygroundEvaluateRequest.md create mode 100644 sdks/php/docs/Model/PlaygroundInput.md create mode 100644 sdks/php/docs/Model/PlaygroundPolicy.md create mode 100644 sdks/php/docs/Model/PolicyCreate.md create mode 100644 sdks/php/docs/Model/PolicyOut.md create mode 100644 sdks/php/docs/Model/PolicySimulationInput.md create mode 100644 sdks/php/docs/Model/PolicySimulationRequest.md create mode 100644 sdks/php/docs/Model/PolicySimulationResponse.md create mode 100644 sdks/php/docs/Model/RelationshipCreate.md create mode 100644 sdks/php/docs/Model/RelationshipOut.md create mode 100644 sdks/php/docs/Model/RoleCreate.md create mode 100644 sdks/php/docs/Model/RoleOut.md create mode 100644 sdks/php/docs/Model/RoleUpdate.md create mode 100644 sdks/php/docs/Model/SimulationResponse.md create mode 100644 sdks/php/docs/Model/SuccessResponseACLOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/php/docs/Model/SuccessResponseAuthModelOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/php/docs/Model/SuccessResponseDictStrAny.md create mode 100644 sdks/php/docs/Model/SuccessResponseDictStrInt.md create mode 100644 sdks/php/docs/Model/SuccessResponseDictStrObject.md create mode 100644 sdks/php/docs/Model/SuccessResponseDictStrStr.md create mode 100644 sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/php/docs/Model/SuccessResponseListACLOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseListDictStrStr.md create mode 100644 sdks/php/docs/Model/SuccessResponseListPermissionOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseListPolicyOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseListRoleOut.md create mode 100644 sdks/php/docs/Model/SuccessResponsePermissionOut.md create mode 100644 sdks/php/docs/Model/SuccessResponsePolicyOut.md create mode 100644 sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/php/docs/Model/SuccessResponseRelationshipOut.md create mode 100644 sdks/php/docs/Model/SuccessResponseSimulationResponse.md create mode 100644 sdks/php/docs/Model/ValidationError.md create mode 100644 sdks/php/git_push.sh create mode 100644 sdks/php/phpunit.xml.dist create mode 100644 sdks/php/test/Api/AccessApiTest.php create mode 100644 sdks/php/test/Api/AuthApiTest.php create mode 100644 sdks/php/test/Api/DevApiTest.php create mode 100644 sdks/php/test/Api/HealthApiTest.php create mode 100644 sdks/php/test/Api/ManagementApiTest.php create mode 100644 sdks/php/test/Api/PlaygroundApiTest.php create mode 100644 sdks/php/test/Model/ACLCreateTest.php create mode 100644 sdks/php/test/Model/ACLOutTest.php create mode 100644 sdks/php/test/Model/AccessDecisionResponseTest.php create mode 100644 sdks/php/test/Model/AccessRequestTest.php create mode 100644 sdks/php/test/Model/AdminLoginRequestTest.php create mode 100644 sdks/php/test/Model/AdminLoginResponseTest.php create mode 100644 sdks/php/test/Model/AuditRecordOutTest.php create mode 100644 sdks/php/test/Model/AuthModelCreateTest.php create mode 100644 sdks/php/test/Model/AuthModelOutTest.php create mode 100644 sdks/php/test/Model/BatchAccessItemTest.php create mode 100644 sdks/php/test/Model/BatchAccessRequestTest.php create mode 100644 sdks/php/test/Model/BatchAccessResponseTest.php create mode 100644 sdks/php/test/Model/BatchAccessResultTest.php create mode 100644 sdks/php/test/Model/DataValueTest.php create mode 100644 sdks/php/test/Model/HTTPValidationErrorTest.php create mode 100644 sdks/php/test/Model/ImpactAnalysisRequestTest.php create mode 100644 sdks/php/test/Model/ImpactAnalysisResponseTest.php create mode 100644 sdks/php/test/Model/LocationInnerTest.php create mode 100644 sdks/php/test/Model/MetaBodyTest.php create mode 100644 sdks/php/test/Model/PermissionCreateTest.php create mode 100644 sdks/php/test/Model/PermissionOutTest.php create mode 100644 sdks/php/test/Model/PermissionUpdateTest.php create mode 100644 sdks/php/test/Model/PlaygroundEvaluateRequestTest.php create mode 100644 sdks/php/test/Model/PlaygroundInputTest.php create mode 100644 sdks/php/test/Model/PlaygroundPolicyTest.php create mode 100644 sdks/php/test/Model/PolicyCreateTest.php create mode 100644 sdks/php/test/Model/PolicyOutTest.php create mode 100644 sdks/php/test/Model/PolicySimulationInputTest.php create mode 100644 sdks/php/test/Model/PolicySimulationRequestTest.php create mode 100644 sdks/php/test/Model/PolicySimulationResponseTest.php create mode 100644 sdks/php/test/Model/RelationshipCreateTest.php create mode 100644 sdks/php/test/Model/RelationshipOutTest.php create mode 100644 sdks/php/test/Model/RoleCreateTest.php create mode 100644 sdks/php/test/Model/RoleOutTest.php create mode 100644 sdks/php/test/Model/RoleUpdateTest.php create mode 100644 sdks/php/test/Model/SimulationResponseTest.php create mode 100644 sdks/php/test/Model/SuccessResponseACLOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseAccessDecisionResponseTest.php create mode 100644 sdks/php/test/Model/SuccessResponseAdminLoginResponseTest.php create mode 100644 sdks/php/test/Model/SuccessResponseAuthModelOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseBatchAccessResponseTest.php create mode 100644 sdks/php/test/Model/SuccessResponseDictStrAnyTest.php create mode 100644 sdks/php/test/Model/SuccessResponseDictStrIntTest.php create mode 100644 sdks/php/test/Model/SuccessResponseDictStrObjectTest.php create mode 100644 sdks/php/test/Model/SuccessResponseDictStrStrTest.php create mode 100644 sdks/php/test/Model/SuccessResponseDictStrUnionIntStrTest.php create mode 100644 sdks/php/test/Model/SuccessResponseImpactAnalysisResponseTest.php create mode 100644 sdks/php/test/Model/SuccessResponseListACLOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseListAuditRecordOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseListDictStrStrTest.php create mode 100644 sdks/php/test/Model/SuccessResponseListPermissionOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseListPolicyOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseListRoleOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponsePermissionOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponsePolicyOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponsePolicySimulationResponseTest.php create mode 100644 sdks/php/test/Model/SuccessResponseRelationshipOutTest.php create mode 100644 sdks/php/test/Model/SuccessResponseSimulationResponseTest.php create mode 100644 sdks/php/test/Model/ValidationErrorTest.php create mode 100644 sdks/python/.github/workflows/python.yml create mode 100644 sdks/python/.gitignore create mode 100644 sdks/python/.gitlab-ci.yml create mode 100644 sdks/python/.travis.yml create mode 100644 sdks/python/README.md create mode 100644 sdks/python/docs/ACLCreate.md create mode 100644 sdks/python/docs/ACLOut.md create mode 100644 sdks/python/docs/AccessApi.md create mode 100644 sdks/python/docs/AccessDecisionResponse.md create mode 100644 sdks/python/docs/AccessRequest.md create mode 100644 sdks/python/docs/AdminLoginRequest.md create mode 100644 sdks/python/docs/AdminLoginResponse.md create mode 100644 sdks/python/docs/AuditRecordOut.md create mode 100644 sdks/python/docs/AuthApi.md create mode 100644 sdks/python/docs/AuthModelCreate.md create mode 100644 sdks/python/docs/AuthModelOut.md create mode 100644 sdks/python/docs/BatchAccessItem.md create mode 100644 sdks/python/docs/BatchAccessRequest.md create mode 100644 sdks/python/docs/BatchAccessResponse.md create mode 100644 sdks/python/docs/BatchAccessResult.md create mode 100644 sdks/python/docs/DataValue.md create mode 100644 sdks/python/docs/DevApi.md create mode 100644 sdks/python/docs/HTTPValidationError.md create mode 100644 sdks/python/docs/HealthApi.md create mode 100644 sdks/python/docs/ImpactAnalysisRequest.md create mode 100644 sdks/python/docs/ImpactAnalysisResponse.md create mode 100644 sdks/python/docs/LocationInner.md create mode 100644 sdks/python/docs/ManagementApi.md create mode 100644 sdks/python/docs/MetaBody.md create mode 100644 sdks/python/docs/PermissionCreate.md create mode 100644 sdks/python/docs/PermissionOut.md create mode 100644 sdks/python/docs/PermissionUpdate.md create mode 100644 sdks/python/docs/PlaygroundApi.md create mode 100644 sdks/python/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/python/docs/PlaygroundInput.md create mode 100644 sdks/python/docs/PlaygroundPolicy.md create mode 100644 sdks/python/docs/PolicyCreate.md create mode 100644 sdks/python/docs/PolicyOut.md create mode 100644 sdks/python/docs/PolicySimulationInput.md create mode 100644 sdks/python/docs/PolicySimulationRequest.md create mode 100644 sdks/python/docs/PolicySimulationResponse.md create mode 100644 sdks/python/docs/RelationshipCreate.md create mode 100644 sdks/python/docs/RelationshipOut.md create mode 100644 sdks/python/docs/RoleCreate.md create mode 100644 sdks/python/docs/RoleOut.md create mode 100644 sdks/python/docs/RoleUpdate.md create mode 100644 sdks/python/docs/SimulationResponse.md create mode 100644 sdks/python/docs/SuccessResponseACLOut.md create mode 100644 sdks/python/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/python/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/python/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/python/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/python/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/python/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/python/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/python/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/python/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/python/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/python/docs/SuccessResponseListACLOut.md create mode 100644 sdks/python/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/python/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/python/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/python/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/python/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/python/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/python/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/python/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/python/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/python/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/python/docs/ValidationError.md create mode 100644 sdks/python/git_push.sh create mode 100644 sdks/python/keynetra_client/__init__.py create mode 100644 sdks/python/keynetra_client/api/__init__.py create mode 100644 sdks/python/keynetra_client/api/access_api.py create mode 100644 sdks/python/keynetra_client/api/auth_api.py create mode 100644 sdks/python/keynetra_client/api/dev_api.py create mode 100644 sdks/python/keynetra_client/api/health_api.py create mode 100644 sdks/python/keynetra_client/api/management_api.py create mode 100644 sdks/python/keynetra_client/api/playground_api.py create mode 100644 sdks/python/keynetra_client/api_client.py create mode 100644 sdks/python/keynetra_client/api_response.py create mode 100644 sdks/python/keynetra_client/client.py create mode 100644 sdks/python/keynetra_client/configuration.py create mode 100644 sdks/python/keynetra_client/exceptions.py create mode 100644 sdks/python/keynetra_client/models/__init__.py create mode 100644 sdks/python/keynetra_client/models/access_decision_response.py create mode 100644 sdks/python/keynetra_client/models/access_request.py create mode 100644 sdks/python/keynetra_client/models/acl_create.py create mode 100644 sdks/python/keynetra_client/models/acl_out.py create mode 100644 sdks/python/keynetra_client/models/admin_login_request.py create mode 100644 sdks/python/keynetra_client/models/admin_login_response.py create mode 100644 sdks/python/keynetra_client/models/audit_record_out.py create mode 100644 sdks/python/keynetra_client/models/auth_model_create.py create mode 100644 sdks/python/keynetra_client/models/auth_model_out.py create mode 100644 sdks/python/keynetra_client/models/batch_access_item.py create mode 100644 sdks/python/keynetra_client/models/batch_access_request.py create mode 100644 sdks/python/keynetra_client/models/batch_access_response.py create mode 100644 sdks/python/keynetra_client/models/batch_access_result.py create mode 100644 sdks/python/keynetra_client/models/data_value.py create mode 100644 sdks/python/keynetra_client/models/http_validation_error.py create mode 100644 sdks/python/keynetra_client/models/impact_analysis_request.py create mode 100644 sdks/python/keynetra_client/models/impact_analysis_response.py create mode 100644 sdks/python/keynetra_client/models/location_inner.py create mode 100644 sdks/python/keynetra_client/models/meta_body.py create mode 100644 sdks/python/keynetra_client/models/permission_create.py create mode 100644 sdks/python/keynetra_client/models/permission_out.py create mode 100644 sdks/python/keynetra_client/models/permission_update.py create mode 100644 sdks/python/keynetra_client/models/playground_evaluate_request.py create mode 100644 sdks/python/keynetra_client/models/playground_input.py create mode 100644 sdks/python/keynetra_client/models/playground_policy.py create mode 100644 sdks/python/keynetra_client/models/policy_create.py create mode 100644 sdks/python/keynetra_client/models/policy_out.py create mode 100644 sdks/python/keynetra_client/models/policy_simulation_input.py create mode 100644 sdks/python/keynetra_client/models/policy_simulation_request.py create mode 100644 sdks/python/keynetra_client/models/policy_simulation_response.py create mode 100644 sdks/python/keynetra_client/models/relationship_create.py create mode 100644 sdks/python/keynetra_client/models/relationship_out.py create mode 100644 sdks/python/keynetra_client/models/role_create.py create mode 100644 sdks/python/keynetra_client/models/role_out.py create mode 100644 sdks/python/keynetra_client/models/role_update.py create mode 100644 sdks/python/keynetra_client/models/simulation_response.py create mode 100644 sdks/python/keynetra_client/models/success_response_access_decision_response.py create mode 100644 sdks/python/keynetra_client/models/success_response_acl_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_admin_login_response.py create mode 100644 sdks/python/keynetra_client/models/success_response_auth_model_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_batch_access_response.py create mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_any.py create mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_int.py create mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_object.py create mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_str.py create mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py create mode 100644 sdks/python/keynetra_client/models/success_response_impact_analysis_response.py create mode 100644 sdks/python/keynetra_client/models/success_response_list_acl_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_list_audit_record_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_list_dict_str_str.py create mode 100644 sdks/python/keynetra_client/models/success_response_list_permission_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_list_policy_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_list_role_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_permission_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_policy_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_policy_simulation_response.py create mode 100644 sdks/python/keynetra_client/models/success_response_relationship_out.py create mode 100644 sdks/python/keynetra_client/models/success_response_simulation_response.py create mode 100644 sdks/python/keynetra_client/models/validation_error.py create mode 100644 sdks/python/keynetra_client/py.typed create mode 100644 sdks/python/keynetra_client/rest.py create mode 100644 sdks/python/pyproject.toml create mode 100644 sdks/python/requirements.txt create mode 100644 sdks/python/setup.cfg create mode 100644 sdks/python/setup.py create mode 100644 sdks/python/test-requirements.txt create mode 100644 sdks/python/test/__init__.py create mode 100644 sdks/python/test/test_access_api.py create mode 100644 sdks/python/test/test_access_decision_response.py create mode 100644 sdks/python/test/test_access_request.py create mode 100644 sdks/python/test/test_acl_create.py create mode 100644 sdks/python/test/test_acl_out.py create mode 100644 sdks/python/test/test_admin_login_request.py create mode 100644 sdks/python/test/test_admin_login_response.py create mode 100644 sdks/python/test/test_audit_record_out.py create mode 100644 sdks/python/test/test_auth_api.py create mode 100644 sdks/python/test/test_auth_model_create.py create mode 100644 sdks/python/test/test_auth_model_out.py create mode 100644 sdks/python/test/test_batch_access_item.py create mode 100644 sdks/python/test/test_batch_access_request.py create mode 100644 sdks/python/test/test_batch_access_response.py create mode 100644 sdks/python/test/test_batch_access_result.py create mode 100644 sdks/python/test/test_data_value.py create mode 100644 sdks/python/test/test_dev_api.py create mode 100644 sdks/python/test/test_health_api.py create mode 100644 sdks/python/test/test_http_validation_error.py create mode 100644 sdks/python/test/test_impact_analysis_request.py create mode 100644 sdks/python/test/test_impact_analysis_response.py create mode 100644 sdks/python/test/test_location_inner.py create mode 100644 sdks/python/test/test_management_api.py create mode 100644 sdks/python/test/test_meta_body.py create mode 100644 sdks/python/test/test_permission_create.py create mode 100644 sdks/python/test/test_permission_out.py create mode 100644 sdks/python/test/test_permission_update.py create mode 100644 sdks/python/test/test_playground_api.py create mode 100644 sdks/python/test/test_playground_evaluate_request.py create mode 100644 sdks/python/test/test_playground_input.py create mode 100644 sdks/python/test/test_playground_policy.py create mode 100644 sdks/python/test/test_policy_create.py create mode 100644 sdks/python/test/test_policy_out.py create mode 100644 sdks/python/test/test_policy_simulation_input.py create mode 100644 sdks/python/test/test_policy_simulation_request.py create mode 100644 sdks/python/test/test_policy_simulation_response.py create mode 100644 sdks/python/test/test_relationship_create.py create mode 100644 sdks/python/test/test_relationship_out.py create mode 100644 sdks/python/test/test_role_create.py create mode 100644 sdks/python/test/test_role_out.py create mode 100644 sdks/python/test/test_role_update.py create mode 100644 sdks/python/test/test_simulation_response.py create mode 100644 sdks/python/test/test_success_response_access_decision_response.py create mode 100644 sdks/python/test/test_success_response_acl_out.py create mode 100644 sdks/python/test/test_success_response_admin_login_response.py create mode 100644 sdks/python/test/test_success_response_auth_model_out.py create mode 100644 sdks/python/test/test_success_response_batch_access_response.py create mode 100644 sdks/python/test/test_success_response_dict_str_any.py create mode 100644 sdks/python/test/test_success_response_dict_str_int.py create mode 100644 sdks/python/test/test_success_response_dict_str_object.py create mode 100644 sdks/python/test/test_success_response_dict_str_str.py create mode 100644 sdks/python/test/test_success_response_dict_str_union_int_str.py create mode 100644 sdks/python/test/test_success_response_impact_analysis_response.py create mode 100644 sdks/python/test/test_success_response_list_acl_out.py create mode 100644 sdks/python/test/test_success_response_list_audit_record_out.py create mode 100644 sdks/python/test/test_success_response_list_dict_str_str.py create mode 100644 sdks/python/test/test_success_response_list_permission_out.py create mode 100644 sdks/python/test/test_success_response_list_policy_out.py create mode 100644 sdks/python/test/test_success_response_list_role_out.py create mode 100644 sdks/python/test/test_success_response_permission_out.py create mode 100644 sdks/python/test/test_success_response_policy_out.py create mode 100644 sdks/python/test/test_success_response_policy_simulation_response.py create mode 100644 sdks/python/test/test_success_response_relationship_out.py create mode 100644 sdks/python/test/test_success_response_simulation_response.py create mode 100644 sdks/python/test/test_validation_error.py create mode 100644 sdks/python/tox.ini create mode 100644 sdks/ruby/.gitignore create mode 100644 sdks/ruby/.gitlab-ci.yml create mode 100644 sdks/ruby/.rspec create mode 100644 sdks/ruby/.rubocop.yml create mode 100644 sdks/ruby/.travis.yml create mode 100644 sdks/ruby/Gemfile create mode 100644 sdks/ruby/README.md create mode 100644 sdks/ruby/Rakefile create mode 100644 sdks/ruby/docs/ACLCreate.md create mode 100644 sdks/ruby/docs/ACLOut.md create mode 100644 sdks/ruby/docs/AccessApi.md create mode 100644 sdks/ruby/docs/AccessDecisionResponse.md create mode 100644 sdks/ruby/docs/AccessRequest.md create mode 100644 sdks/ruby/docs/AdminLoginRequest.md create mode 100644 sdks/ruby/docs/AdminLoginResponse.md create mode 100644 sdks/ruby/docs/AuditRecordOut.md create mode 100644 sdks/ruby/docs/AuthApi.md create mode 100644 sdks/ruby/docs/AuthModelCreate.md create mode 100644 sdks/ruby/docs/AuthModelOut.md create mode 100644 sdks/ruby/docs/BatchAccessItem.md create mode 100644 sdks/ruby/docs/BatchAccessRequest.md create mode 100644 sdks/ruby/docs/BatchAccessResponse.md create mode 100644 sdks/ruby/docs/BatchAccessResult.md create mode 100644 sdks/ruby/docs/DataValue.md create mode 100644 sdks/ruby/docs/DevApi.md create mode 100644 sdks/ruby/docs/HTTPValidationError.md create mode 100644 sdks/ruby/docs/HealthApi.md create mode 100644 sdks/ruby/docs/ImpactAnalysisRequest.md create mode 100644 sdks/ruby/docs/ImpactAnalysisResponse.md create mode 100644 sdks/ruby/docs/LocationInner.md create mode 100644 sdks/ruby/docs/ManagementApi.md create mode 100644 sdks/ruby/docs/MetaBody.md create mode 100644 sdks/ruby/docs/PermissionCreate.md create mode 100644 sdks/ruby/docs/PermissionOut.md create mode 100644 sdks/ruby/docs/PermissionUpdate.md create mode 100644 sdks/ruby/docs/PlaygroundApi.md create mode 100644 sdks/ruby/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/ruby/docs/PlaygroundInput.md create mode 100644 sdks/ruby/docs/PlaygroundPolicy.md create mode 100644 sdks/ruby/docs/PolicyCreate.md create mode 100644 sdks/ruby/docs/PolicyOut.md create mode 100644 sdks/ruby/docs/PolicySimulationInput.md create mode 100644 sdks/ruby/docs/PolicySimulationRequest.md create mode 100644 sdks/ruby/docs/PolicySimulationResponse.md create mode 100644 sdks/ruby/docs/RelationshipCreate.md create mode 100644 sdks/ruby/docs/RelationshipOut.md create mode 100644 sdks/ruby/docs/RoleCreate.md create mode 100644 sdks/ruby/docs/RoleOut.md create mode 100644 sdks/ruby/docs/RoleUpdate.md create mode 100644 sdks/ruby/docs/SimulationResponse.md create mode 100644 sdks/ruby/docs/SuccessResponseACLOut.md create mode 100644 sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/ruby/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/ruby/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/ruby/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/ruby/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/ruby/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/ruby/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/ruby/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/ruby/docs/SuccessResponseListACLOut.md create mode 100644 sdks/ruby/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/ruby/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/ruby/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/ruby/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/ruby/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/ruby/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/ruby/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/ruby/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/ruby/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/ruby/docs/ValidationError.md create mode 100644 sdks/ruby/git_push.sh create mode 100644 sdks/ruby/keynetra-client.gemspec create mode 100644 sdks/ruby/spec/api/access_api_spec.rb create mode 100644 sdks/ruby/spec/api/auth_api_spec.rb create mode 100644 sdks/ruby/spec/api/dev_api_spec.rb create mode 100644 sdks/ruby/spec/api/health_api_spec.rb create mode 100644 sdks/ruby/spec/api/management_api_spec.rb create mode 100644 sdks/ruby/spec/api/playground_api_spec.rb create mode 100644 sdks/ruby/spec/models/access_decision_response_spec.rb create mode 100644 sdks/ruby/spec/models/access_request_spec.rb create mode 100644 sdks/ruby/spec/models/acl_create_spec.rb create mode 100644 sdks/ruby/spec/models/acl_out_spec.rb create mode 100644 sdks/ruby/spec/models/admin_login_request_spec.rb create mode 100644 sdks/ruby/spec/models/admin_login_response_spec.rb create mode 100644 sdks/ruby/spec/models/audit_record_out_spec.rb create mode 100644 sdks/ruby/spec/models/auth_model_create_spec.rb create mode 100644 sdks/ruby/spec/models/auth_model_out_spec.rb create mode 100644 sdks/ruby/spec/models/batch_access_item_spec.rb create mode 100644 sdks/ruby/spec/models/batch_access_request_spec.rb create mode 100644 sdks/ruby/spec/models/batch_access_response_spec.rb create mode 100644 sdks/ruby/spec/models/batch_access_result_spec.rb create mode 100644 sdks/ruby/spec/models/data_value_spec.rb create mode 100644 sdks/ruby/spec/models/http_validation_error_spec.rb create mode 100644 sdks/ruby/spec/models/impact_analysis_request_spec.rb create mode 100644 sdks/ruby/spec/models/impact_analysis_response_spec.rb create mode 100644 sdks/ruby/spec/models/location_inner_spec.rb create mode 100644 sdks/ruby/spec/models/meta_body_spec.rb create mode 100644 sdks/ruby/spec/models/permission_create_spec.rb create mode 100644 sdks/ruby/spec/models/permission_out_spec.rb create mode 100644 sdks/ruby/spec/models/permission_update_spec.rb create mode 100644 sdks/ruby/spec/models/playground_evaluate_request_spec.rb create mode 100644 sdks/ruby/spec/models/playground_input_spec.rb create mode 100644 sdks/ruby/spec/models/playground_policy_spec.rb create mode 100644 sdks/ruby/spec/models/policy_create_spec.rb create mode 100644 sdks/ruby/spec/models/policy_out_spec.rb create mode 100644 sdks/ruby/spec/models/policy_simulation_input_spec.rb create mode 100644 sdks/ruby/spec/models/policy_simulation_request_spec.rb create mode 100644 sdks/ruby/spec/models/policy_simulation_response_spec.rb create mode 100644 sdks/ruby/spec/models/relationship_create_spec.rb create mode 100644 sdks/ruby/spec/models/relationship_out_spec.rb create mode 100644 sdks/ruby/spec/models/role_create_spec.rb create mode 100644 sdks/ruby/spec/models/role_out_spec.rb create mode 100644 sdks/ruby/spec/models/role_update_spec.rb create mode 100644 sdks/ruby/spec/models/simulation_response_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_access_decision_response_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_acl_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_admin_login_response_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_auth_model_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_batch_access_response_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_dict_str_any_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_dict_str_int_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_dict_str_object_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_dict_str_str_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_list_acl_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_list_permission_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_list_policy_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_list_role_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_permission_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_policy_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_relationship_out_spec.rb create mode 100644 sdks/ruby/spec/models/success_response_simulation_response_spec.rb create mode 100644 sdks/ruby/spec/models/validation_error_spec.rb create mode 100644 sdks/ruby/spec/spec_helper.rb create mode 100644 sdks/rust/.gitignore create mode 100644 sdks/rust/.travis.yml create mode 100644 sdks/rust/Cargo.toml create mode 100644 sdks/rust/README.md create mode 100644 sdks/rust/docs/AccessApi.md create mode 100644 sdks/rust/docs/AccessDecisionResponse.md create mode 100644 sdks/rust/docs/AccessRequest.md create mode 100644 sdks/rust/docs/AclCreate.md create mode 100644 sdks/rust/docs/AclOut.md create mode 100644 sdks/rust/docs/AdminLoginRequest.md create mode 100644 sdks/rust/docs/AdminLoginResponse.md create mode 100644 sdks/rust/docs/AuditRecordOut.md create mode 100644 sdks/rust/docs/AuthApi.md create mode 100644 sdks/rust/docs/AuthModelCreate.md create mode 100644 sdks/rust/docs/AuthModelOut.md create mode 100644 sdks/rust/docs/BatchAccessItem.md create mode 100644 sdks/rust/docs/BatchAccessRequest.md create mode 100644 sdks/rust/docs/BatchAccessResponse.md create mode 100644 sdks/rust/docs/BatchAccessResult.md create mode 100644 sdks/rust/docs/DataValue.md create mode 100644 sdks/rust/docs/DevApi.md create mode 100644 sdks/rust/docs/HealthApi.md create mode 100644 sdks/rust/docs/HttpValidationError.md create mode 100644 sdks/rust/docs/ImpactAnalysisRequest.md create mode 100644 sdks/rust/docs/ImpactAnalysisResponse.md create mode 100644 sdks/rust/docs/LocationInner.md create mode 100644 sdks/rust/docs/ManagementApi.md create mode 100644 sdks/rust/docs/MetaBody.md create mode 100644 sdks/rust/docs/PermissionCreate.md create mode 100644 sdks/rust/docs/PermissionOut.md create mode 100644 sdks/rust/docs/PermissionUpdate.md create mode 100644 sdks/rust/docs/PlaygroundApi.md create mode 100644 sdks/rust/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/rust/docs/PlaygroundInput.md create mode 100644 sdks/rust/docs/PlaygroundPolicy.md create mode 100644 sdks/rust/docs/PolicyCreate.md create mode 100644 sdks/rust/docs/PolicyOut.md create mode 100644 sdks/rust/docs/PolicySimulationInput.md create mode 100644 sdks/rust/docs/PolicySimulationRequest.md create mode 100644 sdks/rust/docs/PolicySimulationResponse.md create mode 100644 sdks/rust/docs/RelationshipCreate.md create mode 100644 sdks/rust/docs/RelationshipOut.md create mode 100644 sdks/rust/docs/RoleCreate.md create mode 100644 sdks/rust/docs/RoleOut.md create mode 100644 sdks/rust/docs/RoleUpdate.md create mode 100644 sdks/rust/docs/SimulationResponse.md create mode 100644 sdks/rust/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/rust/docs/SuccessResponseAclOut.md create mode 100644 sdks/rust/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/rust/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/rust/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/rust/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/rust/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/rust/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/rust/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/rust/docs/SuccessResponseListAclOut.md create mode 100644 sdks/rust/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/rust/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/rust/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/rust/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/rust/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/rust/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/rust/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/rust/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/rust/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/rust/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/rust/docs/ValidationError.md create mode 100644 sdks/rust/git_push.sh create mode 100644 sdks/swift/.gitignore create mode 100644 sdks/swift/.swiftformat create mode 100644 sdks/swift/Cartfile create mode 100644 sdks/swift/KeyNetraClient.podspec create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift create mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift create mode 100644 sdks/swift/Package.swift create mode 100644 sdks/swift/README.md create mode 100644 sdks/swift/docs/ACLCreate.md create mode 100644 sdks/swift/docs/ACLOut.md create mode 100644 sdks/swift/docs/AccessAPI.md create mode 100644 sdks/swift/docs/AccessDecisionResponse.md create mode 100644 sdks/swift/docs/AccessRequest.md create mode 100644 sdks/swift/docs/AdminLoginRequest.md create mode 100644 sdks/swift/docs/AdminLoginResponse.md create mode 100644 sdks/swift/docs/AuditRecordOut.md create mode 100644 sdks/swift/docs/AuthAPI.md create mode 100644 sdks/swift/docs/AuthModelCreate.md create mode 100644 sdks/swift/docs/AuthModelOut.md create mode 100644 sdks/swift/docs/BatchAccessItem.md create mode 100644 sdks/swift/docs/BatchAccessRequest.md create mode 100644 sdks/swift/docs/BatchAccessResponse.md create mode 100644 sdks/swift/docs/BatchAccessResult.md create mode 100644 sdks/swift/docs/DataValue.md create mode 100644 sdks/swift/docs/DevAPI.md create mode 100644 sdks/swift/docs/HTTPValidationError.md create mode 100644 sdks/swift/docs/HealthAPI.md create mode 100644 sdks/swift/docs/ImpactAnalysisRequest.md create mode 100644 sdks/swift/docs/ImpactAnalysisResponse.md create mode 100644 sdks/swift/docs/LocationInner.md create mode 100644 sdks/swift/docs/ManagementAPI.md create mode 100644 sdks/swift/docs/MetaBody.md create mode 100644 sdks/swift/docs/PermissionCreate.md create mode 100644 sdks/swift/docs/PermissionOut.md create mode 100644 sdks/swift/docs/PermissionUpdate.md create mode 100644 sdks/swift/docs/PlaygroundAPI.md create mode 100644 sdks/swift/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/swift/docs/PlaygroundInput.md create mode 100644 sdks/swift/docs/PlaygroundPolicy.md create mode 100644 sdks/swift/docs/PolicyCreate.md create mode 100644 sdks/swift/docs/PolicyOut.md create mode 100644 sdks/swift/docs/PolicySimulationInput.md create mode 100644 sdks/swift/docs/PolicySimulationRequest.md create mode 100644 sdks/swift/docs/PolicySimulationResponse.md create mode 100644 sdks/swift/docs/RelationshipCreate.md create mode 100644 sdks/swift/docs/RelationshipOut.md create mode 100644 sdks/swift/docs/RoleCreate.md create mode 100644 sdks/swift/docs/RoleOut.md create mode 100644 sdks/swift/docs/RoleUpdate.md create mode 100644 sdks/swift/docs/SimulationResponse.md create mode 100644 sdks/swift/docs/SuccessResponseACLOut.md create mode 100644 sdks/swift/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/swift/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/swift/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/swift/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/swift/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/swift/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/swift/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/swift/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/swift/docs/SuccessResponseListACLOut.md create mode 100644 sdks/swift/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/swift/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/swift/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/swift/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/swift/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/swift/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/swift/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/swift/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/swift/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/swift/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/swift/docs/ValidationError.md create mode 100644 sdks/swift/git_push.sh create mode 100644 sdks/swift/project.yml create mode 100644 sdks/typescript/.gitignore create mode 100644 sdks/typescript/.npmignore create mode 100644 sdks/typescript/README.md create mode 100644 sdks/typescript/docs/ACLCreate.md create mode 100644 sdks/typescript/docs/ACLOut.md create mode 100644 sdks/typescript/docs/AccessApi.md create mode 100644 sdks/typescript/docs/AccessDecisionResponse.md create mode 100644 sdks/typescript/docs/AccessRequest.md create mode 100644 sdks/typescript/docs/AdminLoginRequest.md create mode 100644 sdks/typescript/docs/AdminLoginResponse.md create mode 100644 sdks/typescript/docs/AuditRecordOut.md create mode 100644 sdks/typescript/docs/AuthApi.md create mode 100644 sdks/typescript/docs/AuthModelCreate.md create mode 100644 sdks/typescript/docs/AuthModelOut.md create mode 100644 sdks/typescript/docs/BatchAccessItem.md create mode 100644 sdks/typescript/docs/BatchAccessRequest.md create mode 100644 sdks/typescript/docs/BatchAccessResponse.md create mode 100644 sdks/typescript/docs/BatchAccessResult.md create mode 100644 sdks/typescript/docs/DataValue.md create mode 100644 sdks/typescript/docs/DevApi.md create mode 100644 sdks/typescript/docs/HTTPValidationError.md create mode 100644 sdks/typescript/docs/HealthApi.md create mode 100644 sdks/typescript/docs/ImpactAnalysisRequest.md create mode 100644 sdks/typescript/docs/ImpactAnalysisResponse.md create mode 100644 sdks/typescript/docs/LocationInner.md create mode 100644 sdks/typescript/docs/ManagementApi.md create mode 100644 sdks/typescript/docs/MetaBody.md create mode 100644 sdks/typescript/docs/PermissionCreate.md create mode 100644 sdks/typescript/docs/PermissionOut.md create mode 100644 sdks/typescript/docs/PermissionUpdate.md create mode 100644 sdks/typescript/docs/PlaygroundApi.md create mode 100644 sdks/typescript/docs/PlaygroundEvaluateRequest.md create mode 100644 sdks/typescript/docs/PlaygroundInput.md create mode 100644 sdks/typescript/docs/PlaygroundPolicy.md create mode 100644 sdks/typescript/docs/PolicyCreate.md create mode 100644 sdks/typescript/docs/PolicyOut.md create mode 100644 sdks/typescript/docs/PolicySimulationInput.md create mode 100644 sdks/typescript/docs/PolicySimulationRequest.md create mode 100644 sdks/typescript/docs/PolicySimulationResponse.md create mode 100644 sdks/typescript/docs/RelationshipCreate.md create mode 100644 sdks/typescript/docs/RelationshipOut.md create mode 100644 sdks/typescript/docs/RoleCreate.md create mode 100644 sdks/typescript/docs/RoleOut.md create mode 100644 sdks/typescript/docs/RoleUpdate.md create mode 100644 sdks/typescript/docs/SimulationResponse.md create mode 100644 sdks/typescript/docs/SuccessResponseACLOut.md create mode 100644 sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md create mode 100644 sdks/typescript/docs/SuccessResponseAdminLoginResponse.md create mode 100644 sdks/typescript/docs/SuccessResponseAuthModelOut.md create mode 100644 sdks/typescript/docs/SuccessResponseBatchAccessResponse.md create mode 100644 sdks/typescript/docs/SuccessResponseDictStrAny.md create mode 100644 sdks/typescript/docs/SuccessResponseDictStrInt.md create mode 100644 sdks/typescript/docs/SuccessResponseDictStrObject.md create mode 100644 sdks/typescript/docs/SuccessResponseDictStrStr.md create mode 100644 sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md create mode 100644 sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md create mode 100644 sdks/typescript/docs/SuccessResponseListACLOut.md create mode 100644 sdks/typescript/docs/SuccessResponseListAuditRecordOut.md create mode 100644 sdks/typescript/docs/SuccessResponseListDictStrStr.md create mode 100644 sdks/typescript/docs/SuccessResponseListPermissionOut.md create mode 100644 sdks/typescript/docs/SuccessResponseListPolicyOut.md create mode 100644 sdks/typescript/docs/SuccessResponseListRoleOut.md create mode 100644 sdks/typescript/docs/SuccessResponsePermissionOut.md create mode 100644 sdks/typescript/docs/SuccessResponsePolicyOut.md create mode 100644 sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md create mode 100644 sdks/typescript/docs/SuccessResponseRelationshipOut.md create mode 100644 sdks/typescript/docs/SuccessResponseSimulationResponse.md create mode 100644 sdks/typescript/docs/ValidationError.md create mode 100644 sdks/typescript/package.json create mode 100644 sdks/typescript/tsconfig.esm.json create mode 100644 sdks/typescript/tsconfig.json create mode 100644 templates/csharp-config.yaml create mode 100644 templates/go-config.yaml create mode 100644 templates/java-config.yaml create mode 100644 templates/kotlin-config.yaml create mode 100644 templates/php-config.yaml create mode 100644 templates/python-config.yaml create mode 100644 templates/ruby-config.yaml create mode 100644 templates/rust-config.yaml create mode 100644 templates/swift-config.yaml create mode 100644 templates/typescript-config.yaml create mode 100644 tests/csharp/TestInstantiation.cs create mode 100644 tests/go/go.mod create mode 100644 tests/go/test_instantiation.go create mode 100644 tests/java/TestInstantiation.java create mode 100644 tests/python/test_full.py create mode 100644 tests/python/test_instantiation.py create mode 100644 tests/rust/test_instantiation.rs create mode 100644 tests/typescript/test_instantiation.ts diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml new file mode 100644 index 0000000..2b81661 --- /dev/null +++ b/.github/workflows/generate.yml @@ -0,0 +1,85 @@ +name: โš™๏ธ Generate SDKs + +on: + push: + branches: + - main + paths: + - openapi/keynetra.yaml + pull_request: + branches: + - main + paths: + - openapi/keynetra.yaml + workflow_dispatch: + +permissions: + contents: write + +jobs: + generate: + name: ๐Ÿ› ๏ธ Generate & Prepare SDKs + runs-on: ubuntu-latest + + steps: + - name: ๐Ÿ“ฅ Checkout Code + uses: actions/checkout@v4 + + - name: ๐ŸŸข Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: ๐Ÿ“ฆ Install OpenAPI Generator + run: | + echo "Installing openapi-generator-cli..." + npm install -g @openapitools/openapi-generator-cli + + - name: ๐Ÿš€ Run SDK Generation + run: | + chmod +x scripts/generate-all.sh scripts/prepare-packages.sh + ./scripts/generate-all.sh + + - name: ๐Ÿ’พ Commit & Push Changes + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + git config user.name "KeyNetra Engineering" + git config user.email "business.keynetra@gmail.com" + git add sdks scripts templates openapi + if git diff --cached --quiet; then + echo "โœจ No SDK changes detected." + exit 0 + fi + git commit -m "chore(sdk): regenerate SDKs ๐Ÿค–" + git push + + - name: ๐Ÿ’พ Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: generated-sdks + path: sdks + + test: + name: ๐Ÿงช Smoke Test SDKs + needs: generate + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ฅ Checkout Code + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ Test Python Instantiation + run: | + cd tests/python + python3 test_instantiation.py + + - name: ๐Ÿน Test Go Instantiation + run: | + cd sdks/go + go mod tidy + go build ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..28817c1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,419 @@ +name: ๐Ÿš€ Release SDKs + +on: + push: + tags: + - sdk-* + workflow_dispatch: + +permissions: + contents: write + +jobs: + prepare: + name: ๐Ÿ—๏ธ Build & Prepare + runs-on: ubuntu-latest + outputs: + version: ${{ steps.version.outputs.value }} + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐ŸŸข Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: ๐Ÿท๏ธ Resolve SDK version + id: version + run: echo "value=${GITHUB_REF_NAME#sdk-v}" >> "$GITHUB_OUTPUT" + + - name: ๐Ÿ“ฆ Install OpenAPI Generator + run: npm install -g @openapitools/openapi-generator-cli + + - name: ๐Ÿ› ๏ธ Generate SDKs + env: + SDK_VERSION: ${{ steps.version.outputs.value }} + run: | + chmod +x scripts/generate-all.sh scripts/prepare-packages.sh + ./scripts/generate-all.sh + + - name: ๐Ÿ’พ Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: generated-sdks + path: sdks + + python: + name: ๐Ÿ Publish Python + runs-on: ubuntu-latest + needs: prepare + permissions: + id-token: write + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: ๐Ÿ“ฆ Build & Check + working-directory: sdks/python + run: | + python -m pip install --upgrade pip build twine + python -m build + python -m twine check dist/* + + - name: ๐Ÿš€ Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: sdks/python/dist/ + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/python' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-python' + user-email: business.keynetra@gmail.com + target-branch: main + + typescript: + name: ๐Ÿ“˜ Publish TypeScript + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐ŸŸข Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + registry-url: "https://registry.npmjs.org" + + - name: ๐Ÿš€ Publish to npm + working-directory: sdks/typescript + run: | + npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/typescript' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-typescript' + user-email: business.keynetra@gmail.com + target-branch: main + + go: + name: ๐Ÿน Publish Go + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/go' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-go' + user-email: business.keynetra@gmail.com + target-branch: main + + - name: ๐Ÿท๏ธ Create release tag in target repo + run: | + # This requires the PAT to have permission to tag the remote repo + # The mirror action above pushes to 'main'. We also need to tag it. + # For now, we'll assume the mirror action doesn't handle tags automatically. + # A better way might be to push directly with git. + echo "Mirrored to keynetra-go" + + java: + name: โ˜• Publish Java + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: โ˜• Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + cache: gradle + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + + - name: ๐Ÿš€ Publish to Maven + working-directory: sdks/java + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + run: ./gradlew publish + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/java' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-java' + user-email: business.keynetra@gmail.com + target-branch: main + + rust: + name: ๐Ÿฆ€ Publish Rust + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿš€ Publish to crates.io + working-directory: sdks/rust + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish --locked + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/rust' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-rust' + user-email: business.keynetra@gmail.com + target-branch: main + + csharp: + name: ๐Ÿ’Ž Publish C# + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ’  Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0.x" + + - name: ๐Ÿ“ฆ Pack NuGet package + working-directory: sdks/csharp/src/KeyNetra.Client + run: dotnet pack -c Release -p:PackageVersion=${{ needs.prepare.outputs.version }} + + - name: ๐Ÿš€ Publish to NuGet + working-directory: sdks/csharp/src/KeyNetra.Client/bin/Release + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + run: | + dotnet nuget push "*.nupkg" \ + --api-key "$NUGET_API_KEY" \ + --source https://api.nuget.org/v3/index.json \ + --skip-duplicate + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/csharp' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-csharp' + user-email: business.keynetra@gmail.com + target-branch: main + + php: + name: ๐Ÿ˜ Publish PHP + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ˜ Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + + - name: โœ… Validate composer.json + working-directory: sdks/php + run: composer validate + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/php' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-php' + user-email: business.keynetra@gmail.com + target-branch: main + + ruby: + name: ๐Ÿ’Ž Publish Ruby + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ’Ž Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2" + + - name: ๐Ÿš€ Build & Publish Gem + working-directory: sdks/ruby + env: + GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} + run: | + mkdir -p ~/.gem + touch ~/.gem/credentials + chmod 0600 ~/.gem/credentials + printf "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > ~/.gem/credentials + gem build *.gemspec + gem push *.gem + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/ruby' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-ruby' + user-email: business.keynetra@gmail.com + target-branch: main + + kotlin: + name: ๐Ÿ“ฑ Publish Kotlin + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: โ˜• Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + + - name: ๐Ÿ› ๏ธ Build Kotlin Library + working-directory: sdks/kotlin + run: ./gradlew build + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/kotlin' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-kotlin' + user-email: business.keynetra@gmail.com + target-branch: main + + swift: + name: ๐ŸŽ Publish Swift + runs-on: ubuntu-latest + needs: prepare + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ”„ Mirror to dedicated repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + with: + source-directory: 'sdks/swift' + destination-github-username: 'keynetra' + destination-repository-name: 'keynetra-swift' + user-email: business.keynetra@gmail.com + target-branch: main + + - name: ๐Ÿท๏ธ Create release tag in target repo + run: | + echo "Mirrored to keynetra-swift" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3902ce5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,121 @@ +# IDEs +.vscode/ +.idea/ +*.swp +*.swo +.DS_Store + +# OpenAPI Generator +.openapi-generator/ +sdks/**/.openapi-generator/ +sdks/**/.openapi-generator-ignore + +# Python +__pycache__/ +*.py[cod] +*$py.class +.pytest_cache/ +.venv/ +env/ +venv/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Node.js +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.npm +dist/ +lib-cov +coverage +*.lcov +.nyc_output +.grunt +bower_components +.lock-wscript +build/Release + +# Java +*.class +*.log +*.jar +*.war +*.ear +*.zip +*.tar.gz +*.rar +target/ +.gradle/ +build/ +!gradle-wrapper.jar + +# Go +bin/ +pkg/ +src/ +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.test +*.out +vendor/ + +# Rust +target/ +**/*.rs.bk +Cargo.lock + +# C# +bin/ +obj/ +*.user +*.userosscache +*.sln.doccache +*.suo + +# PHP +vendor/ +.phpunit.result.cache +composer.lock + +# Ruby +.bundle/ +vendor/bundle +*.gem +.yardoc +/_yardoc +/doc/ +/pkg/ +/spec/reports/ +/tmp/ + +# Swift +.build/ +Packages/ +Package.pins +Package.resolved +*.xcodeproj +*.xcworkspace + +# General +tmp/ +logs/ +*.bak +*.tmp diff --git a/README.md b/README.md new file mode 100644 index 0000000..59ce510 --- /dev/null +++ b/README.md @@ -0,0 +1,100 @@ +# KeyNetra SDKs + +Official client libraries for the [KeyNetra](https://keynetra.com) authorization platform. + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![OpenAPI](https://img.shields.io/badge/OpenAPI-3.1-green.svg)](https://www.openapis.org/) +[![Status](https://img.shields.io/badge/Status-Production--Ready-brightgreen.svg)]() + +KeyNetra is a high-performance, distributed authorization as a service. This repository contains the official SDKs for 10 major programming languages, all generated from the canonical KeyNetra OpenAPI specification. + +## ๐Ÿš€ Supported SDKs & Installation + +| Language | Package Name | Installation | +| :--- | :--- | :--- | +| **Python** | `keynetra-client` | `pip install keynetra-client` | +| **TypeScript** | `@keynetra/client` | `npm install @keynetra/client` | +| **Go** | `keynetra-client-go` | `go get github.com/keynetra/keynetra-client-go` | +| **Rust** | `keynetra-client` | `cargo add keynetra-client` | +| **Java** | `keynetra-client` | `...` | +| **C#** | `KeyNetra.Client` | `dotnet add package KeyNetra.Client` | +| **PHP** | `keynetra/client` | `composer require keynetra/client` | +| **Ruby** | `keynetra-client` | `gem install keynetra-client` | +| **Kotlin** | `keynetra-client-kotlin` | `implementation("io.keynetra...")` | +| **Swift** | `KeyNetraClient` | `.package(url: "...", from: "...")` | + +## โœจ Key Features + +- **Unified Interface**: Normalized `KeyNetraClient` entry point across all languages. +- **Type-Safe**: Full IDE support with generated models and service interfaces. +- **Multi-Auth Support**: Support for both API Key and Bearer Token authentication. +- **Modern Standards**: Built on OpenAPI 3.1 and language-specific best practices. +- **CI/CD Integrated**: Automatically updated whenever the API specification changes. + +## ๐Ÿ› ๏ธ Unified Client Usage + +Every SDK exposes a unified `KeyNetraClient` with a consistent constructor shape, making it easy to switch between languages or use multiple SDKs in a polyglot environment. + +```text +KeyNetraClient( + base_url: string, + api_key: string +) +``` + +### Example (TypeScript) + +```typescript +import { KeyNetraClient } from "@keynetra/client"; + +const client = new KeyNetraClient("https://api.keynetra.com", "your-api-key"); + +const decision = await client.defaultApi.checkAccess({ + subject: "user:alice", + action: "write", + resource: "doc:123" +}); +``` + +## ๐Ÿ—๏ธ Repository Structure + +```text +keynetra-sdks/ +โ”œโ”€โ”€ openapi/ # Canonical OpenAPI 3.1 Specification +โ”œโ”€โ”€ scripts/ # Generation and packaging automation scripts +โ”œโ”€โ”€ sdks/ # Generated SDK source code (10 languages) +โ”œโ”€โ”€ templates/ # OpenAPI Generator configuration templates +โ””โ”€โ”€ tests/ # Cross-language verification tests +``` + +## ๐Ÿ”„ Development & Release + +### Regenerate SDKs +To regenerate all SDKs from the OpenAPI spec: +```bash +./scripts/generate-all.sh +``` + +### Release Flow +1. Update `openapi/keynetra.yaml`. +2. Push to `main` (triggers automatic SDK regeneration). +3. Push a tag `sdk-v*` to trigger multi-registry publication (PyPI, npm, Maven, etc.) and Git mirroring. + +## ๐Ÿ” CI/CD Secrets + +To enable the automated release workflow, the following GitHub Secrets must be configured in this repository: + +- `SDK_MIRROR_TOKEN`: A GitHub PAT with `repo` scope to push to dedicated SDK repositories. +- `PYPI_API_TOKEN`: For publishing the Python SDK. +- `NPM_TOKEN`: For publishing the TypeScript SDK. +- `MAVEN_USERNAME` / `MAVEN_PASSWORD`: For Java distribution. +- `CARGO_REGISTRY_TOKEN`: For Rust crates.io distribution. +- `NUGET_API_KEY`: For C# NuGet distribution. +- `RUBYGEMS_API_KEY`: For RubyGem distribution. + +## ๐Ÿ“„ License + +This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details. + +--- +ยฉ 2024 KeyNetra Engineering. All rights reserved. diff --git a/openapi/keynetra.yaml b/openapi/keynetra.yaml new file mode 100644 index 0000000..10718ec --- /dev/null +++ b/openapi/keynetra.yaml @@ -0,0 +1,2245 @@ +openapi: 3.1.0 +info: + title: KeyNetra + version: 0.1.1 +paths: + /health: + get: + tags: + - health + summary: Health + operationId: health_health_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__str__' + /health/live: + get: + tags: + - health + summary: Liveness + operationId: liveness_health_live_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__str__' + /health/ready: + get: + tags: + - health + summary: Readiness + operationId: readiness_health_ready_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__object__' + /check-access: + post: + tags: + - access + summary: Check Access + operationId: check_access_check_access_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: policy_set + in: query + required: false + schema: + type: string + default: active + title: Policy Set + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AccessRequest' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_AccessDecisionResponse_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /simulate: + post: + tags: + - access + summary: Simulate + operationId: simulate_simulate_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccessRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_SimulationResponse_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + /check-access-batch: + post: + tags: + - access + summary: Check Access Batch + operationId: check_access_batch_check_access_batch_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: policy_set + in: query + required: false + schema: + type: string + default: active + title: Policy Set + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/BatchAccessRequest' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_BatchAccessResponse_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /admin/login: + post: + tags: + - auth + - auth + summary: Admin Login + operationId: admin_login_admin_login_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AdminLoginRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_AdminLoginResponse_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /policies: + get: + tags: + - management + summary: List Policies + operationId: list_policies_policies_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + title: Limit + - name: cursor + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Cursor + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_PolicyOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + post: + tags: + - management + summary: Create Policy + operationId: create_policy_policies_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PolicyCreate' + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_PolicyOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /policies/{policy_key}: + put: + tags: + - management + summary: Update Policy + operationId: update_policy_policies__policy_key__put + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: policy_key + in: path + required: true + schema: + type: string + title: Policy Key + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PolicyCreate' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_PolicyOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - management + summary: Delete Policy + operationId: delete_policy_policies__policy_key__delete + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: policy_key + in: path + required: true + schema: + type: string + title: Policy Key + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__str__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /policies/dsl: + post: + tags: + - management + summary: Create Policy From Dsl + operationId: create_policy_from_dsl_policies_dsl_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: dsl + in: query + required: true + schema: + type: string + title: Dsl + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_PolicyOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /policies/{policy_key}/rollback/{version}: + post: + tags: + - management + summary: Rollback Policy + operationId: rollback_policy_policies__policy_key__rollback__version__post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: policy_key + in: path + required: true + schema: + type: string + title: Policy Key + - name: version + in: path + required: true + schema: + type: integer + title: Version + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__Union_int__str___' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /acl: + post: + tags: + - management + summary: Create Acl Entry + operationId: create_acl_entry_acl_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ACLCreate' + required: true + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_ACLOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + /acl/{resource_type}/{resource_id}: + get: + tags: + - management + summary: List Acl Entries + operationId: list_acl_entries_acl__resource_type___resource_id__get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: resource_type + in: path + required: true + schema: + type: string + title: Resource Type + - name: resource_id + in: path + required: true + schema: + type: string + title: Resource Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_ACLOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /acl/{acl_id}: + delete: + tags: + - management + summary: Delete Acl Entry + operationId: delete_acl_entry_acl__acl_id__delete + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: acl_id + in: path + required: true + schema: + type: integer + title: Acl Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__int__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /auth-model: + get: + tags: + - management + summary: Get Auth Model + operationId: get_auth_model_auth_model_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_AuthModelOut_' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + post: + tags: + - management + summary: Create Auth Model + operationId: create_auth_model_auth_model_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthModelCreate' + required: true + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_AuthModelOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + /simulate-policy: + post: + tags: + - management + summary: Simulate Policy + operationId: simulate_policy_simulate_policy_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PolicySimulationRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_PolicySimulationResponse_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + /impact-analysis: + post: + tags: + - management + summary: Impact Analysis + operationId: impact_analysis_impact_analysis_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ImpactAnalysisRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_ImpactAnalysisResponse_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + /roles: + get: + tags: + - management + summary: List Roles + operationId: list_roles_roles_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + title: Limit + - name: cursor + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Cursor + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_RoleOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + post: + tags: + - management + summary: Create Role + operationId: create_role_roles_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RoleCreate' + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/RoleOut' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /roles/{role_id}: + put: + tags: + - management + summary: Update Role + operationId: update_role_roles__role_id__put + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: role_id + in: path + required: true + schema: + type: integer + title: Role Id + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RoleUpdate' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/RoleOut' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - management + summary: Delete Role + operationId: delete_role_roles__role_id__delete + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: role_id + in: path + required: true + schema: + type: integer + title: Role Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__int__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /roles/{role_id}/permissions: + get: + tags: + - management + summary: List Role Permissions + operationId: list_role_permissions_roles__role_id__permissions_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: role_id + in: path + required: true + schema: + type: integer + title: Role Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_PermissionOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /roles/{role_id}/permissions/{permission_id}: + post: + tags: + - management + summary: Add Permission To Role + operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: role_id + in: path + required: true + schema: + type: integer + title: Role Id + - name: permission_id + in: path + required: true + schema: + type: integer + title: Permission Id + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_PermissionOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - management + summary: Remove Permission From Role + operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: role_id + in: path + required: true + schema: + type: integer + title: Role Id + - name: permission_id + in: path + required: true + schema: + type: integer + title: Permission Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__int__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /permissions: + get: + tags: + - management + summary: List Permissions + operationId: list_permissions_permissions_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + title: Limit + - name: cursor + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Cursor + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_PermissionOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + post: + tags: + - management + summary: Create Permission + operationId: create_permission_permissions_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PermissionCreate' + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PermissionOut' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /permissions/{permission_id}: + put: + tags: + - management + summary: Update Permission + operationId: update_permission_permissions__permission_id__put + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: permission_id + in: path + required: true + schema: + type: integer + title: Permission Id + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PermissionUpdate' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PermissionOut' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - management + summary: Delete Permission + operationId: delete_permission_permissions__permission_id__delete + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: permission_id + in: path + required: true + schema: + type: integer + title: Permission Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__int__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /permissions/{permission_id}/roles: + get: + tags: + - management + summary: List Permission Roles + operationId: list_permission_roles_permissions__permission_id__roles_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: permission_id + in: path + required: true + schema: + type: integer + title: Permission Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_RoleOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /relationships: + get: + tags: + - management + summary: List Relationships + operationId: list_relationships_relationships_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: subject_type + in: query + required: true + schema: + type: string + title: Subject Type + - name: subject_id + in: query + required: true + schema: + type: string + title: Subject Id + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + title: Limit + - name: cursor + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Cursor + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_dict_str__str___' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + post: + tags: + - management + summary: Create Relationship + operationId: create_relationship_relationships_post + security: + - HTTPBearer: [] + - APIKeyHeader: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RelationshipCreate' + responses: + '201': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_RelationshipOut_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /audit: + get: + tags: + - management + summary: List Audit Logs + operationId: list_audit_logs_audit_get + security: + - HTTPBearer: [] + - APIKeyHeader: [] + parameters: + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + title: Limit + - name: cursor + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Cursor + - name: user_id + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: User Id + - name: resource_id + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Resource Id + - name: decision + in: query + required: false + schema: + anyOf: + - type: string + - type: 'null' + title: Decision + - name: start_time + in: query + required: false + schema: + anyOf: + - type: string + format: date-time + - type: 'null' + title: Start Time + - name: end_time + in: query + required: false + schema: + anyOf: + - type: string + format: date-time + - type: 'null' + title: End Time + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_list_AuditRecordOut__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /playground/evaluate: + post: + tags: + - playground + summary: Evaluate + operationId: evaluate_playground_evaluate_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PlaygroundEvaluateRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__Any__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [] + - APIKeyHeader: [] + /dev/sample-data: + get: + tags: + - dev + summary: Get Sample Data + operationId: get_sample_data_dev_sample_data_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__object__' + /dev/sample-data/seed: + post: + tags: + - dev + summary: Seed Sample Data + operationId: seed_sample_data_dev_sample_data_seed_post + parameters: + - name: reset + in: query + required: false + schema: + type: boolean + description: Clear the sample dataset before reseeding it. + default: false + title: Reset + description: Clear the sample dataset before reseeding it. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse_dict_str__object__' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' +components: + schemas: + ACLCreate: + properties: + subject_type: + type: string + title: Subject Type + subject_id: + type: string + title: Subject Id + resource_type: + type: string + title: Resource Type + resource_id: + type: string + title: Resource Id + action: + type: string + title: Action + effect: + type: string + title: Effect + type: object + required: + - subject_type + - subject_id + - resource_type + - resource_id + - action + - effect + title: ACLCreate + ACLOut: + properties: + subject_type: + type: string + title: Subject Type + subject_id: + type: string + title: Subject Id + resource_type: + type: string + title: Resource Type + resource_id: + type: string + title: Resource Id + action: + type: string + title: Action + effect: + type: string + title: Effect + id: + type: integer + title: Id + tenant_id: + type: integer + title: Tenant Id + created_at: + anyOf: + - type: string + format: date-time + - type: 'null' + title: Created At + type: object + required: + - subject_type + - subject_id + - resource_type + - resource_id + - action + - effect + - id + - tenant_id + title: ACLOut + AccessDecisionResponse: + properties: + allowed: + type: boolean + title: Allowed + decision: + type: string + title: Decision + matched_policies: + items: + type: string + type: array + title: Matched Policies + reason: + anyOf: + - type: string + - type: 'null' + title: Reason + policy_id: + anyOf: + - type: string + - type: 'null' + title: Policy Id + explain_trace: + items: + additionalProperties: true + type: object + type: array + title: Explain Trace + revision: + anyOf: + - type: integer + - type: 'null' + title: Revision + type: object + required: + - allowed + - decision + title: AccessDecisionResponse + AccessRequest: + properties: + user: + additionalProperties: true + type: object + title: User + action: + type: string + title: Action + resource: + additionalProperties: true + type: object + title: Resource + context: + additionalProperties: true + type: object + title: Context + consistency: + type: string + title: Consistency + default: eventual + revision: + anyOf: + - type: integer + - type: 'null' + title: Revision + type: object + required: + - action + title: AccessRequest + description: Explicit authorization request passed through the API boundary. + AdminLoginRequest: + properties: + username: + type: string + title: Username + password: + type: string + title: Password + type: object + required: + - username + - password + title: AdminLoginRequest + AdminLoginResponse: + properties: + access_token: + type: string + title: Access Token + token_type: + type: string + title: Token Type + default: bearer + expires_in: + type: integer + title: Expires In + role: + type: string + title: Role + default: admin + tenant_key: + type: string + title: Tenant Key + type: object + required: + - access_token + - expires_in + - tenant_key + title: AdminLoginResponse + AuditRecordOut: + properties: + id: + type: integer + title: Id + principal_type: + type: string + title: Principal Type + principal_id: + type: string + title: Principal Id + correlation_id: + anyOf: + - type: string + - type: 'null' + title: Correlation Id + user: + additionalProperties: true + type: object + title: User + action: + type: string + title: Action + resource: + additionalProperties: true + type: object + title: Resource + decision: + type: string + title: Decision + matched_policies: + items: {} + type: array + title: Matched Policies + reason: + anyOf: + - type: string + - type: 'null' + title: Reason + evaluated_rules: + items: {} + type: array + title: Evaluated Rules + failed_conditions: + items: {} + type: array + title: Failed Conditions + created_at: + type: string + format: date-time + title: Created At + type: object + required: + - id + - principal_type + - principal_id + - user + - action + - resource + - decision + - matched_policies + - evaluated_rules + - failed_conditions + - created_at + title: AuditRecordOut + AuthModelCreate: + properties: + schema: + type: string + title: Schema + type: object + required: + - schema + title: AuthModelCreate + AuthModelOut: + properties: + id: + type: integer + title: Id + tenant_id: + type: integer + title: Tenant Id + schema: + type: string + title: Schema + parsed: + additionalProperties: true + type: object + title: Parsed + compiled: + additionalProperties: true + type: object + title: Compiled + type: object + required: + - id + - tenant_id + - schema + - parsed + - compiled + title: AuthModelOut + BatchAccessItem: + properties: + action: + type: string + title: Action + resource: + additionalProperties: true + type: object + title: Resource + type: object + required: + - action + title: BatchAccessItem + BatchAccessRequest: + properties: + user: + additionalProperties: true + type: object + title: User + items: + items: + $ref: '#/components/schemas/BatchAccessItem' + type: array + title: Items + consistency: + type: string + title: Consistency + default: eventual + revision: + anyOf: + - type: integer + - type: 'null' + title: Revision + type: object + required: + - items + title: BatchAccessRequest + BatchAccessResponse: + properties: + results: + items: + $ref: '#/components/schemas/BatchAccessResult' + type: array + title: Results + revision: + anyOf: + - type: integer + - type: 'null' + title: Revision + type: object + required: + - results + title: BatchAccessResponse + BatchAccessResult: + properties: + action: + type: string + title: Action + allowed: + type: boolean + title: Allowed + revision: + anyOf: + - type: integer + - type: 'null' + title: Revision + type: object + required: + - action + - allowed + title: BatchAccessResult + HTTPValidationError: + properties: + detail: + items: + $ref: '#/components/schemas/ValidationError' + type: array + title: Detail + type: object + title: HTTPValidationError + ImpactAnalysisRequest: + properties: + policy_change: + type: string + title: Policy Change + type: object + required: + - policy_change + title: ImpactAnalysisRequest + ImpactAnalysisResponse: + properties: + gained_access: + items: + type: integer + type: array + title: Gained Access + lost_access: + items: + type: integer + type: array + title: Lost Access + type: object + title: ImpactAnalysisResponse + MetaBody: + properties: + request_id: + anyOf: + - type: string + - type: 'null' + title: Request Id + limit: + anyOf: + - type: integer + - type: 'null' + title: Limit + next_cursor: + anyOf: + - type: string + - type: 'null' + title: Next Cursor + extra: + additionalProperties: true + type: object + title: Extra + type: object + title: MetaBody + PermissionCreate: + properties: + action: + type: string + title: Action + type: object + required: + - action + title: PermissionCreate + PermissionOut: + properties: + id: + type: integer + title: Id + action: + type: string + title: Action + type: object + required: + - id + - action + title: PermissionOut + PermissionUpdate: + properties: + action: + type: string + title: Action + type: object + required: + - action + title: PermissionUpdate + PlaygroundEvaluateRequest: + properties: + policies: + items: + $ref: '#/components/schemas/PlaygroundPolicy' + type: array + title: Policies + input: + $ref: '#/components/schemas/PlaygroundInput' + type: object + required: + - policies + - input + title: PlaygroundEvaluateRequest + PlaygroundInput: + properties: + user: + additionalProperties: true + type: object + title: User + resource: + additionalProperties: true + type: object + title: Resource + action: + type: string + title: Action + default: '' + context: + additionalProperties: true + type: object + title: Context + type: object + title: PlaygroundInput + PlaygroundPolicy: + properties: + action: + type: string + title: Action + effect: + type: string + title: Effect + default: allow + priority: + type: integer + title: Priority + default: 100 + policy_id: + anyOf: + - type: string + - type: 'null' + title: Policy Id + conditions: + additionalProperties: true + type: object + title: Conditions + type: object + required: + - action + title: PlaygroundPolicy + PolicyCreate: + properties: + action: + type: string + title: Action + effect: + type: string + title: Effect + default: allow + priority: + type: integer + title: Priority + default: 100 + state: + type: string + title: State + default: active + conditions: + additionalProperties: true + type: object + title: Conditions + type: object + required: + - action + title: PolicyCreate + PolicyOut: + properties: + id: + type: integer + title: Id + action: + type: string + title: Action + effect: + type: string + title: Effect + priority: + type: integer + title: Priority + state: + type: string + title: State + default: active + conditions: + additionalProperties: true + type: object + title: Conditions + type: object + required: + - id + - action + - effect + - priority + - conditions + title: PolicyOut + PolicySimulationInput: + properties: + policy_change: + anyOf: + - type: string + - type: 'null' + title: Policy Change + relationship_change: + anyOf: + - additionalProperties: true + type: object + - type: 'null' + title: Relationship Change + role_change: + anyOf: + - additionalProperties: true + type: object + - type: 'null' + title: Role Change + type: object + title: PolicySimulationInput + PolicySimulationRequest: + properties: + simulate: + $ref: '#/components/schemas/PolicySimulationInput' + request: + additionalProperties: true + type: object + title: Request + type: object + title: PolicySimulationRequest + PolicySimulationResponse: + properties: + decision_before: + additionalProperties: true + type: object + title: Decision Before + decision_after: + additionalProperties: true + type: object + title: Decision After + type: object + required: + - decision_before + - decision_after + title: PolicySimulationResponse + RelationshipCreate: + properties: + subject_type: + type: string + title: Subject Type + subject_id: + type: string + title: Subject Id + relation: + type: string + title: Relation + object_type: + type: string + title: Object Type + object_id: + type: string + title: Object Id + type: object + required: + - subject_type + - subject_id + - relation + - object_type + - object_id + title: RelationshipCreate + RelationshipOut: + properties: + subject_type: + type: string + title: Subject Type + subject_id: + type: string + title: Subject Id + relation: + type: string + title: Relation + object_type: + type: string + title: Object Type + object_id: + type: string + title: Object Id + id: + type: integer + title: Id + type: object + required: + - subject_type + - subject_id + - relation + - object_type + - object_id + - id + title: RelationshipOut + RoleCreate: + properties: + name: + type: string + title: Name + type: object + required: + - name + title: RoleCreate + RoleOut: + properties: + id: + type: integer + title: Id + name: + type: string + title: Name + type: object + required: + - id + - name + title: RoleOut + RoleUpdate: + properties: + name: + type: string + title: Name + type: object + required: + - name + title: RoleUpdate + SimulationResponse: + properties: + decision: + type: string + title: Decision + matched_policies: + items: + type: string + type: array + title: Matched Policies + reason: + anyOf: + - type: string + - type: 'null' + title: Reason + policy_id: + anyOf: + - type: string + - type: 'null' + title: Policy Id + explain_trace: + items: + additionalProperties: true + type: object + type: array + title: Explain Trace + failed_conditions: + items: + type: string + type: array + title: Failed Conditions + revision: + anyOf: + - type: integer + - type: 'null' + title: Revision + type: object + required: + - decision + - matched_policies + title: SimulationResponse + SuccessResponse_ACLOut_: + properties: + data: + $ref: '#/components/schemas/ACLOut' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[ACLOut] + SuccessResponse_AccessDecisionResponse_: + properties: + data: + $ref: '#/components/schemas/AccessDecisionResponse' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[AccessDecisionResponse] + SuccessResponse_AdminLoginResponse_: + properties: + data: + $ref: '#/components/schemas/AdminLoginResponse' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[AdminLoginResponse] + SuccessResponse_AuthModelOut_: + properties: + data: + $ref: '#/components/schemas/AuthModelOut' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[AuthModelOut] + SuccessResponse_BatchAccessResponse_: + properties: + data: + $ref: '#/components/schemas/BatchAccessResponse' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[BatchAccessResponse] + SuccessResponse_ImpactAnalysisResponse_: + properties: + data: + $ref: '#/components/schemas/ImpactAnalysisResponse' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[ImpactAnalysisResponse] + SuccessResponse_PermissionOut_: + properties: + data: + $ref: '#/components/schemas/PermissionOut' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[PermissionOut] + SuccessResponse_PolicyOut_: + properties: + data: + $ref: '#/components/schemas/PolicyOut' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[PolicyOut] + SuccessResponse_PolicySimulationResponse_: + properties: + data: + $ref: '#/components/schemas/PolicySimulationResponse' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[PolicySimulationResponse] + SuccessResponse_RelationshipOut_: + properties: + data: + $ref: '#/components/schemas/RelationshipOut' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[RelationshipOut] + SuccessResponse_SimulationResponse_: + properties: + data: + $ref: '#/components/schemas/SimulationResponse' + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[SimulationResponse] + SuccessResponse_dict_str__Any__: + properties: + data: + additionalProperties: true + type: object + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[dict[str, Any]] + SuccessResponse_dict_str__Union_int__str___: + properties: + data: + additionalProperties: + anyOf: + - type: integer + - type: string + type: object + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[dict[str, Union[int, str]]] + SuccessResponse_dict_str__int__: + properties: + data: + additionalProperties: + type: integer + type: object + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[dict[str, int]] + SuccessResponse_dict_str__object__: + properties: + data: + additionalProperties: true + type: object + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[dict[str, object]] + SuccessResponse_dict_str__str__: + properties: + data: + additionalProperties: + type: string + type: object + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[dict[str, str]] + SuccessResponse_list_ACLOut__: + properties: + data: + items: + $ref: '#/components/schemas/ACLOut' + type: array + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[list[ACLOut]] + SuccessResponse_list_AuditRecordOut__: + properties: + data: + items: + $ref: '#/components/schemas/AuditRecordOut' + type: array + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[list[AuditRecordOut]] + SuccessResponse_list_PermissionOut__: + properties: + data: + items: + $ref: '#/components/schemas/PermissionOut' + type: array + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[list[PermissionOut]] + SuccessResponse_list_PolicyOut__: + properties: + data: + items: + $ref: '#/components/schemas/PolicyOut' + type: array + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[list[PolicyOut]] + SuccessResponse_list_RoleOut__: + properties: + data: + items: + $ref: '#/components/schemas/RoleOut' + type: array + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[list[RoleOut]] + SuccessResponse_list_dict_str__str___: + properties: + data: + items: + additionalProperties: + type: string + type: object + type: array + title: Data + meta: + $ref: '#/components/schemas/MetaBody' + error: + type: 'null' + title: Error + type: object + required: + - data + title: SuccessResponse[list[dict[str, str]]] + ValidationError: + properties: + loc: + items: + anyOf: + - type: string + - type: integer + type: array + title: Location + msg: + type: string + title: Message + type: + type: string + title: Error Type + input: + title: Input + ctx: + type: object + title: Context + type: object + required: + - loc + - msg + - type + title: ValidationError + securitySchemes: + HTTPBearer: + type: http + scheme: bearer + APIKeyHeader: + type: apiKey + in: header + name: X-API-Key diff --git a/openapi/openapi.json b/openapi/openapi.json new file mode 100644 index 0000000..691fa8c --- /dev/null +++ b/openapi/openapi.json @@ -0,0 +1,3587 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "KeyNetra", + "version": "0.1.1" + }, + "paths": { + "/health": { + "get": { + "tags": [ + "health" + ], + "summary": "Health", + "operationId": "health_health_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__str__" + } + } + } + } + } + } + }, + "/health/live": { + "get": { + "tags": [ + "health" + ], + "summary": "Liveness", + "operationId": "liveness_health_live_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__str__" + } + } + } + } + } + } + }, + "/health/ready": { + "get": { + "tags": [ + "health" + ], + "summary": "Readiness", + "operationId": "readiness_health_ready_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__object__" + } + } + } + } + } + } + }, + "/check-access": { + "post": { + "tags": [ + "access" + ], + "summary": "Check Access", + "operationId": "check_access_check_access_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "policy_set", + "in": "query", + "required": false, + "schema": { + "type": "string", + "default": "active", + "title": "Policy Set" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_AccessDecisionResponse_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/simulate": { + "post": { + "tags": [ + "access" + ], + "summary": "Simulate", + "operationId": "simulate_simulate_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_SimulationResponse_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + } + }, + "/check-access-batch": { + "post": { + "tags": [ + "access" + ], + "summary": "Check Access Batch", + "operationId": "check_access_batch_check_access_batch_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "policy_set", + "in": "query", + "required": false, + "schema": { + "type": "string", + "default": "active", + "title": "Policy Set" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchAccessRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_BatchAccessResponse_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/admin/login": { + "post": { + "tags": [ + "auth", + "auth" + ], + "summary": "Admin Login", + "operationId": "admin_login_admin_login_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdminLoginRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_AdminLoginResponse_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/policies": { + "get": { + "tags": [ + "management" + ], + "summary": "List Policies", + "operationId": "list_policies_policies_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 50, + "title": "Limit" + } + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cursor" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_PolicyOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "post": { + "tags": [ + "management" + ], + "summary": "Create Policy", + "operationId": "create_policy_policies_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyCreate" + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_PolicyOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/policies/{policy_key}": { + "put": { + "tags": [ + "management" + ], + "summary": "Update Policy", + "operationId": "update_policy_policies__policy_key__put", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "policy_key", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Policy Key" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyCreate" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_PolicyOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "delete": { + "tags": [ + "management" + ], + "summary": "Delete Policy", + "operationId": "delete_policy_policies__policy_key__delete", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "policy_key", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Policy Key" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__str__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/policies/dsl": { + "post": { + "tags": [ + "management" + ], + "summary": "Create Policy From Dsl", + "operationId": "create_policy_from_dsl_policies_dsl_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "dsl", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Dsl" + } + } + ], + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_PolicyOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/policies/{policy_key}/rollback/{version}": { + "post": { + "tags": [ + "management" + ], + "summary": "Rollback Policy", + "operationId": "rollback_policy_policies__policy_key__rollback__version__post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "policy_key", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Policy Key" + } + }, + { + "name": "version", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Version" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/acl": { + "post": { + "tags": [ + "management" + ], + "summary": "Create Acl Entry", + "operationId": "create_acl_entry_acl_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ACLCreate" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_ACLOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + } + }, + "/acl/{resource_type}/{resource_id}": { + "get": { + "tags": [ + "management" + ], + "summary": "List Acl Entries", + "operationId": "list_acl_entries_acl__resource_type___resource_id__get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "resource_type", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Resource Type" + } + }, + { + "name": "resource_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Resource Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_ACLOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/acl/{acl_id}": { + "delete": { + "tags": [ + "management" + ], + "summary": "Delete Acl Entry", + "operationId": "delete_acl_entry_acl__acl_id__delete", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "acl_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Acl Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__int__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/auth-model": { + "get": { + "tags": [ + "management" + ], + "summary": "Get Auth Model", + "operationId": "get_auth_model_auth_model_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_AuthModelOut_" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + }, + "post": { + "tags": [ + "management" + ], + "summary": "Create Auth Model", + "operationId": "create_auth_model_auth_model_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthModelCreate" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_AuthModelOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + } + }, + "/simulate-policy": { + "post": { + "tags": [ + "management" + ], + "summary": "Simulate Policy", + "operationId": "simulate_policy_simulate_policy_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicySimulationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_PolicySimulationResponse_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + } + }, + "/impact-analysis": { + "post": { + "tags": [ + "management" + ], + "summary": "Impact Analysis", + "operationId": "impact_analysis_impact_analysis_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImpactAnalysisRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + } + }, + "/roles": { + "get": { + "tags": [ + "management" + ], + "summary": "List Roles", + "operationId": "list_roles_roles_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 50, + "title": "Limit" + } + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cursor" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_RoleOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "post": { + "tags": [ + "management" + ], + "summary": "Create Role", + "operationId": "create_role_roles_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleCreate" + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleOut" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/roles/{role_id}": { + "put": { + "tags": [ + "management" + ], + "summary": "Update Role", + "operationId": "update_role_roles__role_id__put", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Role Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleUpdate" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleOut" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "delete": { + "tags": [ + "management" + ], + "summary": "Delete Role", + "operationId": "delete_role_roles__role_id__delete", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Role Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__int__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/roles/{role_id}/permissions": { + "get": { + "tags": [ + "management" + ], + "summary": "List Role Permissions", + "operationId": "list_role_permissions_roles__role_id__permissions_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Role Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_PermissionOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/roles/{role_id}/permissions/{permission_id}": { + "post": { + "tags": [ + "management" + ], + "summary": "Add Permission To Role", + "operationId": "add_permission_to_role_roles__role_id__permissions__permission_id__post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Role Id" + } + }, + { + "name": "permission_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Permission Id" + } + } + ], + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_PermissionOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "delete": { + "tags": [ + "management" + ], + "summary": "Remove Permission From Role", + "operationId": "remove_permission_from_role_roles__role_id__permissions__permission_id__delete", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Role Id" + } + }, + { + "name": "permission_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Permission Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__int__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/permissions": { + "get": { + "tags": [ + "management" + ], + "summary": "List Permissions", + "operationId": "list_permissions_permissions_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 50, + "title": "Limit" + } + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cursor" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_PermissionOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "post": { + "tags": [ + "management" + ], + "summary": "Create Permission", + "operationId": "create_permission_permissions_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionCreate" + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionOut" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/permissions/{permission_id}": { + "put": { + "tags": [ + "management" + ], + "summary": "Update Permission", + "operationId": "update_permission_permissions__permission_id__put", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "permission_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Permission Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionUpdate" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionOut" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "delete": { + "tags": [ + "management" + ], + "summary": "Delete Permission", + "operationId": "delete_permission_permissions__permission_id__delete", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "permission_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Permission Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__int__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/permissions/{permission_id}/roles": { + "get": { + "tags": [ + "management" + ], + "summary": "List Permission Roles", + "operationId": "list_permission_roles_permissions__permission_id__roles_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "permission_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "title": "Permission Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_RoleOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/relationships": { + "get": { + "tags": [ + "management" + ], + "summary": "List Relationships", + "operationId": "list_relationships_relationships_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "subject_type", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Subject Type" + } + }, + { + "name": "subject_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Subject Id" + } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 50, + "title": "Limit" + } + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cursor" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_dict_str__str___" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + }, + "post": { + "tags": [ + "management" + ], + "summary": "Create Relationship", + "operationId": "create_relationship_relationships_post", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RelationshipCreate" + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_RelationshipOut_" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/audit": { + "get": { + "tags": [ + "management" + ], + "summary": "List Audit Logs", + "operationId": "list_audit_logs_audit_get", + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 50, + "title": "Limit" + } + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cursor" + } + }, + { + "name": "user_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "User Id" + } + }, + { + "name": "resource_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Resource Id" + } + }, + { + "name": "decision", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Decision" + } + }, + { + "name": "start_time", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + } + }, + { + "name": "end_time", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_list_AuditRecordOut__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/playground/evaluate": { + "post": { + "tags": [ + "playground" + ], + "summary": "Evaluate", + "operationId": "evaluate_playground_evaluate_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlaygroundEvaluateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__Any__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "HTTPBearer": [] + }, + { + "APIKeyHeader": [] + } + ] + } + }, + "/dev/sample-data": { + "get": { + "tags": [ + "dev" + ], + "summary": "Get Sample Data", + "operationId": "get_sample_data_dev_sample_data_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__object__" + } + } + } + } + } + } + }, + "/dev/sample-data/seed": { + "post": { + "tags": [ + "dev" + ], + "summary": "Seed Sample Data", + "operationId": "seed_sample_data_dev_sample_data_seed_post", + "parameters": [ + { + "name": "reset", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "description": "Clear the sample dataset before reseeding it.", + "default": false, + "title": "Reset" + }, + "description": "Clear the sample dataset before reseeding it." + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse_dict_str__object__" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ACLCreate": { + "properties": { + "subject_type": { + "type": "string", + "title": "Subject Type" + }, + "subject_id": { + "type": "string", + "title": "Subject Id" + }, + "resource_type": { + "type": "string", + "title": "Resource Type" + }, + "resource_id": { + "type": "string", + "title": "Resource Id" + }, + "action": { + "type": "string", + "title": "Action" + }, + "effect": { + "type": "string", + "title": "Effect" + } + }, + "type": "object", + "required": [ + "subject_type", + "subject_id", + "resource_type", + "resource_id", + "action", + "effect" + ], + "title": "ACLCreate" + }, + "ACLOut": { + "properties": { + "subject_type": { + "type": "string", + "title": "Subject Type" + }, + "subject_id": { + "type": "string", + "title": "Subject Id" + }, + "resource_type": { + "type": "string", + "title": "Resource Type" + }, + "resource_id": { + "type": "string", + "title": "Resource Id" + }, + "action": { + "type": "string", + "title": "Action" + }, + "effect": { + "type": "string", + "title": "Effect" + }, + "id": { + "type": "integer", + "title": "Id" + }, + "tenant_id": { + "type": "integer", + "title": "Tenant Id" + }, + "created_at": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Created At" + } + }, + "type": "object", + "required": [ + "subject_type", + "subject_id", + "resource_type", + "resource_id", + "action", + "effect", + "id", + "tenant_id" + ], + "title": "ACLOut" + }, + "AccessDecisionResponse": { + "properties": { + "allowed": { + "type": "boolean", + "title": "Allowed" + }, + "decision": { + "type": "string", + "title": "Decision" + }, + "matched_policies": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Matched Policies" + }, + "reason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Reason" + }, + "policy_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Policy Id" + }, + "explain_trace": { + "items": { + "additionalProperties": true, + "type": "object" + }, + "type": "array", + "title": "Explain Trace" + }, + "revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Revision" + } + }, + "type": "object", + "required": [ + "allowed", + "decision" + ], + "title": "AccessDecisionResponse" + }, + "AccessRequest": { + "properties": { + "user": { + "additionalProperties": true, + "type": "object", + "title": "User" + }, + "action": { + "type": "string", + "title": "Action" + }, + "resource": { + "additionalProperties": true, + "type": "object", + "title": "Resource" + }, + "context": { + "additionalProperties": true, + "type": "object", + "title": "Context" + }, + "consistency": { + "type": "string", + "title": "Consistency", + "default": "eventual" + }, + "revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Revision" + } + }, + "type": "object", + "required": [ + "action" + ], + "title": "AccessRequest", + "description": "Explicit authorization request passed through the API boundary." + }, + "AdminLoginRequest": { + "properties": { + "username": { + "type": "string", + "title": "Username" + }, + "password": { + "type": "string", + "title": "Password" + } + }, + "type": "object", + "required": [ + "username", + "password" + ], + "title": "AdminLoginRequest" + }, + "AdminLoginResponse": { + "properties": { + "access_token": { + "type": "string", + "title": "Access Token" + }, + "token_type": { + "type": "string", + "title": "Token Type", + "default": "bearer" + }, + "expires_in": { + "type": "integer", + "title": "Expires In" + }, + "role": { + "type": "string", + "title": "Role", + "default": "admin" + }, + "tenant_key": { + "type": "string", + "title": "Tenant Key" + } + }, + "type": "object", + "required": [ + "access_token", + "expires_in", + "tenant_key" + ], + "title": "AdminLoginResponse" + }, + "AuditRecordOut": { + "properties": { + "id": { + "type": "integer", + "title": "Id" + }, + "principal_type": { + "type": "string", + "title": "Principal Type" + }, + "principal_id": { + "type": "string", + "title": "Principal Id" + }, + "correlation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Correlation Id" + }, + "user": { + "additionalProperties": true, + "type": "object", + "title": "User" + }, + "action": { + "type": "string", + "title": "Action" + }, + "resource": { + "additionalProperties": true, + "type": "object", + "title": "Resource" + }, + "decision": { + "type": "string", + "title": "Decision" + }, + "matched_policies": { + "items": {}, + "type": "array", + "title": "Matched Policies" + }, + "reason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Reason" + }, + "evaluated_rules": { + "items": {}, + "type": "array", + "title": "Evaluated Rules" + }, + "failed_conditions": { + "items": {}, + "type": "array", + "title": "Failed Conditions" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + } + }, + "type": "object", + "required": [ + "id", + "principal_type", + "principal_id", + "user", + "action", + "resource", + "decision", + "matched_policies", + "evaluated_rules", + "failed_conditions", + "created_at" + ], + "title": "AuditRecordOut" + }, + "AuthModelCreate": { + "properties": { + "schema": { + "type": "string", + "title": "Schema" + } + }, + "type": "object", + "required": [ + "schema" + ], + "title": "AuthModelCreate" + }, + "AuthModelOut": { + "properties": { + "id": { + "type": "integer", + "title": "Id" + }, + "tenant_id": { + "type": "integer", + "title": "Tenant Id" + }, + "schema": { + "type": "string", + "title": "Schema" + }, + "parsed": { + "additionalProperties": true, + "type": "object", + "title": "Parsed" + }, + "compiled": { + "additionalProperties": true, + "type": "object", + "title": "Compiled" + } + }, + "type": "object", + "required": [ + "id", + "tenant_id", + "schema", + "parsed", + "compiled" + ], + "title": "AuthModelOut" + }, + "BatchAccessItem": { + "properties": { + "action": { + "type": "string", + "title": "Action" + }, + "resource": { + "additionalProperties": true, + "type": "object", + "title": "Resource" + } + }, + "type": "object", + "required": [ + "action" + ], + "title": "BatchAccessItem" + }, + "BatchAccessRequest": { + "properties": { + "user": { + "additionalProperties": true, + "type": "object", + "title": "User" + }, + "items": { + "items": { + "$ref": "#/components/schemas/BatchAccessItem" + }, + "type": "array", + "title": "Items" + }, + "consistency": { + "type": "string", + "title": "Consistency", + "default": "eventual" + }, + "revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Revision" + } + }, + "type": "object", + "required": [ + "items" + ], + "title": "BatchAccessRequest" + }, + "BatchAccessResponse": { + "properties": { + "results": { + "items": { + "$ref": "#/components/schemas/BatchAccessResult" + }, + "type": "array", + "title": "Results" + }, + "revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Revision" + } + }, + "type": "object", + "required": [ + "results" + ], + "title": "BatchAccessResponse" + }, + "BatchAccessResult": { + "properties": { + "action": { + "type": "string", + "title": "Action" + }, + "allowed": { + "type": "boolean", + "title": "Allowed" + }, + "revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Revision" + } + }, + "type": "object", + "required": [ + "action", + "allowed" + ], + "title": "BatchAccessResult" + }, + "HTTPValidationError": { + "properties": { + "detail": { + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "type": "array", + "title": "Detail" + } + }, + "type": "object", + "title": "HTTPValidationError" + }, + "ImpactAnalysisRequest": { + "properties": { + "policy_change": { + "type": "string", + "title": "Policy Change" + } + }, + "type": "object", + "required": [ + "policy_change" + ], + "title": "ImpactAnalysisRequest" + }, + "ImpactAnalysisResponse": { + "properties": { + "gained_access": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "Gained Access" + }, + "lost_access": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "Lost Access" + } + }, + "type": "object", + "title": "ImpactAnalysisResponse" + }, + "MetaBody": { + "properties": { + "request_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Request Id" + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Limit" + }, + "next_cursor": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Next Cursor" + }, + "extra": { + "additionalProperties": true, + "type": "object", + "title": "Extra" + } + }, + "type": "object", + "title": "MetaBody" + }, + "PermissionCreate": { + "properties": { + "action": { + "type": "string", + "title": "Action" + } + }, + "type": "object", + "required": [ + "action" + ], + "title": "PermissionCreate" + }, + "PermissionOut": { + "properties": { + "id": { + "type": "integer", + "title": "Id" + }, + "action": { + "type": "string", + "title": "Action" + } + }, + "type": "object", + "required": [ + "id", + "action" + ], + "title": "PermissionOut" + }, + "PermissionUpdate": { + "properties": { + "action": { + "type": "string", + "title": "Action" + } + }, + "type": "object", + "required": [ + "action" + ], + "title": "PermissionUpdate" + }, + "PlaygroundEvaluateRequest": { + "properties": { + "policies": { + "items": { + "$ref": "#/components/schemas/PlaygroundPolicy" + }, + "type": "array", + "title": "Policies" + }, + "input": { + "$ref": "#/components/schemas/PlaygroundInput" + } + }, + "type": "object", + "required": [ + "policies", + "input" + ], + "title": "PlaygroundEvaluateRequest" + }, + "PlaygroundInput": { + "properties": { + "user": { + "additionalProperties": true, + "type": "object", + "title": "User" + }, + "resource": { + "additionalProperties": true, + "type": "object", + "title": "Resource" + }, + "action": { + "type": "string", + "title": "Action", + "default": "" + }, + "context": { + "additionalProperties": true, + "type": "object", + "title": "Context" + } + }, + "type": "object", + "title": "PlaygroundInput" + }, + "PlaygroundPolicy": { + "properties": { + "action": { + "type": "string", + "title": "Action" + }, + "effect": { + "type": "string", + "title": "Effect", + "default": "allow" + }, + "priority": { + "type": "integer", + "title": "Priority", + "default": 100 + }, + "policy_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Policy Id" + }, + "conditions": { + "additionalProperties": true, + "type": "object", + "title": "Conditions" + } + }, + "type": "object", + "required": [ + "action" + ], + "title": "PlaygroundPolicy" + }, + "PolicyCreate": { + "properties": { + "action": { + "type": "string", + "title": "Action" + }, + "effect": { + "type": "string", + "title": "Effect", + "default": "allow" + }, + "priority": { + "type": "integer", + "title": "Priority", + "default": 100 + }, + "state": { + "type": "string", + "title": "State", + "default": "active" + }, + "conditions": { + "additionalProperties": true, + "type": "object", + "title": "Conditions" + } + }, + "type": "object", + "required": [ + "action" + ], + "title": "PolicyCreate" + }, + "PolicyOut": { + "properties": { + "id": { + "type": "integer", + "title": "Id" + }, + "action": { + "type": "string", + "title": "Action" + }, + "effect": { + "type": "string", + "title": "Effect" + }, + "priority": { + "type": "integer", + "title": "Priority" + }, + "state": { + "type": "string", + "title": "State", + "default": "active" + }, + "conditions": { + "additionalProperties": true, + "type": "object", + "title": "Conditions" + } + }, + "type": "object", + "required": [ + "id", + "action", + "effect", + "priority", + "conditions" + ], + "title": "PolicyOut" + }, + "PolicySimulationInput": { + "properties": { + "policy_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Policy Change" + }, + "relationship_change": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Relationship Change" + }, + "role_change": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Role Change" + } + }, + "type": "object", + "title": "PolicySimulationInput" + }, + "PolicySimulationRequest": { + "properties": { + "simulate": { + "$ref": "#/components/schemas/PolicySimulationInput" + }, + "request": { + "additionalProperties": true, + "type": "object", + "title": "Request" + } + }, + "type": "object", + "title": "PolicySimulationRequest" + }, + "PolicySimulationResponse": { + "properties": { + "decision_before": { + "additionalProperties": true, + "type": "object", + "title": "Decision Before" + }, + "decision_after": { + "additionalProperties": true, + "type": "object", + "title": "Decision After" + } + }, + "type": "object", + "required": [ + "decision_before", + "decision_after" + ], + "title": "PolicySimulationResponse" + }, + "RelationshipCreate": { + "properties": { + "subject_type": { + "type": "string", + "title": "Subject Type" + }, + "subject_id": { + "type": "string", + "title": "Subject Id" + }, + "relation": { + "type": "string", + "title": "Relation" + }, + "object_type": { + "type": "string", + "title": "Object Type" + }, + "object_id": { + "type": "string", + "title": "Object Id" + } + }, + "type": "object", + "required": [ + "subject_type", + "subject_id", + "relation", + "object_type", + "object_id" + ], + "title": "RelationshipCreate" + }, + "RelationshipOut": { + "properties": { + "subject_type": { + "type": "string", + "title": "Subject Type" + }, + "subject_id": { + "type": "string", + "title": "Subject Id" + }, + "relation": { + "type": "string", + "title": "Relation" + }, + "object_type": { + "type": "string", + "title": "Object Type" + }, + "object_id": { + "type": "string", + "title": "Object Id" + }, + "id": { + "type": "integer", + "title": "Id" + } + }, + "type": "object", + "required": [ + "subject_type", + "subject_id", + "relation", + "object_type", + "object_id", + "id" + ], + "title": "RelationshipOut" + }, + "RoleCreate": { + "properties": { + "name": { + "type": "string", + "title": "Name" + } + }, + "type": "object", + "required": [ + "name" + ], + "title": "RoleCreate" + }, + "RoleOut": { + "properties": { + "id": { + "type": "integer", + "title": "Id" + }, + "name": { + "type": "string", + "title": "Name" + } + }, + "type": "object", + "required": [ + "id", + "name" + ], + "title": "RoleOut" + }, + "RoleUpdate": { + "properties": { + "name": { + "type": "string", + "title": "Name" + } + }, + "type": "object", + "required": [ + "name" + ], + "title": "RoleUpdate" + }, + "SimulationResponse": { + "properties": { + "decision": { + "type": "string", + "title": "Decision" + }, + "matched_policies": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Matched Policies" + }, + "reason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Reason" + }, + "policy_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Policy Id" + }, + "explain_trace": { + "items": { + "additionalProperties": true, + "type": "object" + }, + "type": "array", + "title": "Explain Trace" + }, + "failed_conditions": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Failed Conditions" + }, + "revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Revision" + } + }, + "type": "object", + "required": [ + "decision", + "matched_policies" + ], + "title": "SimulationResponse" + }, + "SuccessResponse_ACLOut_": { + "properties": { + "data": { + "$ref": "#/components/schemas/ACLOut" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[ACLOut]" + }, + "SuccessResponse_AccessDecisionResponse_": { + "properties": { + "data": { + "$ref": "#/components/schemas/AccessDecisionResponse" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[AccessDecisionResponse]" + }, + "SuccessResponse_AdminLoginResponse_": { + "properties": { + "data": { + "$ref": "#/components/schemas/AdminLoginResponse" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[AdminLoginResponse]" + }, + "SuccessResponse_AuthModelOut_": { + "properties": { + "data": { + "$ref": "#/components/schemas/AuthModelOut" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[AuthModelOut]" + }, + "SuccessResponse_BatchAccessResponse_": { + "properties": { + "data": { + "$ref": "#/components/schemas/BatchAccessResponse" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[BatchAccessResponse]" + }, + "SuccessResponse_ImpactAnalysisResponse_": { + "properties": { + "data": { + "$ref": "#/components/schemas/ImpactAnalysisResponse" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[ImpactAnalysisResponse]" + }, + "SuccessResponse_PermissionOut_": { + "properties": { + "data": { + "$ref": "#/components/schemas/PermissionOut" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[PermissionOut]" + }, + "SuccessResponse_PolicyOut_": { + "properties": { + "data": { + "$ref": "#/components/schemas/PolicyOut" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[PolicyOut]" + }, + "SuccessResponse_PolicySimulationResponse_": { + "properties": { + "data": { + "$ref": "#/components/schemas/PolicySimulationResponse" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[PolicySimulationResponse]" + }, + "SuccessResponse_RelationshipOut_": { + "properties": { + "data": { + "$ref": "#/components/schemas/RelationshipOut" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[RelationshipOut]" + }, + "SuccessResponse_SimulationResponse_": { + "properties": { + "data": { + "$ref": "#/components/schemas/SimulationResponse" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[SimulationResponse]" + }, + "SuccessResponse_dict_str__Any__": { + "properties": { + "data": { + "additionalProperties": true, + "type": "object", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[dict[str, Any]]" + }, + "SuccessResponse_dict_str__Union_int__str___": { + "properties": { + "data": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "type": "object", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[dict[str, Union[int, str]]]" + }, + "SuccessResponse_dict_str__int__": { + "properties": { + "data": { + "additionalProperties": { + "type": "integer" + }, + "type": "object", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[dict[str, int]]" + }, + "SuccessResponse_dict_str__object__": { + "properties": { + "data": { + "additionalProperties": true, + "type": "object", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[dict[str, object]]" + }, + "SuccessResponse_dict_str__str__": { + "properties": { + "data": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[dict[str, str]]" + }, + "SuccessResponse_list_ACLOut__": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/ACLOut" + }, + "type": "array", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[list[ACLOut]]" + }, + "SuccessResponse_list_AuditRecordOut__": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/AuditRecordOut" + }, + "type": "array", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[list[AuditRecordOut]]" + }, + "SuccessResponse_list_PermissionOut__": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/PermissionOut" + }, + "type": "array", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[list[PermissionOut]]" + }, + "SuccessResponse_list_PolicyOut__": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/PolicyOut" + }, + "type": "array", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[list[PolicyOut]]" + }, + "SuccessResponse_list_RoleOut__": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/RoleOut" + }, + "type": "array", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[list[RoleOut]]" + }, + "SuccessResponse_list_dict_str__str___": { + "properties": { + "data": { + "items": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "type": "array", + "title": "Data" + }, + "meta": { + "$ref": "#/components/schemas/MetaBody" + }, + "error": { + "type": "null", + "title": "Error" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SuccessResponse[list[dict[str, str]]]" + }, + "ValidationError": { + "properties": { + "loc": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] + }, + "type": "array", + "title": "Location" + }, + "msg": { + "type": "string", + "title": "Message" + }, + "type": { + "type": "string", + "title": "Error Type" + }, + "input": { + "title": "Input" + }, + "ctx": { + "type": "object", + "title": "Context" + } + }, + "type": "object", + "required": [ + "loc", + "msg", + "type" + ], + "title": "ValidationError" + } + }, + "securitySchemes": { + "HTTPBearer": { + "type": "http", + "scheme": "bearer" + }, + "APIKeyHeader": { + "type": "apiKey", + "in": "header", + "name": "X-API-Key" + } + } + } +} \ No newline at end of file diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..91d9c43 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.21.0" + } +} diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh new file mode 100755 index 0000000..3e21ccd --- /dev/null +++ b/scripts/generate-all.sh @@ -0,0 +1,115 @@ +#!/usr/bin/env bash +set -euo pipefail + +# --- Configuration --- +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SPEC_FILE="${ROOT_DIR}/openapi/keynetra.yaml" +SDK_VERSION="${SDK_VERSION:-0.1.0}" + +# --- Colors & Emojis --- +RED='\033[0;31m' +GREEN='\033[0;32m' +BLUE='\033[0;34m' +CYAN='\033[0;36m' +YELLOW='\033[1;33m' +NC='\033[0m' # No Color + +CHECK="โœ…" +ROCKET="๐Ÿš€" +GEAR="โš™๏ธ" +BUILD="๐Ÿ› ๏ธ" +PACKAGE="๐Ÿ“ฆ" + +# --- Functions --- +log_info() { echo -e "${BLUE}${GEAR} [INFO]${NC} $1"; } +log_success() { echo -e "${GREEN}${CHECK} [SUCCESS]${NC} $1"; } +log_step() { echo -e "${CYAN}${BUILD} [STEP]${NC} $1"; } +log_warn() { echo -e "${YELLOW}โš ๏ธ [WARN]${NC} $1"; } +log_error() { echo -e "${RED}โŒ [ERROR]${NC} $1"; } + +require_cmd() { + if ! command -v "$1" >/dev/null 2>&1; then + log_error "missing required command: $1" >&2 + exit 1 + fi +} + +install_generator() { + if command -v openapi-generator-cli >/dev/null 2>&1; then + log_info "OpenAPI Generator already installed." + return + fi + + log_step "Installing OpenAPI Generator..." + require_cmd npm + npm install -g @openapitools/openapi-generator-cli +} + +generate_sdk() { + local generator="$1" + local output_dir="$2" + local config_file="$3" + local name="${4:-$generator}" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --skip-validate-spec > /dev/null 2>&1; then + log_success "${name} SDK generated successfully." + else + log_error "Failed to generate ${name} SDK." + return 1 + fi +} + +generate_sdk_python() { + local generator="python" + local output_dir="${ROOT_DIR}/sdks/python" + local config_file="${ROOT_DIR}/templates/python-config.yaml" + local name="Python" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=Any \ + --skip-validate-spec > /dev/null 2>&1; then + log_success "${name} SDK generated successfully." + else + log_error "Failed to generate ${name} SDK." + return 1 + fi +} + +# --- Execution --- +echo -e "${YELLOW}${ROCKET} Starting KeyNetra SDK Generation v${SDK_VERSION}${NC}" + +install_generator + +generate_sdk_python +generate_sdk typescript-fetch "${ROOT_DIR}/sdks/typescript" "${ROOT_DIR}/templates/typescript-config.yaml" "TypeScript" +generate_sdk go "${ROOT_DIR}/sdks/go" "${ROOT_DIR}/templates/go-config.yaml" "Go" +generate_sdk java "${ROOT_DIR}/sdks/java" "${ROOT_DIR}/templates/java-config.yaml" "Java" +generate_sdk rust "${ROOT_DIR}/sdks/rust" "${ROOT_DIR}/templates/rust-config.yaml" "Rust" +generate_sdk csharp "${ROOT_DIR}/sdks/csharp" "${ROOT_DIR}/templates/csharp-config.yaml" "C#" +generate_sdk php "${ROOT_DIR}/sdks/php" "${ROOT_DIR}/templates/php-config.yaml" "PHP" +generate_sdk ruby "${ROOT_DIR}/sdks/ruby" "${ROOT_DIR}/templates/ruby-config.yaml" "Ruby" +generate_sdk kotlin "${ROOT_DIR}/sdks/kotlin" "${ROOT_DIR}/templates/kotlin-config.yaml" "Kotlin" +generate_sdk swift5 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift" + +log_step "Preparing packages..." +SDK_VERSION="${SDK_VERSION}" "${ROOT_DIR}/scripts/prepare-packages.sh" + +log_success "All KeyNetra SDKs generated for version ${SDK_VERSION}." +echo -e "${GREEN}${PACKAGE} Ready for distribution!${NC}" diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh new file mode 100755 index 0000000..4c7d9fd --- /dev/null +++ b/scripts/prepare-packages.sh @@ -0,0 +1,534 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SDK_VERSION="${SDK_VERSION:-0.1.0}" +REPO_URL="${REPO_URL:-https://github.com/keynetra/keynetra-sdks}" + +# --- Colors & Emojis --- +GREEN='\033[0;32m' +CYAN='\033[0;36m' +NC='\033[0m' # No Color +CHECK="โœ…" +BUILD="๐Ÿ› ๏ธ" + +log_step() { echo -e "${CYAN}${BUILD} [PREPARE]${NC} $1"; } +log_success() { echo -e "${GREEN}${CHECK} [SUCCESS]${NC} $1"; } + +# Professional README template for SDKs +generate_readme() { + local lang_name="$1" + local pkg_name="$2" + local install_cmd="$3" + local usage_example="$4" + local extra_info="${5:-}" + local lang_lower=$(echo "$lang_name" | tr '[:upper:]' '[:lower:]') + + cat < "${ROOT_DIR}/sdks/python/README.md" + + cat > "${ROOT_DIR}/sdks/python/pyproject.toml" <=68", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "keynetra-client" +version = "${SDK_VERSION}" +description = "Official Python SDK for the KeyNetra authorization platform." +readme = "README.md" +requires-python = ">=3.11" +license = { text = "Apache-2.0" } +authors = [{ name = "KeyNetra Engineering", email = "business.keynetra@gmail.com" }] +dependencies = ["urllib3>=2"] + +[project.urls] +Homepage = "${REPO_URL}" +Repository = "${REPO_URL}" +Issues = "${REPO_URL}/issues" + +[tool.setuptools.packages.find] +include = ["keynetra_client*"] +EOF + + cat > "${ROOT_DIR}/sdks/python/keynetra_client/__init__.py" <<'EOF' +from .client import KeyNetraClient + +__all__ = ["KeyNetraClient"] +EOF + + cat > "${ROOT_DIR}/sdks/python/keynetra_client/client.py" <<'EOF' +from __future__ import annotations + +from keynetra_client.api_client import ApiClient +from keynetra_client.configuration import Configuration +from keynetra_client.api.access_api import AccessApi +from keynetra_client.api.auth_api import AuthApi +from keynetra_client.api.dev_api import DevApi +from keynetra_client.api.health_api import HealthApi +from keynetra_client.api.management_api import ManagementApi +from keynetra_client.api.playground_api import PlaygroundApi + + +class KeyNetraClient: + def __init__(self, base_url: str, api_key: str) -> None: + configuration = Configuration(host=base_url) + configuration.api_key["APIKeyHeader"] = api_key + configuration.access_token = api_key + self.api_client = ApiClient(configuration=configuration) + + self.access = AccessApi(api_client=self.api_client) + self.auth = AuthApi(api_client=self.api_client) + self.dev = DevApi(api_client=self.api_client) + self.health = HealthApi(api_client=self.api_client) + self.management = ManagementApi(api_client=self.api_client) + self.playground = PlaygroundApi(api_client=self.api_client) +EOF +} + +prepare_typescript() { + log_step "TypeScript" + mkdir -p "${ROOT_DIR}/sdks/typescript/src" + + generate_readme "TypeScript" "@keynetra/client" "npm install @keynetra/client" "import { KeyNetraClient } from \"@keynetra/client\"; + +const client = new KeyNetraClient( + \"http://localhost:8080\", + \"YOUR_API_KEY\" +); + +// Perform an access check +const decision = await client.access.checkAccess({ + subject: \"user:123\", + action: \"read\", + resource: \"document:456\" +});" > "${ROOT_DIR}/sdks/typescript/README.md" + + cat > "${ROOT_DIR}/sdks/typescript/package.json" <", + "repository": { + "type": "git", + "url": "git+${REPO_URL}.git" + }, + "homepage": "${REPO_URL}", + "scripts": { + "build": "tsc -p tsconfig.json" + }, + "devDependencies": { + "typescript": "^5.0.0" + } +} +EOF + + cat > "${ROOT_DIR}/sdks/typescript/tsconfig.json" <<'EOF' +{ + "compilerOptions": { + "target": "ES2022", + "module": "ES2022", + "moduleResolution": "Bundler", + "declaration": true, + "outDir": "dist", + "rootDir": "src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true + }, + "include": ["src/**/*.ts"] +} +EOF + + cat > "${ROOT_DIR}/sdks/typescript/src/keynetra-client.ts" <<'EOF' +import { + Configuration, + AccessApi, + AuthApi, + DevApi, + HealthApi, + ManagementApi, + PlaygroundApi +} from "./index"; + +export class KeyNetraClient { + public readonly access: AccessApi; + public readonly auth: AuthApi; + public readonly dev: DevApi; + public readonly health: HealthApi; + public readonly management: ManagementApi; + public readonly playground: PlaygroundApi; + + constructor(base_url: string, api_key: string) { + const configuration = new Configuration({ + basePath: base_url, + headers: { + "X-API-Key": api_key, + Authorization: `Bearer ${api_key}`, + }, + }); + + this.access = new AccessApi(configuration); + this.auth = new AuthApi(configuration); + this.dev = new DevApi(configuration); + this.health = new HealthApi(configuration); + this.management = new ManagementApi(configuration); + this.playground = new PlaygroundApi(configuration); + } +} +EOF +} + +prepare_go() { + log_step "Go" + generate_readme "Go" "keynetra-client-go" "go get github.com/keynetra/keynetra-client-go" "import \"github.com/keynetra/keynetra-client-go\" + +client := keynetra.NewKeyNetraClient( + \"http://localhost:8080\", + \"YOUR_API_KEY\", +) + +// Perform an access check +decision, _, err := client.Access.CheckAccess(context.Background()). + AccessRequest(keynetra.AccessRequest{ + Subject: \"user:123\", + Action: \"read\", + Resource: \"document:456\", + }).Execute()" > "${ROOT_DIR}/sdks/go/README.md" + + cat > "${ROOT_DIR}/sdks/go/keynetra_client.go" <<'EOF' +package keynetra + +type KeyNetraClient struct { + Access *AccessApiService + Auth *AuthApiService + Dev *DevApiService + Health *HealthApiService + Management *ManagementApiService + Playground *PlaygroundApiService + client *APIClient +} + +func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { + cfg := NewConfiguration() + cfg.Servers = ServerConfigurations{{URL: baseURL}} + cfg.DefaultHeader["X-API-Key"] = apiKey + cfg.DefaultHeader["Authorization"] = "Bearer " + apiKey + + client := NewAPIClient(cfg) + return &KeyNetraClient{ + Access: client.AccessApi, + Auth: client.AuthApi, + Dev: client.DevApi, + Health: client.HealthApi, + Management: client.ManagementApi, + Playground: client.PlaygroundApi, + client: client, + } +} +EOF +} + +prepare_java() { + log_step "Java" + mkdir -p "${ROOT_DIR}/sdks/java/src/main/java/io/keynetra/client" + + generate_readme "Java" "keynetra-client" " + io.keynetra + keynetra-client + ${SDK_VERSION} +" "import io.keynetra.client.KeyNetraClient; +import io.keynetra.client.model.AccessRequest; + +KeyNetraClient client = new KeyNetraClient( + \"http://localhost:8080\", + \"YOUR_API_KEY\" +); + +// Perform an access check +var decision = client.getAccess().checkAccess( + new AccessRequest() + .subject(\"user:123\") + .action(\"read\") + .resource(\"document:456\") +);" > "${ROOT_DIR}/sdks/java/README.md" + + cat > "${ROOT_DIR}/sdks/java/src/main/java/io/keynetra/client/KeyNetraClient.java" <<'EOF' +package io.keynetra.client; + +import io.keynetra.client.api.*; + +public class KeyNetraClient { + private final ApiClient apiClient; + private final AccessApi access; + private final AuthApi auth; + private final DevApi dev; + private final HealthApi health; + private final ManagementApi management; + private final PlaygroundApi playground; + + public KeyNetraClient(String baseUrl, String apiKey) { + this.apiClient = new ApiClient(); + this.apiClient.setBasePath(baseUrl); + this.apiClient.addDefaultHeader("X-API-Key", apiKey); + this.apiClient.addDefaultHeader("Authorization", "Bearer " + apiKey); + + this.access = new AccessApi(this.apiClient); + this.auth = new AuthApi(this.apiClient); + this.dev = new DevApi(this.apiClient); + this.health = new HealthApi(this.apiClient); + this.management = new ManagementApi(this.apiClient); + this.playground = new PlaygroundApi(this.apiClient); + } + + public AccessApi getAccess() { return access; } + public AuthApi getAuth() { return auth; } + public DevApi getDev() { return dev; } + public HealthApi getHealth() { return health; } + public ManagementApi getManagement() { return management; } + public PlaygroundApi getPlayground() { return playground; } +} +EOF +} + +prepare_rust() { + log_step "Rust" + mkdir -p "${ROOT_DIR}/sdks/rust/src" + + generate_readme "Rust" "keynetra-client" "cargo add keynetra-client" "use keynetra_client::keynetra_client::KeyNetraClient; + +let client = KeyNetraClient::new( + \"http://localhost:8080\", + \"YOUR_API_KEY\" +); + +// Perform an access check +let decision = client.access() + .check_access(...) + .await?;" > "${ROOT_DIR}/sdks/rust/README.md" + + cat > "${ROOT_DIR}/sdks/rust/src/keynetra_client.rs" <<'EOF' +use crate::apis::configuration::Configuration; +use crate::apis::access_api::AccessApi; +use crate::apis::auth_api::AuthApi; +use crate::apis::dev_api::DevApi; +use crate::apis::health_api::HealthApi; +use crate::apis::management_api::ManagementApi; +use crate::apis::playground_api::PlaygroundApi; + +pub struct KeyNetraClient { + pub configuration: Configuration, +} + +impl KeyNetraClient { + pub fn new(base_url: &str, api_key: &str) -> Self { + let mut configuration = Configuration::new(); + configuration.base_path = base_url.to_owned(); + configuration.api_key = Some(crate::apis::configuration::ApiKey { + prefix: None, + key: api_key.to_owned(), + }); + + Self { configuration } + } + + pub fn access(&self) -> AccessApi { AccessApi::new(self.configuration.clone()) } + pub fn auth(&self) -> AuthApi { AuthApi::new(self.configuration.clone()) } + pub fn dev(&self) -> DevApi { DevApi::new(self.configuration.clone()) } + pub fn health(&self) -> HealthApi { HealthApi::new(self.configuration.clone()) } + pub fn management(&self) -> ManagementApi { ManagementApi::new(self.configuration.clone()) } + pub fn playground(&self) -> PlaygroundApi { PlaygroundApi::new(self.configuration.clone()) } +} +EOF +} + +prepare_csharp() { + log_step "C#" + mkdir -p "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client" + + generate_readme "C#" "KeyNetra.Client" "dotnet add package KeyNetra.Client" "using KeyNetra.Client; + +var client = new KeyNetraClient( + \"http://localhost:8080\", + \"YOUR_API_KEY\" +); + +// Perform an access check +var decision = await client.Access.CheckAccessAsync(new AccessRequest { + Subject = \"user:123\", + Action = \"read\", + Resource = \"document:456\" +});" > "${ROOT_DIR}/sdks/csharp/README.md" + + cat > "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetraClient.cs" <<'EOF' +namespace KeyNetra.Client; + +using KeyNetra.Client.Api; + +public sealed class KeyNetraClient +{ + public AccessApi Access { get; } + public AuthApi Auth { get; } + public DevApi Dev { get; } + public HealthApi Health { get; } + public ManagementApi Management { get; } + public PlaygroundApi Playground { get; } + + public KeyNetraClient(string baseUrl, string apiKey) + { + var configuration = new Configuration + { + BasePath = baseUrl + }; + + configuration.DefaultHeaders["X-API-Key"] = apiKey; + configuration.DefaultHeaders["Authorization"] = $"Bearer {apiKey}"; + + var apiClient = new ApiClient(configuration); + Access = new AccessApi(apiClient); + Auth = new AuthApi(apiClient); + Dev = new DevApi(apiClient); + Health = new HealthApi(apiClient); + Management = new ManagementApi(apiClient); + Playground = new PlaygroundApi(apiClient); + } +} +EOF +} + +prepare_php() { + log_step "PHP" + generate_readme "PHP" "keynetra/client" "composer require keynetra/client" "use KeyNetra\Client\KeyNetraClient; + +\$client = new KeyNetraClient( + \"http://localhost:8080\", + \"YOUR_API_KEY\" +); + +// Perform an access check +\$decision = \$client->getAccessApi()->checkAccess(...);" > "${ROOT_DIR}/sdks/php/README.md" +} + +prepare_ruby() { + log_step "Ruby" + generate_readme "Ruby" "keynetra-client" "gem install keynetra-client" "require 'keynetra-client' + +client = KeyNetra::KeyNetraClient.new( + \"http://localhost:8080\", + \"YOUR_API_KEY\" +) + +# Perform an access check +decision = client.access_api.check_access(...)" > "${ROOT_DIR}/sdks/ruby/README.md" +} + +prepare_kotlin() { + log_step "Kotlin" + generate_readme "Kotlin" "keynetra-client-kotlin" "implementation(\"io.keynetra:keynetra-client-kotlin:${SDK_VERSION}\")" "import io.keynetra.client.KeyNetraClient + +val client = KeyNetraClient( + baseUrl = \"http://localhost:8080\", + apiKey = \"YOUR_API_KEY\" +) + +// Perform an access check +val decision = client.accessApi.checkAccess(...)" > "${ROOT_DIR}/sdks/kotlin/README.md" +} + +prepare_swift() { + log_step "Swift" + generate_readme "Swift" "KeyNetraClient" "dependencies: [ + .package(url: \"${REPO_URL}.git\", from: \"${SDK_VERSION}\") +]" "import KeyNetraClient + +let client = KeyNetraClient( + baseUrl: \"http://localhost:8080\", + apiKey: \"YOUR_API_KEY\" +) + +// Perform an access check +client.accessApi.checkAccess(...)" > "${ROOT_DIR}/sdks/swift/README.md" +} + +prepare_python +prepare_typescript +prepare_go +prepare_java +prepare_rust +prepare_csharp +prepare_php +prepare_ruby +prepare_kotlin +prepare_swift + +log_success "Prepared SDK package metadata and unified KeyNetraClient wrappers." diff --git a/sdks/csharp/.gitignore b/sdks/csharp/.gitignore new file mode 100644 index 0000000..1ee5385 --- /dev/null +++ b/sdks/csharp/.gitignore @@ -0,0 +1,362 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln new file mode 100644 index 0000000..48ecef5 --- /dev/null +++ b/sdks/csharp/KeyNetra.Client.sln @@ -0,0 +1,27 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +VisualStudioVersion = 12.0.0.0 +MinimumVisualStudioVersion = 10.0.0.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Release|Any CPU.Build.0 = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/sdks/csharp/README.md b/sdks/csharp/README.md new file mode 100644 index 0000000..789fcc3 --- /dev/null +++ b/sdks/csharp/README.md @@ -0,0 +1,52 @@ +# KeyNetra.Client + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official C# SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your C# applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +dotnet add package KeyNetra.Client +``` + +## ๐Ÿš€ Quick Start + +```c# +using KeyNetra.Client; + +var client = new KeyNetraClient( + "http://localhost:8080", + "YOUR_API_KEY" +); + +// Perform an access check +var decision = await client.Access.CheckAccessAsync(new AccessRequest { + Subject = "user:123", + Action = "read", + Resource = "document:456" +}); +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/csharp/api/openapi.yaml b/sdks/csharp/api/openapi.yaml new file mode 100644 index 0000000..2195953 --- /dev/null +++ b/sdks/csharp/api/openapi.yaml @@ -0,0 +1,2811 @@ +openapi: 3.1.0 +info: + title: KeyNetra + version: 0.1.1 +servers: +- url: / +paths: + /health: + get: + operationId: health_health_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + summary: Health + tags: + - health + /health/live: + get: + operationId: liveness_health_live_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + summary: Liveness + tags: + - health + /health/ready: + get: + operationId: readiness_health_ready_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + summary: Readiness + tags: + - health + /check-access: + post: + operationId: check_access_check_access_post + parameters: + - explode: true + in: query + name: policy_set + required: false + schema: + default: active + title: Policy Set + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AccessDecisionResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Check Access + tags: + - access + /simulate: + post: + operationId: simulate_simulate_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_SimulationResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Simulate + tags: + - access + /check-access-batch: + post: + operationId: check_access_batch_check_access_batch_post + parameters: + - explode: true + in: query + name: policy_set + required: false + schema: + default: active + title: Policy Set + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BatchAccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_BatchAccessResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Check Access Batch + tags: + - access + /admin/login: + post: + operationId: admin_login_admin_login_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AdminLoginRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AdminLoginResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + summary: Admin Login + tags: + - auth + - auth + /policies: + get: + operationId: list_policies_policies_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PolicyOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Policies + tags: + - management + post: + operationId: create_policy_policies_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Policy + tags: + - management + /policies/{policy_key}: + delete: + operationId: delete_policy_policies__policy_key__delete + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Policy + tags: + - management + put: + operationId: update_policy_policies__policy_key__put + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyCreate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Policy + tags: + - management + /policies/dsl: + post: + operationId: create_policy_from_dsl_policies_dsl_post + parameters: + - explode: true + in: query + name: dsl + required: true + schema: + title: Dsl + type: string + style: form + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Policy From Dsl + tags: + - management + /policies/{policy_key}/rollback/{version}: + post: + operationId: rollback_policy_policies__policy_key__rollback__version__post + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + - explode: false + in: path + name: version + required: true + schema: + title: Version + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Rollback Policy + tags: + - management + /acl: + post: + operationId: create_acl_entry_acl_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ACLCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_ACLOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Acl Entry + tags: + - management + /acl/{resource_type}/{resource_id}: + get: + operationId: list_acl_entries_acl__resource_type___resource_id__get + parameters: + - explode: false + in: path + name: resource_type + required: true + schema: + title: Resource Type + type: string + style: simple + - explode: false + in: path + name: resource_id + required: true + schema: + title: Resource Id + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_ACLOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Acl Entries + tags: + - management + /acl/{acl_id}: + delete: + operationId: delete_acl_entry_acl__acl_id__delete + parameters: + - explode: false + in: path + name: acl_id + required: true + schema: + title: Acl Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Acl Entry + tags: + - management + /auth-model: + get: + operationId: get_auth_model_auth_model_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" + description: Successful Response + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Get Auth Model + tags: + - management + post: + operationId: create_auth_model_auth_model_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AuthModelCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Auth Model + tags: + - management + /simulate-policy: + post: + operationId: simulate_policy_simulate_policy_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicySimulationRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicySimulationResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Simulate Policy + tags: + - management + /impact-analysis: + post: + operationId: impact_analysis_impact_analysis_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImpactAnalysisRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Impact Analysis + tags: + - management + /roles: + get: + operationId: list_roles_roles_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Roles + tags: + - management + post: + operationId: create_role_roles_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RoleCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/RoleOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Role + tags: + - management + /roles/{role_id}: + delete: + operationId: delete_role_roles__role_id__delete + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Role + tags: + - management + put: + operationId: update_role_roles__role_id__put + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RoleUpdate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RoleOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Role + tags: + - management + /roles/{role_id}/permissions: + get: + operationId: list_role_permissions_roles__role_id__permissions_get + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Role Permissions + tags: + - management + /roles/{role_id}/permissions/{permission_id}: + delete: + operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Remove Permission From Role + tags: + - management + post: + operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PermissionOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Add Permission To Role + tags: + - management + /permissions: + get: + operationId: list_permissions_permissions_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Permissions + tags: + - management + post: + operationId: create_permission_permissions_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Permission + tags: + - management + /permissions/{permission_id}: + delete: + operationId: delete_permission_permissions__permission_id__delete + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Permission + tags: + - management + put: + operationId: update_permission_permissions__permission_id__put + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionUpdate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Permission + tags: + - management + /permissions/{permission_id}/roles: + get: + operationId: list_permission_roles_permissions__permission_id__roles_get + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Permission Roles + tags: + - management + /relationships: + get: + operationId: list_relationships_relationships_get + parameters: + - explode: true + in: query + name: subject_type + required: true + schema: + title: Subject Type + type: string + style: form + - explode: true + in: query + name: subject_id + required: true + schema: + title: Subject Id + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_dict_str__str___" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Relationships + tags: + - management + post: + operationId: create_relationship_relationships_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RelationshipCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_RelationshipOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Relationship + tags: + - management + /audit: + get: + operationId: list_audit_logs_audit_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: user_id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: resource_id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: decision + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: start_time + required: false + schema: + format: date-time + nullable: true + type: string + style: form + - explode: true + in: query + name: end_time + required: false + schema: + format: date-time + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_AuditRecordOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Audit Logs + tags: + - management + /playground/evaluate: + post: + operationId: evaluate_playground_evaluate_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PlaygroundEvaluateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__Any__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Evaluate + tags: + - playground + /dev/sample-data: + get: + operationId: get_sample_data_dev_sample_data_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + summary: Get Sample Data + tags: + - dev + /dev/sample-data/seed: + post: + operationId: seed_sample_data_dev_sample_data_seed_post + parameters: + - description: Clear the sample dataset before reseeding it. + explode: true + in: query + name: reset + required: false + schema: + default: false + description: Clear the sample dataset before reseeding it. + title: Reset + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + summary: Seed Sample Data + tags: + - dev +components: + schemas: + ACLCreate: + example: + subject_id: subject_id + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + resource_type: + title: Resource Type + type: string + resource_id: + title: Resource Id + type: string + action: + title: Action + type: string + effect: + title: Effect + type: string + required: + - action + - effect + - resource_id + - resource_type + - subject_id + - subject_type + title: ACLCreate + ACLOut: + example: + subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + resource_type: + title: Resource Type + type: string + resource_id: + title: Resource Id + type: string + action: + title: Action + type: string + effect: + title: Effect + type: string + id: + title: Id + type: integer + tenant_id: + title: Tenant Id + type: integer + created_at: + format: date-time + nullable: true + type: string + required: + - action + - effect + - id + - resource_id + - resource_type + - subject_id + - subject_type + - tenant_id + title: ACLOut + AccessDecisionResponse: + example: + reason: reason + explain_trace: + - key: "" + - key: "" + decision: decision + policy_id: policy_id + allowed: true + matched_policies: + - matched_policies + - matched_policies + revision: 0 + properties: + allowed: + title: Allowed + type: boolean + decision: + title: Decision + type: string + matched_policies: + items: + type: string + title: Matched Policies + type: array + reason: + nullable: true + type: string + policy_id: + nullable: true + type: string + explain_trace: + items: + additionalProperties: true + type: object + title: Explain Trace + type: array + revision: + nullable: true + type: integer + required: + - allowed + - decision + title: AccessDecisionResponse + AccessRequest: + description: Explicit authorization request passed through the API boundary. + example: + resource: + key: "" + context: + key: "" + action: action + user: + key: "" + consistency: eventual + revision: 0 + properties: + user: + additionalProperties: true + title: User + type: object + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + context: + additionalProperties: true + title: Context + type: object + consistency: + default: eventual + title: Consistency + type: string + revision: + nullable: true + type: integer + required: + - action + title: AccessRequest + AdminLoginRequest: + example: + password: password + username: username + properties: + username: + title: Username + type: string + password: + title: Password + type: string + required: + - password + - username + title: AdminLoginRequest + AdminLoginResponse: + example: + access_token: access_token + role: admin + tenant_key: tenant_key + token_type: bearer + expires_in: 0 + properties: + access_token: + title: Access Token + type: string + token_type: + default: bearer + title: Token Type + type: string + expires_in: + title: Expires In + type: integer + role: + default: admin + title: Role + type: string + tenant_key: + title: Tenant Key + type: string + required: + - access_token + - expires_in + - tenant_key + title: AdminLoginResponse + AuditRecordOut: + example: + reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + properties: + id: + title: Id + type: integer + principal_type: + title: Principal Type + type: string + principal_id: + title: Principal Id + type: string + correlation_id: + nullable: true + type: string + user: + additionalProperties: true + title: User + type: object + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + decision: + title: Decision + type: string + matched_policies: + items: {} + title: Matched Policies + type: array + reason: + nullable: true + type: string + evaluated_rules: + items: {} + title: Evaluated Rules + type: array + failed_conditions: + items: {} + title: Failed Conditions + type: array + created_at: + format: date-time + title: Created At + type: string + required: + - action + - created_at + - decision + - evaluated_rules + - failed_conditions + - id + - matched_policies + - principal_id + - principal_type + - resource + - user + title: AuditRecordOut + AuthModelCreate: + example: + schema: schema + properties: + schema: + title: Schema + type: string + required: + - schema + title: AuthModelCreate + AuthModelOut: + example: + tenant_id: 6 + schema: schema + compiled: + key: "" + parsed: + key: "" + id: 0 + properties: + id: + title: Id + type: integer + tenant_id: + title: Tenant Id + type: integer + schema: + title: Schema + type: string + parsed: + additionalProperties: true + title: Parsed + type: object + compiled: + additionalProperties: true + title: Compiled + type: object + required: + - compiled + - id + - parsed + - schema + - tenant_id + title: AuthModelOut + BatchAccessItem: + example: + resource: + key: "" + action: action + properties: + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + required: + - action + title: BatchAccessItem + BatchAccessRequest: + example: + user: + key: "" + items: + - resource: + key: "" + action: action + - resource: + key: "" + action: action + consistency: eventual + revision: 0 + properties: + user: + additionalProperties: true + title: User + type: object + items: + items: + $ref: "#/components/schemas/BatchAccessItem" + title: Items + type: array + consistency: + default: eventual + title: Consistency + type: string + revision: + nullable: true + type: integer + required: + - items + title: BatchAccessRequest + BatchAccessResponse: + example: + results: + - allowed: true + action: action + revision: 0 + - allowed: true + action: action + revision: 0 + revision: 6 + properties: + results: + items: + $ref: "#/components/schemas/BatchAccessResult" + title: Results + type: array + revision: + nullable: true + type: integer + required: + - results + title: BatchAccessResponse + BatchAccessResult: + example: + allowed: true + action: action + revision: 0 + properties: + action: + title: Action + type: string + allowed: + title: Allowed + type: boolean + revision: + nullable: true + type: integer + required: + - action + - allowed + title: BatchAccessResult + HTTPValidationError: + example: + detail: + - msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + - msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + properties: + detail: + items: + $ref: "#/components/schemas/ValidationError" + title: Detail + type: array + title: HTTPValidationError + ImpactAnalysisRequest: + example: + policy_change: policy_change + properties: + policy_change: + title: Policy Change + type: string + required: + - policy_change + title: ImpactAnalysisRequest + ImpactAnalysisResponse: + example: + gained_access: + - 0 + - 0 + lost_access: + - 6 + - 6 + properties: + gained_access: + items: + type: integer + title: Gained Access + type: array + lost_access: + items: + type: integer + title: Lost Access + type: array + title: ImpactAnalysisResponse + MetaBody: + example: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + properties: + request_id: + nullable: true + type: string + limit: + nullable: true + type: integer + next_cursor: + nullable: true + type: string + extra: + additionalProperties: true + title: Extra + type: object + title: MetaBody + PermissionCreate: + example: + action: action + properties: + action: + title: Action + type: string + required: + - action + title: PermissionCreate + PermissionOut: + example: + action: action + id: 0 + properties: + id: + title: Id + type: integer + action: + title: Action + type: string + required: + - action + - id + title: PermissionOut + PermissionUpdate: + example: + action: action + properties: + action: + title: Action + type: string + required: + - action + title: PermissionUpdate + PlaygroundEvaluateRequest: + example: + input: + resource: + key: "" + context: + key: "" + action: "" + user: + key: "" + policies: + - policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + - policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + properties: + policies: + items: + $ref: "#/components/schemas/PlaygroundPolicy" + title: Policies + type: array + input: + $ref: "#/components/schemas/PlaygroundInput" + required: + - input + - policies + title: PlaygroundEvaluateRequest + PlaygroundInput: + example: + resource: + key: "" + context: + key: "" + action: "" + user: + key: "" + properties: + user: + additionalProperties: true + title: User + type: object + resource: + additionalProperties: true + title: Resource + type: object + action: + default: "" + title: Action + type: string + context: + additionalProperties: true + title: Context + type: object + title: PlaygroundInput + PlaygroundPolicy: + example: + policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + properties: + action: + title: Action + type: string + effect: + default: allow + title: Effect + type: string + priority: + default: 100 + title: Priority + type: integer + policy_id: + nullable: true + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + title: PlaygroundPolicy + PolicyCreate: + example: + effect: allow + action: action + state: active + priority: 0 + conditions: + key: "" + properties: + action: + title: Action + type: string + effect: + default: allow + title: Effect + type: string + priority: + default: 100 + title: Priority + type: integer + state: + default: active + title: State + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + title: PolicyCreate + PolicyOut: + example: + effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + properties: + id: + title: Id + type: integer + action: + title: Action + type: string + effect: + title: Effect + type: string + priority: + title: Priority + type: integer + state: + default: active + title: State + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + - conditions + - effect + - id + - priority + title: PolicyOut + PolicySimulationInput: + example: + relationship_change: + key: "" + role_change: + key: "" + policy_change: policy_change + properties: + policy_change: + nullable: true + type: string + relationship_change: + additionalProperties: true + nullable: true + type: object + role_change: + additionalProperties: true + nullable: true + type: object + title: PolicySimulationInput + PolicySimulationRequest: + example: + request: + key: "" + simulate: + relationship_change: + key: "" + role_change: + key: "" + policy_change: policy_change + properties: + simulate: + $ref: "#/components/schemas/PolicySimulationInput" + request: + additionalProperties: true + title: Request + type: object + title: PolicySimulationRequest + PolicySimulationResponse: + example: + decision_before: + key: "" + decision_after: + key: "" + properties: + decision_before: + additionalProperties: true + title: Decision Before + type: object + decision_after: + additionalProperties: true + title: Decision After + type: object + required: + - decision_after + - decision_before + title: PolicySimulationResponse + RelationshipCreate: + example: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + object_id: object_id + relation: relation + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + relation: + title: Relation + type: string + object_type: + title: Object Type + type: string + object_id: + title: Object Id + type: string + required: + - object_id + - object_type + - relation + - subject_id + - subject_type + title: RelationshipCreate + RelationshipOut: + example: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + id: 0 + object_id: object_id + relation: relation + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + relation: + title: Relation + type: string + object_type: + title: Object Type + type: string + object_id: + title: Object Id + type: string + id: + title: Id + type: integer + required: + - id + - object_id + - object_type + - relation + - subject_id + - subject_type + title: RelationshipOut + RoleCreate: + example: + name: name + properties: + name: + title: Name + type: string + required: + - name + title: RoleCreate + RoleOut: + example: + name: name + id: 0 + properties: + id: + title: Id + type: integer + name: + title: Name + type: string + required: + - id + - name + title: RoleOut + RoleUpdate: + example: + name: name + properties: + name: + title: Name + type: string + required: + - name + title: RoleUpdate + SimulationResponse: + example: + reason: reason + explain_trace: + - key: "" + - key: "" + failed_conditions: + - failed_conditions + - failed_conditions + decision: decision + policy_id: policy_id + matched_policies: + - matched_policies + - matched_policies + revision: 0 + properties: + decision: + title: Decision + type: string + matched_policies: + items: + type: string + title: Matched Policies + type: array + reason: + nullable: true + type: string + policy_id: + nullable: true + type: string + explain_trace: + items: + additionalProperties: true + type: object + title: Explain Trace + type: array + failed_conditions: + items: + type: string + title: Failed Conditions + type: array + revision: + nullable: true + type: integer + required: + - decision + - matched_policies + title: SimulationResponse + SuccessResponse_ACLOut_: + example: + data: + subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/ACLOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[ACLOut]" + SuccessResponse_AccessDecisionResponse_: + example: + data: + reason: reason + explain_trace: + - key: "" + - key: "" + decision: decision + policy_id: policy_id + allowed: true + matched_policies: + - matched_policies + - matched_policies + revision: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AccessDecisionResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AccessDecisionResponse]" + SuccessResponse_AdminLoginResponse_: + example: + data: + access_token: access_token + role: admin + tenant_key: tenant_key + token_type: bearer + expires_in: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AdminLoginResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AdminLoginResponse]" + SuccessResponse_AuthModelOut_: + example: + data: + tenant_id: 6 + schema: schema + compiled: + key: "" + parsed: + key: "" + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AuthModelOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AuthModelOut]" + SuccessResponse_BatchAccessResponse_: + example: + data: + results: + - allowed: true + action: action + revision: 0 + - allowed: true + action: action + revision: 0 + revision: 6 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/BatchAccessResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[BatchAccessResponse]" + SuccessResponse_ImpactAnalysisResponse_: + example: + data: + gained_access: + - 0 + - 0 + lost_access: + - 6 + - 6 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/ImpactAnalysisResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[ImpactAnalysisResponse]" + SuccessResponse_PermissionOut_: + example: + data: + action: action + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PermissionOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PermissionOut]" + SuccessResponse_PolicyOut_: + example: + data: + effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PolicyOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PolicyOut]" + SuccessResponse_PolicySimulationResponse_: + example: + data: + decision_before: + key: "" + decision_after: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PolicySimulationResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PolicySimulationResponse]" + SuccessResponse_RelationshipOut_: + example: + data: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + id: 0 + object_id: object_id + relation: relation + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/RelationshipOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[RelationshipOut]" + SuccessResponse_SimulationResponse_: + example: + data: + reason: reason + explain_trace: + - key: "" + - key: "" + failed_conditions: + - failed_conditions + - failed_conditions + decision: decision + policy_id: policy_id + matched_policies: + - matched_policies + - matched_policies + revision: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/SimulationResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[SimulationResponse]" + SuccessResponse_dict_str__Any__: + example: + data: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: true + title: Data + type: object + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, Any]]" + SuccessResponse_dict_str__Union_int__str___: + example: + data: + key: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + $ref: "#/components/schemas/Data_value" + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, Union[int, str]]]" + SuccessResponse_dict_str__int__: + example: + data: + key: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + type: integer + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, int]]" + SuccessResponse_dict_str__object__: + example: + data: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: true + title: Data + type: object + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, object]]" + SuccessResponse_dict_str__str__: + example: + data: + key: data + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + type: string + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, str]]" + SuccessResponse_list_ACLOut__: + example: + data: + - subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + - subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/ACLOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[ACLOut]]" + SuccessResponse_list_AuditRecordOut__: + example: + data: + - reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + - reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/AuditRecordOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[AuditRecordOut]]" + SuccessResponse_list_PermissionOut__: + example: + data: + - action: action + id: 0 + - action: action + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/PermissionOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[PermissionOut]]" + SuccessResponse_list_PolicyOut__: + example: + data: + - effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + - effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/PolicyOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[PolicyOut]]" + SuccessResponse_list_RoleOut__: + example: + data: + - name: name + id: 0 + - name: name + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/RoleOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[RoleOut]]" + SuccessResponse_list_dict_str__str___: + example: + data: + - key: data + - key: data + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + additionalProperties: + type: string + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[dict[str, str]]]" + ValidationError: + example: + msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + properties: + loc: + items: + $ref: "#/components/schemas/Location_inner" + title: Location + type: array + msg: + title: Message + type: string + type: + title: Error Type + type: string + input: + title: Input + ctx: + title: Context + type: object + required: + - loc + - msg + - type + title: ValidationError + Data_value: + anyOf: + - type: integer + - type: string + Location_inner: + anyOf: + - type: string + - type: integer + securitySchemes: + HTTPBearer: + scheme: bearer + type: http + APIKeyHeader: + in: header + name: X-API-Key + type: apiKey + diff --git a/sdks/csharp/appveyor.yml b/sdks/csharp/appveyor.yml new file mode 100644 index 0000000..109c7c6 --- /dev/null +++ b/sdks/csharp/appveyor.yml @@ -0,0 +1,9 @@ +# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator) +# +image: Visual Studio 2019 +clone_depth: 1 +build_script: +- dotnet build -c Release +- dotnet test -c Release +after_build: +- dotnet pack .\src\KeyNetra.Client\KeyNetra.Client.csproj -o ../../output -c Release --no-build diff --git a/sdks/csharp/docs/apis/AccessApi.md b/sdks/csharp/docs/apis/AccessApi.md new file mode 100644 index 0000000..541bc59 --- /dev/null +++ b/sdks/csharp/docs/apis/AccessApi.md @@ -0,0 +1,117 @@ +# KeyNetra.Client.Api.AccessApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CheckAccessBatchCheckAccessBatchPost**](AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch | +| [**CheckAccessCheckAccessPost**](AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access | +| [**SimulateSimulatePost**](AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate | + + +# **CheckAccessBatchCheckAccessBatchPost** +> SuccessResponseBatchAccessResponse CheckAccessBatchCheckAccessBatchPost (BatchAccessRequest batchAccessRequest, string policySet = null) + +Check Access Batch + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md) | | | +| **policySet** | **string** | | [optional] [default to "active"] | + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CheckAccessCheckAccessPost** +> SuccessResponseAccessDecisionResponse CheckAccessCheckAccessPost (AccessRequest accessRequest, string policySet = null) + +Check Access + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **accessRequest** | [**AccessRequest**](AccessRequest.md) | | | +| **policySet** | **string** | | [optional] [default to "active"] | + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **SimulateSimulatePost** +> SuccessResponseSimulationResponse SimulateSimulatePost (AccessRequest accessRequest) + +Simulate + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **accessRequest** | [**AccessRequest**](AccessRequest.md) | | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/apis/AuthApi.md b/sdks/csharp/docs/apis/AuthApi.md new file mode 100644 index 0000000..646966a --- /dev/null +++ b/sdks/csharp/docs/apis/AuthApi.md @@ -0,0 +1,79 @@ +# KeyNetra.Client.Api.AuthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**AdminLoginAdminLoginPost**](AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login | +| [**AdminLoginAdminLoginPost_0**](AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login | + + +# **AdminLoginAdminLoginPost** +> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost (AdminLoginRequest adminLoginRequest) + +Admin Login + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **AdminLoginAdminLoginPost_0** +> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost_0 (AdminLoginRequest adminLoginRequest) + +Admin Login + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/apis/DevApi.md b/sdks/csharp/docs/apis/DevApi.md new file mode 100644 index 0000000..ffbfc72 --- /dev/null +++ b/sdks/csharp/docs/apis/DevApi.md @@ -0,0 +1,74 @@ +# KeyNetra.Client.Api.DevApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetSampleDataDevSampleDataGet**](DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data | +| [**SeedSampleDataDevSampleDataSeedPost**](DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data | + + +# **GetSampleDataDevSampleDataGet** +> SuccessResponseDictStrObject GetSampleDataDevSampleDataGet () + +Get Sample Data + + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **SeedSampleDataDevSampleDataSeedPost** +> SuccessResponseDictStrObject SeedSampleDataDevSampleDataSeedPost (bool reset = null) + +Seed Sample Data + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **reset** | **bool** | Clear the sample dataset before reseeding it. | [optional] [default to false] | + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/apis/HealthApi.md b/sdks/csharp/docs/apis/HealthApi.md new file mode 100644 index 0000000..80cda1d --- /dev/null +++ b/sdks/csharp/docs/apis/HealthApi.md @@ -0,0 +1,100 @@ +# KeyNetra.Client.Api.HealthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**HealthHealthGet**](HealthApi.md#healthhealthget) | **GET** /health | Health | +| [**LivenessHealthLiveGet**](HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness | +| [**ReadinessHealthReadyGet**](HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness | + + +# **HealthHealthGet** +> SuccessResponseDictStrStr HealthHealthGet () + +Health + + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **LivenessHealthLiveGet** +> SuccessResponseDictStrStr LivenessHealthLiveGet () + +Liveness + + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ReadinessHealthReadyGet** +> SuccessResponseDictStrObject ReadinessHealthReadyGet () + +Readiness + + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/apis/ManagementApi.md b/sdks/csharp/docs/apis/ManagementApi.md new file mode 100644 index 0000000..929a4b9 --- /dev/null +++ b/sdks/csharp/docs/apis/ManagementApi.md @@ -0,0 +1,1029 @@ +# KeyNetra.Client.Api.ManagementApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| [**CreateAclEntryAclPost**](ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry | +| [**CreateAuthModelAuthModelPost**](ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model | +| [**CreatePermissionPermissionsPost**](ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission | +| [**CreatePolicyFromDslPoliciesDslPost**](ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl | +| [**CreatePolicyPoliciesPost**](ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy | +| [**CreateRelationshipRelationshipsPost**](ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship | +| [**CreateRoleRolesPost**](ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role | +| [**DeleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| [**DeletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| [**DeletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy | +| [**DeleteRoleRolesRoleIdDelete**](ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role | +| [**GetAuthModelAuthModelGet**](ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model | +| [**ImpactAnalysisImpactAnalysisPost**](ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis | +| [**ListAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| [**ListAuditLogsAuditGet**](ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs | +| [**ListPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| [**ListPermissionsPermissionsGet**](ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions | +| [**ListPoliciesPoliciesGet**](ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies | +| [**ListRelationshipsRelationshipsGet**](ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships | +| [**ListRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| [**ListRolesRolesGet**](ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles | +| [**RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| [**RollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| [**SimulatePolicySimulatePolicyPost**](ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy | +| [**UpdatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission | +| [**UpdatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy | +| [**UpdateRoleRolesRoleIdPut**](ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role | + + +# **AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** +> SuccessResponsePermissionOut AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost (int roleId, int permissionId) + +Add Permission To Role + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **roleId** | **int** | | | +| **permissionId** | **int** | | | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreateAclEntryAclPost** +> SuccessResponseACLOut CreateAclEntryAclPost (ACLCreate aCLCreate) + +Create Acl Entry + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aCLCreate** | [**ACLCreate**](ACLCreate.md) | | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreateAuthModelAuthModelPost** +> SuccessResponseAuthModelOut CreateAuthModelAuthModelPost (AuthModelCreate authModelCreate) + +Create Auth Model + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md) | | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreatePermissionPermissionsPost** +> PermissionOut CreatePermissionPermissionsPost (PermissionCreate permissionCreate) + +Create Permission + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **permissionCreate** | [**PermissionCreate**](PermissionCreate.md) | | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreatePolicyFromDslPoliciesDslPost** +> SuccessResponsePolicyOut CreatePolicyFromDslPoliciesDslPost (string dsl) + +Create Policy From Dsl + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **dsl** | **string** | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreatePolicyPoliciesPost** +> SuccessResponsePolicyOut CreatePolicyPoliciesPost (PolicyCreate policyCreate) + +Create Policy + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreateRelationshipRelationshipsPost** +> SuccessResponseRelationshipOut CreateRelationshipRelationshipsPost (RelationshipCreate relationshipCreate) + +Create Relationship + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md) | | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **CreateRoleRolesPost** +> RoleOut CreateRoleRolesPost (RoleCreate roleCreate) + +Create Role + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **roleCreate** | [**RoleCreate**](RoleCreate.md) | | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **DeleteAclEntryAclAclIdDelete** +> SuccessResponseDictStrInt DeleteAclEntryAclAclIdDelete (int aclId) + +Delete Acl Entry + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **aclId** | **int** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **DeletePermissionPermissionsPermissionIdDelete** +> SuccessResponseDictStrInt DeletePermissionPermissionsPermissionIdDelete (int permissionId) + +Delete Permission + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **permissionId** | **int** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **DeletePolicyPoliciesPolicyKeyDelete** +> SuccessResponseDictStrStr DeletePolicyPoliciesPolicyKeyDelete (string policyKey) + +Delete Policy + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **policyKey** | **string** | | | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **DeleteRoleRolesRoleIdDelete** +> SuccessResponseDictStrInt DeleteRoleRolesRoleIdDelete (int roleId) + +Delete Role + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **roleId** | **int** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **GetAuthModelAuthModelGet** +> SuccessResponseAuthModelOut GetAuthModelAuthModelGet () + +Get Auth Model + + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ImpactAnalysisImpactAnalysisPost** +> SuccessResponseImpactAnalysisResponse ImpactAnalysisImpactAnalysisPost (ImpactAnalysisRequest impactAnalysisRequest) + +Impact Analysis + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListAclEntriesAclResourceTypeResourceIdGet** +> SuccessResponseListACLOut ListAclEntriesAclResourceTypeResourceIdGet (string resourceType, string resourceId) + +List Acl Entries + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **resourceType** | **string** | | | +| **resourceId** | **string** | | | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListAuditLogsAuditGet** +> SuccessResponseListAuditRecordOut ListAuditLogsAuditGet (int limit = null, string cursor = null, string userId = null, string resourceId = null, string decision = null, DateTime startTime = null, DateTime endTime = null) + +List Audit Logs + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **limit** | **int** | | [optional] [default to 50] | +| **cursor** | **string** | | [optional] | +| **userId** | **string** | | [optional] | +| **resourceId** | **string** | | [optional] | +| **decision** | **string** | | [optional] | +| **startTime** | **DateTime** | | [optional] | +| **endTime** | **DateTime** | | [optional] | + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListPermissionRolesPermissionsPermissionIdRolesGet** +> SuccessResponseListRoleOut ListPermissionRolesPermissionsPermissionIdRolesGet (int permissionId) + +List Permission Roles + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **permissionId** | **int** | | | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListPermissionsPermissionsGet** +> SuccessResponseListPermissionOut ListPermissionsPermissionsGet (int limit = null, string cursor = null) + +List Permissions + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **limit** | **int** | | [optional] [default to 50] | +| **cursor** | **string** | | [optional] | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListPoliciesPoliciesGet** +> SuccessResponseListPolicyOut ListPoliciesPoliciesGet (int limit = null, string cursor = null) + +List Policies + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **limit** | **int** | | [optional] [default to 50] | +| **cursor** | **string** | | [optional] | + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListRelationshipsRelationshipsGet** +> SuccessResponseListDictStrStr ListRelationshipsRelationshipsGet (string subjectType, string subjectId, int limit = null, string cursor = null) + +List Relationships + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **subjectType** | **string** | | | +| **subjectId** | **string** | | | +| **limit** | **int** | | [optional] [default to 50] | +| **cursor** | **string** | | [optional] | + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListRolePermissionsRolesRoleIdPermissionsGet** +> SuccessResponseListPermissionOut ListRolePermissionsRolesRoleIdPermissionsGet (int roleId) + +List Role Permissions + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **roleId** | **int** | | | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **ListRolesRolesGet** +> SuccessResponseListRoleOut ListRolesRolesGet (int limit = null, string cursor = null) + +List Roles + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **limit** | **int** | | [optional] [default to 50] | +| **cursor** | **string** | | [optional] | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** +> SuccessResponseDictStrInt RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete (int roleId, int permissionId) + +Remove Permission From Role + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **roleId** | **int** | | | +| **permissionId** | **int** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **RollbackPolicyPoliciesPolicyKeyRollbackVersionPost** +> SuccessResponseDictStrUnionIntStr RollbackPolicyPoliciesPolicyKeyRollbackVersionPost (string policyKey, int version) + +Rollback Policy + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **policyKey** | **string** | | | +| **version** | **int** | | | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **SimulatePolicySimulatePolicyPost** +> SuccessResponsePolicySimulationResponse SimulatePolicySimulatePolicyPost (PolicySimulationRequest policySimulationRequest) + +Simulate Policy + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **UpdatePermissionPermissionsPermissionIdPut** +> PermissionOut UpdatePermissionPermissionsPermissionIdPut (int permissionId, PermissionUpdate permissionUpdate) + +Update Permission + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **permissionId** | **int** | | | +| **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md) | | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **UpdatePolicyPoliciesPolicyKeyPut** +> SuccessResponsePolicyOut UpdatePolicyPoliciesPolicyKeyPut (string policyKey, PolicyCreate policyCreate) + +Update Policy + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **policyKey** | **string** | | | +| **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + + +# **UpdateRoleRolesRoleIdPut** +> RoleOut UpdateRoleRolesRoleIdPut (int roleId, RoleUpdate roleUpdate) + +Update Role + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **roleId** | **int** | | | +| **roleUpdate** | [**RoleUpdate**](RoleUpdate.md) | | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/apis/PlaygroundApi.md b/sdks/csharp/docs/apis/PlaygroundApi.md new file mode 100644 index 0000000..4fe0e2f --- /dev/null +++ b/sdks/csharp/docs/apis/PlaygroundApi.md @@ -0,0 +1,43 @@ +# KeyNetra.Client.Api.PlaygroundApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**EvaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate | + + +# **EvaluatePlaygroundEvaluatePost** +> SuccessResponseDictStrAny EvaluatePlaygroundEvaluatePost (PlaygroundEvaluateRequest playgroundEvaluateRequest) + +Evaluate + + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/ACLCreate.md b/sdks/csharp/docs/models/ACLCreate.md new file mode 100644 index 0000000..44a8c33 --- /dev/null +++ b/sdks/csharp/docs/models/ACLCreate.md @@ -0,0 +1,15 @@ +# KeyNetra.Client.Model.ACLCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**ResourceType** | **string** | | +**ResourceId** | **string** | | +**Action** | **string** | | +**Effect** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/ACLOut.md b/sdks/csharp/docs/models/ACLOut.md new file mode 100644 index 0000000..a711977 --- /dev/null +++ b/sdks/csharp/docs/models/ACLOut.md @@ -0,0 +1,18 @@ +# KeyNetra.Client.Model.ACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**ResourceType** | **string** | | +**ResourceId** | **string** | | +**Action** | **string** | | +**Effect** | **string** | | +**Id** | **int** | | +**TenantId** | **int** | | +**CreatedAt** | **DateTime** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AccessDecisionResponse.md b/sdks/csharp/docs/models/AccessDecisionResponse.md new file mode 100644 index 0000000..9178b93 --- /dev/null +++ b/sdks/csharp/docs/models/AccessDecisionResponse.md @@ -0,0 +1,16 @@ +# KeyNetra.Client.Model.AccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Allowed** | **bool** | | +**Decision** | **string** | | +**MatchedPolicies** | **List<string>** | | [optional] +**Reason** | **string** | | [optional] +**PolicyId** | **string** | | [optional] +**ExplainTrace** | **List<Dictionary<string, Object>>** | | [optional] +**Revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AccessRequest.md b/sdks/csharp/docs/models/AccessRequest.md new file mode 100644 index 0000000..09dd7a7 --- /dev/null +++ b/sdks/csharp/docs/models/AccessRequest.md @@ -0,0 +1,16 @@ +# KeyNetra.Client.Model.AccessRequest +Explicit authorization request passed through the API boundary. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**User** | **Dictionary<string, Object>** | | [optional] +**Resource** | **Dictionary<string, Object>** | | [optional] +**Context** | **Dictionary<string, Object>** | | [optional] +**Consistency** | **string** | | [optional] [default to "eventual"] +**Revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AdminLoginRequest.md b/sdks/csharp/docs/models/AdminLoginRequest.md new file mode 100644 index 0000000..d025f2b --- /dev/null +++ b/sdks/csharp/docs/models/AdminLoginRequest.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.AdminLoginRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**Password** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AdminLoginResponse.md b/sdks/csharp/docs/models/AdminLoginResponse.md new file mode 100644 index 0000000..85728ab --- /dev/null +++ b/sdks/csharp/docs/models/AdminLoginResponse.md @@ -0,0 +1,14 @@ +# KeyNetra.Client.Model.AdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | **string** | | +**ExpiresIn** | **int** | | +**TenantKey** | **string** | | +**TokenType** | **string** | | [optional] [default to "bearer"] +**Role** | **string** | | [optional] [default to "admin"] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AuditRecordOut.md b/sdks/csharp/docs/models/AuditRecordOut.md new file mode 100644 index 0000000..cbc22f4 --- /dev/null +++ b/sdks/csharp/docs/models/AuditRecordOut.md @@ -0,0 +1,22 @@ +# KeyNetra.Client.Model.AuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int** | | +**PrincipalType** | **string** | | +**PrincipalId** | **string** | | +**User** | **Dictionary<string, Object>** | | +**Action** | **string** | | +**Resource** | **Dictionary<string, Object>** | | +**Decision** | **string** | | +**MatchedPolicies** | **List<Object>** | | +**EvaluatedRules** | **List<Object>** | | +**FailedConditions** | **List<Object>** | | +**CreatedAt** | **DateTime** | | +**CorrelationId** | **string** | | [optional] +**Reason** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AuthModelCreate.md b/sdks/csharp/docs/models/AuthModelCreate.md new file mode 100644 index 0000000..11f9147 --- /dev/null +++ b/sdks/csharp/docs/models/AuthModelCreate.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.AuthModelCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schema** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/AuthModelOut.md b/sdks/csharp/docs/models/AuthModelOut.md new file mode 100644 index 0000000..3e05f79 --- /dev/null +++ b/sdks/csharp/docs/models/AuthModelOut.md @@ -0,0 +1,14 @@ +# KeyNetra.Client.Model.AuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int** | | +**TenantId** | **int** | | +**Schema** | **string** | | +**Parsed** | **Dictionary<string, Object>** | | +**Compiled** | **Dictionary<string, Object>** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/BatchAccessItem.md b/sdks/csharp/docs/models/BatchAccessItem.md new file mode 100644 index 0000000..8482c1a --- /dev/null +++ b/sdks/csharp/docs/models/BatchAccessItem.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.BatchAccessItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Resource** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/BatchAccessRequest.md b/sdks/csharp/docs/models/BatchAccessRequest.md new file mode 100644 index 0000000..4a2d40f --- /dev/null +++ b/sdks/csharp/docs/models/BatchAccessRequest.md @@ -0,0 +1,13 @@ +# KeyNetra.Client.Model.BatchAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**List<BatchAccessItem>**](BatchAccessItem.md) | | +**User** | **Dictionary<string, Object>** | | [optional] +**Consistency** | **string** | | [optional] [default to "eventual"] +**Revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/BatchAccessResponse.md b/sdks/csharp/docs/models/BatchAccessResponse.md new file mode 100644 index 0000000..89190bf --- /dev/null +++ b/sdks/csharp/docs/models/BatchAccessResponse.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.BatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**List<BatchAccessResult>**](BatchAccessResult.md) | | +**Revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/BatchAccessResult.md b/sdks/csharp/docs/models/BatchAccessResult.md new file mode 100644 index 0000000..ca3a566 --- /dev/null +++ b/sdks/csharp/docs/models/BatchAccessResult.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.BatchAccessResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Allowed** | **bool** | | +**Revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/DataValue.md b/sdks/csharp/docs/models/DataValue.md new file mode 100644 index 0000000..30a9f73 --- /dev/null +++ b/sdks/csharp/docs/models/DataValue.md @@ -0,0 +1,9 @@ +# KeyNetra.Client.Model.DataValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/HTTPValidationError.md b/sdks/csharp/docs/models/HTTPValidationError.md new file mode 100644 index 0000000..d6af074 --- /dev/null +++ b/sdks/csharp/docs/models/HTTPValidationError.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.HTTPValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Detail** | [**List<ValidationError>**](ValidationError.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/ImpactAnalysisRequest.md b/sdks/csharp/docs/models/ImpactAnalysisRequest.md new file mode 100644 index 0000000..4c0ecc8 --- /dev/null +++ b/sdks/csharp/docs/models/ImpactAnalysisRequest.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.ImpactAnalysisRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PolicyChange** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/ImpactAnalysisResponse.md b/sdks/csharp/docs/models/ImpactAnalysisResponse.md new file mode 100644 index 0000000..feb78ed --- /dev/null +++ b/sdks/csharp/docs/models/ImpactAnalysisResponse.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.ImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GainedAccess** | **List<int>** | | [optional] +**LostAccess** | **List<int>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/LocationInner.md b/sdks/csharp/docs/models/LocationInner.md new file mode 100644 index 0000000..70b4591 --- /dev/null +++ b/sdks/csharp/docs/models/LocationInner.md @@ -0,0 +1,9 @@ +# KeyNetra.Client.Model.LocationInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/MetaBody.md b/sdks/csharp/docs/models/MetaBody.md new file mode 100644 index 0000000..b1e1e2c --- /dev/null +++ b/sdks/csharp/docs/models/MetaBody.md @@ -0,0 +1,13 @@ +# KeyNetra.Client.Model.MetaBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | **string** | | [optional] +**Limit** | **int** | | [optional] +**NextCursor** | **string** | | [optional] +**Extra** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PermissionCreate.md b/sdks/csharp/docs/models/PermissionCreate.md new file mode 100644 index 0000000..9d4648f --- /dev/null +++ b/sdks/csharp/docs/models/PermissionCreate.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.PermissionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PermissionOut.md b/sdks/csharp/docs/models/PermissionOut.md new file mode 100644 index 0000000..ad7c715 --- /dev/null +++ b/sdks/csharp/docs/models/PermissionOut.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.PermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int** | | +**Action** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PermissionUpdate.md b/sdks/csharp/docs/models/PermissionUpdate.md new file mode 100644 index 0000000..11c9a90 --- /dev/null +++ b/sdks/csharp/docs/models/PermissionUpdate.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.PermissionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PlaygroundEvaluateRequest.md b/sdks/csharp/docs/models/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..3f64833 --- /dev/null +++ b/sdks/csharp/docs/models/PlaygroundEvaluateRequest.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.PlaygroundEvaluateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policies** | [**List<PlaygroundPolicy>**](PlaygroundPolicy.md) | | +**Input** | [**PlaygroundInput**](PlaygroundInput.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PlaygroundInput.md b/sdks/csharp/docs/models/PlaygroundInput.md new file mode 100644 index 0000000..d20bf81 --- /dev/null +++ b/sdks/csharp/docs/models/PlaygroundInput.md @@ -0,0 +1,13 @@ +# KeyNetra.Client.Model.PlaygroundInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | **Dictionary<string, Object>** | | [optional] +**Resource** | **Dictionary<string, Object>** | | [optional] +**Action** | **string** | | [optional] [default to ""] +**Context** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PlaygroundPolicy.md b/sdks/csharp/docs/models/PlaygroundPolicy.md new file mode 100644 index 0000000..8cfd856 --- /dev/null +++ b/sdks/csharp/docs/models/PlaygroundPolicy.md @@ -0,0 +1,14 @@ +# KeyNetra.Client.Model.PlaygroundPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Effect** | **string** | | [optional] [default to "allow"] +**Priority** | **int** | | [optional] [default to 100] +**PolicyId** | **string** | | [optional] +**Conditions** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PolicyCreate.md b/sdks/csharp/docs/models/PolicyCreate.md new file mode 100644 index 0000000..b8bc932 --- /dev/null +++ b/sdks/csharp/docs/models/PolicyCreate.md @@ -0,0 +1,14 @@ +# KeyNetra.Client.Model.PolicyCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Effect** | **string** | | [optional] [default to "allow"] +**Priority** | **int** | | [optional] [default to 100] +**State** | **string** | | [optional] [default to "active"] +**Conditions** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PolicyOut.md b/sdks/csharp/docs/models/PolicyOut.md new file mode 100644 index 0000000..148394c --- /dev/null +++ b/sdks/csharp/docs/models/PolicyOut.md @@ -0,0 +1,15 @@ +# KeyNetra.Client.Model.PolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int** | | +**Action** | **string** | | +**Effect** | **string** | | +**Priority** | **int** | | +**Conditions** | **Dictionary<string, Object>** | | +**State** | **string** | | [optional] [default to "active"] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PolicySimulationInput.md b/sdks/csharp/docs/models/PolicySimulationInput.md new file mode 100644 index 0000000..848726b --- /dev/null +++ b/sdks/csharp/docs/models/PolicySimulationInput.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.PolicySimulationInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PolicyChange** | **string** | | [optional] +**RelationshipChange** | **Dictionary<string, Object>** | | [optional] +**RoleChange** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PolicySimulationRequest.md b/sdks/csharp/docs/models/PolicySimulationRequest.md new file mode 100644 index 0000000..58661dd --- /dev/null +++ b/sdks/csharp/docs/models/PolicySimulationRequest.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.PolicySimulationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] +**Request** | **Dictionary<string, Object>** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/PolicySimulationResponse.md b/sdks/csharp/docs/models/PolicySimulationResponse.md new file mode 100644 index 0000000..8803ae8 --- /dev/null +++ b/sdks/csharp/docs/models/PolicySimulationResponse.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.PolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DecisionBefore** | **Dictionary<string, Object>** | | +**DecisionAfter** | **Dictionary<string, Object>** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/RelationshipCreate.md b/sdks/csharp/docs/models/RelationshipCreate.md new file mode 100644 index 0000000..8131405 --- /dev/null +++ b/sdks/csharp/docs/models/RelationshipCreate.md @@ -0,0 +1,14 @@ +# KeyNetra.Client.Model.RelationshipCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**Relation** | **string** | | +**ObjectType** | **string** | | +**ObjectId** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/RelationshipOut.md b/sdks/csharp/docs/models/RelationshipOut.md new file mode 100644 index 0000000..fe7f1cc --- /dev/null +++ b/sdks/csharp/docs/models/RelationshipOut.md @@ -0,0 +1,15 @@ +# KeyNetra.Client.Model.RelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**Relation** | **string** | | +**ObjectType** | **string** | | +**ObjectId** | **string** | | +**Id** | **int** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/RoleCreate.md b/sdks/csharp/docs/models/RoleCreate.md new file mode 100644 index 0000000..321c239 --- /dev/null +++ b/sdks/csharp/docs/models/RoleCreate.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.RoleCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/RoleOut.md b/sdks/csharp/docs/models/RoleOut.md new file mode 100644 index 0000000..2a9ba9b --- /dev/null +++ b/sdks/csharp/docs/models/RoleOut.md @@ -0,0 +1,11 @@ +# KeyNetra.Client.Model.RoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int** | | +**Name** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/RoleUpdate.md b/sdks/csharp/docs/models/RoleUpdate.md new file mode 100644 index 0000000..b65cff3 --- /dev/null +++ b/sdks/csharp/docs/models/RoleUpdate.md @@ -0,0 +1,10 @@ +# KeyNetra.Client.Model.RoleUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SimulationResponse.md b/sdks/csharp/docs/models/SimulationResponse.md new file mode 100644 index 0000000..2437e69 --- /dev/null +++ b/sdks/csharp/docs/models/SimulationResponse.md @@ -0,0 +1,16 @@ +# KeyNetra.Client.Model.SimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Decision** | **string** | | +**MatchedPolicies** | **List<string>** | | +**Reason** | **string** | | [optional] +**PolicyId** | **string** | | [optional] +**ExplainTrace** | **List<Dictionary<string, Object>>** | | [optional] +**FailedConditions** | **List<string>** | | [optional] +**Revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseACLOut.md b/sdks/csharp/docs/models/SuccessResponseACLOut.md new file mode 100644 index 0000000..51f6547 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseACLOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ACLOut**](ACLOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md b/sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..4e0bdbb --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseAccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md b/sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..ff4509e --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseAdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseAuthModelOut.md b/sdks/csharp/docs/models/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..1bff91e --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseAuthModelOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseAuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AuthModelOut**](AuthModelOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md b/sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..4c0123e --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseBatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrAny.md b/sdks/csharp/docs/models/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..632daf4 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseDictStrAny.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseDictStrAny + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **Dictionary<string, Object>** | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrInt.md b/sdks/csharp/docs/models/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..fc6b659 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseDictStrInt.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseDictStrInt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **Dictionary<string, int>** | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrObject.md b/sdks/csharp/docs/models/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..aeef1d5 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseDictStrObject.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseDictStrObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **Dictionary<string, Object>** | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrStr.md b/sdks/csharp/docs/models/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..a5aa85f --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseDictStrStr.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **Dictionary<string, string>** | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md b/sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..524e93b --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseDictStrUnionIntStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Dictionary<string, DataValue>**](DataValue.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md b/sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..116a3cd --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseListACLOut.md b/sdks/csharp/docs/models/SuccessResponseListACLOut.md new file mode 100644 index 0000000..8df9ed0 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseListACLOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseListACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<ACLOut>**](ACLOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md b/sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..9e07194 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseListAuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<AuditRecordOut>**](AuditRecordOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseListDictStrStr.md b/sdks/csharp/docs/models/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..3eed978 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseListDictStrStr.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseListDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **List<Dictionary<string, string>>** | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseListPermissionOut.md b/sdks/csharp/docs/models/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..05f43b6 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseListPermissionOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseListPermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<PermissionOut>**](PermissionOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseListPolicyOut.md b/sdks/csharp/docs/models/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..9a51528 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseListPolicyOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseListPolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<PolicyOut>**](PolicyOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseListRoleOut.md b/sdks/csharp/docs/models/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..cfc8cfb --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseListRoleOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseListRoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RoleOut>**](RoleOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponsePermissionOut.md b/sdks/csharp/docs/models/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..a0968b5 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponsePermissionOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponsePermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PermissionOut**](PermissionOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponsePolicyOut.md b/sdks/csharp/docs/models/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..eb004c1 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponsePolicyOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponsePolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PolicyOut**](PolicyOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md b/sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..01849c7 --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponsePolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseRelationshipOut.md b/sdks/csharp/docs/models/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..8f2510e --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseRelationshipOut.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseRelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RelationshipOut**](RelationshipOut.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/SuccessResponseSimulationResponse.md b/sdks/csharp/docs/models/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..4c411cc --- /dev/null +++ b/sdks/csharp/docs/models/SuccessResponseSimulationResponse.md @@ -0,0 +1,12 @@ +# KeyNetra.Client.Model.SuccessResponseSimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**SimulationResponse**](SimulationResponse.md) | | +**Meta** | [**MetaBody**](MetaBody.md) | | [optional] +**Error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/models/ValidationError.md b/sdks/csharp/docs/models/ValidationError.md new file mode 100644 index 0000000..e037212 --- /dev/null +++ b/sdks/csharp/docs/models/ValidationError.md @@ -0,0 +1,14 @@ +# KeyNetra.Client.Model.ValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Loc** | [**List<LocationInner>**](LocationInner.md) | | +**Msg** | **string** | | +**Type** | **string** | | +**Input** | **Object** | | [optional] +**Ctx** | **Object** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + diff --git a/sdks/csharp/docs/scripts/git_push.ps1 b/sdks/csharp/docs/scripts/git_push.ps1 new file mode 100644 index 0000000..73ed35c --- /dev/null +++ b/sdks/csharp/docs/scripts/git_push.ps1 @@ -0,0 +1,75 @@ +param( + [Parameter()][Alias("g")][String]$GitHost = "github.com", + [Parameter()][Alias("u")][String]$GitUserId = "GIT_USER_ID", + [Parameter()][Alias("r")][String]$GitRepoId = "GIT_REPO_ID", + [Parameter()][Alias("m")][string]$Message = "Minor update", + [Parameter()][Alias("h")][switch]$Help +) + +function Publish-ToGitHost{ + if ([string]::IsNullOrWhiteSpace($Message) -or $Message -eq "Minor update"){ + # it seems unlikely that we would want our git commit message to be the default, so lets prompt the user + $Message = Read-Host -Prompt "Please provide a commit message or press enter" + $Message = if([string]::IsNullOrWhiteSpace($Message)) { "no message provided" } else { $Message } + } + + git init + git add . + git commit -am "${Message}" + $branchName=$(git rev-parse --abbrev-ref HEAD) + $gitRemote=$(git remote) + + if([string]::IsNullOrWhiteSpace($gitRemote)){ + git remote add origin https://${GitHost}/${GitUserId}/${GitRepoId}.git + } + + Write-Output "Pulling from https://${GitHost}/${GitUserId}/${GitRepoId}.git" + git pull origin $branchName --ff-only + + if ($LastExitCode -ne 0){ + if (${GitHost} -eq "github.com"){ + Write-Output "The ${GitRepoId} repository may not exist yet. Creating it now with the GitHub CLI." + gh auth login --hostname github.com --web + gh repo create $GitRepoId --private + # sleep 2 seconds to ensure git finishes creation of the repo + Start-Sleep -Seconds 2 + } + else{ + throw "There was an issue pulling the origin branch. The remote repository may not exist yet." + } + } + + Write-Output "Pushing to https://${GitHost}/${GitUserId}/${GitRepoId}.git" + git push origin $branchName +} + +$ErrorActionPreference = "Stop" +Set-StrictMode -Version 3.0 + +if ($Help){ + Write-Output " + This script will initialize a git repository, then add and commit all files. + The local repository will then be pushed to your preferred git provider. + If the remote repository does not exist yet and you are using GitHub, + the repository will be created for you provided you have the GitHub CLI installed. + + Parameters: + -g | -GitHost -> ex: github.com + -m | -Message -> the git commit message + -r | -GitRepoId -> the name of the repository + -u | -GitUserId -> your user id + " + + return +} + +$rootPath=Resolve-Path -Path $PSScriptRoot/../.. + +Push-Location $rootPath + +try { + Publish-ToGitHost $GitHost $GitUserId $GitRepoId $Message +} +finally{ + Pop-Location +} \ No newline at end of file diff --git a/sdks/csharp/docs/scripts/git_push.sh b/sdks/csharp/docs/scripts/git_push.sh new file mode 100644 index 0000000..8821049 --- /dev/null +++ b/sdks/csharp/docs/scripts/git_push.sh @@ -0,0 +1,49 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=${1:-GIT_USER_ID} +git_repo_id=${2:-GIT_REPO_ID} +release_note=${3:-Minor update} +git_host=${4:-github.com} + +starting_directory=$(pwd) +script_root="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" +cd $script_root +cd ../.. + +if [ "$release_note" = "" ] || [ "$release_note" = "Minor update" ]; then + # it seems unlikely that we would want our git commit message to be the default, so lets prompt the user + echo "Please provide a commit message or press enter" + read user_input + release_note=$user_input + if [ "$release_note" = "" ]; then + release_note="no message provided" + fi +fi + +git init +git add . +git commit -am "$release_note" +branch_name=$(git rev-parse --abbrev-ref HEAD) +git_remote=$(git remote) + +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +echo "[INFO] Pulling from https://${git_host}/${git_user_id}/${git_repo_id}.git" +git pull origin $branch_name --ff-only + +echo "[INFO] Pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin $branch_name + +cd $starting_directory diff --git a/sdks/go/.gitignore b/sdks/go/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/sdks/go/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/sdks/go/.travis.yml b/sdks/go/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/sdks/go/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/sdks/go/README.md b/sdks/go/README.md new file mode 100644 index 0000000..72507c3 --- /dev/null +++ b/sdks/go/README.md @@ -0,0 +1,53 @@ +# keynetra-client-go + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official Go SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Go applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +go get github.com/keynetra/keynetra-client-go +``` + +## ๐Ÿš€ Quick Start + +```go +import "github.com/keynetra/keynetra-client-go" + +client := keynetra.NewKeyNetraClient( + "http://localhost:8080", + "YOUR_API_KEY", +) + +// Perform an access check +decision, _, err := client.Access.CheckAccess(context.Background()). + AccessRequest(keynetra.AccessRequest{ + Subject: "user:123", + Action: "read", + Resource: "document:456", + }).Execute() +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/go/api/openapi.yaml b/sdks/go/api/openapi.yaml new file mode 100644 index 0000000..3839b26 --- /dev/null +++ b/sdks/go/api/openapi.yaml @@ -0,0 +1,2810 @@ +openapi: 3.1.0 +info: + title: KeyNetra + version: 0.1.1 +servers: +- url: / +paths: + /health: + get: + operationId: health_health_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + summary: Health + tags: + - health + /health/live: + get: + operationId: liveness_health_live_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + summary: Liveness + tags: + - health + /health/ready: + get: + operationId: readiness_health_ready_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + summary: Readiness + tags: + - health + /check-access: + post: + operationId: check_access_check_access_post + parameters: + - explode: true + in: query + name: policy_set + required: false + schema: + default: active + title: Policy Set + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AccessDecisionResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Check Access + tags: + - access + /simulate: + post: + operationId: simulate_simulate_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_SimulationResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Simulate + tags: + - access + /check-access-batch: + post: + operationId: check_access_batch_check_access_batch_post + parameters: + - explode: true + in: query + name: policy_set + required: false + schema: + default: active + title: Policy Set + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BatchAccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_BatchAccessResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Check Access Batch + tags: + - access + /admin/login: + post: + operationId: admin_login_admin_login_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AdminLoginRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AdminLoginResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + summary: Admin Login + tags: + - auth + - auth + /policies: + get: + operationId: list_policies_policies_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PolicyOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Policies + tags: + - management + post: + operationId: create_policy_policies_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Policy + tags: + - management + /policies/{policy_key}: + delete: + operationId: delete_policy_policies__policy_key__delete + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Policy + tags: + - management + put: + operationId: update_policy_policies__policy_key__put + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyCreate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Policy + tags: + - management + /policies/dsl: + post: + operationId: create_policy_from_dsl_policies_dsl_post + parameters: + - explode: true + in: query + name: dsl + required: true + schema: + title: Dsl + type: string + style: form + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Policy From Dsl + tags: + - management + /policies/{policy_key}/rollback/{version}: + post: + operationId: rollback_policy_policies__policy_key__rollback__version__post + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + - explode: false + in: path + name: version + required: true + schema: + title: Version + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Rollback Policy + tags: + - management + /acl: + post: + operationId: create_acl_entry_acl_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ACLCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_ACLOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Acl Entry + tags: + - management + /acl/{resource_type}/{resource_id}: + get: + operationId: list_acl_entries_acl__resource_type___resource_id__get + parameters: + - explode: false + in: path + name: resource_type + required: true + schema: + title: Resource Type + type: string + style: simple + - explode: false + in: path + name: resource_id + required: true + schema: + title: Resource Id + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_ACLOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Acl Entries + tags: + - management + /acl/{acl_id}: + delete: + operationId: delete_acl_entry_acl__acl_id__delete + parameters: + - explode: false + in: path + name: acl_id + required: true + schema: + title: Acl Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Acl Entry + tags: + - management + /auth-model: + get: + operationId: get_auth_model_auth_model_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" + description: Successful Response + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Get Auth Model + tags: + - management + post: + operationId: create_auth_model_auth_model_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AuthModelCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Auth Model + tags: + - management + /simulate-policy: + post: + operationId: simulate_policy_simulate_policy_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicySimulationRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicySimulationResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Simulate Policy + tags: + - management + /impact-analysis: + post: + operationId: impact_analysis_impact_analysis_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImpactAnalysisRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Impact Analysis + tags: + - management + /roles: + get: + operationId: list_roles_roles_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Roles + tags: + - management + post: + operationId: create_role_roles_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RoleCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/RoleOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Role + tags: + - management + /roles/{role_id}: + delete: + operationId: delete_role_roles__role_id__delete + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Role + tags: + - management + put: + operationId: update_role_roles__role_id__put + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RoleUpdate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RoleOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Role + tags: + - management + /roles/{role_id}/permissions: + get: + operationId: list_role_permissions_roles__role_id__permissions_get + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Role Permissions + tags: + - management + /roles/{role_id}/permissions/{permission_id}: + delete: + operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Remove Permission From Role + tags: + - management + post: + operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PermissionOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Add Permission To Role + tags: + - management + /permissions: + get: + operationId: list_permissions_permissions_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Permissions + tags: + - management + post: + operationId: create_permission_permissions_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Permission + tags: + - management + /permissions/{permission_id}: + delete: + operationId: delete_permission_permissions__permission_id__delete + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Permission + tags: + - management + put: + operationId: update_permission_permissions__permission_id__put + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionUpdate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Permission + tags: + - management + /permissions/{permission_id}/roles: + get: + operationId: list_permission_roles_permissions__permission_id__roles_get + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Permission Roles + tags: + - management + /relationships: + get: + operationId: list_relationships_relationships_get + parameters: + - explode: true + in: query + name: subject_type + required: true + schema: + title: Subject Type + type: string + style: form + - explode: true + in: query + name: subject_id + required: true + schema: + title: Subject Id + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_dict_str__str___" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Relationships + tags: + - management + post: + operationId: create_relationship_relationships_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RelationshipCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_RelationshipOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Relationship + tags: + - management + /audit: + get: + operationId: list_audit_logs_audit_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: user_id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: resource_id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: decision + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: start_time + required: false + schema: + format: date-time + nullable: true + type: string + style: form + - explode: true + in: query + name: end_time + required: false + schema: + format: date-time + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_AuditRecordOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Audit Logs + tags: + - management + /playground/evaluate: + post: + operationId: evaluate_playground_evaluate_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PlaygroundEvaluateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__Any__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Evaluate + tags: + - playground + /dev/sample-data: + get: + operationId: get_sample_data_dev_sample_data_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + summary: Get Sample Data + tags: + - dev + /dev/sample-data/seed: + post: + operationId: seed_sample_data_dev_sample_data_seed_post + parameters: + - description: Clear the sample dataset before reseeding it. + explode: true + in: query + name: reset + required: false + schema: + default: false + description: Clear the sample dataset before reseeding it. + title: Reset + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + summary: Seed Sample Data + tags: + - dev +components: + schemas: + ACLCreate: + example: + subject_id: subject_id + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + resource_type: + title: Resource Type + type: string + resource_id: + title: Resource Id + type: string + action: + title: Action + type: string + effect: + title: Effect + type: string + required: + - action + - effect + - resource_id + - resource_type + - subject_id + - subject_type + title: ACLCreate + ACLOut: + example: + subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + resource_type: + title: Resource Type + type: string + resource_id: + title: Resource Id + type: string + action: + title: Action + type: string + effect: + title: Effect + type: string + id: + title: Id + type: integer + tenant_id: + title: Tenant Id + type: integer + created_at: + format: date-time + nullable: true + type: string + required: + - action + - effect + - id + - resource_id + - resource_type + - subject_id + - subject_type + - tenant_id + title: ACLOut + AccessDecisionResponse: + example: + reason: reason + explain_trace: + - key: "" + - key: "" + decision: decision + policy_id: policy_id + allowed: true + matched_policies: + - matched_policies + - matched_policies + revision: 0 + properties: + allowed: + title: Allowed + type: boolean + decision: + title: Decision + type: string + matched_policies: + items: + type: string + title: Matched Policies + type: array + reason: + nullable: true + type: string + policy_id: + nullable: true + type: string + explain_trace: + items: + additionalProperties: true + type: object + title: Explain Trace + type: array + revision: + nullable: true + type: integer + required: + - allowed + - decision + title: AccessDecisionResponse + AccessRequest: + description: Explicit authorization request passed through the API boundary. + example: + resource: + key: "" + context: + key: "" + action: action + user: + key: "" + consistency: eventual + revision: 0 + properties: + user: + additionalProperties: true + title: User + type: object + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + context: + additionalProperties: true + title: Context + type: object + consistency: + default: eventual + title: Consistency + type: string + revision: + nullable: true + type: integer + required: + - action + title: AccessRequest + AdminLoginRequest: + example: + password: password + username: username + properties: + username: + title: Username + type: string + password: + title: Password + type: string + required: + - password + - username + title: AdminLoginRequest + AdminLoginResponse: + example: + access_token: access_token + role: admin + tenant_key: tenant_key + token_type: bearer + expires_in: 0 + properties: + access_token: + title: Access Token + type: string + token_type: + default: bearer + title: Token Type + type: string + expires_in: + title: Expires In + type: integer + role: + default: admin + title: Role + type: string + tenant_key: + title: Tenant Key + type: string + required: + - access_token + - expires_in + - tenant_key + title: AdminLoginResponse + AuditRecordOut: + example: + reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + properties: + id: + title: Id + type: integer + principal_type: + title: Principal Type + type: string + principal_id: + title: Principal Id + type: string + correlation_id: + nullable: true + type: string + user: + additionalProperties: true + title: User + type: object + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + decision: + title: Decision + type: string + matched_policies: + items: {} + title: Matched Policies + type: array + reason: + nullable: true + type: string + evaluated_rules: + items: {} + title: Evaluated Rules + type: array + failed_conditions: + items: {} + title: Failed Conditions + type: array + created_at: + format: date-time + title: Created At + type: string + required: + - action + - created_at + - decision + - evaluated_rules + - failed_conditions + - id + - matched_policies + - principal_id + - principal_type + - resource + - user + title: AuditRecordOut + AuthModelCreate: + example: + schema: schema + properties: + schema: + title: Schema + type: string + required: + - schema + title: AuthModelCreate + AuthModelOut: + example: + tenant_id: 6 + schema: schema + compiled: + key: "" + parsed: + key: "" + id: 0 + properties: + id: + title: Id + type: integer + tenant_id: + title: Tenant Id + type: integer + schema: + title: Schema + type: string + parsed: + additionalProperties: true + title: Parsed + type: object + compiled: + additionalProperties: true + title: Compiled + type: object + required: + - compiled + - id + - parsed + - schema + - tenant_id + title: AuthModelOut + BatchAccessItem: + example: + resource: + key: "" + action: action + properties: + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + required: + - action + title: BatchAccessItem + BatchAccessRequest: + example: + user: + key: "" + items: + - resource: + key: "" + action: action + - resource: + key: "" + action: action + consistency: eventual + revision: 0 + properties: + user: + additionalProperties: true + title: User + type: object + items: + items: + $ref: "#/components/schemas/BatchAccessItem" + title: Items + type: array + consistency: + default: eventual + title: Consistency + type: string + revision: + nullable: true + type: integer + required: + - items + title: BatchAccessRequest + BatchAccessResponse: + example: + results: + - allowed: true + action: action + revision: 0 + - allowed: true + action: action + revision: 0 + revision: 6 + properties: + results: + items: + $ref: "#/components/schemas/BatchAccessResult" + title: Results + type: array + revision: + nullable: true + type: integer + required: + - results + title: BatchAccessResponse + BatchAccessResult: + example: + allowed: true + action: action + revision: 0 + properties: + action: + title: Action + type: string + allowed: + title: Allowed + type: boolean + revision: + nullable: true + type: integer + required: + - action + - allowed + title: BatchAccessResult + HTTPValidationError: + example: + detail: + - msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + - msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + properties: + detail: + items: + $ref: "#/components/schemas/ValidationError" + title: Detail + type: array + title: HTTPValidationError + ImpactAnalysisRequest: + example: + policy_change: policy_change + properties: + policy_change: + title: Policy Change + type: string + required: + - policy_change + title: ImpactAnalysisRequest + ImpactAnalysisResponse: + example: + gained_access: + - 0 + - 0 + lost_access: + - 6 + - 6 + properties: + gained_access: + items: + type: integer + title: Gained Access + type: array + lost_access: + items: + type: integer + title: Lost Access + type: array + title: ImpactAnalysisResponse + MetaBody: + example: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + properties: + request_id: + nullable: true + type: string + limit: + nullable: true + type: integer + next_cursor: + nullable: true + type: string + extra: + additionalProperties: true + title: Extra + type: object + title: MetaBody + PermissionCreate: + example: + action: action + properties: + action: + title: Action + type: string + required: + - action + title: PermissionCreate + PermissionOut: + example: + action: action + id: 0 + properties: + id: + title: Id + type: integer + action: + title: Action + type: string + required: + - action + - id + title: PermissionOut + PermissionUpdate: + example: + action: action + properties: + action: + title: Action + type: string + required: + - action + title: PermissionUpdate + PlaygroundEvaluateRequest: + example: + input: + resource: + key: "" + context: + key: "" + action: "" + user: + key: "" + policies: + - policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + - policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + properties: + policies: + items: + $ref: "#/components/schemas/PlaygroundPolicy" + title: Policies + type: array + input: + $ref: "#/components/schemas/PlaygroundInput" + required: + - input + - policies + title: PlaygroundEvaluateRequest + PlaygroundInput: + example: + resource: + key: "" + context: + key: "" + action: "" + user: + key: "" + properties: + user: + additionalProperties: true + title: User + type: object + resource: + additionalProperties: true + title: Resource + type: object + action: + default: "" + title: Action + type: string + context: + additionalProperties: true + title: Context + type: object + title: PlaygroundInput + PlaygroundPolicy: + example: + policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + properties: + action: + title: Action + type: string + effect: + default: allow + title: Effect + type: string + priority: + default: 100 + title: Priority + type: integer + policy_id: + nullable: true + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + title: PlaygroundPolicy + PolicyCreate: + example: + effect: allow + action: action + state: active + priority: 0 + conditions: + key: "" + properties: + action: + title: Action + type: string + effect: + default: allow + title: Effect + type: string + priority: + default: 100 + title: Priority + type: integer + state: + default: active + title: State + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + title: PolicyCreate + PolicyOut: + example: + effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + properties: + id: + title: Id + type: integer + action: + title: Action + type: string + effect: + title: Effect + type: string + priority: + title: Priority + type: integer + state: + default: active + title: State + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + - conditions + - effect + - id + - priority + title: PolicyOut + PolicySimulationInput: + example: + relationship_change: + key: "" + role_change: + key: "" + policy_change: policy_change + properties: + policy_change: + nullable: true + type: string + relationship_change: + additionalProperties: true + nullable: true + type: object + role_change: + additionalProperties: true + nullable: true + type: object + title: PolicySimulationInput + PolicySimulationRequest: + example: + request: + key: "" + simulate: + relationship_change: + key: "" + role_change: + key: "" + policy_change: policy_change + properties: + simulate: + $ref: "#/components/schemas/PolicySimulationInput" + request: + additionalProperties: true + title: Request + type: object + title: PolicySimulationRequest + PolicySimulationResponse: + example: + decision_before: + key: "" + decision_after: + key: "" + properties: + decision_before: + additionalProperties: true + title: Decision Before + type: object + decision_after: + additionalProperties: true + title: Decision After + type: object + required: + - decision_after + - decision_before + title: PolicySimulationResponse + RelationshipCreate: + example: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + object_id: object_id + relation: relation + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + relation: + title: Relation + type: string + object_type: + title: Object Type + type: string + object_id: + title: Object Id + type: string + required: + - object_id + - object_type + - relation + - subject_id + - subject_type + title: RelationshipCreate + RelationshipOut: + example: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + id: 0 + object_id: object_id + relation: relation + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + relation: + title: Relation + type: string + object_type: + title: Object Type + type: string + object_id: + title: Object Id + type: string + id: + title: Id + type: integer + required: + - id + - object_id + - object_type + - relation + - subject_id + - subject_type + title: RelationshipOut + RoleCreate: + example: + name: name + properties: + name: + title: Name + type: string + required: + - name + title: RoleCreate + RoleOut: + example: + name: name + id: 0 + properties: + id: + title: Id + type: integer + name: + title: Name + type: string + required: + - id + - name + title: RoleOut + RoleUpdate: + example: + name: name + properties: + name: + title: Name + type: string + required: + - name + title: RoleUpdate + SimulationResponse: + example: + reason: reason + explain_trace: + - key: "" + - key: "" + failed_conditions: + - failed_conditions + - failed_conditions + decision: decision + policy_id: policy_id + matched_policies: + - matched_policies + - matched_policies + revision: 0 + properties: + decision: + title: Decision + type: string + matched_policies: + items: + type: string + title: Matched Policies + type: array + reason: + nullable: true + type: string + policy_id: + nullable: true + type: string + explain_trace: + items: + additionalProperties: true + type: object + title: Explain Trace + type: array + failed_conditions: + items: + type: string + title: Failed Conditions + type: array + revision: + nullable: true + type: integer + required: + - decision + - matched_policies + title: SimulationResponse + SuccessResponse_ACLOut_: + example: + data: + subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/ACLOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[ACLOut]" + SuccessResponse_AccessDecisionResponse_: + example: + data: + reason: reason + explain_trace: + - key: "" + - key: "" + decision: decision + policy_id: policy_id + allowed: true + matched_policies: + - matched_policies + - matched_policies + revision: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AccessDecisionResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AccessDecisionResponse]" + SuccessResponse_AdminLoginResponse_: + example: + data: + access_token: access_token + role: admin + tenant_key: tenant_key + token_type: bearer + expires_in: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AdminLoginResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AdminLoginResponse]" + SuccessResponse_AuthModelOut_: + example: + data: + tenant_id: 6 + schema: schema + compiled: + key: "" + parsed: + key: "" + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AuthModelOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AuthModelOut]" + SuccessResponse_BatchAccessResponse_: + example: + data: + results: + - allowed: true + action: action + revision: 0 + - allowed: true + action: action + revision: 0 + revision: 6 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/BatchAccessResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[BatchAccessResponse]" + SuccessResponse_ImpactAnalysisResponse_: + example: + data: + gained_access: + - 0 + - 0 + lost_access: + - 6 + - 6 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/ImpactAnalysisResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[ImpactAnalysisResponse]" + SuccessResponse_PermissionOut_: + example: + data: + action: action + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PermissionOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PermissionOut]" + SuccessResponse_PolicyOut_: + example: + data: + effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PolicyOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PolicyOut]" + SuccessResponse_PolicySimulationResponse_: + example: + data: + decision_before: + key: "" + decision_after: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PolicySimulationResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PolicySimulationResponse]" + SuccessResponse_RelationshipOut_: + example: + data: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + id: 0 + object_id: object_id + relation: relation + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/RelationshipOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[RelationshipOut]" + SuccessResponse_SimulationResponse_: + example: + data: + reason: reason + explain_trace: + - key: "" + - key: "" + failed_conditions: + - failed_conditions + - failed_conditions + decision: decision + policy_id: policy_id + matched_policies: + - matched_policies + - matched_policies + revision: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/SimulationResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[SimulationResponse]" + SuccessResponse_dict_str__Any__: + example: + data: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: true + title: Data + type: object + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, Any]]" + SuccessResponse_dict_str__Union_int__str___: + example: + data: + key: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + $ref: "#/components/schemas/Data_value" + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, Union[int, str]]]" + SuccessResponse_dict_str__int__: + example: + data: + key: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + type: integer + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, int]]" + SuccessResponse_dict_str__object__: + example: + data: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: true + title: Data + type: object + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, object]]" + SuccessResponse_dict_str__str__: + example: + data: + key: data + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + type: string + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, str]]" + SuccessResponse_list_ACLOut__: + example: + data: + - subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + - subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/ACLOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[ACLOut]]" + SuccessResponse_list_AuditRecordOut__: + example: + data: + - reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + - reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/AuditRecordOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[AuditRecordOut]]" + SuccessResponse_list_PermissionOut__: + example: + data: + - action: action + id: 0 + - action: action + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/PermissionOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[PermissionOut]]" + SuccessResponse_list_PolicyOut__: + example: + data: + - effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + - effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/PolicyOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[PolicyOut]]" + SuccessResponse_list_RoleOut__: + example: + data: + - name: name + id: 0 + - name: name + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/RoleOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[RoleOut]]" + SuccessResponse_list_dict_str__str___: + example: + data: + - key: data + - key: data + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + additionalProperties: + type: string + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[dict[str, str]]]" + ValidationError: + example: + msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + properties: + loc: + items: + $ref: "#/components/schemas/Location_inner" + title: Location + type: array + msg: + title: Message + type: string + type: + title: Error Type + type: string + input: + title: Input + ctx: + title: Context + type: object + required: + - loc + - msg + - type + title: ValidationError + Data_value: + anyOf: + - type: integer + - type: string + Location_inner: + anyOf: + - type: string + - type: integer + securitySchemes: + HTTPBearer: + scheme: bearer + type: http + APIKeyHeader: + in: header + name: X-API-Key + type: apiKey diff --git a/sdks/go/api_access.go b/sdks/go/api_access.go new file mode 100644 index 0000000..13fc1a2 --- /dev/null +++ b/sdks/go/api_access.go @@ -0,0 +1,484 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type AccessAPI interface { + + /* + CheckAccessBatchCheckAccessBatchPost Check Access Batch + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCheckAccessBatchCheckAccessBatchPostRequest + */ + CheckAccessBatchCheckAccessBatchPost(ctx context.Context) ApiCheckAccessBatchCheckAccessBatchPostRequest + + // CheckAccessBatchCheckAccessBatchPostExecute executes the request + // @return SuccessResponseBatchAccessResponse + CheckAccessBatchCheckAccessBatchPostExecute(r ApiCheckAccessBatchCheckAccessBatchPostRequest) (*SuccessResponseBatchAccessResponse, *http.Response, error) + + /* + CheckAccessCheckAccessPost Check Access + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCheckAccessCheckAccessPostRequest + */ + CheckAccessCheckAccessPost(ctx context.Context) ApiCheckAccessCheckAccessPostRequest + + // CheckAccessCheckAccessPostExecute executes the request + // @return SuccessResponseAccessDecisionResponse + CheckAccessCheckAccessPostExecute(r ApiCheckAccessCheckAccessPostRequest) (*SuccessResponseAccessDecisionResponse, *http.Response, error) + + /* + SimulateSimulatePost Simulate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSimulateSimulatePostRequest + */ + SimulateSimulatePost(ctx context.Context) ApiSimulateSimulatePostRequest + + // SimulateSimulatePostExecute executes the request + // @return SuccessResponseSimulationResponse + SimulateSimulatePostExecute(r ApiSimulateSimulatePostRequest) (*SuccessResponseSimulationResponse, *http.Response, error) +} + +// AccessAPIService AccessAPI service +type AccessAPIService service + +type ApiCheckAccessBatchCheckAccessBatchPostRequest struct { + ctx context.Context + ApiService AccessAPI + batchAccessRequest *BatchAccessRequest + policySet *string +} + +func (r ApiCheckAccessBatchCheckAccessBatchPostRequest) BatchAccessRequest(batchAccessRequest BatchAccessRequest) ApiCheckAccessBatchCheckAccessBatchPostRequest { + r.batchAccessRequest = &batchAccessRequest + return r +} + +func (r ApiCheckAccessBatchCheckAccessBatchPostRequest) PolicySet(policySet string) ApiCheckAccessBatchCheckAccessBatchPostRequest { + r.policySet = &policySet + return r +} + +func (r ApiCheckAccessBatchCheckAccessBatchPostRequest) Execute() (*SuccessResponseBatchAccessResponse, *http.Response, error) { + return r.ApiService.CheckAccessBatchCheckAccessBatchPostExecute(r) +} + +/* +CheckAccessBatchCheckAccessBatchPost Check Access Batch + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCheckAccessBatchCheckAccessBatchPostRequest +*/ +func (a *AccessAPIService) CheckAccessBatchCheckAccessBatchPost(ctx context.Context) ApiCheckAccessBatchCheckAccessBatchPostRequest { + return ApiCheckAccessBatchCheckAccessBatchPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseBatchAccessResponse +func (a *AccessAPIService) CheckAccessBatchCheckAccessBatchPostExecute(r ApiCheckAccessBatchCheckAccessBatchPostRequest) (*SuccessResponseBatchAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseBatchAccessResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessAPIService.CheckAccessBatchCheckAccessBatchPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/check-access-batch" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.batchAccessRequest == nil { + return localVarReturnValue, nil, reportError("batchAccessRequest is required and must be specified") + } + + if r.policySet != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", r.policySet, "form", "") + } else { + var defaultValue string = "active" + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", defaultValue, "form", "") + r.policySet = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.batchAccessRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCheckAccessCheckAccessPostRequest struct { + ctx context.Context + ApiService AccessAPI + accessRequest *AccessRequest + policySet *string +} + +func (r ApiCheckAccessCheckAccessPostRequest) AccessRequest(accessRequest AccessRequest) ApiCheckAccessCheckAccessPostRequest { + r.accessRequest = &accessRequest + return r +} + +func (r ApiCheckAccessCheckAccessPostRequest) PolicySet(policySet string) ApiCheckAccessCheckAccessPostRequest { + r.policySet = &policySet + return r +} + +func (r ApiCheckAccessCheckAccessPostRequest) Execute() (*SuccessResponseAccessDecisionResponse, *http.Response, error) { + return r.ApiService.CheckAccessCheckAccessPostExecute(r) +} + +/* +CheckAccessCheckAccessPost Check Access + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCheckAccessCheckAccessPostRequest +*/ +func (a *AccessAPIService) CheckAccessCheckAccessPost(ctx context.Context) ApiCheckAccessCheckAccessPostRequest { + return ApiCheckAccessCheckAccessPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseAccessDecisionResponse +func (a *AccessAPIService) CheckAccessCheckAccessPostExecute(r ApiCheckAccessCheckAccessPostRequest) (*SuccessResponseAccessDecisionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseAccessDecisionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessAPIService.CheckAccessCheckAccessPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/check-access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.accessRequest == nil { + return localVarReturnValue, nil, reportError("accessRequest is required and must be specified") + } + + if r.policySet != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", r.policySet, "form", "") + } else { + var defaultValue string = "active" + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", defaultValue, "form", "") + r.policySet = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accessRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSimulateSimulatePostRequest struct { + ctx context.Context + ApiService AccessAPI + accessRequest *AccessRequest +} + +func (r ApiSimulateSimulatePostRequest) AccessRequest(accessRequest AccessRequest) ApiSimulateSimulatePostRequest { + r.accessRequest = &accessRequest + return r +} + +func (r ApiSimulateSimulatePostRequest) Execute() (*SuccessResponseSimulationResponse, *http.Response, error) { + return r.ApiService.SimulateSimulatePostExecute(r) +} + +/* +SimulateSimulatePost Simulate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSimulateSimulatePostRequest +*/ +func (a *AccessAPIService) SimulateSimulatePost(ctx context.Context) ApiSimulateSimulatePostRequest { + return ApiSimulateSimulatePostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseSimulationResponse +func (a *AccessAPIService) SimulateSimulatePostExecute(r ApiSimulateSimulatePostRequest) (*SuccessResponseSimulationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseSimulationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessAPIService.SimulateSimulatePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/simulate" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.accessRequest == nil { + return localVarReturnValue, nil, reportError("accessRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accessRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdks/go/api_auth.go b/sdks/go/api_auth.go new file mode 100644 index 0000000..478dd70 --- /dev/null +++ b/sdks/go/api_auth.go @@ -0,0 +1,286 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type AuthAPI interface { + + /* + AdminLoginAdminLoginPost Admin Login + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminLoginAdminLoginPostRequest + */ + AdminLoginAdminLoginPost(ctx context.Context) ApiAdminLoginAdminLoginPostRequest + + // AdminLoginAdminLoginPostExecute executes the request + // @return SuccessResponseAdminLoginResponse + AdminLoginAdminLoginPostExecute(r ApiAdminLoginAdminLoginPostRequest) (*SuccessResponseAdminLoginResponse, *http.Response, error) + + /* + AdminLoginAdminLoginPost_0 Admin Login + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminLoginAdminLoginPost_0Request + */ + AdminLoginAdminLoginPost_1(ctx context.Context) ApiAdminLoginAdminLoginPost_0Request + + // AdminLoginAdminLoginPost_1Execute executes the request + // @return SuccessResponseAdminLoginResponse + AdminLoginAdminLoginPost_1Execute(r ApiAdminLoginAdminLoginPost_0Request) (*SuccessResponseAdminLoginResponse, *http.Response, error) +} + +// AuthAPIService AuthAPI service +type AuthAPIService service + +type ApiAdminLoginAdminLoginPostRequest struct { + ctx context.Context + ApiService AuthAPI + adminLoginRequest *AdminLoginRequest +} + +func (r ApiAdminLoginAdminLoginPostRequest) AdminLoginRequest(adminLoginRequest AdminLoginRequest) ApiAdminLoginAdminLoginPostRequest { + r.adminLoginRequest = &adminLoginRequest + return r +} + +func (r ApiAdminLoginAdminLoginPostRequest) Execute() (*SuccessResponseAdminLoginResponse, *http.Response, error) { + return r.ApiService.AdminLoginAdminLoginPostExecute(r) +} + +/* +AdminLoginAdminLoginPost Admin Login + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminLoginAdminLoginPostRequest +*/ +func (a *AuthAPIService) AdminLoginAdminLoginPost(ctx context.Context) ApiAdminLoginAdminLoginPostRequest { + return ApiAdminLoginAdminLoginPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseAdminLoginResponse +func (a *AuthAPIService) AdminLoginAdminLoginPostExecute(r ApiAdminLoginAdminLoginPostRequest) (*SuccessResponseAdminLoginResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseAdminLoginResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AdminLoginAdminLoginPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/login" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.adminLoginRequest == nil { + return localVarReturnValue, nil, reportError("adminLoginRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.adminLoginRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminLoginAdminLoginPost_0Request struct { + ctx context.Context + ApiService AuthAPI + adminLoginRequest *AdminLoginRequest +} + +func (r ApiAdminLoginAdminLoginPost_0Request) AdminLoginRequest(adminLoginRequest AdminLoginRequest) ApiAdminLoginAdminLoginPost_0Request { + r.adminLoginRequest = &adminLoginRequest + return r +} + +func (r ApiAdminLoginAdminLoginPost_0Request) Execute() (*SuccessResponseAdminLoginResponse, *http.Response, error) { + return r.ApiService.AdminLoginAdminLoginPost_1Execute(r) +} + +/* +AdminLoginAdminLoginPost_0 Admin Login + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminLoginAdminLoginPost_0Request +*/ +func (a *AuthAPIService) AdminLoginAdminLoginPost_1(ctx context.Context) ApiAdminLoginAdminLoginPost_0Request { + return ApiAdminLoginAdminLoginPost_0Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseAdminLoginResponse +func (a *AuthAPIService) AdminLoginAdminLoginPost_1Execute(r ApiAdminLoginAdminLoginPost_0Request) (*SuccessResponseAdminLoginResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseAdminLoginResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AdminLoginAdminLoginPost_1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/login" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.adminLoginRequest == nil { + return localVarReturnValue, nil, reportError("adminLoginRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.adminLoginRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdks/go/api_dev.go b/sdks/go/api_dev.go new file mode 100644 index 0000000..1069cdf --- /dev/null +++ b/sdks/go/api_dev.go @@ -0,0 +1,268 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type DevAPI interface { + + /* + GetSampleDataDevSampleDataGet Get Sample Data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSampleDataDevSampleDataGetRequest + */ + GetSampleDataDevSampleDataGet(ctx context.Context) ApiGetSampleDataDevSampleDataGetRequest + + // GetSampleDataDevSampleDataGetExecute executes the request + // @return SuccessResponseDictStrObject + GetSampleDataDevSampleDataGetExecute(r ApiGetSampleDataDevSampleDataGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) + + /* + SeedSampleDataDevSampleDataSeedPost Seed Sample Data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSeedSampleDataDevSampleDataSeedPostRequest + */ + SeedSampleDataDevSampleDataSeedPost(ctx context.Context) ApiSeedSampleDataDevSampleDataSeedPostRequest + + // SeedSampleDataDevSampleDataSeedPostExecute executes the request + // @return SuccessResponseDictStrObject + SeedSampleDataDevSampleDataSeedPostExecute(r ApiSeedSampleDataDevSampleDataSeedPostRequest) (*SuccessResponseDictStrObject, *http.Response, error) +} + +// DevAPIService DevAPI service +type DevAPIService service + +type ApiGetSampleDataDevSampleDataGetRequest struct { + ctx context.Context + ApiService DevAPI +} + +func (r ApiGetSampleDataDevSampleDataGetRequest) Execute() (*SuccessResponseDictStrObject, *http.Response, error) { + return r.ApiService.GetSampleDataDevSampleDataGetExecute(r) +} + +/* +GetSampleDataDevSampleDataGet Get Sample Data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSampleDataDevSampleDataGetRequest +*/ +func (a *DevAPIService) GetSampleDataDevSampleDataGet(ctx context.Context) ApiGetSampleDataDevSampleDataGetRequest { + return ApiGetSampleDataDevSampleDataGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrObject +func (a *DevAPIService) GetSampleDataDevSampleDataGetExecute(r ApiGetSampleDataDevSampleDataGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrObject + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DevAPIService.GetSampleDataDevSampleDataGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/dev/sample-data" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSeedSampleDataDevSampleDataSeedPostRequest struct { + ctx context.Context + ApiService DevAPI + reset *bool +} + +// Clear the sample dataset before reseeding it. +func (r ApiSeedSampleDataDevSampleDataSeedPostRequest) Reset(reset bool) ApiSeedSampleDataDevSampleDataSeedPostRequest { + r.reset = &reset + return r +} + +func (r ApiSeedSampleDataDevSampleDataSeedPostRequest) Execute() (*SuccessResponseDictStrObject, *http.Response, error) { + return r.ApiService.SeedSampleDataDevSampleDataSeedPostExecute(r) +} + +/* +SeedSampleDataDevSampleDataSeedPost Seed Sample Data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSeedSampleDataDevSampleDataSeedPostRequest +*/ +func (a *DevAPIService) SeedSampleDataDevSampleDataSeedPost(ctx context.Context) ApiSeedSampleDataDevSampleDataSeedPostRequest { + return ApiSeedSampleDataDevSampleDataSeedPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrObject +func (a *DevAPIService) SeedSampleDataDevSampleDataSeedPostExecute(r ApiSeedSampleDataDevSampleDataSeedPostRequest) (*SuccessResponseDictStrObject, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrObject + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DevAPIService.SeedSampleDataDevSampleDataSeedPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/dev/sample-data/seed" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.reset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "reset", r.reset, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "reset", defaultValue, "form", "") + r.reset = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdks/go/api_health.go b/sdks/go/api_health.go new file mode 100644 index 0000000..12859aa --- /dev/null +++ b/sdks/go/api_health.go @@ -0,0 +1,353 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type HealthAPI interface { + + /* + HealthHealthGet Health + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHealthHealthGetRequest + */ + HealthHealthGet(ctx context.Context) ApiHealthHealthGetRequest + + // HealthHealthGetExecute executes the request + // @return SuccessResponseDictStrStr + HealthHealthGetExecute(r ApiHealthHealthGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) + + /* + LivenessHealthLiveGet Liveness + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLivenessHealthLiveGetRequest + */ + LivenessHealthLiveGet(ctx context.Context) ApiLivenessHealthLiveGetRequest + + // LivenessHealthLiveGetExecute executes the request + // @return SuccessResponseDictStrStr + LivenessHealthLiveGetExecute(r ApiLivenessHealthLiveGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) + + /* + ReadinessHealthReadyGet Readiness + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiReadinessHealthReadyGetRequest + */ + ReadinessHealthReadyGet(ctx context.Context) ApiReadinessHealthReadyGetRequest + + // ReadinessHealthReadyGetExecute executes the request + // @return SuccessResponseDictStrObject + ReadinessHealthReadyGetExecute(r ApiReadinessHealthReadyGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) +} + +// HealthAPIService HealthAPI service +type HealthAPIService service + +type ApiHealthHealthGetRequest struct { + ctx context.Context + ApiService HealthAPI +} + +func (r ApiHealthHealthGetRequest) Execute() (*SuccessResponseDictStrStr, *http.Response, error) { + return r.ApiService.HealthHealthGetExecute(r) +} + +/* +HealthHealthGet Health + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHealthHealthGetRequest +*/ +func (a *HealthAPIService) HealthHealthGet(ctx context.Context) ApiHealthHealthGetRequest { + return ApiHealthHealthGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrStr +func (a *HealthAPIService) HealthHealthGetExecute(r ApiHealthHealthGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrStr + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.HealthHealthGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/health" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLivenessHealthLiveGetRequest struct { + ctx context.Context + ApiService HealthAPI +} + +func (r ApiLivenessHealthLiveGetRequest) Execute() (*SuccessResponseDictStrStr, *http.Response, error) { + return r.ApiService.LivenessHealthLiveGetExecute(r) +} + +/* +LivenessHealthLiveGet Liveness + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLivenessHealthLiveGetRequest +*/ +func (a *HealthAPIService) LivenessHealthLiveGet(ctx context.Context) ApiLivenessHealthLiveGetRequest { + return ApiLivenessHealthLiveGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrStr +func (a *HealthAPIService) LivenessHealthLiveGetExecute(r ApiLivenessHealthLiveGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrStr + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.LivenessHealthLiveGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/health/live" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadinessHealthReadyGetRequest struct { + ctx context.Context + ApiService HealthAPI +} + +func (r ApiReadinessHealthReadyGetRequest) Execute() (*SuccessResponseDictStrObject, *http.Response, error) { + return r.ApiService.ReadinessHealthReadyGetExecute(r) +} + +/* +ReadinessHealthReadyGet Readiness + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiReadinessHealthReadyGetRequest +*/ +func (a *HealthAPIService) ReadinessHealthReadyGet(ctx context.Context) ApiReadinessHealthReadyGetRequest { + return ApiReadinessHealthReadyGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrObject +func (a *HealthAPIService) ReadinessHealthReadyGetExecute(r ApiReadinessHealthReadyGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrObject + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.ReadinessHealthReadyGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/health/ready" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdks/go/api_management.go b/sdks/go/api_management.go new file mode 100644 index 0000000..0129ee2 --- /dev/null +++ b/sdks/go/api_management.go @@ -0,0 +1,4133 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "time" +) + + +type ManagementAPI interface { + + /* + AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost Add Permission To Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @param permissionId + @return ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest + */ + AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(ctx context.Context, roleId int32, permissionId int32) ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest + + // AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute executes the request + // @return SuccessResponsePermissionOut + AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute(r ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest) (*SuccessResponsePermissionOut, *http.Response, error) + + /* + CreateAclEntryAclPost Create Acl Entry + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAclEntryAclPostRequest + */ + CreateAclEntryAclPost(ctx context.Context) ApiCreateAclEntryAclPostRequest + + // CreateAclEntryAclPostExecute executes the request + // @return SuccessResponseACLOut + CreateAclEntryAclPostExecute(r ApiCreateAclEntryAclPostRequest) (*SuccessResponseACLOut, *http.Response, error) + + /* + CreateAuthModelAuthModelPost Create Auth Model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthModelAuthModelPostRequest + */ + CreateAuthModelAuthModelPost(ctx context.Context) ApiCreateAuthModelAuthModelPostRequest + + // CreateAuthModelAuthModelPostExecute executes the request + // @return SuccessResponseAuthModelOut + CreateAuthModelAuthModelPostExecute(r ApiCreateAuthModelAuthModelPostRequest) (*SuccessResponseAuthModelOut, *http.Response, error) + + /* + CreatePermissionPermissionsPost Create Permission + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePermissionPermissionsPostRequest + */ + CreatePermissionPermissionsPost(ctx context.Context) ApiCreatePermissionPermissionsPostRequest + + // CreatePermissionPermissionsPostExecute executes the request + // @return PermissionOut + CreatePermissionPermissionsPostExecute(r ApiCreatePermissionPermissionsPostRequest) (*PermissionOut, *http.Response, error) + + /* + CreatePolicyFromDslPoliciesDslPost Create Policy From Dsl + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePolicyFromDslPoliciesDslPostRequest + */ + CreatePolicyFromDslPoliciesDslPost(ctx context.Context) ApiCreatePolicyFromDslPoliciesDslPostRequest + + // CreatePolicyFromDslPoliciesDslPostExecute executes the request + // @return SuccessResponsePolicyOut + CreatePolicyFromDslPoliciesDslPostExecute(r ApiCreatePolicyFromDslPoliciesDslPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) + + /* + CreatePolicyPoliciesPost Create Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePolicyPoliciesPostRequest + */ + CreatePolicyPoliciesPost(ctx context.Context) ApiCreatePolicyPoliciesPostRequest + + // CreatePolicyPoliciesPostExecute executes the request + // @return SuccessResponsePolicyOut + CreatePolicyPoliciesPostExecute(r ApiCreatePolicyPoliciesPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) + + /* + CreateRelationshipRelationshipsPost Create Relationship + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRelationshipRelationshipsPostRequest + */ + CreateRelationshipRelationshipsPost(ctx context.Context) ApiCreateRelationshipRelationshipsPostRequest + + // CreateRelationshipRelationshipsPostExecute executes the request + // @return SuccessResponseRelationshipOut + CreateRelationshipRelationshipsPostExecute(r ApiCreateRelationshipRelationshipsPostRequest) (*SuccessResponseRelationshipOut, *http.Response, error) + + /* + CreateRoleRolesPost Create Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRoleRolesPostRequest + */ + CreateRoleRolesPost(ctx context.Context) ApiCreateRoleRolesPostRequest + + // CreateRoleRolesPostExecute executes the request + // @return RoleOut + CreateRoleRolesPostExecute(r ApiCreateRoleRolesPostRequest) (*RoleOut, *http.Response, error) + + /* + DeleteAclEntryAclAclIdDelete Delete Acl Entry + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclId + @return ApiDeleteAclEntryAclAclIdDeleteRequest + */ + DeleteAclEntryAclAclIdDelete(ctx context.Context, aclId int32) ApiDeleteAclEntryAclAclIdDeleteRequest + + // DeleteAclEntryAclAclIdDeleteExecute executes the request + // @return SuccessResponseDictStrInt + DeleteAclEntryAclAclIdDeleteExecute(r ApiDeleteAclEntryAclAclIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) + + /* + DeletePermissionPermissionsPermissionIdDelete Delete Permission + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param permissionId + @return ApiDeletePermissionPermissionsPermissionIdDeleteRequest + */ + DeletePermissionPermissionsPermissionIdDelete(ctx context.Context, permissionId int32) ApiDeletePermissionPermissionsPermissionIdDeleteRequest + + // DeletePermissionPermissionsPermissionIdDeleteExecute executes the request + // @return SuccessResponseDictStrInt + DeletePermissionPermissionsPermissionIdDeleteExecute(r ApiDeletePermissionPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) + + /* + DeletePolicyPoliciesPolicyKeyDelete Delete Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param policyKey + @return ApiDeletePolicyPoliciesPolicyKeyDeleteRequest + */ + DeletePolicyPoliciesPolicyKeyDelete(ctx context.Context, policyKey string) ApiDeletePolicyPoliciesPolicyKeyDeleteRequest + + // DeletePolicyPoliciesPolicyKeyDeleteExecute executes the request + // @return SuccessResponseDictStrStr + DeletePolicyPoliciesPolicyKeyDeleteExecute(r ApiDeletePolicyPoliciesPolicyKeyDeleteRequest) (*SuccessResponseDictStrStr, *http.Response, error) + + /* + DeleteRoleRolesRoleIdDelete Delete Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @return ApiDeleteRoleRolesRoleIdDeleteRequest + */ + DeleteRoleRolesRoleIdDelete(ctx context.Context, roleId int32) ApiDeleteRoleRolesRoleIdDeleteRequest + + // DeleteRoleRolesRoleIdDeleteExecute executes the request + // @return SuccessResponseDictStrInt + DeleteRoleRolesRoleIdDeleteExecute(r ApiDeleteRoleRolesRoleIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) + + /* + GetAuthModelAuthModelGet Get Auth Model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuthModelAuthModelGetRequest + */ + GetAuthModelAuthModelGet(ctx context.Context) ApiGetAuthModelAuthModelGetRequest + + // GetAuthModelAuthModelGetExecute executes the request + // @return SuccessResponseAuthModelOut + GetAuthModelAuthModelGetExecute(r ApiGetAuthModelAuthModelGetRequest) (*SuccessResponseAuthModelOut, *http.Response, error) + + /* + ImpactAnalysisImpactAnalysisPost Impact Analysis + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiImpactAnalysisImpactAnalysisPostRequest + */ + ImpactAnalysisImpactAnalysisPost(ctx context.Context) ApiImpactAnalysisImpactAnalysisPostRequest + + // ImpactAnalysisImpactAnalysisPostExecute executes the request + // @return SuccessResponseImpactAnalysisResponse + ImpactAnalysisImpactAnalysisPostExecute(r ApiImpactAnalysisImpactAnalysisPostRequest) (*SuccessResponseImpactAnalysisResponse, *http.Response, error) + + /* + ListAclEntriesAclResourceTypeResourceIdGet List Acl Entries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param resourceType + @param resourceId + @return ApiListAclEntriesAclResourceTypeResourceIdGetRequest + */ + ListAclEntriesAclResourceTypeResourceIdGet(ctx context.Context, resourceType string, resourceId string) ApiListAclEntriesAclResourceTypeResourceIdGetRequest + + // ListAclEntriesAclResourceTypeResourceIdGetExecute executes the request + // @return SuccessResponseListACLOut + ListAclEntriesAclResourceTypeResourceIdGetExecute(r ApiListAclEntriesAclResourceTypeResourceIdGetRequest) (*SuccessResponseListACLOut, *http.Response, error) + + /* + ListAuditLogsAuditGet List Audit Logs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListAuditLogsAuditGetRequest + */ + ListAuditLogsAuditGet(ctx context.Context) ApiListAuditLogsAuditGetRequest + + // ListAuditLogsAuditGetExecute executes the request + // @return SuccessResponseListAuditRecordOut + ListAuditLogsAuditGetExecute(r ApiListAuditLogsAuditGetRequest) (*SuccessResponseListAuditRecordOut, *http.Response, error) + + /* + ListPermissionRolesPermissionsPermissionIdRolesGet List Permission Roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param permissionId + @return ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest + */ + ListPermissionRolesPermissionsPermissionIdRolesGet(ctx context.Context, permissionId int32) ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest + + // ListPermissionRolesPermissionsPermissionIdRolesGetExecute executes the request + // @return SuccessResponseListRoleOut + ListPermissionRolesPermissionsPermissionIdRolesGetExecute(r ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) + + /* + ListPermissionsPermissionsGet List Permissions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListPermissionsPermissionsGetRequest + */ + ListPermissionsPermissionsGet(ctx context.Context) ApiListPermissionsPermissionsGetRequest + + // ListPermissionsPermissionsGetExecute executes the request + // @return SuccessResponseListPermissionOut + ListPermissionsPermissionsGetExecute(r ApiListPermissionsPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) + + /* + ListPoliciesPoliciesGet List Policies + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListPoliciesPoliciesGetRequest + */ + ListPoliciesPoliciesGet(ctx context.Context) ApiListPoliciesPoliciesGetRequest + + // ListPoliciesPoliciesGetExecute executes the request + // @return SuccessResponseListPolicyOut + ListPoliciesPoliciesGetExecute(r ApiListPoliciesPoliciesGetRequest) (*SuccessResponseListPolicyOut, *http.Response, error) + + /* + ListRelationshipsRelationshipsGet List Relationships + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRelationshipsRelationshipsGetRequest + */ + ListRelationshipsRelationshipsGet(ctx context.Context) ApiListRelationshipsRelationshipsGetRequest + + // ListRelationshipsRelationshipsGetExecute executes the request + // @return SuccessResponseListDictStrStr + ListRelationshipsRelationshipsGetExecute(r ApiListRelationshipsRelationshipsGetRequest) (*SuccessResponseListDictStrStr, *http.Response, error) + + /* + ListRolePermissionsRolesRoleIdPermissionsGet List Role Permissions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @return ApiListRolePermissionsRolesRoleIdPermissionsGetRequest + */ + ListRolePermissionsRolesRoleIdPermissionsGet(ctx context.Context, roleId int32) ApiListRolePermissionsRolesRoleIdPermissionsGetRequest + + // ListRolePermissionsRolesRoleIdPermissionsGetExecute executes the request + // @return SuccessResponseListPermissionOut + ListRolePermissionsRolesRoleIdPermissionsGetExecute(r ApiListRolePermissionsRolesRoleIdPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) + + /* + ListRolesRolesGet List Roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRolesRolesGetRequest + */ + ListRolesRolesGet(ctx context.Context) ApiListRolesRolesGetRequest + + // ListRolesRolesGetExecute executes the request + // @return SuccessResponseListRoleOut + ListRolesRolesGetExecute(r ApiListRolesRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) + + /* + RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete Remove Permission From Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @param permissionId + @return ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest + */ + RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(ctx context.Context, roleId int32, permissionId int32) ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest + + // RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute executes the request + // @return SuccessResponseDictStrInt + RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute(r ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) + + /* + RollbackPolicyPoliciesPolicyKeyRollbackVersionPost Rollback Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param policyKey + @param version + @return ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest + */ + RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(ctx context.Context, policyKey string, version int32) ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest + + // RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute executes the request + // @return SuccessResponseDictStrUnionIntStr + RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute(r ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest) (*SuccessResponseDictStrUnionIntStr, *http.Response, error) + + /* + SimulatePolicySimulatePolicyPost Simulate Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSimulatePolicySimulatePolicyPostRequest + */ + SimulatePolicySimulatePolicyPost(ctx context.Context) ApiSimulatePolicySimulatePolicyPostRequest + + // SimulatePolicySimulatePolicyPostExecute executes the request + // @return SuccessResponsePolicySimulationResponse + SimulatePolicySimulatePolicyPostExecute(r ApiSimulatePolicySimulatePolicyPostRequest) (*SuccessResponsePolicySimulationResponse, *http.Response, error) + + /* + UpdatePermissionPermissionsPermissionIdPut Update Permission + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param permissionId + @return ApiUpdatePermissionPermissionsPermissionIdPutRequest + */ + UpdatePermissionPermissionsPermissionIdPut(ctx context.Context, permissionId int32) ApiUpdatePermissionPermissionsPermissionIdPutRequest + + // UpdatePermissionPermissionsPermissionIdPutExecute executes the request + // @return PermissionOut + UpdatePermissionPermissionsPermissionIdPutExecute(r ApiUpdatePermissionPermissionsPermissionIdPutRequest) (*PermissionOut, *http.Response, error) + + /* + UpdatePolicyPoliciesPolicyKeyPut Update Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param policyKey + @return ApiUpdatePolicyPoliciesPolicyKeyPutRequest + */ + UpdatePolicyPoliciesPolicyKeyPut(ctx context.Context, policyKey string) ApiUpdatePolicyPoliciesPolicyKeyPutRequest + + // UpdatePolicyPoliciesPolicyKeyPutExecute executes the request + // @return SuccessResponsePolicyOut + UpdatePolicyPoliciesPolicyKeyPutExecute(r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) (*SuccessResponsePolicyOut, *http.Response, error) + + /* + UpdateRoleRolesRoleIdPut Update Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @return ApiUpdateRoleRolesRoleIdPutRequest + */ + UpdateRoleRolesRoleIdPut(ctx context.Context, roleId int32) ApiUpdateRoleRolesRoleIdPutRequest + + // UpdateRoleRolesRoleIdPutExecute executes the request + // @return RoleOut + UpdateRoleRolesRoleIdPutExecute(r ApiUpdateRoleRolesRoleIdPutRequest) (*RoleOut, *http.Response, error) +} + +// ManagementAPIService ManagementAPI service +type ManagementAPIService service + +type ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest struct { + ctx context.Context + ApiService ManagementAPI + roleId int32 + permissionId int32 +} + +func (r ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest) Execute() (*SuccessResponsePermissionOut, *http.Response, error) { + return r.ApiService.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute(r) +} + +/* +AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost Add Permission To Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @param permissionId + @return ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest +*/ +func (a *ManagementAPIService) AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(ctx context.Context, roleId int32, permissionId int32) ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest { + return ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + permissionId: permissionId, + } +} + +// Execute executes the request +// @return SuccessResponsePermissionOut +func (a *ManagementAPIService) AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute(r ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest) (*SuccessResponsePermissionOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponsePermissionOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}/permissions/{permission_id}" + localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAclEntryAclPostRequest struct { + ctx context.Context + ApiService ManagementAPI + aCLCreate *ACLCreate +} + +func (r ApiCreateAclEntryAclPostRequest) ACLCreate(aCLCreate ACLCreate) ApiCreateAclEntryAclPostRequest { + r.aCLCreate = &aCLCreate + return r +} + +func (r ApiCreateAclEntryAclPostRequest) Execute() (*SuccessResponseACLOut, *http.Response, error) { + return r.ApiService.CreateAclEntryAclPostExecute(r) +} + +/* +CreateAclEntryAclPost Create Acl Entry + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAclEntryAclPostRequest +*/ +func (a *ManagementAPIService) CreateAclEntryAclPost(ctx context.Context) ApiCreateAclEntryAclPostRequest { + return ApiCreateAclEntryAclPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseACLOut +func (a *ManagementAPIService) CreateAclEntryAclPostExecute(r ApiCreateAclEntryAclPostRequest) (*SuccessResponseACLOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseACLOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateAclEntryAclPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/acl" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aCLCreate == nil { + return localVarReturnValue, nil, reportError("aCLCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aCLCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthModelAuthModelPostRequest struct { + ctx context.Context + ApiService ManagementAPI + authModelCreate *AuthModelCreate +} + +func (r ApiCreateAuthModelAuthModelPostRequest) AuthModelCreate(authModelCreate AuthModelCreate) ApiCreateAuthModelAuthModelPostRequest { + r.authModelCreate = &authModelCreate + return r +} + +func (r ApiCreateAuthModelAuthModelPostRequest) Execute() (*SuccessResponseAuthModelOut, *http.Response, error) { + return r.ApiService.CreateAuthModelAuthModelPostExecute(r) +} + +/* +CreateAuthModelAuthModelPost Create Auth Model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthModelAuthModelPostRequest +*/ +func (a *ManagementAPIService) CreateAuthModelAuthModelPost(ctx context.Context) ApiCreateAuthModelAuthModelPostRequest { + return ApiCreateAuthModelAuthModelPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseAuthModelOut +func (a *ManagementAPIService) CreateAuthModelAuthModelPostExecute(r ApiCreateAuthModelAuthModelPostRequest) (*SuccessResponseAuthModelOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseAuthModelOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateAuthModelAuthModelPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth-model" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authModelCreate == nil { + return localVarReturnValue, nil, reportError("authModelCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authModelCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreatePermissionPermissionsPostRequest struct { + ctx context.Context + ApiService ManagementAPI + permissionCreate *PermissionCreate +} + +func (r ApiCreatePermissionPermissionsPostRequest) PermissionCreate(permissionCreate PermissionCreate) ApiCreatePermissionPermissionsPostRequest { + r.permissionCreate = &permissionCreate + return r +} + +func (r ApiCreatePermissionPermissionsPostRequest) Execute() (*PermissionOut, *http.Response, error) { + return r.ApiService.CreatePermissionPermissionsPostExecute(r) +} + +/* +CreatePermissionPermissionsPost Create Permission + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePermissionPermissionsPostRequest +*/ +func (a *ManagementAPIService) CreatePermissionPermissionsPost(ctx context.Context) ApiCreatePermissionPermissionsPostRequest { + return ApiCreatePermissionPermissionsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PermissionOut +func (a *ManagementAPIService) CreatePermissionPermissionsPostExecute(r ApiCreatePermissionPermissionsPostRequest) (*PermissionOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PermissionOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreatePermissionPermissionsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/permissions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.permissionCreate == nil { + return localVarReturnValue, nil, reportError("permissionCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.permissionCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreatePolicyFromDslPoliciesDslPostRequest struct { + ctx context.Context + ApiService ManagementAPI + dsl *string +} + +func (r ApiCreatePolicyFromDslPoliciesDslPostRequest) Dsl(dsl string) ApiCreatePolicyFromDslPoliciesDslPostRequest { + r.dsl = &dsl + return r +} + +func (r ApiCreatePolicyFromDslPoliciesDslPostRequest) Execute() (*SuccessResponsePolicyOut, *http.Response, error) { + return r.ApiService.CreatePolicyFromDslPoliciesDslPostExecute(r) +} + +/* +CreatePolicyFromDslPoliciesDslPost Create Policy From Dsl + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePolicyFromDslPoliciesDslPostRequest +*/ +func (a *ManagementAPIService) CreatePolicyFromDslPoliciesDslPost(ctx context.Context) ApiCreatePolicyFromDslPoliciesDslPostRequest { + return ApiCreatePolicyFromDslPoliciesDslPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponsePolicyOut +func (a *ManagementAPIService) CreatePolicyFromDslPoliciesDslPostExecute(r ApiCreatePolicyFromDslPoliciesDslPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponsePolicyOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreatePolicyFromDslPoliciesDslPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/policies/dsl" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.dsl == nil { + return localVarReturnValue, nil, reportError("dsl is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "dsl", r.dsl, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreatePolicyPoliciesPostRequest struct { + ctx context.Context + ApiService ManagementAPI + policyCreate *PolicyCreate +} + +func (r ApiCreatePolicyPoliciesPostRequest) PolicyCreate(policyCreate PolicyCreate) ApiCreatePolicyPoliciesPostRequest { + r.policyCreate = &policyCreate + return r +} + +func (r ApiCreatePolicyPoliciesPostRequest) Execute() (*SuccessResponsePolicyOut, *http.Response, error) { + return r.ApiService.CreatePolicyPoliciesPostExecute(r) +} + +/* +CreatePolicyPoliciesPost Create Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePolicyPoliciesPostRequest +*/ +func (a *ManagementAPIService) CreatePolicyPoliciesPost(ctx context.Context) ApiCreatePolicyPoliciesPostRequest { + return ApiCreatePolicyPoliciesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponsePolicyOut +func (a *ManagementAPIService) CreatePolicyPoliciesPostExecute(r ApiCreatePolicyPoliciesPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponsePolicyOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreatePolicyPoliciesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/policies" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.policyCreate == nil { + return localVarReturnValue, nil, reportError("policyCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.policyCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateRelationshipRelationshipsPostRequest struct { + ctx context.Context + ApiService ManagementAPI + relationshipCreate *RelationshipCreate +} + +func (r ApiCreateRelationshipRelationshipsPostRequest) RelationshipCreate(relationshipCreate RelationshipCreate) ApiCreateRelationshipRelationshipsPostRequest { + r.relationshipCreate = &relationshipCreate + return r +} + +func (r ApiCreateRelationshipRelationshipsPostRequest) Execute() (*SuccessResponseRelationshipOut, *http.Response, error) { + return r.ApiService.CreateRelationshipRelationshipsPostExecute(r) +} + +/* +CreateRelationshipRelationshipsPost Create Relationship + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRelationshipRelationshipsPostRequest +*/ +func (a *ManagementAPIService) CreateRelationshipRelationshipsPost(ctx context.Context) ApiCreateRelationshipRelationshipsPostRequest { + return ApiCreateRelationshipRelationshipsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseRelationshipOut +func (a *ManagementAPIService) CreateRelationshipRelationshipsPostExecute(r ApiCreateRelationshipRelationshipsPostRequest) (*SuccessResponseRelationshipOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseRelationshipOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateRelationshipRelationshipsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/relationships" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.relationshipCreate == nil { + return localVarReturnValue, nil, reportError("relationshipCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.relationshipCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateRoleRolesPostRequest struct { + ctx context.Context + ApiService ManagementAPI + roleCreate *RoleCreate +} + +func (r ApiCreateRoleRolesPostRequest) RoleCreate(roleCreate RoleCreate) ApiCreateRoleRolesPostRequest { + r.roleCreate = &roleCreate + return r +} + +func (r ApiCreateRoleRolesPostRequest) Execute() (*RoleOut, *http.Response, error) { + return r.ApiService.CreateRoleRolesPostExecute(r) +} + +/* +CreateRoleRolesPost Create Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRoleRolesPostRequest +*/ +func (a *ManagementAPIService) CreateRoleRolesPost(ctx context.Context) ApiCreateRoleRolesPostRequest { + return ApiCreateRoleRolesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RoleOut +func (a *ManagementAPIService) CreateRoleRolesPostExecute(r ApiCreateRoleRolesPostRequest) (*RoleOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateRoleRolesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.roleCreate == nil { + return localVarReturnValue, nil, reportError("roleCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteAclEntryAclAclIdDeleteRequest struct { + ctx context.Context + ApiService ManagementAPI + aclId int32 +} + +func (r ApiDeleteAclEntryAclAclIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { + return r.ApiService.DeleteAclEntryAclAclIdDeleteExecute(r) +} + +/* +DeleteAclEntryAclAclIdDelete Delete Acl Entry + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclId + @return ApiDeleteAclEntryAclAclIdDeleteRequest +*/ +func (a *ManagementAPIService) DeleteAclEntryAclAclIdDelete(ctx context.Context, aclId int32) ApiDeleteAclEntryAclAclIdDeleteRequest { + return ApiDeleteAclEntryAclAclIdDeleteRequest{ + ApiService: a, + ctx: ctx, + aclId: aclId, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrInt +func (a *ManagementAPIService) DeleteAclEntryAclAclIdDeleteExecute(r ApiDeleteAclEntryAclAclIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrInt + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeleteAclEntryAclAclIdDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/acl/{acl_id}" + localVarPath = strings.Replace(localVarPath, "{"+"acl_id"+"}", url.PathEscape(parameterValueToString(r.aclId, "aclId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeletePermissionPermissionsPermissionIdDeleteRequest struct { + ctx context.Context + ApiService ManagementAPI + permissionId int32 +} + +func (r ApiDeletePermissionPermissionsPermissionIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { + return r.ApiService.DeletePermissionPermissionsPermissionIdDeleteExecute(r) +} + +/* +DeletePermissionPermissionsPermissionIdDelete Delete Permission + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param permissionId + @return ApiDeletePermissionPermissionsPermissionIdDeleteRequest +*/ +func (a *ManagementAPIService) DeletePermissionPermissionsPermissionIdDelete(ctx context.Context, permissionId int32) ApiDeletePermissionPermissionsPermissionIdDeleteRequest { + return ApiDeletePermissionPermissionsPermissionIdDeleteRequest{ + ApiService: a, + ctx: ctx, + permissionId: permissionId, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrInt +func (a *ManagementAPIService) DeletePermissionPermissionsPermissionIdDeleteExecute(r ApiDeletePermissionPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrInt + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeletePermissionPermissionsPermissionIdDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/permissions/{permission_id}" + localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeletePolicyPoliciesPolicyKeyDeleteRequest struct { + ctx context.Context + ApiService ManagementAPI + policyKey string +} + +func (r ApiDeletePolicyPoliciesPolicyKeyDeleteRequest) Execute() (*SuccessResponseDictStrStr, *http.Response, error) { + return r.ApiService.DeletePolicyPoliciesPolicyKeyDeleteExecute(r) +} + +/* +DeletePolicyPoliciesPolicyKeyDelete Delete Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param policyKey + @return ApiDeletePolicyPoliciesPolicyKeyDeleteRequest +*/ +func (a *ManagementAPIService) DeletePolicyPoliciesPolicyKeyDelete(ctx context.Context, policyKey string) ApiDeletePolicyPoliciesPolicyKeyDeleteRequest { + return ApiDeletePolicyPoliciesPolicyKeyDeleteRequest{ + ApiService: a, + ctx: ctx, + policyKey: policyKey, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrStr +func (a *ManagementAPIService) DeletePolicyPoliciesPolicyKeyDeleteExecute(r ApiDeletePolicyPoliciesPolicyKeyDeleteRequest) (*SuccessResponseDictStrStr, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrStr + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeletePolicyPoliciesPolicyKeyDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/policies/{policy_key}" + localVarPath = strings.Replace(localVarPath, "{"+"policy_key"+"}", url.PathEscape(parameterValueToString(r.policyKey, "policyKey")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteRoleRolesRoleIdDeleteRequest struct { + ctx context.Context + ApiService ManagementAPI + roleId int32 +} + +func (r ApiDeleteRoleRolesRoleIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { + return r.ApiService.DeleteRoleRolesRoleIdDeleteExecute(r) +} + +/* +DeleteRoleRolesRoleIdDelete Delete Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @return ApiDeleteRoleRolesRoleIdDeleteRequest +*/ +func (a *ManagementAPIService) DeleteRoleRolesRoleIdDelete(ctx context.Context, roleId int32) ApiDeleteRoleRolesRoleIdDeleteRequest { + return ApiDeleteRoleRolesRoleIdDeleteRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrInt +func (a *ManagementAPIService) DeleteRoleRolesRoleIdDeleteExecute(r ApiDeleteRoleRolesRoleIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrInt + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeleteRoleRolesRoleIdDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}" + localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetAuthModelAuthModelGetRequest struct { + ctx context.Context + ApiService ManagementAPI +} + +func (r ApiGetAuthModelAuthModelGetRequest) Execute() (*SuccessResponseAuthModelOut, *http.Response, error) { + return r.ApiService.GetAuthModelAuthModelGetExecute(r) +} + +/* +GetAuthModelAuthModelGet Get Auth Model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuthModelAuthModelGetRequest +*/ +func (a *ManagementAPIService) GetAuthModelAuthModelGet(ctx context.Context) ApiGetAuthModelAuthModelGetRequest { + return ApiGetAuthModelAuthModelGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseAuthModelOut +func (a *ManagementAPIService) GetAuthModelAuthModelGetExecute(r ApiGetAuthModelAuthModelGetRequest) (*SuccessResponseAuthModelOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseAuthModelOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.GetAuthModelAuthModelGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth-model" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiImpactAnalysisImpactAnalysisPostRequest struct { + ctx context.Context + ApiService ManagementAPI + impactAnalysisRequest *ImpactAnalysisRequest +} + +func (r ApiImpactAnalysisImpactAnalysisPostRequest) ImpactAnalysisRequest(impactAnalysisRequest ImpactAnalysisRequest) ApiImpactAnalysisImpactAnalysisPostRequest { + r.impactAnalysisRequest = &impactAnalysisRequest + return r +} + +func (r ApiImpactAnalysisImpactAnalysisPostRequest) Execute() (*SuccessResponseImpactAnalysisResponse, *http.Response, error) { + return r.ApiService.ImpactAnalysisImpactAnalysisPostExecute(r) +} + +/* +ImpactAnalysisImpactAnalysisPost Impact Analysis + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiImpactAnalysisImpactAnalysisPostRequest +*/ +func (a *ManagementAPIService) ImpactAnalysisImpactAnalysisPost(ctx context.Context) ApiImpactAnalysisImpactAnalysisPostRequest { + return ApiImpactAnalysisImpactAnalysisPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseImpactAnalysisResponse +func (a *ManagementAPIService) ImpactAnalysisImpactAnalysisPostExecute(r ApiImpactAnalysisImpactAnalysisPostRequest) (*SuccessResponseImpactAnalysisResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseImpactAnalysisResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ImpactAnalysisImpactAnalysisPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/impact-analysis" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.impactAnalysisRequest == nil { + return localVarReturnValue, nil, reportError("impactAnalysisRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.impactAnalysisRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListAclEntriesAclResourceTypeResourceIdGetRequest struct { + ctx context.Context + ApiService ManagementAPI + resourceType string + resourceId string +} + +func (r ApiListAclEntriesAclResourceTypeResourceIdGetRequest) Execute() (*SuccessResponseListACLOut, *http.Response, error) { + return r.ApiService.ListAclEntriesAclResourceTypeResourceIdGetExecute(r) +} + +/* +ListAclEntriesAclResourceTypeResourceIdGet List Acl Entries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param resourceType + @param resourceId + @return ApiListAclEntriesAclResourceTypeResourceIdGetRequest +*/ +func (a *ManagementAPIService) ListAclEntriesAclResourceTypeResourceIdGet(ctx context.Context, resourceType string, resourceId string) ApiListAclEntriesAclResourceTypeResourceIdGetRequest { + return ApiListAclEntriesAclResourceTypeResourceIdGetRequest{ + ApiService: a, + ctx: ctx, + resourceType: resourceType, + resourceId: resourceId, + } +} + +// Execute executes the request +// @return SuccessResponseListACLOut +func (a *ManagementAPIService) ListAclEntriesAclResourceTypeResourceIdGetExecute(r ApiListAclEntriesAclResourceTypeResourceIdGetRequest) (*SuccessResponseListACLOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListACLOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListAclEntriesAclResourceTypeResourceIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/acl/{resource_type}/{resource_id}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", url.PathEscape(parameterValueToString(r.resourceType, "resourceType")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"resource_id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListAuditLogsAuditGetRequest struct { + ctx context.Context + ApiService ManagementAPI + limit *int32 + cursor *string + userId *string + resourceId *string + decision *string + startTime *time.Time + endTime *time.Time +} + +func (r ApiListAuditLogsAuditGetRequest) Limit(limit int32) ApiListAuditLogsAuditGetRequest { + r.limit = &limit + return r +} + +func (r ApiListAuditLogsAuditGetRequest) Cursor(cursor string) ApiListAuditLogsAuditGetRequest { + r.cursor = &cursor + return r +} + +func (r ApiListAuditLogsAuditGetRequest) UserId(userId string) ApiListAuditLogsAuditGetRequest { + r.userId = &userId + return r +} + +func (r ApiListAuditLogsAuditGetRequest) ResourceId(resourceId string) ApiListAuditLogsAuditGetRequest { + r.resourceId = &resourceId + return r +} + +func (r ApiListAuditLogsAuditGetRequest) Decision(decision string) ApiListAuditLogsAuditGetRequest { + r.decision = &decision + return r +} + +func (r ApiListAuditLogsAuditGetRequest) StartTime(startTime time.Time) ApiListAuditLogsAuditGetRequest { + r.startTime = &startTime + return r +} + +func (r ApiListAuditLogsAuditGetRequest) EndTime(endTime time.Time) ApiListAuditLogsAuditGetRequest { + r.endTime = &endTime + return r +} + +func (r ApiListAuditLogsAuditGetRequest) Execute() (*SuccessResponseListAuditRecordOut, *http.Response, error) { + return r.ApiService.ListAuditLogsAuditGetExecute(r) +} + +/* +ListAuditLogsAuditGet List Audit Logs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListAuditLogsAuditGetRequest +*/ +func (a *ManagementAPIService) ListAuditLogsAuditGet(ctx context.Context) ApiListAuditLogsAuditGetRequest { + return ApiListAuditLogsAuditGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseListAuditRecordOut +func (a *ManagementAPIService) ListAuditLogsAuditGetExecute(r ApiListAuditLogsAuditGetRequest) (*SuccessResponseListAuditRecordOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListAuditRecordOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListAuditLogsAuditGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/audit" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", r.userId, "form", "") + } + if r.resourceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "resource_id", r.resourceId, "form", "") + } + if r.decision != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "decision", r.decision, "form", "") + } + if r.startTime != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "start_time", r.startTime, "form", "") + } + if r.endTime != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "end_time", r.endTime, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest struct { + ctx context.Context + ApiService ManagementAPI + permissionId int32 +} + +func (r ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest) Execute() (*SuccessResponseListRoleOut, *http.Response, error) { + return r.ApiService.ListPermissionRolesPermissionsPermissionIdRolesGetExecute(r) +} + +/* +ListPermissionRolesPermissionsPermissionIdRolesGet List Permission Roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param permissionId + @return ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest +*/ +func (a *ManagementAPIService) ListPermissionRolesPermissionsPermissionIdRolesGet(ctx context.Context, permissionId int32) ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest { + return ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest{ + ApiService: a, + ctx: ctx, + permissionId: permissionId, + } +} + +// Execute executes the request +// @return SuccessResponseListRoleOut +func (a *ManagementAPIService) ListPermissionRolesPermissionsPermissionIdRolesGetExecute(r ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListRoleOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListPermissionRolesPermissionsPermissionIdRolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/permissions/{permission_id}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListPermissionsPermissionsGetRequest struct { + ctx context.Context + ApiService ManagementAPI + limit *int32 + cursor *string +} + +func (r ApiListPermissionsPermissionsGetRequest) Limit(limit int32) ApiListPermissionsPermissionsGetRequest { + r.limit = &limit + return r +} + +func (r ApiListPermissionsPermissionsGetRequest) Cursor(cursor string) ApiListPermissionsPermissionsGetRequest { + r.cursor = &cursor + return r +} + +func (r ApiListPermissionsPermissionsGetRequest) Execute() (*SuccessResponseListPermissionOut, *http.Response, error) { + return r.ApiService.ListPermissionsPermissionsGetExecute(r) +} + +/* +ListPermissionsPermissionsGet List Permissions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListPermissionsPermissionsGetRequest +*/ +func (a *ManagementAPIService) ListPermissionsPermissionsGet(ctx context.Context) ApiListPermissionsPermissionsGetRequest { + return ApiListPermissionsPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseListPermissionOut +func (a *ManagementAPIService) ListPermissionsPermissionsGetExecute(r ApiListPermissionsPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListPermissionOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListPermissionsPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/permissions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListPoliciesPoliciesGetRequest struct { + ctx context.Context + ApiService ManagementAPI + limit *int32 + cursor *string +} + +func (r ApiListPoliciesPoliciesGetRequest) Limit(limit int32) ApiListPoliciesPoliciesGetRequest { + r.limit = &limit + return r +} + +func (r ApiListPoliciesPoliciesGetRequest) Cursor(cursor string) ApiListPoliciesPoliciesGetRequest { + r.cursor = &cursor + return r +} + +func (r ApiListPoliciesPoliciesGetRequest) Execute() (*SuccessResponseListPolicyOut, *http.Response, error) { + return r.ApiService.ListPoliciesPoliciesGetExecute(r) +} + +/* +ListPoliciesPoliciesGet List Policies + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListPoliciesPoliciesGetRequest +*/ +func (a *ManagementAPIService) ListPoliciesPoliciesGet(ctx context.Context) ApiListPoliciesPoliciesGetRequest { + return ApiListPoliciesPoliciesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseListPolicyOut +func (a *ManagementAPIService) ListPoliciesPoliciesGetExecute(r ApiListPoliciesPoliciesGetRequest) (*SuccessResponseListPolicyOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListPolicyOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListPoliciesPoliciesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/policies" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListRelationshipsRelationshipsGetRequest struct { + ctx context.Context + ApiService ManagementAPI + subjectType *string + subjectId *string + limit *int32 + cursor *string +} + +func (r ApiListRelationshipsRelationshipsGetRequest) SubjectType(subjectType string) ApiListRelationshipsRelationshipsGetRequest { + r.subjectType = &subjectType + return r +} + +func (r ApiListRelationshipsRelationshipsGetRequest) SubjectId(subjectId string) ApiListRelationshipsRelationshipsGetRequest { + r.subjectId = &subjectId + return r +} + +func (r ApiListRelationshipsRelationshipsGetRequest) Limit(limit int32) ApiListRelationshipsRelationshipsGetRequest { + r.limit = &limit + return r +} + +func (r ApiListRelationshipsRelationshipsGetRequest) Cursor(cursor string) ApiListRelationshipsRelationshipsGetRequest { + r.cursor = &cursor + return r +} + +func (r ApiListRelationshipsRelationshipsGetRequest) Execute() (*SuccessResponseListDictStrStr, *http.Response, error) { + return r.ApiService.ListRelationshipsRelationshipsGetExecute(r) +} + +/* +ListRelationshipsRelationshipsGet List Relationships + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRelationshipsRelationshipsGetRequest +*/ +func (a *ManagementAPIService) ListRelationshipsRelationshipsGet(ctx context.Context) ApiListRelationshipsRelationshipsGetRequest { + return ApiListRelationshipsRelationshipsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseListDictStrStr +func (a *ManagementAPIService) ListRelationshipsRelationshipsGetExecute(r ApiListRelationshipsRelationshipsGetRequest) (*SuccessResponseListDictStrStr, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListDictStrStr + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListRelationshipsRelationshipsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/relationships" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.subjectType == nil { + return localVarReturnValue, nil, reportError("subjectType is required and must be specified") + } + if r.subjectId == nil { + return localVarReturnValue, nil, reportError("subjectId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "subject_type", r.subjectType, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "subject_id", r.subjectId, "form", "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListRolePermissionsRolesRoleIdPermissionsGetRequest struct { + ctx context.Context + ApiService ManagementAPI + roleId int32 +} + +func (r ApiListRolePermissionsRolesRoleIdPermissionsGetRequest) Execute() (*SuccessResponseListPermissionOut, *http.Response, error) { + return r.ApiService.ListRolePermissionsRolesRoleIdPermissionsGetExecute(r) +} + +/* +ListRolePermissionsRolesRoleIdPermissionsGet List Role Permissions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @return ApiListRolePermissionsRolesRoleIdPermissionsGetRequest +*/ +func (a *ManagementAPIService) ListRolePermissionsRolesRoleIdPermissionsGet(ctx context.Context, roleId int32) ApiListRolePermissionsRolesRoleIdPermissionsGetRequest { + return ApiListRolePermissionsRolesRoleIdPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +// @return SuccessResponseListPermissionOut +func (a *ManagementAPIService) ListRolePermissionsRolesRoleIdPermissionsGetExecute(r ApiListRolePermissionsRolesRoleIdPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListPermissionOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListRolePermissionsRolesRoleIdPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListRolesRolesGetRequest struct { + ctx context.Context + ApiService ManagementAPI + limit *int32 + cursor *string +} + +func (r ApiListRolesRolesGetRequest) Limit(limit int32) ApiListRolesRolesGetRequest { + r.limit = &limit + return r +} + +func (r ApiListRolesRolesGetRequest) Cursor(cursor string) ApiListRolesRolesGetRequest { + r.cursor = &cursor + return r +} + +func (r ApiListRolesRolesGetRequest) Execute() (*SuccessResponseListRoleOut, *http.Response, error) { + return r.ApiService.ListRolesRolesGetExecute(r) +} + +/* +ListRolesRolesGet List Roles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRolesRolesGetRequest +*/ +func (a *ManagementAPIService) ListRolesRolesGet(ctx context.Context) ApiListRolesRolesGetRequest { + return ApiListRolesRolesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseListRoleOut +func (a *ManagementAPIService) ListRolesRolesGetExecute(r ApiListRolesRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseListRoleOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListRolesRolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest struct { + ctx context.Context + ApiService ManagementAPI + roleId int32 + permissionId int32 +} + +func (r ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { + return r.ApiService.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute(r) +} + +/* +RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete Remove Permission From Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @param permissionId + @return ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest +*/ +func (a *ManagementAPIService) RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(ctx context.Context, roleId int32, permissionId int32) ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest { + return ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + permissionId: permissionId, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrInt +func (a *ManagementAPIService) RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute(r ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrInt + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}/permissions/{permission_id}" + localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest struct { + ctx context.Context + ApiService ManagementAPI + policyKey string + version int32 +} + +func (r ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest) Execute() (*SuccessResponseDictStrUnionIntStr, *http.Response, error) { + return r.ApiService.RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute(r) +} + +/* +RollbackPolicyPoliciesPolicyKeyRollbackVersionPost Rollback Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param policyKey + @param version + @return ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest +*/ +func (a *ManagementAPIService) RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(ctx context.Context, policyKey string, version int32) ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest { + return ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest{ + ApiService: a, + ctx: ctx, + policyKey: policyKey, + version: version, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrUnionIntStr +func (a *ManagementAPIService) RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute(r ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest) (*SuccessResponseDictStrUnionIntStr, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrUnionIntStr + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/policies/{policy_key}/rollback/{version}" + localVarPath = strings.Replace(localVarPath, "{"+"policy_key"+"}", url.PathEscape(parameterValueToString(r.policyKey, "policyKey")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterValueToString(r.version, "version")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSimulatePolicySimulatePolicyPostRequest struct { + ctx context.Context + ApiService ManagementAPI + policySimulationRequest *PolicySimulationRequest +} + +func (r ApiSimulatePolicySimulatePolicyPostRequest) PolicySimulationRequest(policySimulationRequest PolicySimulationRequest) ApiSimulatePolicySimulatePolicyPostRequest { + r.policySimulationRequest = &policySimulationRequest + return r +} + +func (r ApiSimulatePolicySimulatePolicyPostRequest) Execute() (*SuccessResponsePolicySimulationResponse, *http.Response, error) { + return r.ApiService.SimulatePolicySimulatePolicyPostExecute(r) +} + +/* +SimulatePolicySimulatePolicyPost Simulate Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSimulatePolicySimulatePolicyPostRequest +*/ +func (a *ManagementAPIService) SimulatePolicySimulatePolicyPost(ctx context.Context) ApiSimulatePolicySimulatePolicyPostRequest { + return ApiSimulatePolicySimulatePolicyPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponsePolicySimulationResponse +func (a *ManagementAPIService) SimulatePolicySimulatePolicyPostExecute(r ApiSimulatePolicySimulatePolicyPostRequest) (*SuccessResponsePolicySimulationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponsePolicySimulationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.SimulatePolicySimulatePolicyPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/simulate-policy" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.policySimulationRequest == nil { + return localVarReturnValue, nil, reportError("policySimulationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.policySimulationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdatePermissionPermissionsPermissionIdPutRequest struct { + ctx context.Context + ApiService ManagementAPI + permissionId int32 + permissionUpdate *PermissionUpdate +} + +func (r ApiUpdatePermissionPermissionsPermissionIdPutRequest) PermissionUpdate(permissionUpdate PermissionUpdate) ApiUpdatePermissionPermissionsPermissionIdPutRequest { + r.permissionUpdate = &permissionUpdate + return r +} + +func (r ApiUpdatePermissionPermissionsPermissionIdPutRequest) Execute() (*PermissionOut, *http.Response, error) { + return r.ApiService.UpdatePermissionPermissionsPermissionIdPutExecute(r) +} + +/* +UpdatePermissionPermissionsPermissionIdPut Update Permission + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param permissionId + @return ApiUpdatePermissionPermissionsPermissionIdPutRequest +*/ +func (a *ManagementAPIService) UpdatePermissionPermissionsPermissionIdPut(ctx context.Context, permissionId int32) ApiUpdatePermissionPermissionsPermissionIdPutRequest { + return ApiUpdatePermissionPermissionsPermissionIdPutRequest{ + ApiService: a, + ctx: ctx, + permissionId: permissionId, + } +} + +// Execute executes the request +// @return PermissionOut +func (a *ManagementAPIService) UpdatePermissionPermissionsPermissionIdPutExecute(r ApiUpdatePermissionPermissionsPermissionIdPutRequest) (*PermissionOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PermissionOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.UpdatePermissionPermissionsPermissionIdPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/permissions/{permission_id}" + localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.permissionUpdate == nil { + return localVarReturnValue, nil, reportError("permissionUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.permissionUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdatePolicyPoliciesPolicyKeyPutRequest struct { + ctx context.Context + ApiService ManagementAPI + policyKey string + policyCreate *PolicyCreate +} + +func (r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) PolicyCreate(policyCreate PolicyCreate) ApiUpdatePolicyPoliciesPolicyKeyPutRequest { + r.policyCreate = &policyCreate + return r +} + +func (r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) Execute() (*SuccessResponsePolicyOut, *http.Response, error) { + return r.ApiService.UpdatePolicyPoliciesPolicyKeyPutExecute(r) +} + +/* +UpdatePolicyPoliciesPolicyKeyPut Update Policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param policyKey + @return ApiUpdatePolicyPoliciesPolicyKeyPutRequest +*/ +func (a *ManagementAPIService) UpdatePolicyPoliciesPolicyKeyPut(ctx context.Context, policyKey string) ApiUpdatePolicyPoliciesPolicyKeyPutRequest { + return ApiUpdatePolicyPoliciesPolicyKeyPutRequest{ + ApiService: a, + ctx: ctx, + policyKey: policyKey, + } +} + +// Execute executes the request +// @return SuccessResponsePolicyOut +func (a *ManagementAPIService) UpdatePolicyPoliciesPolicyKeyPutExecute(r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) (*SuccessResponsePolicyOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponsePolicyOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.UpdatePolicyPoliciesPolicyKeyPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/policies/{policy_key}" + localVarPath = strings.Replace(localVarPath, "{"+"policy_key"+"}", url.PathEscape(parameterValueToString(r.policyKey, "policyKey")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.policyCreate == nil { + return localVarReturnValue, nil, reportError("policyCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.policyCreate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateRoleRolesRoleIdPutRequest struct { + ctx context.Context + ApiService ManagementAPI + roleId int32 + roleUpdate *RoleUpdate +} + +func (r ApiUpdateRoleRolesRoleIdPutRequest) RoleUpdate(roleUpdate RoleUpdate) ApiUpdateRoleRolesRoleIdPutRequest { + r.roleUpdate = &roleUpdate + return r +} + +func (r ApiUpdateRoleRolesRoleIdPutRequest) Execute() (*RoleOut, *http.Response, error) { + return r.ApiService.UpdateRoleRolesRoleIdPutExecute(r) +} + +/* +UpdateRoleRolesRoleIdPut Update Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId + @return ApiUpdateRoleRolesRoleIdPutRequest +*/ +func (a *ManagementAPIService) UpdateRoleRolesRoleIdPut(ctx context.Context, roleId int32) ApiUpdateRoleRolesRoleIdPutRequest { + return ApiUpdateRoleRolesRoleIdPutRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +// @return RoleOut +func (a *ManagementAPIService) UpdateRoleRolesRoleIdPutExecute(r ApiUpdateRoleRolesRoleIdPutRequest) (*RoleOut, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleOut + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.UpdateRoleRolesRoleIdPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}" + localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.roleUpdate == nil { + return localVarReturnValue, nil, reportError("roleUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleUpdate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdks/go/api_playground.go b/sdks/go/api_playground.go new file mode 100644 index 0000000..033ae14 --- /dev/null +++ b/sdks/go/api_playground.go @@ -0,0 +1,170 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type PlaygroundAPI interface { + + /* + EvaluatePlaygroundEvaluatePost Evaluate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEvaluatePlaygroundEvaluatePostRequest + */ + EvaluatePlaygroundEvaluatePost(ctx context.Context) ApiEvaluatePlaygroundEvaluatePostRequest + + // EvaluatePlaygroundEvaluatePostExecute executes the request + // @return SuccessResponseDictStrAny + EvaluatePlaygroundEvaluatePostExecute(r ApiEvaluatePlaygroundEvaluatePostRequest) (*SuccessResponseDictStrAny, *http.Response, error) +} + +// PlaygroundAPIService PlaygroundAPI service +type PlaygroundAPIService service + +type ApiEvaluatePlaygroundEvaluatePostRequest struct { + ctx context.Context + ApiService PlaygroundAPI + playgroundEvaluateRequest *PlaygroundEvaluateRequest +} + +func (r ApiEvaluatePlaygroundEvaluatePostRequest) PlaygroundEvaluateRequest(playgroundEvaluateRequest PlaygroundEvaluateRequest) ApiEvaluatePlaygroundEvaluatePostRequest { + r.playgroundEvaluateRequest = &playgroundEvaluateRequest + return r +} + +func (r ApiEvaluatePlaygroundEvaluatePostRequest) Execute() (*SuccessResponseDictStrAny, *http.Response, error) { + return r.ApiService.EvaluatePlaygroundEvaluatePostExecute(r) +} + +/* +EvaluatePlaygroundEvaluatePost Evaluate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEvaluatePlaygroundEvaluatePostRequest +*/ +func (a *PlaygroundAPIService) EvaluatePlaygroundEvaluatePost(ctx context.Context) ApiEvaluatePlaygroundEvaluatePostRequest { + return ApiEvaluatePlaygroundEvaluatePostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SuccessResponseDictStrAny +func (a *PlaygroundAPIService) EvaluatePlaygroundEvaluatePostExecute(r ApiEvaluatePlaygroundEvaluatePostRequest) (*SuccessResponseDictStrAny, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SuccessResponseDictStrAny + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PlaygroundAPIService.EvaluatePlaygroundEvaluatePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/playground/evaluate" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.playgroundEvaluateRequest == nil { + return localVarReturnValue, nil, reportError("playgroundEvaluateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.playgroundEvaluateRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["APIKeyHeader"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v HTTPValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdks/go/client.go b/sdks/go/client.go new file mode 100644 index 0000000..a9c6adb --- /dev/null +++ b/sdks/go/client.go @@ -0,0 +1,673 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the KeyNetra API v0.1.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AccessAPI AccessAPI + + AuthAPI AuthAPI + + DevAPI DevAPI + + HealthAPI HealthAPI + + ManagementAPI ManagementAPI + + PlaygroundAPI PlaygroundAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AccessAPI = (*AccessAPIService)(&c.common) + c.AuthAPI = (*AuthAPIService)(&c.common) + c.DevAPI = (*DevAPIService)(&c.common) + c.HealthAPI = (*HealthAPIService)(&c.common) + c.ManagementAPI = (*ManagementAPIService)(&c.common) + c.PlaygroundAPI = (*PlaygroundAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/sdks/go/configuration.go b/sdks/go/configuration.go new file mode 100644 index 0000000..9821565 --- /dev/null +++ b/sdks/go/configuration.go @@ -0,0 +1,221 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/0.1.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/sdks/go/docs/ACLCreate.md b/sdks/go/docs/ACLCreate.md new file mode 100644 index 0000000..ee9d2ad --- /dev/null +++ b/sdks/go/docs/ACLCreate.md @@ -0,0 +1,156 @@ +# ACLCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**ResourceType** | **string** | | +**ResourceId** | **string** | | +**Action** | **string** | | +**Effect** | **string** | | + +## Methods + +### NewACLCreate + +`func NewACLCreate(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string, ) *ACLCreate` + +NewACLCreate instantiates a new ACLCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewACLCreateWithDefaults + +`func NewACLCreateWithDefaults() *ACLCreate` + +NewACLCreateWithDefaults instantiates a new ACLCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectType + +`func (o *ACLCreate) GetSubjectType() string` + +GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. + +### GetSubjectTypeOk + +`func (o *ACLCreate) GetSubjectTypeOk() (*string, bool)` + +GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectType + +`func (o *ACLCreate) SetSubjectType(v string)` + +SetSubjectType sets SubjectType field to given value. + + +### GetSubjectId + +`func (o *ACLCreate) GetSubjectId() string` + +GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. + +### GetSubjectIdOk + +`func (o *ACLCreate) GetSubjectIdOk() (*string, bool)` + +GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectId + +`func (o *ACLCreate) SetSubjectId(v string)` + +SetSubjectId sets SubjectId field to given value. + + +### GetResourceType + +`func (o *ACLCreate) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ACLCreate) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ACLCreate) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + + +### GetResourceId + +`func (o *ACLCreate) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ACLCreate) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ACLCreate) SetResourceId(v string)` + +SetResourceId sets ResourceId field to given value. + + +### GetAction + +`func (o *ACLCreate) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ACLCreate) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ACLCreate) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetEffect + +`func (o *ACLCreate) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *ACLCreate) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *ACLCreate) SetEffect(v string)` + +SetEffect sets Effect field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/ACLOut.md b/sdks/go/docs/ACLOut.md new file mode 100644 index 0000000..edf16f1 --- /dev/null +++ b/sdks/go/docs/ACLOut.md @@ -0,0 +1,234 @@ +# ACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**ResourceType** | **string** | | +**ResourceId** | **string** | | +**Action** | **string** | | +**Effect** | **string** | | +**Id** | **int32** | | +**TenantId** | **int32** | | +**CreatedAt** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewACLOut + +`func NewACLOut(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string, id int32, tenantId int32, ) *ACLOut` + +NewACLOut instantiates a new ACLOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewACLOutWithDefaults + +`func NewACLOutWithDefaults() *ACLOut` + +NewACLOutWithDefaults instantiates a new ACLOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectType + +`func (o *ACLOut) GetSubjectType() string` + +GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. + +### GetSubjectTypeOk + +`func (o *ACLOut) GetSubjectTypeOk() (*string, bool)` + +GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectType + +`func (o *ACLOut) SetSubjectType(v string)` + +SetSubjectType sets SubjectType field to given value. + + +### GetSubjectId + +`func (o *ACLOut) GetSubjectId() string` + +GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. + +### GetSubjectIdOk + +`func (o *ACLOut) GetSubjectIdOk() (*string, bool)` + +GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectId + +`func (o *ACLOut) SetSubjectId(v string)` + +SetSubjectId sets SubjectId field to given value. + + +### GetResourceType + +`func (o *ACLOut) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ACLOut) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ACLOut) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + + +### GetResourceId + +`func (o *ACLOut) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ACLOut) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ACLOut) SetResourceId(v string)` + +SetResourceId sets ResourceId field to given value. + + +### GetAction + +`func (o *ACLOut) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ACLOut) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ACLOut) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetEffect + +`func (o *ACLOut) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *ACLOut) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *ACLOut) SetEffect(v string)` + +SetEffect sets Effect field to given value. + + +### GetId + +`func (o *ACLOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ACLOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ACLOut) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetTenantId + +`func (o *ACLOut) GetTenantId() int32` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *ACLOut) GetTenantIdOk() (*int32, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *ACLOut) SetTenantId(v int32)` + +SetTenantId sets TenantId field to given value. + + +### GetCreatedAt + +`func (o *ACLOut) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ACLOut) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ACLOut) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ACLOut) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *ACLOut) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *ACLOut) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AccessAPI.md b/sdks/go/docs/AccessAPI.md new file mode 100644 index 0000000..a6308ac --- /dev/null +++ b/sdks/go/docs/AccessAPI.md @@ -0,0 +1,207 @@ +# \AccessAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CheckAccessBatchCheckAccessBatchPost**](AccessAPI.md#CheckAccessBatchCheckAccessBatchPost) | **Post** /check-access-batch | Check Access Batch +[**CheckAccessCheckAccessPost**](AccessAPI.md#CheckAccessCheckAccessPost) | **Post** /check-access | Check Access +[**SimulateSimulatePost**](AccessAPI.md#SimulateSimulatePost) | **Post** /simulate | Simulate + + + +## CheckAccessBatchCheckAccessBatchPost + +> SuccessResponseBatchAccessResponse CheckAccessBatchCheckAccessBatchPost(ctx).BatchAccessRequest(batchAccessRequest).PolicySet(policySet).Execute() + +Check Access Batch + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + batchAccessRequest := *openapiclient.NewBatchAccessRequest([]openapiclient.BatchAccessItem{*openapiclient.NewBatchAccessItem("Action_example")}) // BatchAccessRequest | + policySet := "policySet_example" // string | (optional) (default to "active") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessAPI.CheckAccessBatchCheckAccessBatchPost(context.Background()).BatchAccessRequest(batchAccessRequest).PolicySet(policySet).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessAPI.CheckAccessBatchCheckAccessBatchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CheckAccessBatchCheckAccessBatchPost`: SuccessResponseBatchAccessResponse + fmt.Fprintf(os.Stdout, "Response from `AccessAPI.CheckAccessBatchCheckAccessBatchPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCheckAccessBatchCheckAccessBatchPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md) | | + **policySet** | **string** | | [default to "active"] + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CheckAccessCheckAccessPost + +> SuccessResponseAccessDecisionResponse CheckAccessCheckAccessPost(ctx).AccessRequest(accessRequest).PolicySet(policySet).Execute() + +Check Access + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + accessRequest := *openapiclient.NewAccessRequest("Action_example") // AccessRequest | + policySet := "policySet_example" // string | (optional) (default to "active") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessAPI.CheckAccessCheckAccessPost(context.Background()).AccessRequest(accessRequest).PolicySet(policySet).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessAPI.CheckAccessCheckAccessPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CheckAccessCheckAccessPost`: SuccessResponseAccessDecisionResponse + fmt.Fprintf(os.Stdout, "Response from `AccessAPI.CheckAccessCheckAccessPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCheckAccessCheckAccessPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessRequest** | [**AccessRequest**](AccessRequest.md) | | + **policySet** | **string** | | [default to "active"] + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SimulateSimulatePost + +> SuccessResponseSimulationResponse SimulateSimulatePost(ctx).AccessRequest(accessRequest).Execute() + +Simulate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + accessRequest := *openapiclient.NewAccessRequest("Action_example") // AccessRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessAPI.SimulateSimulatePost(context.Background()).AccessRequest(accessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessAPI.SimulateSimulatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SimulateSimulatePost`: SuccessResponseSimulationResponse + fmt.Fprintf(os.Stdout, "Response from `AccessAPI.SimulateSimulatePost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSimulateSimulatePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessRequest** | [**AccessRequest**](AccessRequest.md) | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdks/go/docs/AccessDecisionResponse.md b/sdks/go/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..4f237bc --- /dev/null +++ b/sdks/go/docs/AccessDecisionResponse.md @@ -0,0 +1,232 @@ +# AccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Allowed** | **bool** | | +**Decision** | **string** | | +**MatchedPolicies** | Pointer to **[]string** | | [optional] +**Reason** | Pointer to **NullableString** | | [optional] +**PolicyId** | Pointer to **NullableString** | | [optional] +**ExplainTrace** | Pointer to **[]map[string]interface{}** | | [optional] +**Revision** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewAccessDecisionResponse + +`func NewAccessDecisionResponse(allowed bool, decision string, ) *AccessDecisionResponse` + +NewAccessDecisionResponse instantiates a new AccessDecisionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessDecisionResponseWithDefaults + +`func NewAccessDecisionResponseWithDefaults() *AccessDecisionResponse` + +NewAccessDecisionResponseWithDefaults instantiates a new AccessDecisionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowed + +`func (o *AccessDecisionResponse) GetAllowed() bool` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *AccessDecisionResponse) GetAllowedOk() (*bool, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *AccessDecisionResponse) SetAllowed(v bool)` + +SetAllowed sets Allowed field to given value. + + +### GetDecision + +`func (o *AccessDecisionResponse) GetDecision() string` + +GetDecision returns the Decision field if non-nil, zero value otherwise. + +### GetDecisionOk + +`func (o *AccessDecisionResponse) GetDecisionOk() (*string, bool)` + +GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecision + +`func (o *AccessDecisionResponse) SetDecision(v string)` + +SetDecision sets Decision field to given value. + + +### GetMatchedPolicies + +`func (o *AccessDecisionResponse) GetMatchedPolicies() []string` + +GetMatchedPolicies returns the MatchedPolicies field if non-nil, zero value otherwise. + +### GetMatchedPoliciesOk + +`func (o *AccessDecisionResponse) GetMatchedPoliciesOk() (*[]string, bool)` + +GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedPolicies + +`func (o *AccessDecisionResponse) SetMatchedPolicies(v []string)` + +SetMatchedPolicies sets MatchedPolicies field to given value. + +### HasMatchedPolicies + +`func (o *AccessDecisionResponse) HasMatchedPolicies() bool` + +HasMatchedPolicies returns a boolean if a field has been set. + +### GetReason + +`func (o *AccessDecisionResponse) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AccessDecisionResponse) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AccessDecisionResponse) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AccessDecisionResponse) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### SetReasonNil + +`func (o *AccessDecisionResponse) SetReasonNil(b bool)` + + SetReasonNil sets the value for Reason to be an explicit nil + +### UnsetReason +`func (o *AccessDecisionResponse) UnsetReason()` + +UnsetReason ensures that no value is present for Reason, not even an explicit nil +### GetPolicyId + +`func (o *AccessDecisionResponse) GetPolicyId() string` + +GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. + +### GetPolicyIdOk + +`func (o *AccessDecisionResponse) GetPolicyIdOk() (*string, bool)` + +GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyId + +`func (o *AccessDecisionResponse) SetPolicyId(v string)` + +SetPolicyId sets PolicyId field to given value. + +### HasPolicyId + +`func (o *AccessDecisionResponse) HasPolicyId() bool` + +HasPolicyId returns a boolean if a field has been set. + +### SetPolicyIdNil + +`func (o *AccessDecisionResponse) SetPolicyIdNil(b bool)` + + SetPolicyIdNil sets the value for PolicyId to be an explicit nil + +### UnsetPolicyId +`func (o *AccessDecisionResponse) UnsetPolicyId()` + +UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil +### GetExplainTrace + +`func (o *AccessDecisionResponse) GetExplainTrace() []map[string]interface{}` + +GetExplainTrace returns the ExplainTrace field if non-nil, zero value otherwise. + +### GetExplainTraceOk + +`func (o *AccessDecisionResponse) GetExplainTraceOk() (*[]map[string]interface{}, bool)` + +GetExplainTraceOk returns a tuple with the ExplainTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplainTrace + +`func (o *AccessDecisionResponse) SetExplainTrace(v []map[string]interface{})` + +SetExplainTrace sets ExplainTrace field to given value. + +### HasExplainTrace + +`func (o *AccessDecisionResponse) HasExplainTrace() bool` + +HasExplainTrace returns a boolean if a field has been set. + +### GetRevision + +`func (o *AccessDecisionResponse) GetRevision() int32` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *AccessDecisionResponse) GetRevisionOk() (*int32, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *AccessDecisionResponse) SetRevision(v int32)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *AccessDecisionResponse) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### SetRevisionNil + +`func (o *AccessDecisionResponse) SetRevisionNil(b bool)` + + SetRevisionNil sets the value for Revision to be an explicit nil + +### UnsetRevision +`func (o *AccessDecisionResponse) UnsetRevision()` + +UnsetRevision ensures that no value is present for Revision, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AccessRequest.md b/sdks/go/docs/AccessRequest.md new file mode 100644 index 0000000..e86f3db --- /dev/null +++ b/sdks/go/docs/AccessRequest.md @@ -0,0 +1,191 @@ +# AccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | Pointer to **map[string]interface{}** | | [optional] +**Action** | **string** | | +**Resource** | Pointer to **map[string]interface{}** | | [optional] +**Context** | Pointer to **map[string]interface{}** | | [optional] +**Consistency** | Pointer to **string** | | [optional] [default to "eventual"] +**Revision** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewAccessRequest + +`func NewAccessRequest(action string, ) *AccessRequest` + +NewAccessRequest instantiates a new AccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessRequestWithDefaults + +`func NewAccessRequestWithDefaults() *AccessRequest` + +NewAccessRequestWithDefaults instantiates a new AccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUser + +`func (o *AccessRequest) GetUser() map[string]interface{}` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *AccessRequest) GetUserOk() (*map[string]interface{}, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *AccessRequest) SetUser(v map[string]interface{})` + +SetUser sets User field to given value. + +### HasUser + +`func (o *AccessRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetAction + +`func (o *AccessRequest) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *AccessRequest) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *AccessRequest) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetResource + +`func (o *AccessRequest) GetResource() map[string]interface{}` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *AccessRequest) GetResourceOk() (*map[string]interface{}, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *AccessRequest) SetResource(v map[string]interface{})` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *AccessRequest) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### GetContext + +`func (o *AccessRequest) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *AccessRequest) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *AccessRequest) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *AccessRequest) HasContext() bool` + +HasContext returns a boolean if a field has been set. + +### GetConsistency + +`func (o *AccessRequest) GetConsistency() string` + +GetConsistency returns the Consistency field if non-nil, zero value otherwise. + +### GetConsistencyOk + +`func (o *AccessRequest) GetConsistencyOk() (*string, bool)` + +GetConsistencyOk returns a tuple with the Consistency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsistency + +`func (o *AccessRequest) SetConsistency(v string)` + +SetConsistency sets Consistency field to given value. + +### HasConsistency + +`func (o *AccessRequest) HasConsistency() bool` + +HasConsistency returns a boolean if a field has been set. + +### GetRevision + +`func (o *AccessRequest) GetRevision() int32` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *AccessRequest) GetRevisionOk() (*int32, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *AccessRequest) SetRevision(v int32)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *AccessRequest) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### SetRevisionNil + +`func (o *AccessRequest) SetRevisionNil(b bool)` + + SetRevisionNil sets the value for Revision to be an explicit nil + +### UnsetRevision +`func (o *AccessRequest) UnsetRevision()` + +UnsetRevision ensures that no value is present for Revision, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AdminLoginRequest.md b/sdks/go/docs/AdminLoginRequest.md new file mode 100644 index 0000000..45fd0b8 --- /dev/null +++ b/sdks/go/docs/AdminLoginRequest.md @@ -0,0 +1,72 @@ +# AdminLoginRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**Password** | **string** | | + +## Methods + +### NewAdminLoginRequest + +`func NewAdminLoginRequest(username string, password string, ) *AdminLoginRequest` + +NewAdminLoginRequest instantiates a new AdminLoginRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdminLoginRequestWithDefaults + +`func NewAdminLoginRequestWithDefaults() *AdminLoginRequest` + +NewAdminLoginRequestWithDefaults instantiates a new AdminLoginRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *AdminLoginRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AdminLoginRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *AdminLoginRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *AdminLoginRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *AdminLoginRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *AdminLoginRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AdminLoginResponse.md b/sdks/go/docs/AdminLoginResponse.md new file mode 100644 index 0000000..db9b5e4 --- /dev/null +++ b/sdks/go/docs/AdminLoginResponse.md @@ -0,0 +1,145 @@ +# AdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | **string** | | +**TokenType** | Pointer to **string** | | [optional] [default to "bearer"] +**ExpiresIn** | **int32** | | +**Role** | Pointer to **string** | | [optional] [default to "admin"] +**TenantKey** | **string** | | + +## Methods + +### NewAdminLoginResponse + +`func NewAdminLoginResponse(accessToken string, expiresIn int32, tenantKey string, ) *AdminLoginResponse` + +NewAdminLoginResponse instantiates a new AdminLoginResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdminLoginResponseWithDefaults + +`func NewAdminLoginResponseWithDefaults() *AdminLoginResponse` + +NewAdminLoginResponseWithDefaults instantiates a new AdminLoginResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessToken + +`func (o *AdminLoginResponse) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *AdminLoginResponse) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *AdminLoginResponse) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + + +### GetTokenType + +`func (o *AdminLoginResponse) GetTokenType() string` + +GetTokenType returns the TokenType field if non-nil, zero value otherwise. + +### GetTokenTypeOk + +`func (o *AdminLoginResponse) GetTokenTypeOk() (*string, bool)` + +GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenType + +`func (o *AdminLoginResponse) SetTokenType(v string)` + +SetTokenType sets TokenType field to given value. + +### HasTokenType + +`func (o *AdminLoginResponse) HasTokenType() bool` + +HasTokenType returns a boolean if a field has been set. + +### GetExpiresIn + +`func (o *AdminLoginResponse) GetExpiresIn() int32` + +GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise. + +### GetExpiresInOk + +`func (o *AdminLoginResponse) GetExpiresInOk() (*int32, bool)` + +GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresIn + +`func (o *AdminLoginResponse) SetExpiresIn(v int32)` + +SetExpiresIn sets ExpiresIn field to given value. + + +### GetRole + +`func (o *AdminLoginResponse) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *AdminLoginResponse) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *AdminLoginResponse) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *AdminLoginResponse) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetTenantKey + +`func (o *AdminLoginResponse) GetTenantKey() string` + +GetTenantKey returns the TenantKey field if non-nil, zero value otherwise. + +### GetTenantKeyOk + +`func (o *AdminLoginResponse) GetTenantKeyOk() (*string, bool)` + +GetTenantKeyOk returns a tuple with the TenantKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantKey + +`func (o *AdminLoginResponse) SetTenantKey(v string)` + +SetTenantKey sets TenantKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AuditRecordOut.md b/sdks/go/docs/AuditRecordOut.md new file mode 100644 index 0000000..eb1f28b --- /dev/null +++ b/sdks/go/docs/AuditRecordOut.md @@ -0,0 +1,333 @@ +# AuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**PrincipalType** | **string** | | +**PrincipalId** | **string** | | +**CorrelationId** | Pointer to **NullableString** | | [optional] +**User** | **map[string]interface{}** | | +**Action** | **string** | | +**Resource** | **map[string]interface{}** | | +**Decision** | **string** | | +**MatchedPolicies** | **[]interface{}** | | +**Reason** | Pointer to **NullableString** | | [optional] +**EvaluatedRules** | **[]interface{}** | | +**FailedConditions** | **[]interface{}** | | +**CreatedAt** | **time.Time** | | + +## Methods + +### NewAuditRecordOut + +`func NewAuditRecordOut(id int32, principalType string, principalId string, user map[string]interface{}, action string, resource map[string]interface{}, decision string, matchedPolicies []interface{}, evaluatedRules []interface{}, failedConditions []interface{}, createdAt time.Time, ) *AuditRecordOut` + +NewAuditRecordOut instantiates a new AuditRecordOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditRecordOutWithDefaults + +`func NewAuditRecordOutWithDefaults() *AuditRecordOut` + +NewAuditRecordOutWithDefaults instantiates a new AuditRecordOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AuditRecordOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AuditRecordOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AuditRecordOut) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetPrincipalType + +`func (o *AuditRecordOut) GetPrincipalType() string` + +GetPrincipalType returns the PrincipalType field if non-nil, zero value otherwise. + +### GetPrincipalTypeOk + +`func (o *AuditRecordOut) GetPrincipalTypeOk() (*string, bool)` + +GetPrincipalTypeOk returns a tuple with the PrincipalType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalType + +`func (o *AuditRecordOut) SetPrincipalType(v string)` + +SetPrincipalType sets PrincipalType field to given value. + + +### GetPrincipalId + +`func (o *AuditRecordOut) GetPrincipalId() string` + +GetPrincipalId returns the PrincipalId field if non-nil, zero value otherwise. + +### GetPrincipalIdOk + +`func (o *AuditRecordOut) GetPrincipalIdOk() (*string, bool)` + +GetPrincipalIdOk returns a tuple with the PrincipalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalId + +`func (o *AuditRecordOut) SetPrincipalId(v string)` + +SetPrincipalId sets PrincipalId field to given value. + + +### GetCorrelationId + +`func (o *AuditRecordOut) GetCorrelationId() string` + +GetCorrelationId returns the CorrelationId field if non-nil, zero value otherwise. + +### GetCorrelationIdOk + +`func (o *AuditRecordOut) GetCorrelationIdOk() (*string, bool)` + +GetCorrelationIdOk returns a tuple with the CorrelationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelationId + +`func (o *AuditRecordOut) SetCorrelationId(v string)` + +SetCorrelationId sets CorrelationId field to given value. + +### HasCorrelationId + +`func (o *AuditRecordOut) HasCorrelationId() bool` + +HasCorrelationId returns a boolean if a field has been set. + +### SetCorrelationIdNil + +`func (o *AuditRecordOut) SetCorrelationIdNil(b bool)` + + SetCorrelationIdNil sets the value for CorrelationId to be an explicit nil + +### UnsetCorrelationId +`func (o *AuditRecordOut) UnsetCorrelationId()` + +UnsetCorrelationId ensures that no value is present for CorrelationId, not even an explicit nil +### GetUser + +`func (o *AuditRecordOut) GetUser() map[string]interface{}` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *AuditRecordOut) GetUserOk() (*map[string]interface{}, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *AuditRecordOut) SetUser(v map[string]interface{})` + +SetUser sets User field to given value. + + +### GetAction + +`func (o *AuditRecordOut) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *AuditRecordOut) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *AuditRecordOut) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetResource + +`func (o *AuditRecordOut) GetResource() map[string]interface{}` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *AuditRecordOut) GetResourceOk() (*map[string]interface{}, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *AuditRecordOut) SetResource(v map[string]interface{})` + +SetResource sets Resource field to given value. + + +### GetDecision + +`func (o *AuditRecordOut) GetDecision() string` + +GetDecision returns the Decision field if non-nil, zero value otherwise. + +### GetDecisionOk + +`func (o *AuditRecordOut) GetDecisionOk() (*string, bool)` + +GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecision + +`func (o *AuditRecordOut) SetDecision(v string)` + +SetDecision sets Decision field to given value. + + +### GetMatchedPolicies + +`func (o *AuditRecordOut) GetMatchedPolicies() []interface{}` + +GetMatchedPolicies returns the MatchedPolicies field if non-nil, zero value otherwise. + +### GetMatchedPoliciesOk + +`func (o *AuditRecordOut) GetMatchedPoliciesOk() (*[]interface{}, bool)` + +GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedPolicies + +`func (o *AuditRecordOut) SetMatchedPolicies(v []interface{})` + +SetMatchedPolicies sets MatchedPolicies field to given value. + + +### GetReason + +`func (o *AuditRecordOut) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AuditRecordOut) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AuditRecordOut) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AuditRecordOut) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### SetReasonNil + +`func (o *AuditRecordOut) SetReasonNil(b bool)` + + SetReasonNil sets the value for Reason to be an explicit nil + +### UnsetReason +`func (o *AuditRecordOut) UnsetReason()` + +UnsetReason ensures that no value is present for Reason, not even an explicit nil +### GetEvaluatedRules + +`func (o *AuditRecordOut) GetEvaluatedRules() []interface{}` + +GetEvaluatedRules returns the EvaluatedRules field if non-nil, zero value otherwise. + +### GetEvaluatedRulesOk + +`func (o *AuditRecordOut) GetEvaluatedRulesOk() (*[]interface{}, bool)` + +GetEvaluatedRulesOk returns a tuple with the EvaluatedRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluatedRules + +`func (o *AuditRecordOut) SetEvaluatedRules(v []interface{})` + +SetEvaluatedRules sets EvaluatedRules field to given value. + + +### GetFailedConditions + +`func (o *AuditRecordOut) GetFailedConditions() []interface{}` + +GetFailedConditions returns the FailedConditions field if non-nil, zero value otherwise. + +### GetFailedConditionsOk + +`func (o *AuditRecordOut) GetFailedConditionsOk() (*[]interface{}, bool)` + +GetFailedConditionsOk returns a tuple with the FailedConditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedConditions + +`func (o *AuditRecordOut) SetFailedConditions(v []interface{})` + +SetFailedConditions sets FailedConditions field to given value. + + +### GetCreatedAt + +`func (o *AuditRecordOut) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AuditRecordOut) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AuditRecordOut) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AuthAPI.md b/sdks/go/docs/AuthAPI.md new file mode 100644 index 0000000..a7b0b61 --- /dev/null +++ b/sdks/go/docs/AuthAPI.md @@ -0,0 +1,138 @@ +# \AuthAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdminLoginAdminLoginPost**](AuthAPI.md#AdminLoginAdminLoginPost) | **Post** /admin/login | Admin Login +[**AdminLoginAdminLoginPost_0**](AuthAPI.md#AdminLoginAdminLoginPost_0) | **Post** /admin/login | Admin Login + + + +## AdminLoginAdminLoginPost + +> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost(ctx).AdminLoginRequest(adminLoginRequest).Execute() + +Admin Login + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + adminLoginRequest := *openapiclient.NewAdminLoginRequest("Username_example", "Password_example") // AdminLoginRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthAPI.AdminLoginAdminLoginPost(context.Background()).AdminLoginRequest(adminLoginRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AdminLoginAdminLoginPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminLoginAdminLoginPost`: SuccessResponseAdminLoginResponse + fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AdminLoginAdminLoginPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminLoginAdminLoginPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AdminLoginAdminLoginPost_0 + +> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost_0(ctx).AdminLoginRequest(adminLoginRequest).Execute() + +Admin Login + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + adminLoginRequest := *openapiclient.NewAdminLoginRequest("Username_example", "Password_example") // AdminLoginRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthAPI.AdminLoginAdminLoginPost_0(context.Background()).AdminLoginRequest(adminLoginRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AdminLoginAdminLoginPost_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AdminLoginAdminLoginPost_0`: SuccessResponseAdminLoginResponse + fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AdminLoginAdminLoginPost_0`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAdminLoginAdminLoginPost_1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdks/go/docs/AuthModelCreate.md b/sdks/go/docs/AuthModelCreate.md new file mode 100644 index 0000000..8f09534 --- /dev/null +++ b/sdks/go/docs/AuthModelCreate.md @@ -0,0 +1,51 @@ +# AuthModelCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schema** | **string** | | + +## Methods + +### NewAuthModelCreate + +`func NewAuthModelCreate(schema string, ) *AuthModelCreate` + +NewAuthModelCreate instantiates a new AuthModelCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthModelCreateWithDefaults + +`func NewAuthModelCreateWithDefaults() *AuthModelCreate` + +NewAuthModelCreateWithDefaults instantiates a new AuthModelCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSchema + +`func (o *AuthModelCreate) GetSchema() string` + +GetSchema returns the Schema field if non-nil, zero value otherwise. + +### GetSchemaOk + +`func (o *AuthModelCreate) GetSchemaOk() (*string, bool)` + +GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchema + +`func (o *AuthModelCreate) SetSchema(v string)` + +SetSchema sets Schema field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/AuthModelOut.md b/sdks/go/docs/AuthModelOut.md new file mode 100644 index 0000000..814c7ef --- /dev/null +++ b/sdks/go/docs/AuthModelOut.md @@ -0,0 +1,135 @@ +# AuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**TenantId** | **int32** | | +**Schema** | **string** | | +**Parsed** | **map[string]interface{}** | | +**Compiled** | **map[string]interface{}** | | + +## Methods + +### NewAuthModelOut + +`func NewAuthModelOut(id int32, tenantId int32, schema string, parsed map[string]interface{}, compiled map[string]interface{}, ) *AuthModelOut` + +NewAuthModelOut instantiates a new AuthModelOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthModelOutWithDefaults + +`func NewAuthModelOutWithDefaults() *AuthModelOut` + +NewAuthModelOutWithDefaults instantiates a new AuthModelOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AuthModelOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AuthModelOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AuthModelOut) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetTenantId + +`func (o *AuthModelOut) GetTenantId() int32` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *AuthModelOut) GetTenantIdOk() (*int32, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *AuthModelOut) SetTenantId(v int32)` + +SetTenantId sets TenantId field to given value. + + +### GetSchema + +`func (o *AuthModelOut) GetSchema() string` + +GetSchema returns the Schema field if non-nil, zero value otherwise. + +### GetSchemaOk + +`func (o *AuthModelOut) GetSchemaOk() (*string, bool)` + +GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchema + +`func (o *AuthModelOut) SetSchema(v string)` + +SetSchema sets Schema field to given value. + + +### GetParsed + +`func (o *AuthModelOut) GetParsed() map[string]interface{}` + +GetParsed returns the Parsed field if non-nil, zero value otherwise. + +### GetParsedOk + +`func (o *AuthModelOut) GetParsedOk() (*map[string]interface{}, bool)` + +GetParsedOk returns a tuple with the Parsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParsed + +`func (o *AuthModelOut) SetParsed(v map[string]interface{})` + +SetParsed sets Parsed field to given value. + + +### GetCompiled + +`func (o *AuthModelOut) GetCompiled() map[string]interface{}` + +GetCompiled returns the Compiled field if non-nil, zero value otherwise. + +### GetCompiledOk + +`func (o *AuthModelOut) GetCompiledOk() (*map[string]interface{}, bool)` + +GetCompiledOk returns a tuple with the Compiled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiled + +`func (o *AuthModelOut) SetCompiled(v map[string]interface{})` + +SetCompiled sets Compiled field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/BatchAccessItem.md b/sdks/go/docs/BatchAccessItem.md new file mode 100644 index 0000000..2855acd --- /dev/null +++ b/sdks/go/docs/BatchAccessItem.md @@ -0,0 +1,77 @@ +# BatchAccessItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Resource** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewBatchAccessItem + +`func NewBatchAccessItem(action string, ) *BatchAccessItem` + +NewBatchAccessItem instantiates a new BatchAccessItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBatchAccessItemWithDefaults + +`func NewBatchAccessItemWithDefaults() *BatchAccessItem` + +NewBatchAccessItemWithDefaults instantiates a new BatchAccessItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *BatchAccessItem) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *BatchAccessItem) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *BatchAccessItem) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetResource + +`func (o *BatchAccessItem) GetResource() map[string]interface{}` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *BatchAccessItem) GetResourceOk() (*map[string]interface{}, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *BatchAccessItem) SetResource(v map[string]interface{})` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *BatchAccessItem) HasResource() bool` + +HasResource returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/BatchAccessRequest.md b/sdks/go/docs/BatchAccessRequest.md new file mode 100644 index 0000000..924457d --- /dev/null +++ b/sdks/go/docs/BatchAccessRequest.md @@ -0,0 +1,139 @@ +# BatchAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | Pointer to **map[string]interface{}** | | [optional] +**Items** | [**[]BatchAccessItem**](BatchAccessItem.md) | | +**Consistency** | Pointer to **string** | | [optional] [default to "eventual"] +**Revision** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewBatchAccessRequest + +`func NewBatchAccessRequest(items []BatchAccessItem, ) *BatchAccessRequest` + +NewBatchAccessRequest instantiates a new BatchAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBatchAccessRequestWithDefaults + +`func NewBatchAccessRequestWithDefaults() *BatchAccessRequest` + +NewBatchAccessRequestWithDefaults instantiates a new BatchAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUser + +`func (o *BatchAccessRequest) GetUser() map[string]interface{}` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *BatchAccessRequest) GetUserOk() (*map[string]interface{}, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *BatchAccessRequest) SetUser(v map[string]interface{})` + +SetUser sets User field to given value. + +### HasUser + +`func (o *BatchAccessRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetItems + +`func (o *BatchAccessRequest) GetItems() []BatchAccessItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *BatchAccessRequest) GetItemsOk() (*[]BatchAccessItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *BatchAccessRequest) SetItems(v []BatchAccessItem)` + +SetItems sets Items field to given value. + + +### GetConsistency + +`func (o *BatchAccessRequest) GetConsistency() string` + +GetConsistency returns the Consistency field if non-nil, zero value otherwise. + +### GetConsistencyOk + +`func (o *BatchAccessRequest) GetConsistencyOk() (*string, bool)` + +GetConsistencyOk returns a tuple with the Consistency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsistency + +`func (o *BatchAccessRequest) SetConsistency(v string)` + +SetConsistency sets Consistency field to given value. + +### HasConsistency + +`func (o *BatchAccessRequest) HasConsistency() bool` + +HasConsistency returns a boolean if a field has been set. + +### GetRevision + +`func (o *BatchAccessRequest) GetRevision() int32` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *BatchAccessRequest) GetRevisionOk() (*int32, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *BatchAccessRequest) SetRevision(v int32)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *BatchAccessRequest) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### SetRevisionNil + +`func (o *BatchAccessRequest) SetRevisionNil(b bool)` + + SetRevisionNil sets the value for Revision to be an explicit nil + +### UnsetRevision +`func (o *BatchAccessRequest) UnsetRevision()` + +UnsetRevision ensures that no value is present for Revision, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/BatchAccessResponse.md b/sdks/go/docs/BatchAccessResponse.md new file mode 100644 index 0000000..6e2664c --- /dev/null +++ b/sdks/go/docs/BatchAccessResponse.md @@ -0,0 +1,87 @@ +# BatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**[]BatchAccessResult**](BatchAccessResult.md) | | +**Revision** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewBatchAccessResponse + +`func NewBatchAccessResponse(results []BatchAccessResult, ) *BatchAccessResponse` + +NewBatchAccessResponse instantiates a new BatchAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBatchAccessResponseWithDefaults + +`func NewBatchAccessResponseWithDefaults() *BatchAccessResponse` + +NewBatchAccessResponseWithDefaults instantiates a new BatchAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResults + +`func (o *BatchAccessResponse) GetResults() []BatchAccessResult` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *BatchAccessResponse) GetResultsOk() (*[]BatchAccessResult, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *BatchAccessResponse) SetResults(v []BatchAccessResult)` + +SetResults sets Results field to given value. + + +### GetRevision + +`func (o *BatchAccessResponse) GetRevision() int32` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *BatchAccessResponse) GetRevisionOk() (*int32, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *BatchAccessResponse) SetRevision(v int32)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *BatchAccessResponse) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### SetRevisionNil + +`func (o *BatchAccessResponse) SetRevisionNil(b bool)` + + SetRevisionNil sets the value for Revision to be an explicit nil + +### UnsetRevision +`func (o *BatchAccessResponse) UnsetRevision()` + +UnsetRevision ensures that no value is present for Revision, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/BatchAccessResult.md b/sdks/go/docs/BatchAccessResult.md new file mode 100644 index 0000000..3ed35e4 --- /dev/null +++ b/sdks/go/docs/BatchAccessResult.md @@ -0,0 +1,108 @@ +# BatchAccessResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Allowed** | **bool** | | +**Revision** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewBatchAccessResult + +`func NewBatchAccessResult(action string, allowed bool, ) *BatchAccessResult` + +NewBatchAccessResult instantiates a new BatchAccessResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBatchAccessResultWithDefaults + +`func NewBatchAccessResultWithDefaults() *BatchAccessResult` + +NewBatchAccessResultWithDefaults instantiates a new BatchAccessResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *BatchAccessResult) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *BatchAccessResult) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *BatchAccessResult) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetAllowed + +`func (o *BatchAccessResult) GetAllowed() bool` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *BatchAccessResult) GetAllowedOk() (*bool, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *BatchAccessResult) SetAllowed(v bool)` + +SetAllowed sets Allowed field to given value. + + +### GetRevision + +`func (o *BatchAccessResult) GetRevision() int32` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *BatchAccessResult) GetRevisionOk() (*int32, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *BatchAccessResult) SetRevision(v int32)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *BatchAccessResult) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### SetRevisionNil + +`func (o *BatchAccessResult) SetRevisionNil(b bool)` + + SetRevisionNil sets the value for Revision to be an explicit nil + +### UnsetRevision +`func (o *BatchAccessResult) UnsetRevision()` + +UnsetRevision ensures that no value is present for Revision, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/DataValue.md b/sdks/go/docs/DataValue.md new file mode 100644 index 0000000..144a4a2 --- /dev/null +++ b/sdks/go/docs/DataValue.md @@ -0,0 +1,30 @@ +# DataValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewDataValue + +`func NewDataValue() *DataValue` + +NewDataValue instantiates a new DataValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDataValueWithDefaults + +`func NewDataValueWithDefaults() *DataValue` + +NewDataValueWithDefaults instantiates a new DataValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/DevAPI.md b/sdks/go/docs/DevAPI.md new file mode 100644 index 0000000..13d3d3a --- /dev/null +++ b/sdks/go/docs/DevAPI.md @@ -0,0 +1,133 @@ +# \DevAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSampleDataDevSampleDataGet**](DevAPI.md#GetSampleDataDevSampleDataGet) | **Get** /dev/sample-data | Get Sample Data +[**SeedSampleDataDevSampleDataSeedPost**](DevAPI.md#SeedSampleDataDevSampleDataSeedPost) | **Post** /dev/sample-data/seed | Seed Sample Data + + + +## GetSampleDataDevSampleDataGet + +> SuccessResponseDictStrObject GetSampleDataDevSampleDataGet(ctx).Execute() + +Get Sample Data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DevAPI.GetSampleDataDevSampleDataGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DevAPI.GetSampleDataDevSampleDataGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSampleDataDevSampleDataGet`: SuccessResponseDictStrObject + fmt.Fprintf(os.Stdout, "Response from `DevAPI.GetSampleDataDevSampleDataGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSampleDataDevSampleDataGetRequest struct via the builder pattern + + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SeedSampleDataDevSampleDataSeedPost + +> SuccessResponseDictStrObject SeedSampleDataDevSampleDataSeedPost(ctx).Reset(reset).Execute() + +Seed Sample Data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + reset := true // bool | Clear the sample dataset before reseeding it. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DevAPI.SeedSampleDataDevSampleDataSeedPost(context.Background()).Reset(reset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DevAPI.SeedSampleDataDevSampleDataSeedPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SeedSampleDataDevSampleDataSeedPost`: SuccessResponseDictStrObject + fmt.Fprintf(os.Stdout, "Response from `DevAPI.SeedSampleDataDevSampleDataSeedPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSeedSampleDataDevSampleDataSeedPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reset** | **bool** | Clear the sample dataset before reseeding it. | [default to false] + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdks/go/docs/HTTPValidationError.md b/sdks/go/docs/HTTPValidationError.md new file mode 100644 index 0000000..3cde768 --- /dev/null +++ b/sdks/go/docs/HTTPValidationError.md @@ -0,0 +1,56 @@ +# HTTPValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Detail** | Pointer to [**[]ValidationError**](ValidationError.md) | | [optional] + +## Methods + +### NewHTTPValidationError + +`func NewHTTPValidationError() *HTTPValidationError` + +NewHTTPValidationError instantiates a new HTTPValidationError object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHTTPValidationErrorWithDefaults + +`func NewHTTPValidationErrorWithDefaults() *HTTPValidationError` + +NewHTTPValidationErrorWithDefaults instantiates a new HTTPValidationError object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDetail + +`func (o *HTTPValidationError) GetDetail() []ValidationError` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *HTTPValidationError) GetDetailOk() (*[]ValidationError, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *HTTPValidationError) SetDetail(v []ValidationError)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *HTTPValidationError) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/HealthAPI.md b/sdks/go/docs/HealthAPI.md new file mode 100644 index 0000000..a58c8db --- /dev/null +++ b/sdks/go/docs/HealthAPI.md @@ -0,0 +1,188 @@ +# \HealthAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**HealthHealthGet**](HealthAPI.md#HealthHealthGet) | **Get** /health | Health +[**LivenessHealthLiveGet**](HealthAPI.md#LivenessHealthLiveGet) | **Get** /health/live | Liveness +[**ReadinessHealthReadyGet**](HealthAPI.md#ReadinessHealthReadyGet) | **Get** /health/ready | Readiness + + + +## HealthHealthGet + +> SuccessResponseDictStrStr HealthHealthGet(ctx).Execute() + +Health + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.HealthAPI.HealthHealthGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.HealthHealthGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `HealthHealthGet`: SuccessResponseDictStrStr + fmt.Fprintf(os.Stdout, "Response from `HealthAPI.HealthHealthGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiHealthHealthGetRequest struct via the builder pattern + + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LivenessHealthLiveGet + +> SuccessResponseDictStrStr LivenessHealthLiveGet(ctx).Execute() + +Liveness + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.HealthAPI.LivenessHealthLiveGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.LivenessHealthLiveGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LivenessHealthLiveGet`: SuccessResponseDictStrStr + fmt.Fprintf(os.Stdout, "Response from `HealthAPI.LivenessHealthLiveGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiLivenessHealthLiveGetRequest struct via the builder pattern + + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadinessHealthReadyGet + +> SuccessResponseDictStrObject ReadinessHealthReadyGet(ctx).Execute() + +Readiness + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.HealthAPI.ReadinessHealthReadyGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.ReadinessHealthReadyGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadinessHealthReadyGet`: SuccessResponseDictStrObject + fmt.Fprintf(os.Stdout, "Response from `HealthAPI.ReadinessHealthReadyGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadinessHealthReadyGetRequest struct via the builder pattern + + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdks/go/docs/ImpactAnalysisRequest.md b/sdks/go/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..a289b07 --- /dev/null +++ b/sdks/go/docs/ImpactAnalysisRequest.md @@ -0,0 +1,51 @@ +# ImpactAnalysisRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PolicyChange** | **string** | | + +## Methods + +### NewImpactAnalysisRequest + +`func NewImpactAnalysisRequest(policyChange string, ) *ImpactAnalysisRequest` + +NewImpactAnalysisRequest instantiates a new ImpactAnalysisRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewImpactAnalysisRequestWithDefaults + +`func NewImpactAnalysisRequestWithDefaults() *ImpactAnalysisRequest` + +NewImpactAnalysisRequestWithDefaults instantiates a new ImpactAnalysisRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicyChange + +`func (o *ImpactAnalysisRequest) GetPolicyChange() string` + +GetPolicyChange returns the PolicyChange field if non-nil, zero value otherwise. + +### GetPolicyChangeOk + +`func (o *ImpactAnalysisRequest) GetPolicyChangeOk() (*string, bool)` + +GetPolicyChangeOk returns a tuple with the PolicyChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyChange + +`func (o *ImpactAnalysisRequest) SetPolicyChange(v string)` + +SetPolicyChange sets PolicyChange field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/ImpactAnalysisResponse.md b/sdks/go/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..e3f31b8 --- /dev/null +++ b/sdks/go/docs/ImpactAnalysisResponse.md @@ -0,0 +1,82 @@ +# ImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GainedAccess** | Pointer to **[]int32** | | [optional] +**LostAccess** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewImpactAnalysisResponse + +`func NewImpactAnalysisResponse() *ImpactAnalysisResponse` + +NewImpactAnalysisResponse instantiates a new ImpactAnalysisResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewImpactAnalysisResponseWithDefaults + +`func NewImpactAnalysisResponseWithDefaults() *ImpactAnalysisResponse` + +NewImpactAnalysisResponseWithDefaults instantiates a new ImpactAnalysisResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGainedAccess + +`func (o *ImpactAnalysisResponse) GetGainedAccess() []int32` + +GetGainedAccess returns the GainedAccess field if non-nil, zero value otherwise. + +### GetGainedAccessOk + +`func (o *ImpactAnalysisResponse) GetGainedAccessOk() (*[]int32, bool)` + +GetGainedAccessOk returns a tuple with the GainedAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGainedAccess + +`func (o *ImpactAnalysisResponse) SetGainedAccess(v []int32)` + +SetGainedAccess sets GainedAccess field to given value. + +### HasGainedAccess + +`func (o *ImpactAnalysisResponse) HasGainedAccess() bool` + +HasGainedAccess returns a boolean if a field has been set. + +### GetLostAccess + +`func (o *ImpactAnalysisResponse) GetLostAccess() []int32` + +GetLostAccess returns the LostAccess field if non-nil, zero value otherwise. + +### GetLostAccessOk + +`func (o *ImpactAnalysisResponse) GetLostAccessOk() (*[]int32, bool)` + +GetLostAccessOk returns a tuple with the LostAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLostAccess + +`func (o *ImpactAnalysisResponse) SetLostAccess(v []int32)` + +SetLostAccess sets LostAccess field to given value. + +### HasLostAccess + +`func (o *ImpactAnalysisResponse) HasLostAccess() bool` + +HasLostAccess returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/LocationInner.md b/sdks/go/docs/LocationInner.md new file mode 100644 index 0000000..820ca46 --- /dev/null +++ b/sdks/go/docs/LocationInner.md @@ -0,0 +1,30 @@ +# LocationInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewLocationInner + +`func NewLocationInner() *LocationInner` + +NewLocationInner instantiates a new LocationInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLocationInnerWithDefaults + +`func NewLocationInnerWithDefaults() *LocationInner` + +NewLocationInnerWithDefaults instantiates a new LocationInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/ManagementAPI.md b/sdks/go/docs/ManagementAPI.md new file mode 100644 index 0000000..9316834 --- /dev/null +++ b/sdks/go/docs/ManagementAPI.md @@ -0,0 +1,1918 @@ +# \ManagementAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementAPI.md#AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **Post** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +[**CreateAclEntryAclPost**](ManagementAPI.md#CreateAclEntryAclPost) | **Post** /acl | Create Acl Entry +[**CreateAuthModelAuthModelPost**](ManagementAPI.md#CreateAuthModelAuthModelPost) | **Post** /auth-model | Create Auth Model +[**CreatePermissionPermissionsPost**](ManagementAPI.md#CreatePermissionPermissionsPost) | **Post** /permissions | Create Permission +[**CreatePolicyFromDslPoliciesDslPost**](ManagementAPI.md#CreatePolicyFromDslPoliciesDslPost) | **Post** /policies/dsl | Create Policy From Dsl +[**CreatePolicyPoliciesPost**](ManagementAPI.md#CreatePolicyPoliciesPost) | **Post** /policies | Create Policy +[**CreateRelationshipRelationshipsPost**](ManagementAPI.md#CreateRelationshipRelationshipsPost) | **Post** /relationships | Create Relationship +[**CreateRoleRolesPost**](ManagementAPI.md#CreateRoleRolesPost) | **Post** /roles | Create Role +[**DeleteAclEntryAclAclIdDelete**](ManagementAPI.md#DeleteAclEntryAclAclIdDelete) | **Delete** /acl/{acl_id} | Delete Acl Entry +[**DeletePermissionPermissionsPermissionIdDelete**](ManagementAPI.md#DeletePermissionPermissionsPermissionIdDelete) | **Delete** /permissions/{permission_id} | Delete Permission +[**DeletePolicyPoliciesPolicyKeyDelete**](ManagementAPI.md#DeletePolicyPoliciesPolicyKeyDelete) | **Delete** /policies/{policy_key} | Delete Policy +[**DeleteRoleRolesRoleIdDelete**](ManagementAPI.md#DeleteRoleRolesRoleIdDelete) | **Delete** /roles/{role_id} | Delete Role +[**GetAuthModelAuthModelGet**](ManagementAPI.md#GetAuthModelAuthModelGet) | **Get** /auth-model | Get Auth Model +[**ImpactAnalysisImpactAnalysisPost**](ManagementAPI.md#ImpactAnalysisImpactAnalysisPost) | **Post** /impact-analysis | Impact Analysis +[**ListAclEntriesAclResourceTypeResourceIdGet**](ManagementAPI.md#ListAclEntriesAclResourceTypeResourceIdGet) | **Get** /acl/{resource_type}/{resource_id} | List Acl Entries +[**ListAuditLogsAuditGet**](ManagementAPI.md#ListAuditLogsAuditGet) | **Get** /audit | List Audit Logs +[**ListPermissionRolesPermissionsPermissionIdRolesGet**](ManagementAPI.md#ListPermissionRolesPermissionsPermissionIdRolesGet) | **Get** /permissions/{permission_id}/roles | List Permission Roles +[**ListPermissionsPermissionsGet**](ManagementAPI.md#ListPermissionsPermissionsGet) | **Get** /permissions | List Permissions +[**ListPoliciesPoliciesGet**](ManagementAPI.md#ListPoliciesPoliciesGet) | **Get** /policies | List Policies +[**ListRelationshipsRelationshipsGet**](ManagementAPI.md#ListRelationshipsRelationshipsGet) | **Get** /relationships | List Relationships +[**ListRolePermissionsRolesRoleIdPermissionsGet**](ManagementAPI.md#ListRolePermissionsRolesRoleIdPermissionsGet) | **Get** /roles/{role_id}/permissions | List Role Permissions +[**ListRolesRolesGet**](ManagementAPI.md#ListRolesRolesGet) | **Get** /roles | List Roles +[**RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementAPI.md#RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **Delete** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +[**RollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementAPI.md#RollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **Post** /policies/{policy_key}/rollback/{version} | Rollback Policy +[**SimulatePolicySimulatePolicyPost**](ManagementAPI.md#SimulatePolicySimulatePolicyPost) | **Post** /simulate-policy | Simulate Policy +[**UpdatePermissionPermissionsPermissionIdPut**](ManagementAPI.md#UpdatePermissionPermissionsPermissionIdPut) | **Put** /permissions/{permission_id} | Update Permission +[**UpdatePolicyPoliciesPolicyKeyPut**](ManagementAPI.md#UpdatePolicyPoliciesPolicyKeyPut) | **Put** /policies/{policy_key} | Update Policy +[**UpdateRoleRolesRoleIdPut**](ManagementAPI.md#UpdateRoleRolesRoleIdPut) | **Put** /roles/{role_id} | Update Role + + + +## AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost + +> SuccessResponsePermissionOut AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(ctx, roleId, permissionId).Execute() + +Add Permission To Role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := int32(56) // int32 | + permissionId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(context.Background(), roleId, permissionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost`: SuccessResponsePermissionOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **int32** | | +**permissionId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAclEntryAclPost + +> SuccessResponseACLOut CreateAclEntryAclPost(ctx).ACLCreate(aCLCreate).Execute() + +Create Acl Entry + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + aCLCreate := *openapiclient.NewACLCreate("SubjectType_example", "SubjectId_example", "ResourceType_example", "ResourceId_example", "Action_example", "Effect_example") // ACLCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreateAclEntryAclPost(context.Background()).ACLCreate(aCLCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateAclEntryAclPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAclEntryAclPost`: SuccessResponseACLOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateAclEntryAclPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAclEntryAclPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aCLCreate** | [**ACLCreate**](ACLCreate.md) | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthModelAuthModelPost + +> SuccessResponseAuthModelOut CreateAuthModelAuthModelPost(ctx).AuthModelCreate(authModelCreate).Execute() + +Create Auth Model + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + authModelCreate := *openapiclient.NewAuthModelCreate("Schema_example") // AuthModelCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreateAuthModelAuthModelPost(context.Background()).AuthModelCreate(authModelCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateAuthModelAuthModelPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthModelAuthModelPost`: SuccessResponseAuthModelOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateAuthModelAuthModelPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthModelAuthModelPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md) | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreatePermissionPermissionsPost + +> PermissionOut CreatePermissionPermissionsPost(ctx).PermissionCreate(permissionCreate).Execute() + +Create Permission + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + permissionCreate := *openapiclient.NewPermissionCreate("Action_example") // PermissionCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreatePermissionPermissionsPost(context.Background()).PermissionCreate(permissionCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreatePermissionPermissionsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePermissionPermissionsPost`: PermissionOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreatePermissionPermissionsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePermissionPermissionsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permissionCreate** | [**PermissionCreate**](PermissionCreate.md) | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreatePolicyFromDslPoliciesDslPost + +> SuccessResponsePolicyOut CreatePolicyFromDslPoliciesDslPost(ctx).Dsl(dsl).Execute() + +Create Policy From Dsl + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + dsl := "dsl_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreatePolicyFromDslPoliciesDslPost(context.Background()).Dsl(dsl).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreatePolicyFromDslPoliciesDslPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePolicyFromDslPoliciesDslPost`: SuccessResponsePolicyOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreatePolicyFromDslPoliciesDslPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePolicyFromDslPoliciesDslPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dsl** | **string** | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreatePolicyPoliciesPost + +> SuccessResponsePolicyOut CreatePolicyPoliciesPost(ctx).PolicyCreate(policyCreate).Execute() + +Create Policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + policyCreate := *openapiclient.NewPolicyCreate("Action_example") // PolicyCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreatePolicyPoliciesPost(context.Background()).PolicyCreate(policyCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreatePolicyPoliciesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePolicyPoliciesPost`: SuccessResponsePolicyOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreatePolicyPoliciesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePolicyPoliciesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateRelationshipRelationshipsPost + +> SuccessResponseRelationshipOut CreateRelationshipRelationshipsPost(ctx).RelationshipCreate(relationshipCreate).Execute() + +Create Relationship + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + relationshipCreate := *openapiclient.NewRelationshipCreate("SubjectType_example", "SubjectId_example", "Relation_example", "ObjectType_example", "ObjectId_example") // RelationshipCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreateRelationshipRelationshipsPost(context.Background()).RelationshipCreate(relationshipCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateRelationshipRelationshipsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRelationshipRelationshipsPost`: SuccessResponseRelationshipOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateRelationshipRelationshipsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateRelationshipRelationshipsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md) | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateRoleRolesPost + +> RoleOut CreateRoleRolesPost(ctx).RoleCreate(roleCreate).Execute() + +Create Role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleCreate := *openapiclient.NewRoleCreate("Name_example") // RoleCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.CreateRoleRolesPost(context.Background()).RoleCreate(roleCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateRoleRolesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleRolesPost`: RoleOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateRoleRolesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateRoleRolesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleCreate** | [**RoleCreate**](RoleCreate.md) | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAclEntryAclAclIdDelete + +> SuccessResponseDictStrInt DeleteAclEntryAclAclIdDelete(ctx, aclId).Execute() + +Delete Acl Entry + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + aclId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.DeleteAclEntryAclAclIdDelete(context.Background(), aclId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeleteAclEntryAclAclIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAclEntryAclAclIdDelete`: SuccessResponseDictStrInt + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeleteAclEntryAclAclIdDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**aclId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAclEntryAclAclIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePermissionPermissionsPermissionIdDelete + +> SuccessResponseDictStrInt DeletePermissionPermissionsPermissionIdDelete(ctx, permissionId).Execute() + +Delete Permission + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + permissionId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.DeletePermissionPermissionsPermissionIdDelete(context.Background(), permissionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeletePermissionPermissionsPermissionIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeletePermissionPermissionsPermissionIdDelete`: SuccessResponseDictStrInt + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeletePermissionPermissionsPermissionIdDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**permissionId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePermissionPermissionsPermissionIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePolicyPoliciesPolicyKeyDelete + +> SuccessResponseDictStrStr DeletePolicyPoliciesPolicyKeyDelete(ctx, policyKey).Execute() + +Delete Policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + policyKey := "policyKey_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete(context.Background(), policyKey).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeletePolicyPoliciesPolicyKeyDelete`: SuccessResponseDictStrStr + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**policyKey** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePolicyPoliciesPolicyKeyDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteRoleRolesRoleIdDelete + +> SuccessResponseDictStrInt DeleteRoleRolesRoleIdDelete(ctx, roleId).Execute() + +Delete Role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.DeleteRoleRolesRoleIdDelete(context.Background(), roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeleteRoleRolesRoleIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteRoleRolesRoleIdDelete`: SuccessResponseDictStrInt + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeleteRoleRolesRoleIdDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteRoleRolesRoleIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAuthModelAuthModelGet + +> SuccessResponseAuthModelOut GetAuthModelAuthModelGet(ctx).Execute() + +Get Auth Model + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.GetAuthModelAuthModelGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.GetAuthModelAuthModelGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthModelAuthModelGet`: SuccessResponseAuthModelOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.GetAuthModelAuthModelGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthModelAuthModelGetRequest struct via the builder pattern + + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ImpactAnalysisImpactAnalysisPost + +> SuccessResponseImpactAnalysisResponse ImpactAnalysisImpactAnalysisPost(ctx).ImpactAnalysisRequest(impactAnalysisRequest).Execute() + +Impact Analysis + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + impactAnalysisRequest := *openapiclient.NewImpactAnalysisRequest("PolicyChange_example") // ImpactAnalysisRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ImpactAnalysisImpactAnalysisPost(context.Background()).ImpactAnalysisRequest(impactAnalysisRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ImpactAnalysisImpactAnalysisPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImpactAnalysisImpactAnalysisPost`: SuccessResponseImpactAnalysisResponse + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ImpactAnalysisImpactAnalysisPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiImpactAnalysisImpactAnalysisPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListAclEntriesAclResourceTypeResourceIdGet + +> SuccessResponseListACLOut ListAclEntriesAclResourceTypeResourceIdGet(ctx, resourceType, resourceId).Execute() + +List Acl Entries + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + resourceType := "resourceType_example" // string | + resourceId := "resourceId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet(context.Background(), resourceType, resourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAclEntriesAclResourceTypeResourceIdGet`: SuccessResponseListACLOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string** | | +**resourceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListAclEntriesAclResourceTypeResourceIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListAuditLogsAuditGet + +> SuccessResponseListAuditRecordOut ListAuditLogsAuditGet(ctx).Limit(limit).Cursor(cursor).UserId(userId).ResourceId(resourceId).Decision(decision).StartTime(startTime).EndTime(endTime).Execute() + +List Audit Logs + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + limit := int32(56) // int32 | (optional) (default to 50) + cursor := "cursor_example" // string | (optional) + userId := "userId_example" // string | (optional) + resourceId := "resourceId_example" // string | (optional) + decision := "decision_example" // string | (optional) + startTime := time.Now() // time.Time | (optional) + endTime := time.Now() // time.Time | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListAuditLogsAuditGet(context.Background()).Limit(limit).Cursor(cursor).UserId(userId).ResourceId(resourceId).Decision(decision).StartTime(startTime).EndTime(endTime).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListAuditLogsAuditGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAuditLogsAuditGet`: SuccessResponseListAuditRecordOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListAuditLogsAuditGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListAuditLogsAuditGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | | [default to 50] + **cursor** | **string** | | + **userId** | **string** | | + **resourceId** | **string** | | + **decision** | **string** | | + **startTime** | **time.Time** | | + **endTime** | **time.Time** | | + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListPermissionRolesPermissionsPermissionIdRolesGet + +> SuccessResponseListRoleOut ListPermissionRolesPermissionsPermissionIdRolesGet(ctx, permissionId).Execute() + +List Permission Roles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + permissionId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet(context.Background(), permissionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPermissionRolesPermissionsPermissionIdRolesGet`: SuccessResponseListRoleOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**permissionId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListPermissionRolesPermissionsPermissionIdRolesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListPermissionsPermissionsGet + +> SuccessResponseListPermissionOut ListPermissionsPermissionsGet(ctx).Limit(limit).Cursor(cursor).Execute() + +List Permissions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + limit := int32(56) // int32 | (optional) (default to 50) + cursor := "cursor_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListPermissionsPermissionsGet(context.Background()).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListPermissionsPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPermissionsPermissionsGet`: SuccessResponseListPermissionOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListPermissionsPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListPermissionsPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | | [default to 50] + **cursor** | **string** | | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListPoliciesPoliciesGet + +> SuccessResponseListPolicyOut ListPoliciesPoliciesGet(ctx).Limit(limit).Cursor(cursor).Execute() + +List Policies + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + limit := int32(56) // int32 | (optional) (default to 50) + cursor := "cursor_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListPoliciesPoliciesGet(context.Background()).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListPoliciesPoliciesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPoliciesPoliciesGet`: SuccessResponseListPolicyOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListPoliciesPoliciesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListPoliciesPoliciesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | | [default to 50] + **cursor** | **string** | | + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListRelationshipsRelationshipsGet + +> SuccessResponseListDictStrStr ListRelationshipsRelationshipsGet(ctx).SubjectType(subjectType).SubjectId(subjectId).Limit(limit).Cursor(cursor).Execute() + +List Relationships + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + subjectType := "subjectType_example" // string | + subjectId := "subjectId_example" // string | + limit := int32(56) // int32 | (optional) (default to 50) + cursor := "cursor_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListRelationshipsRelationshipsGet(context.Background()).SubjectType(subjectType).SubjectId(subjectId).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListRelationshipsRelationshipsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRelationshipsRelationshipsGet`: SuccessResponseListDictStrStr + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListRelationshipsRelationshipsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListRelationshipsRelationshipsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subjectType** | **string** | | + **subjectId** | **string** | | + **limit** | **int32** | | [default to 50] + **cursor** | **string** | | + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListRolePermissionsRolesRoleIdPermissionsGet + +> SuccessResponseListPermissionOut ListRolePermissionsRolesRoleIdPermissionsGet(ctx, roleId).Execute() + +List Role Permissions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet(context.Background(), roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRolePermissionsRolesRoleIdPermissionsGet`: SuccessResponseListPermissionOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListRolePermissionsRolesRoleIdPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListRolesRolesGet + +> SuccessResponseListRoleOut ListRolesRolesGet(ctx).Limit(limit).Cursor(cursor).Execute() + +List Roles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + limit := int32(56) // int32 | (optional) (default to 50) + cursor := "cursor_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.ListRolesRolesGet(context.Background()).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListRolesRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRolesRolesGet`: SuccessResponseListRoleOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListRolesRolesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListRolesRolesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | | [default to 50] + **cursor** | **string** | | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete + +> SuccessResponseDictStrInt RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(ctx, roleId, permissionId).Execute() + +Remove Permission From Role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := int32(56) // int32 | + permissionId := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(context.Background(), roleId, permissionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete`: SuccessResponseDictStrInt + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **int32** | | +**permissionId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RollbackPolicyPoliciesPolicyKeyRollbackVersionPost + +> SuccessResponseDictStrUnionIntStr RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(ctx, policyKey, version).Execute() + +Rollback Policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + policyKey := "policyKey_example" // string | + version := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(context.Background(), policyKey, version).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RollbackPolicyPoliciesPolicyKeyRollbackVersionPost`: SuccessResponseDictStrUnionIntStr + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**policyKey** | **string** | | +**version** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SimulatePolicySimulatePolicyPost + +> SuccessResponsePolicySimulationResponse SimulatePolicySimulatePolicyPost(ctx).PolicySimulationRequest(policySimulationRequest).Execute() + +Simulate Policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + policySimulationRequest := *openapiclient.NewPolicySimulationRequest() // PolicySimulationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.SimulatePolicySimulatePolicyPost(context.Background()).PolicySimulationRequest(policySimulationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.SimulatePolicySimulatePolicyPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SimulatePolicySimulatePolicyPost`: SuccessResponsePolicySimulationResponse + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.SimulatePolicySimulatePolicyPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSimulatePolicySimulatePolicyPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdatePermissionPermissionsPermissionIdPut + +> PermissionOut UpdatePermissionPermissionsPermissionIdPut(ctx, permissionId).PermissionUpdate(permissionUpdate).Execute() + +Update Permission + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + permissionId := int32(56) // int32 | + permissionUpdate := *openapiclient.NewPermissionUpdate("Action_example") // PermissionUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.UpdatePermissionPermissionsPermissionIdPut(context.Background(), permissionId).PermissionUpdate(permissionUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.UpdatePermissionPermissionsPermissionIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePermissionPermissionsPermissionIdPut`: PermissionOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.UpdatePermissionPermissionsPermissionIdPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**permissionId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePermissionPermissionsPermissionIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md) | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdatePolicyPoliciesPolicyKeyPut + +> SuccessResponsePolicyOut UpdatePolicyPoliciesPolicyKeyPut(ctx, policyKey).PolicyCreate(policyCreate).Execute() + +Update Policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + policyKey := "policyKey_example" // string | + policyCreate := *openapiclient.NewPolicyCreate("Action_example") // PolicyCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut(context.Background(), policyKey).PolicyCreate(policyCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePolicyPoliciesPolicyKeyPut`: SuccessResponsePolicyOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**policyKey** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePolicyPoliciesPolicyKeyPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateRoleRolesRoleIdPut + +> RoleOut UpdateRoleRolesRoleIdPut(ctx, roleId).RoleUpdate(roleUpdate).Execute() + +Update Role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := int32(56) // int32 | + roleUpdate := *openapiclient.NewRoleUpdate("Name_example") // RoleUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagementAPI.UpdateRoleRolesRoleIdPut(context.Background(), roleId).RoleUpdate(roleUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.UpdateRoleRolesRoleIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRoleRolesRoleIdPut`: RoleOut + fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.UpdateRoleRolesRoleIdPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateRoleRolesRoleIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **roleUpdate** | [**RoleUpdate**](RoleUpdate.md) | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdks/go/docs/MetaBody.md b/sdks/go/docs/MetaBody.md new file mode 100644 index 0000000..f90c148 --- /dev/null +++ b/sdks/go/docs/MetaBody.md @@ -0,0 +1,164 @@ +# MetaBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | Pointer to **NullableString** | | [optional] +**Limit** | Pointer to **NullableInt32** | | [optional] +**NextCursor** | Pointer to **NullableString** | | [optional] +**Extra** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewMetaBody + +`func NewMetaBody() *MetaBody` + +NewMetaBody instantiates a new MetaBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetaBodyWithDefaults + +`func NewMetaBodyWithDefaults() *MetaBody` + +NewMetaBodyWithDefaults instantiates a new MetaBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRequestId + +`func (o *MetaBody) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *MetaBody) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *MetaBody) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *MetaBody) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### SetRequestIdNil + +`func (o *MetaBody) SetRequestIdNil(b bool)` + + SetRequestIdNil sets the value for RequestId to be an explicit nil + +### UnsetRequestId +`func (o *MetaBody) UnsetRequestId()` + +UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil +### GetLimit + +`func (o *MetaBody) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *MetaBody) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *MetaBody) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *MetaBody) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### SetLimitNil + +`func (o *MetaBody) SetLimitNil(b bool)` + + SetLimitNil sets the value for Limit to be an explicit nil + +### UnsetLimit +`func (o *MetaBody) UnsetLimit()` + +UnsetLimit ensures that no value is present for Limit, not even an explicit nil +### GetNextCursor + +`func (o *MetaBody) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *MetaBody) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *MetaBody) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *MetaBody) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### SetNextCursorNil + +`func (o *MetaBody) SetNextCursorNil(b bool)` + + SetNextCursorNil sets the value for NextCursor to be an explicit nil + +### UnsetNextCursor +`func (o *MetaBody) UnsetNextCursor()` + +UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +### GetExtra + +`func (o *MetaBody) GetExtra() map[string]interface{}` + +GetExtra returns the Extra field if non-nil, zero value otherwise. + +### GetExtraOk + +`func (o *MetaBody) GetExtraOk() (*map[string]interface{}, bool)` + +GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtra + +`func (o *MetaBody) SetExtra(v map[string]interface{})` + +SetExtra sets Extra field to given value. + +### HasExtra + +`func (o *MetaBody) HasExtra() bool` + +HasExtra returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PermissionCreate.md b/sdks/go/docs/PermissionCreate.md new file mode 100644 index 0000000..56e0302 --- /dev/null +++ b/sdks/go/docs/PermissionCreate.md @@ -0,0 +1,51 @@ +# PermissionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | + +## Methods + +### NewPermissionCreate + +`func NewPermissionCreate(action string, ) *PermissionCreate` + +NewPermissionCreate instantiates a new PermissionCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionCreateWithDefaults + +`func NewPermissionCreateWithDefaults() *PermissionCreate` + +NewPermissionCreateWithDefaults instantiates a new PermissionCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *PermissionCreate) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PermissionCreate) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PermissionCreate) SetAction(v string)` + +SetAction sets Action field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PermissionOut.md b/sdks/go/docs/PermissionOut.md new file mode 100644 index 0000000..d05a851 --- /dev/null +++ b/sdks/go/docs/PermissionOut.md @@ -0,0 +1,72 @@ +# PermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Action** | **string** | | + +## Methods + +### NewPermissionOut + +`func NewPermissionOut(id int32, action string, ) *PermissionOut` + +NewPermissionOut instantiates a new PermissionOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionOutWithDefaults + +`func NewPermissionOutWithDefaults() *PermissionOut` + +NewPermissionOutWithDefaults instantiates a new PermissionOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PermissionOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionOut) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetAction + +`func (o *PermissionOut) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PermissionOut) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PermissionOut) SetAction(v string)` + +SetAction sets Action field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PermissionUpdate.md b/sdks/go/docs/PermissionUpdate.md new file mode 100644 index 0000000..acbc232 --- /dev/null +++ b/sdks/go/docs/PermissionUpdate.md @@ -0,0 +1,51 @@ +# PermissionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | + +## Methods + +### NewPermissionUpdate + +`func NewPermissionUpdate(action string, ) *PermissionUpdate` + +NewPermissionUpdate instantiates a new PermissionUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionUpdateWithDefaults + +`func NewPermissionUpdateWithDefaults() *PermissionUpdate` + +NewPermissionUpdateWithDefaults instantiates a new PermissionUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *PermissionUpdate) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PermissionUpdate) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PermissionUpdate) SetAction(v string)` + +SetAction sets Action field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PlaygroundAPI.md b/sdks/go/docs/PlaygroundAPI.md new file mode 100644 index 0000000..8a56b8b --- /dev/null +++ b/sdks/go/docs/PlaygroundAPI.md @@ -0,0 +1,73 @@ +# \PlaygroundAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**EvaluatePlaygroundEvaluatePost**](PlaygroundAPI.md#EvaluatePlaygroundEvaluatePost) | **Post** /playground/evaluate | Evaluate + + + +## EvaluatePlaygroundEvaluatePost + +> SuccessResponseDictStrAny EvaluatePlaygroundEvaluatePost(ctx).PlaygroundEvaluateRequest(playgroundEvaluateRequest).Execute() + +Evaluate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + playgroundEvaluateRequest := *openapiclient.NewPlaygroundEvaluateRequest([]openapiclient.PlaygroundPolicy{*openapiclient.NewPlaygroundPolicy("Action_example")}, *openapiclient.NewPlaygroundInput()) // PlaygroundEvaluateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PlaygroundAPI.EvaluatePlaygroundEvaluatePost(context.Background()).PlaygroundEvaluateRequest(playgroundEvaluateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PlaygroundAPI.EvaluatePlaygroundEvaluatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EvaluatePlaygroundEvaluatePost`: SuccessResponseDictStrAny + fmt.Fprintf(os.Stdout, "Response from `PlaygroundAPI.EvaluatePlaygroundEvaluatePost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEvaluatePlaygroundEvaluatePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdks/go/docs/PlaygroundEvaluateRequest.md b/sdks/go/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..d878812 --- /dev/null +++ b/sdks/go/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,72 @@ +# PlaygroundEvaluateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policies** | [**[]PlaygroundPolicy**](PlaygroundPolicy.md) | | +**Input** | [**PlaygroundInput**](PlaygroundInput.md) | | + +## Methods + +### NewPlaygroundEvaluateRequest + +`func NewPlaygroundEvaluateRequest(policies []PlaygroundPolicy, input PlaygroundInput, ) *PlaygroundEvaluateRequest` + +NewPlaygroundEvaluateRequest instantiates a new PlaygroundEvaluateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlaygroundEvaluateRequestWithDefaults + +`func NewPlaygroundEvaluateRequestWithDefaults() *PlaygroundEvaluateRequest` + +NewPlaygroundEvaluateRequestWithDefaults instantiates a new PlaygroundEvaluateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicies + +`func (o *PlaygroundEvaluateRequest) GetPolicies() []PlaygroundPolicy` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *PlaygroundEvaluateRequest) GetPoliciesOk() (*[]PlaygroundPolicy, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *PlaygroundEvaluateRequest) SetPolicies(v []PlaygroundPolicy)` + +SetPolicies sets Policies field to given value. + + +### GetInput + +`func (o *PlaygroundEvaluateRequest) GetInput() PlaygroundInput` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *PlaygroundEvaluateRequest) GetInputOk() (*PlaygroundInput, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *PlaygroundEvaluateRequest) SetInput(v PlaygroundInput)` + +SetInput sets Input field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PlaygroundInput.md b/sdks/go/docs/PlaygroundInput.md new file mode 100644 index 0000000..d7ca98c --- /dev/null +++ b/sdks/go/docs/PlaygroundInput.md @@ -0,0 +1,134 @@ +# PlaygroundInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | Pointer to **map[string]interface{}** | | [optional] +**Resource** | Pointer to **map[string]interface{}** | | [optional] +**Action** | Pointer to **string** | | [optional] [default to ""] +**Context** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPlaygroundInput + +`func NewPlaygroundInput() *PlaygroundInput` + +NewPlaygroundInput instantiates a new PlaygroundInput object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlaygroundInputWithDefaults + +`func NewPlaygroundInputWithDefaults() *PlaygroundInput` + +NewPlaygroundInputWithDefaults instantiates a new PlaygroundInput object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUser + +`func (o *PlaygroundInput) GetUser() map[string]interface{}` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PlaygroundInput) GetUserOk() (*map[string]interface{}, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PlaygroundInput) SetUser(v map[string]interface{})` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PlaygroundInput) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetResource + +`func (o *PlaygroundInput) GetResource() map[string]interface{}` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *PlaygroundInput) GetResourceOk() (*map[string]interface{}, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *PlaygroundInput) SetResource(v map[string]interface{})` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *PlaygroundInput) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### GetAction + +`func (o *PlaygroundInput) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PlaygroundInput) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PlaygroundInput) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *PlaygroundInput) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetContext + +`func (o *PlaygroundInput) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *PlaygroundInput) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *PlaygroundInput) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *PlaygroundInput) HasContext() bool` + +HasContext returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PlaygroundPolicy.md b/sdks/go/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..ebda56c --- /dev/null +++ b/sdks/go/docs/PlaygroundPolicy.md @@ -0,0 +1,165 @@ +# PlaygroundPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Effect** | Pointer to **string** | | [optional] [default to "allow"] +**Priority** | Pointer to **int32** | | [optional] [default to 100] +**PolicyId** | Pointer to **NullableString** | | [optional] +**Conditions** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPlaygroundPolicy + +`func NewPlaygroundPolicy(action string, ) *PlaygroundPolicy` + +NewPlaygroundPolicy instantiates a new PlaygroundPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlaygroundPolicyWithDefaults + +`func NewPlaygroundPolicyWithDefaults() *PlaygroundPolicy` + +NewPlaygroundPolicyWithDefaults instantiates a new PlaygroundPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *PlaygroundPolicy) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PlaygroundPolicy) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PlaygroundPolicy) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetEffect + +`func (o *PlaygroundPolicy) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *PlaygroundPolicy) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *PlaygroundPolicy) SetEffect(v string)` + +SetEffect sets Effect field to given value. + +### HasEffect + +`func (o *PlaygroundPolicy) HasEffect() bool` + +HasEffect returns a boolean if a field has been set. + +### GetPriority + +`func (o *PlaygroundPolicy) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PlaygroundPolicy) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PlaygroundPolicy) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PlaygroundPolicy) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetPolicyId + +`func (o *PlaygroundPolicy) GetPolicyId() string` + +GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. + +### GetPolicyIdOk + +`func (o *PlaygroundPolicy) GetPolicyIdOk() (*string, bool)` + +GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyId + +`func (o *PlaygroundPolicy) SetPolicyId(v string)` + +SetPolicyId sets PolicyId field to given value. + +### HasPolicyId + +`func (o *PlaygroundPolicy) HasPolicyId() bool` + +HasPolicyId returns a boolean if a field has been set. + +### SetPolicyIdNil + +`func (o *PlaygroundPolicy) SetPolicyIdNil(b bool)` + + SetPolicyIdNil sets the value for PolicyId to be an explicit nil + +### UnsetPolicyId +`func (o *PlaygroundPolicy) UnsetPolicyId()` + +UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil +### GetConditions + +`func (o *PlaygroundPolicy) GetConditions() map[string]interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *PlaygroundPolicy) GetConditionsOk() (*map[string]interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *PlaygroundPolicy) SetConditions(v map[string]interface{})` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *PlaygroundPolicy) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PolicyCreate.md b/sdks/go/docs/PolicyCreate.md new file mode 100644 index 0000000..7816b34 --- /dev/null +++ b/sdks/go/docs/PolicyCreate.md @@ -0,0 +1,155 @@ +# PolicyCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Effect** | Pointer to **string** | | [optional] [default to "allow"] +**Priority** | Pointer to **int32** | | [optional] [default to 100] +**State** | Pointer to **string** | | [optional] [default to "active"] +**Conditions** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPolicyCreate + +`func NewPolicyCreate(action string, ) *PolicyCreate` + +NewPolicyCreate instantiates a new PolicyCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyCreateWithDefaults + +`func NewPolicyCreateWithDefaults() *PolicyCreate` + +NewPolicyCreateWithDefaults instantiates a new PolicyCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *PolicyCreate) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PolicyCreate) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PolicyCreate) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetEffect + +`func (o *PolicyCreate) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *PolicyCreate) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *PolicyCreate) SetEffect(v string)` + +SetEffect sets Effect field to given value. + +### HasEffect + +`func (o *PolicyCreate) HasEffect() bool` + +HasEffect returns a boolean if a field has been set. + +### GetPriority + +`func (o *PolicyCreate) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PolicyCreate) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PolicyCreate) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PolicyCreate) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetState + +`func (o *PolicyCreate) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *PolicyCreate) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *PolicyCreate) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *PolicyCreate) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetConditions + +`func (o *PolicyCreate) GetConditions() map[string]interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *PolicyCreate) GetConditionsOk() (*map[string]interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *PolicyCreate) SetConditions(v map[string]interface{})` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *PolicyCreate) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PolicyOut.md b/sdks/go/docs/PolicyOut.md new file mode 100644 index 0000000..baa7d6a --- /dev/null +++ b/sdks/go/docs/PolicyOut.md @@ -0,0 +1,161 @@ +# PolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Action** | **string** | | +**Effect** | **string** | | +**Priority** | **int32** | | +**State** | Pointer to **string** | | [optional] [default to "active"] +**Conditions** | **map[string]interface{}** | | + +## Methods + +### NewPolicyOut + +`func NewPolicyOut(id int32, action string, effect string, priority int32, conditions map[string]interface{}, ) *PolicyOut` + +NewPolicyOut instantiates a new PolicyOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyOutWithDefaults + +`func NewPolicyOutWithDefaults() *PolicyOut` + +NewPolicyOutWithDefaults instantiates a new PolicyOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PolicyOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PolicyOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PolicyOut) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetAction + +`func (o *PolicyOut) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PolicyOut) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PolicyOut) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetEffect + +`func (o *PolicyOut) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *PolicyOut) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *PolicyOut) SetEffect(v string)` + +SetEffect sets Effect field to given value. + + +### GetPriority + +`func (o *PolicyOut) GetPriority() int32` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PolicyOut) GetPriorityOk() (*int32, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PolicyOut) SetPriority(v int32)` + +SetPriority sets Priority field to given value. + + +### GetState + +`func (o *PolicyOut) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *PolicyOut) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *PolicyOut) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *PolicyOut) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetConditions + +`func (o *PolicyOut) GetConditions() map[string]interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *PolicyOut) GetConditionsOk() (*map[string]interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *PolicyOut) SetConditions(v map[string]interface{})` + +SetConditions sets Conditions field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PolicySimulationInput.md b/sdks/go/docs/PolicySimulationInput.md new file mode 100644 index 0000000..63fe6be --- /dev/null +++ b/sdks/go/docs/PolicySimulationInput.md @@ -0,0 +1,138 @@ +# PolicySimulationInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PolicyChange** | Pointer to **NullableString** | | [optional] +**RelationshipChange** | Pointer to **map[string]interface{}** | | [optional] +**RoleChange** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPolicySimulationInput + +`func NewPolicySimulationInput() *PolicySimulationInput` + +NewPolicySimulationInput instantiates a new PolicySimulationInput object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicySimulationInputWithDefaults + +`func NewPolicySimulationInputWithDefaults() *PolicySimulationInput` + +NewPolicySimulationInputWithDefaults instantiates a new PolicySimulationInput object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicyChange + +`func (o *PolicySimulationInput) GetPolicyChange() string` + +GetPolicyChange returns the PolicyChange field if non-nil, zero value otherwise. + +### GetPolicyChangeOk + +`func (o *PolicySimulationInput) GetPolicyChangeOk() (*string, bool)` + +GetPolicyChangeOk returns a tuple with the PolicyChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyChange + +`func (o *PolicySimulationInput) SetPolicyChange(v string)` + +SetPolicyChange sets PolicyChange field to given value. + +### HasPolicyChange + +`func (o *PolicySimulationInput) HasPolicyChange() bool` + +HasPolicyChange returns a boolean if a field has been set. + +### SetPolicyChangeNil + +`func (o *PolicySimulationInput) SetPolicyChangeNil(b bool)` + + SetPolicyChangeNil sets the value for PolicyChange to be an explicit nil + +### UnsetPolicyChange +`func (o *PolicySimulationInput) UnsetPolicyChange()` + +UnsetPolicyChange ensures that no value is present for PolicyChange, not even an explicit nil +### GetRelationshipChange + +`func (o *PolicySimulationInput) GetRelationshipChange() map[string]interface{}` + +GetRelationshipChange returns the RelationshipChange field if non-nil, zero value otherwise. + +### GetRelationshipChangeOk + +`func (o *PolicySimulationInput) GetRelationshipChangeOk() (*map[string]interface{}, bool)` + +GetRelationshipChangeOk returns a tuple with the RelationshipChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationshipChange + +`func (o *PolicySimulationInput) SetRelationshipChange(v map[string]interface{})` + +SetRelationshipChange sets RelationshipChange field to given value. + +### HasRelationshipChange + +`func (o *PolicySimulationInput) HasRelationshipChange() bool` + +HasRelationshipChange returns a boolean if a field has been set. + +### SetRelationshipChangeNil + +`func (o *PolicySimulationInput) SetRelationshipChangeNil(b bool)` + + SetRelationshipChangeNil sets the value for RelationshipChange to be an explicit nil + +### UnsetRelationshipChange +`func (o *PolicySimulationInput) UnsetRelationshipChange()` + +UnsetRelationshipChange ensures that no value is present for RelationshipChange, not even an explicit nil +### GetRoleChange + +`func (o *PolicySimulationInput) GetRoleChange() map[string]interface{}` + +GetRoleChange returns the RoleChange field if non-nil, zero value otherwise. + +### GetRoleChangeOk + +`func (o *PolicySimulationInput) GetRoleChangeOk() (*map[string]interface{}, bool)` + +GetRoleChangeOk returns a tuple with the RoleChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleChange + +`func (o *PolicySimulationInput) SetRoleChange(v map[string]interface{})` + +SetRoleChange sets RoleChange field to given value. + +### HasRoleChange + +`func (o *PolicySimulationInput) HasRoleChange() bool` + +HasRoleChange returns a boolean if a field has been set. + +### SetRoleChangeNil + +`func (o *PolicySimulationInput) SetRoleChangeNil(b bool)` + + SetRoleChangeNil sets the value for RoleChange to be an explicit nil + +### UnsetRoleChange +`func (o *PolicySimulationInput) UnsetRoleChange()` + +UnsetRoleChange ensures that no value is present for RoleChange, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PolicySimulationRequest.md b/sdks/go/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..dfb37e9 --- /dev/null +++ b/sdks/go/docs/PolicySimulationRequest.md @@ -0,0 +1,82 @@ +# PolicySimulationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Simulate** | Pointer to [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] +**Request** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPolicySimulationRequest + +`func NewPolicySimulationRequest() *PolicySimulationRequest` + +NewPolicySimulationRequest instantiates a new PolicySimulationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicySimulationRequestWithDefaults + +`func NewPolicySimulationRequestWithDefaults() *PolicySimulationRequest` + +NewPolicySimulationRequestWithDefaults instantiates a new PolicySimulationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSimulate + +`func (o *PolicySimulationRequest) GetSimulate() PolicySimulationInput` + +GetSimulate returns the Simulate field if non-nil, zero value otherwise. + +### GetSimulateOk + +`func (o *PolicySimulationRequest) GetSimulateOk() (*PolicySimulationInput, bool)` + +GetSimulateOk returns a tuple with the Simulate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSimulate + +`func (o *PolicySimulationRequest) SetSimulate(v PolicySimulationInput)` + +SetSimulate sets Simulate field to given value. + +### HasSimulate + +`func (o *PolicySimulationRequest) HasSimulate() bool` + +HasSimulate returns a boolean if a field has been set. + +### GetRequest + +`func (o *PolicySimulationRequest) GetRequest() map[string]interface{}` + +GetRequest returns the Request field if non-nil, zero value otherwise. + +### GetRequestOk + +`func (o *PolicySimulationRequest) GetRequestOk() (*map[string]interface{}, bool)` + +GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequest + +`func (o *PolicySimulationRequest) SetRequest(v map[string]interface{})` + +SetRequest sets Request field to given value. + +### HasRequest + +`func (o *PolicySimulationRequest) HasRequest() bool` + +HasRequest returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/PolicySimulationResponse.md b/sdks/go/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..5b0ea8a --- /dev/null +++ b/sdks/go/docs/PolicySimulationResponse.md @@ -0,0 +1,72 @@ +# PolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DecisionBefore** | **map[string]interface{}** | | +**DecisionAfter** | **map[string]interface{}** | | + +## Methods + +### NewPolicySimulationResponse + +`func NewPolicySimulationResponse(decisionBefore map[string]interface{}, decisionAfter map[string]interface{}, ) *PolicySimulationResponse` + +NewPolicySimulationResponse instantiates a new PolicySimulationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicySimulationResponseWithDefaults + +`func NewPolicySimulationResponseWithDefaults() *PolicySimulationResponse` + +NewPolicySimulationResponseWithDefaults instantiates a new PolicySimulationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDecisionBefore + +`func (o *PolicySimulationResponse) GetDecisionBefore() map[string]interface{}` + +GetDecisionBefore returns the DecisionBefore field if non-nil, zero value otherwise. + +### GetDecisionBeforeOk + +`func (o *PolicySimulationResponse) GetDecisionBeforeOk() (*map[string]interface{}, bool)` + +GetDecisionBeforeOk returns a tuple with the DecisionBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecisionBefore + +`func (o *PolicySimulationResponse) SetDecisionBefore(v map[string]interface{})` + +SetDecisionBefore sets DecisionBefore field to given value. + + +### GetDecisionAfter + +`func (o *PolicySimulationResponse) GetDecisionAfter() map[string]interface{}` + +GetDecisionAfter returns the DecisionAfter field if non-nil, zero value otherwise. + +### GetDecisionAfterOk + +`func (o *PolicySimulationResponse) GetDecisionAfterOk() (*map[string]interface{}, bool)` + +GetDecisionAfterOk returns a tuple with the DecisionAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecisionAfter + +`func (o *PolicySimulationResponse) SetDecisionAfter(v map[string]interface{})` + +SetDecisionAfter sets DecisionAfter field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/RelationshipCreate.md b/sdks/go/docs/RelationshipCreate.md new file mode 100644 index 0000000..703e38a --- /dev/null +++ b/sdks/go/docs/RelationshipCreate.md @@ -0,0 +1,135 @@ +# RelationshipCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**Relation** | **string** | | +**ObjectType** | **string** | | +**ObjectId** | **string** | | + +## Methods + +### NewRelationshipCreate + +`func NewRelationshipCreate(subjectType string, subjectId string, relation string, objectType string, objectId string, ) *RelationshipCreate` + +NewRelationshipCreate instantiates a new RelationshipCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRelationshipCreateWithDefaults + +`func NewRelationshipCreateWithDefaults() *RelationshipCreate` + +NewRelationshipCreateWithDefaults instantiates a new RelationshipCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectType + +`func (o *RelationshipCreate) GetSubjectType() string` + +GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. + +### GetSubjectTypeOk + +`func (o *RelationshipCreate) GetSubjectTypeOk() (*string, bool)` + +GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectType + +`func (o *RelationshipCreate) SetSubjectType(v string)` + +SetSubjectType sets SubjectType field to given value. + + +### GetSubjectId + +`func (o *RelationshipCreate) GetSubjectId() string` + +GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. + +### GetSubjectIdOk + +`func (o *RelationshipCreate) GetSubjectIdOk() (*string, bool)` + +GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectId + +`func (o *RelationshipCreate) SetSubjectId(v string)` + +SetSubjectId sets SubjectId field to given value. + + +### GetRelation + +`func (o *RelationshipCreate) GetRelation() string` + +GetRelation returns the Relation field if non-nil, zero value otherwise. + +### GetRelationOk + +`func (o *RelationshipCreate) GetRelationOk() (*string, bool)` + +GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelation + +`func (o *RelationshipCreate) SetRelation(v string)` + +SetRelation sets Relation field to given value. + + +### GetObjectType + +`func (o *RelationshipCreate) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *RelationshipCreate) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *RelationshipCreate) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *RelationshipCreate) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *RelationshipCreate) GetObjectIdOk() (*string, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *RelationshipCreate) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/RelationshipOut.md b/sdks/go/docs/RelationshipOut.md new file mode 100644 index 0000000..b7195d6 --- /dev/null +++ b/sdks/go/docs/RelationshipOut.md @@ -0,0 +1,156 @@ +# RelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectType** | **string** | | +**SubjectId** | **string** | | +**Relation** | **string** | | +**ObjectType** | **string** | | +**ObjectId** | **string** | | +**Id** | **int32** | | + +## Methods + +### NewRelationshipOut + +`func NewRelationshipOut(subjectType string, subjectId string, relation string, objectType string, objectId string, id int32, ) *RelationshipOut` + +NewRelationshipOut instantiates a new RelationshipOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRelationshipOutWithDefaults + +`func NewRelationshipOutWithDefaults() *RelationshipOut` + +NewRelationshipOutWithDefaults instantiates a new RelationshipOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectType + +`func (o *RelationshipOut) GetSubjectType() string` + +GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. + +### GetSubjectTypeOk + +`func (o *RelationshipOut) GetSubjectTypeOk() (*string, bool)` + +GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectType + +`func (o *RelationshipOut) SetSubjectType(v string)` + +SetSubjectType sets SubjectType field to given value. + + +### GetSubjectId + +`func (o *RelationshipOut) GetSubjectId() string` + +GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. + +### GetSubjectIdOk + +`func (o *RelationshipOut) GetSubjectIdOk() (*string, bool)` + +GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectId + +`func (o *RelationshipOut) SetSubjectId(v string)` + +SetSubjectId sets SubjectId field to given value. + + +### GetRelation + +`func (o *RelationshipOut) GetRelation() string` + +GetRelation returns the Relation field if non-nil, zero value otherwise. + +### GetRelationOk + +`func (o *RelationshipOut) GetRelationOk() (*string, bool)` + +GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelation + +`func (o *RelationshipOut) SetRelation(v string)` + +SetRelation sets Relation field to given value. + + +### GetObjectType + +`func (o *RelationshipOut) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *RelationshipOut) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *RelationshipOut) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *RelationshipOut) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *RelationshipOut) GetObjectIdOk() (*string, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *RelationshipOut) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + + +### GetId + +`func (o *RelationshipOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RelationshipOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RelationshipOut) SetId(v int32)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/RoleCreate.md b/sdks/go/docs/RoleCreate.md new file mode 100644 index 0000000..8ae2855 --- /dev/null +++ b/sdks/go/docs/RoleCreate.md @@ -0,0 +1,51 @@ +# RoleCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewRoleCreate + +`func NewRoleCreate(name string, ) *RoleCreate` + +NewRoleCreate instantiates a new RoleCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleCreateWithDefaults + +`func NewRoleCreateWithDefaults() *RoleCreate` + +NewRoleCreateWithDefaults instantiates a new RoleCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *RoleCreate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RoleCreate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RoleCreate) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/RoleOut.md b/sdks/go/docs/RoleOut.md new file mode 100644 index 0000000..a0ac5fb --- /dev/null +++ b/sdks/go/docs/RoleOut.md @@ -0,0 +1,72 @@ +# RoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | + +## Methods + +### NewRoleOut + +`func NewRoleOut(id int32, name string, ) *RoleOut` + +NewRoleOut instantiates a new RoleOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleOutWithDefaults + +`func NewRoleOutWithDefaults() *RoleOut` + +NewRoleOutWithDefaults instantiates a new RoleOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RoleOut) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RoleOut) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RoleOut) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *RoleOut) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RoleOut) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RoleOut) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/RoleUpdate.md b/sdks/go/docs/RoleUpdate.md new file mode 100644 index 0000000..0aca4db --- /dev/null +++ b/sdks/go/docs/RoleUpdate.md @@ -0,0 +1,51 @@ +# RoleUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewRoleUpdate + +`func NewRoleUpdate(name string, ) *RoleUpdate` + +NewRoleUpdate instantiates a new RoleUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleUpdateWithDefaults + +`func NewRoleUpdateWithDefaults() *RoleUpdate` + +NewRoleUpdateWithDefaults instantiates a new RoleUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *RoleUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RoleUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RoleUpdate) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SimulationResponse.md b/sdks/go/docs/SimulationResponse.md new file mode 100644 index 0000000..540de8e --- /dev/null +++ b/sdks/go/docs/SimulationResponse.md @@ -0,0 +1,232 @@ +# SimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Decision** | **string** | | +**MatchedPolicies** | **[]string** | | +**Reason** | Pointer to **NullableString** | | [optional] +**PolicyId** | Pointer to **NullableString** | | [optional] +**ExplainTrace** | Pointer to **[]map[string]interface{}** | | [optional] +**FailedConditions** | Pointer to **[]string** | | [optional] +**Revision** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewSimulationResponse + +`func NewSimulationResponse(decision string, matchedPolicies []string, ) *SimulationResponse` + +NewSimulationResponse instantiates a new SimulationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSimulationResponseWithDefaults + +`func NewSimulationResponseWithDefaults() *SimulationResponse` + +NewSimulationResponseWithDefaults instantiates a new SimulationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDecision + +`func (o *SimulationResponse) GetDecision() string` + +GetDecision returns the Decision field if non-nil, zero value otherwise. + +### GetDecisionOk + +`func (o *SimulationResponse) GetDecisionOk() (*string, bool)` + +GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecision + +`func (o *SimulationResponse) SetDecision(v string)` + +SetDecision sets Decision field to given value. + + +### GetMatchedPolicies + +`func (o *SimulationResponse) GetMatchedPolicies() []string` + +GetMatchedPolicies returns the MatchedPolicies field if non-nil, zero value otherwise. + +### GetMatchedPoliciesOk + +`func (o *SimulationResponse) GetMatchedPoliciesOk() (*[]string, bool)` + +GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedPolicies + +`func (o *SimulationResponse) SetMatchedPolicies(v []string)` + +SetMatchedPolicies sets MatchedPolicies field to given value. + + +### GetReason + +`func (o *SimulationResponse) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *SimulationResponse) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *SimulationResponse) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *SimulationResponse) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### SetReasonNil + +`func (o *SimulationResponse) SetReasonNil(b bool)` + + SetReasonNil sets the value for Reason to be an explicit nil + +### UnsetReason +`func (o *SimulationResponse) UnsetReason()` + +UnsetReason ensures that no value is present for Reason, not even an explicit nil +### GetPolicyId + +`func (o *SimulationResponse) GetPolicyId() string` + +GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. + +### GetPolicyIdOk + +`func (o *SimulationResponse) GetPolicyIdOk() (*string, bool)` + +GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyId + +`func (o *SimulationResponse) SetPolicyId(v string)` + +SetPolicyId sets PolicyId field to given value. + +### HasPolicyId + +`func (o *SimulationResponse) HasPolicyId() bool` + +HasPolicyId returns a boolean if a field has been set. + +### SetPolicyIdNil + +`func (o *SimulationResponse) SetPolicyIdNil(b bool)` + + SetPolicyIdNil sets the value for PolicyId to be an explicit nil + +### UnsetPolicyId +`func (o *SimulationResponse) UnsetPolicyId()` + +UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil +### GetExplainTrace + +`func (o *SimulationResponse) GetExplainTrace() []map[string]interface{}` + +GetExplainTrace returns the ExplainTrace field if non-nil, zero value otherwise. + +### GetExplainTraceOk + +`func (o *SimulationResponse) GetExplainTraceOk() (*[]map[string]interface{}, bool)` + +GetExplainTraceOk returns a tuple with the ExplainTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplainTrace + +`func (o *SimulationResponse) SetExplainTrace(v []map[string]interface{})` + +SetExplainTrace sets ExplainTrace field to given value. + +### HasExplainTrace + +`func (o *SimulationResponse) HasExplainTrace() bool` + +HasExplainTrace returns a boolean if a field has been set. + +### GetFailedConditions + +`func (o *SimulationResponse) GetFailedConditions() []string` + +GetFailedConditions returns the FailedConditions field if non-nil, zero value otherwise. + +### GetFailedConditionsOk + +`func (o *SimulationResponse) GetFailedConditionsOk() (*[]string, bool)` + +GetFailedConditionsOk returns a tuple with the FailedConditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedConditions + +`func (o *SimulationResponse) SetFailedConditions(v []string)` + +SetFailedConditions sets FailedConditions field to given value. + +### HasFailedConditions + +`func (o *SimulationResponse) HasFailedConditions() bool` + +HasFailedConditions returns a boolean if a field has been set. + +### GetRevision + +`func (o *SimulationResponse) GetRevision() int32` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *SimulationResponse) GetRevisionOk() (*int32, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *SimulationResponse) SetRevision(v int32)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *SimulationResponse) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### SetRevisionNil + +`func (o *SimulationResponse) SetRevisionNil(b bool)` + + SetRevisionNil sets the value for Revision to be an explicit nil + +### UnsetRevision +`func (o *SimulationResponse) UnsetRevision()` + +UnsetRevision ensures that no value is present for Revision, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseACLOut.md b/sdks/go/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..839e588 --- /dev/null +++ b/sdks/go/docs/SuccessResponseACLOut.md @@ -0,0 +1,103 @@ +# SuccessResponseACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ACLOut**](ACLOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseACLOut + +`func NewSuccessResponseACLOut(data ACLOut, ) *SuccessResponseACLOut` + +NewSuccessResponseACLOut instantiates a new SuccessResponseACLOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseACLOutWithDefaults + +`func NewSuccessResponseACLOutWithDefaults() *SuccessResponseACLOut` + +NewSuccessResponseACLOutWithDefaults instantiates a new SuccessResponseACLOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseACLOut) GetData() ACLOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseACLOut) GetDataOk() (*ACLOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseACLOut) SetData(v ACLOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseACLOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseACLOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseACLOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseACLOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseACLOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseACLOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseACLOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseACLOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseAccessDecisionResponse.md b/sdks/go/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..806cc42 --- /dev/null +++ b/sdks/go/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,103 @@ +# SuccessResponseAccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseAccessDecisionResponse + +`func NewSuccessResponseAccessDecisionResponse(data AccessDecisionResponse, ) *SuccessResponseAccessDecisionResponse` + +NewSuccessResponseAccessDecisionResponse instantiates a new SuccessResponseAccessDecisionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseAccessDecisionResponseWithDefaults + +`func NewSuccessResponseAccessDecisionResponseWithDefaults() *SuccessResponseAccessDecisionResponse` + +NewSuccessResponseAccessDecisionResponseWithDefaults instantiates a new SuccessResponseAccessDecisionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseAccessDecisionResponse) GetData() AccessDecisionResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseAccessDecisionResponse) GetDataOk() (*AccessDecisionResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseAccessDecisionResponse) SetData(v AccessDecisionResponse)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseAccessDecisionResponse) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseAccessDecisionResponse) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseAccessDecisionResponse) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseAccessDecisionResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseAccessDecisionResponse) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseAccessDecisionResponse) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseAccessDecisionResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseAdminLoginResponse.md b/sdks/go/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..8dbfc66 --- /dev/null +++ b/sdks/go/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,103 @@ +# SuccessResponseAdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseAdminLoginResponse + +`func NewSuccessResponseAdminLoginResponse(data AdminLoginResponse, ) *SuccessResponseAdminLoginResponse` + +NewSuccessResponseAdminLoginResponse instantiates a new SuccessResponseAdminLoginResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseAdminLoginResponseWithDefaults + +`func NewSuccessResponseAdminLoginResponseWithDefaults() *SuccessResponseAdminLoginResponse` + +NewSuccessResponseAdminLoginResponseWithDefaults instantiates a new SuccessResponseAdminLoginResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseAdminLoginResponse) GetData() AdminLoginResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseAdminLoginResponse) GetDataOk() (*AdminLoginResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseAdminLoginResponse) SetData(v AdminLoginResponse)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseAdminLoginResponse) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseAdminLoginResponse) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseAdminLoginResponse) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseAdminLoginResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseAdminLoginResponse) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseAdminLoginResponse) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseAdminLoginResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseAuthModelOut.md b/sdks/go/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..9a2c811 --- /dev/null +++ b/sdks/go/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,103 @@ +# SuccessResponseAuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AuthModelOut**](AuthModelOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseAuthModelOut + +`func NewSuccessResponseAuthModelOut(data AuthModelOut, ) *SuccessResponseAuthModelOut` + +NewSuccessResponseAuthModelOut instantiates a new SuccessResponseAuthModelOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseAuthModelOutWithDefaults + +`func NewSuccessResponseAuthModelOutWithDefaults() *SuccessResponseAuthModelOut` + +NewSuccessResponseAuthModelOutWithDefaults instantiates a new SuccessResponseAuthModelOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseAuthModelOut) GetData() AuthModelOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseAuthModelOut) GetDataOk() (*AuthModelOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseAuthModelOut) SetData(v AuthModelOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseAuthModelOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseAuthModelOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseAuthModelOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseAuthModelOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseAuthModelOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseAuthModelOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseAuthModelOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseAuthModelOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseBatchAccessResponse.md b/sdks/go/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..2b4d2d6 --- /dev/null +++ b/sdks/go/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,103 @@ +# SuccessResponseBatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseBatchAccessResponse + +`func NewSuccessResponseBatchAccessResponse(data BatchAccessResponse, ) *SuccessResponseBatchAccessResponse` + +NewSuccessResponseBatchAccessResponse instantiates a new SuccessResponseBatchAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseBatchAccessResponseWithDefaults + +`func NewSuccessResponseBatchAccessResponseWithDefaults() *SuccessResponseBatchAccessResponse` + +NewSuccessResponseBatchAccessResponseWithDefaults instantiates a new SuccessResponseBatchAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseBatchAccessResponse) GetData() BatchAccessResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseBatchAccessResponse) GetDataOk() (*BatchAccessResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseBatchAccessResponse) SetData(v BatchAccessResponse)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseBatchAccessResponse) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseBatchAccessResponse) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseBatchAccessResponse) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseBatchAccessResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseBatchAccessResponse) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseBatchAccessResponse) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseBatchAccessResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseDictStrAny.md b/sdks/go/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..d51aa3c --- /dev/null +++ b/sdks/go/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,103 @@ +# SuccessResponseDictStrAny + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **map[string]interface{}** | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseDictStrAny + +`func NewSuccessResponseDictStrAny(data map[string]interface{}, ) *SuccessResponseDictStrAny` + +NewSuccessResponseDictStrAny instantiates a new SuccessResponseDictStrAny object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseDictStrAnyWithDefaults + +`func NewSuccessResponseDictStrAnyWithDefaults() *SuccessResponseDictStrAny` + +NewSuccessResponseDictStrAnyWithDefaults instantiates a new SuccessResponseDictStrAny object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseDictStrAny) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseDictStrAny) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseDictStrAny) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseDictStrAny) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseDictStrAny) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseDictStrAny) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseDictStrAny) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseDictStrAny) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseDictStrAny) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseDictStrAny) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseDictStrAny) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseDictStrInt.md b/sdks/go/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..2fdf6e7 --- /dev/null +++ b/sdks/go/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,103 @@ +# SuccessResponseDictStrInt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **map[string]int32** | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseDictStrInt + +`func NewSuccessResponseDictStrInt(data map[string]int32, ) *SuccessResponseDictStrInt` + +NewSuccessResponseDictStrInt instantiates a new SuccessResponseDictStrInt object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseDictStrIntWithDefaults + +`func NewSuccessResponseDictStrIntWithDefaults() *SuccessResponseDictStrInt` + +NewSuccessResponseDictStrIntWithDefaults instantiates a new SuccessResponseDictStrInt object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseDictStrInt) GetData() map[string]int32` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseDictStrInt) GetDataOk() (*map[string]int32, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseDictStrInt) SetData(v map[string]int32)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseDictStrInt) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseDictStrInt) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseDictStrInt) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseDictStrInt) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseDictStrInt) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseDictStrInt) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseDictStrInt) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseDictStrInt) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseDictStrObject.md b/sdks/go/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..7d46a6f --- /dev/null +++ b/sdks/go/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,103 @@ +# SuccessResponseDictStrObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **map[string]interface{}** | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseDictStrObject + +`func NewSuccessResponseDictStrObject(data map[string]interface{}, ) *SuccessResponseDictStrObject` + +NewSuccessResponseDictStrObject instantiates a new SuccessResponseDictStrObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseDictStrObjectWithDefaults + +`func NewSuccessResponseDictStrObjectWithDefaults() *SuccessResponseDictStrObject` + +NewSuccessResponseDictStrObjectWithDefaults instantiates a new SuccessResponseDictStrObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseDictStrObject) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseDictStrObject) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseDictStrObject) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseDictStrObject) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseDictStrObject) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseDictStrObject) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseDictStrObject) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseDictStrObject) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseDictStrObject) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseDictStrObject) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseDictStrObject) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseDictStrStr.md b/sdks/go/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..6aba0e0 --- /dev/null +++ b/sdks/go/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,103 @@ +# SuccessResponseDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **map[string]string** | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseDictStrStr + +`func NewSuccessResponseDictStrStr(data map[string]string, ) *SuccessResponseDictStrStr` + +NewSuccessResponseDictStrStr instantiates a new SuccessResponseDictStrStr object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseDictStrStrWithDefaults + +`func NewSuccessResponseDictStrStrWithDefaults() *SuccessResponseDictStrStr` + +NewSuccessResponseDictStrStrWithDefaults instantiates a new SuccessResponseDictStrStr object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseDictStrStr) GetData() map[string]string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseDictStrStr) GetDataOk() (*map[string]string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseDictStrStr) SetData(v map[string]string)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseDictStrStr) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseDictStrStr) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseDictStrStr) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseDictStrStr) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseDictStrStr) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseDictStrStr) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseDictStrStr) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseDictStrStr) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..9c89d2b --- /dev/null +++ b/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,103 @@ +# SuccessResponseDictStrUnionIntStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]DataValue**](DataValue.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseDictStrUnionIntStr + +`func NewSuccessResponseDictStrUnionIntStr(data map[string]DataValue, ) *SuccessResponseDictStrUnionIntStr` + +NewSuccessResponseDictStrUnionIntStr instantiates a new SuccessResponseDictStrUnionIntStr object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseDictStrUnionIntStrWithDefaults + +`func NewSuccessResponseDictStrUnionIntStrWithDefaults() *SuccessResponseDictStrUnionIntStr` + +NewSuccessResponseDictStrUnionIntStrWithDefaults instantiates a new SuccessResponseDictStrUnionIntStr object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseDictStrUnionIntStr) GetData() map[string]DataValue` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseDictStrUnionIntStr) GetDataOk() (*map[string]DataValue, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseDictStrUnionIntStr) SetData(v map[string]DataValue)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseDictStrUnionIntStr) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseDictStrUnionIntStr) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseDictStrUnionIntStr) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseDictStrUnionIntStr) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseDictStrUnionIntStr) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseDictStrUnionIntStr) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseDictStrUnionIntStr) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..d4d229a --- /dev/null +++ b/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,103 @@ +# SuccessResponseImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseImpactAnalysisResponse + +`func NewSuccessResponseImpactAnalysisResponse(data ImpactAnalysisResponse, ) *SuccessResponseImpactAnalysisResponse` + +NewSuccessResponseImpactAnalysisResponse instantiates a new SuccessResponseImpactAnalysisResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseImpactAnalysisResponseWithDefaults + +`func NewSuccessResponseImpactAnalysisResponseWithDefaults() *SuccessResponseImpactAnalysisResponse` + +NewSuccessResponseImpactAnalysisResponseWithDefaults instantiates a new SuccessResponseImpactAnalysisResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseImpactAnalysisResponse) GetData() ImpactAnalysisResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseImpactAnalysisResponse) GetDataOk() (*ImpactAnalysisResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseImpactAnalysisResponse) SetData(v ImpactAnalysisResponse)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseImpactAnalysisResponse) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseImpactAnalysisResponse) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseImpactAnalysisResponse) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseImpactAnalysisResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseImpactAnalysisResponse) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseImpactAnalysisResponse) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseImpactAnalysisResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseListACLOut.md b/sdks/go/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..53c538e --- /dev/null +++ b/sdks/go/docs/SuccessResponseListACLOut.md @@ -0,0 +1,103 @@ +# SuccessResponseListACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]ACLOut**](ACLOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseListACLOut + +`func NewSuccessResponseListACLOut(data []ACLOut, ) *SuccessResponseListACLOut` + +NewSuccessResponseListACLOut instantiates a new SuccessResponseListACLOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseListACLOutWithDefaults + +`func NewSuccessResponseListACLOutWithDefaults() *SuccessResponseListACLOut` + +NewSuccessResponseListACLOutWithDefaults instantiates a new SuccessResponseListACLOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseListACLOut) GetData() []ACLOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseListACLOut) GetDataOk() (*[]ACLOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseListACLOut) SetData(v []ACLOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseListACLOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseListACLOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseListACLOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseListACLOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseListACLOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseListACLOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseListACLOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseListACLOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseListAuditRecordOut.md b/sdks/go/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..dd44bf5 --- /dev/null +++ b/sdks/go/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,103 @@ +# SuccessResponseListAuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]AuditRecordOut**](AuditRecordOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseListAuditRecordOut + +`func NewSuccessResponseListAuditRecordOut(data []AuditRecordOut, ) *SuccessResponseListAuditRecordOut` + +NewSuccessResponseListAuditRecordOut instantiates a new SuccessResponseListAuditRecordOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseListAuditRecordOutWithDefaults + +`func NewSuccessResponseListAuditRecordOutWithDefaults() *SuccessResponseListAuditRecordOut` + +NewSuccessResponseListAuditRecordOutWithDefaults instantiates a new SuccessResponseListAuditRecordOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseListAuditRecordOut) GetData() []AuditRecordOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseListAuditRecordOut) GetDataOk() (*[]AuditRecordOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseListAuditRecordOut) SetData(v []AuditRecordOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseListAuditRecordOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseListAuditRecordOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseListAuditRecordOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseListAuditRecordOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseListAuditRecordOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseListAuditRecordOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseListAuditRecordOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseListDictStrStr.md b/sdks/go/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..6af97d0 --- /dev/null +++ b/sdks/go/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,103 @@ +# SuccessResponseListDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **[]map[string]string** | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseListDictStrStr + +`func NewSuccessResponseListDictStrStr(data []map[string]string, ) *SuccessResponseListDictStrStr` + +NewSuccessResponseListDictStrStr instantiates a new SuccessResponseListDictStrStr object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseListDictStrStrWithDefaults + +`func NewSuccessResponseListDictStrStrWithDefaults() *SuccessResponseListDictStrStr` + +NewSuccessResponseListDictStrStrWithDefaults instantiates a new SuccessResponseListDictStrStr object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseListDictStrStr) GetData() []map[string]string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseListDictStrStr) GetDataOk() (*[]map[string]string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseListDictStrStr) SetData(v []map[string]string)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseListDictStrStr) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseListDictStrStr) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseListDictStrStr) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseListDictStrStr) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseListDictStrStr) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseListDictStrStr) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseListDictStrStr) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseListDictStrStr) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseListPermissionOut.md b/sdks/go/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..97c535b --- /dev/null +++ b/sdks/go/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,103 @@ +# SuccessResponseListPermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]PermissionOut**](PermissionOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseListPermissionOut + +`func NewSuccessResponseListPermissionOut(data []PermissionOut, ) *SuccessResponseListPermissionOut` + +NewSuccessResponseListPermissionOut instantiates a new SuccessResponseListPermissionOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseListPermissionOutWithDefaults + +`func NewSuccessResponseListPermissionOutWithDefaults() *SuccessResponseListPermissionOut` + +NewSuccessResponseListPermissionOutWithDefaults instantiates a new SuccessResponseListPermissionOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseListPermissionOut) GetData() []PermissionOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseListPermissionOut) GetDataOk() (*[]PermissionOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseListPermissionOut) SetData(v []PermissionOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseListPermissionOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseListPermissionOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseListPermissionOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseListPermissionOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseListPermissionOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseListPermissionOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseListPermissionOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseListPermissionOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseListPolicyOut.md b/sdks/go/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..a07aa88 --- /dev/null +++ b/sdks/go/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,103 @@ +# SuccessResponseListPolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]PolicyOut**](PolicyOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseListPolicyOut + +`func NewSuccessResponseListPolicyOut(data []PolicyOut, ) *SuccessResponseListPolicyOut` + +NewSuccessResponseListPolicyOut instantiates a new SuccessResponseListPolicyOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseListPolicyOutWithDefaults + +`func NewSuccessResponseListPolicyOutWithDefaults() *SuccessResponseListPolicyOut` + +NewSuccessResponseListPolicyOutWithDefaults instantiates a new SuccessResponseListPolicyOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseListPolicyOut) GetData() []PolicyOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseListPolicyOut) GetDataOk() (*[]PolicyOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseListPolicyOut) SetData(v []PolicyOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseListPolicyOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseListPolicyOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseListPolicyOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseListPolicyOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseListPolicyOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseListPolicyOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseListPolicyOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseListPolicyOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseListRoleOut.md b/sdks/go/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..9a41a18 --- /dev/null +++ b/sdks/go/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,103 @@ +# SuccessResponseListRoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]RoleOut**](RoleOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseListRoleOut + +`func NewSuccessResponseListRoleOut(data []RoleOut, ) *SuccessResponseListRoleOut` + +NewSuccessResponseListRoleOut instantiates a new SuccessResponseListRoleOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseListRoleOutWithDefaults + +`func NewSuccessResponseListRoleOutWithDefaults() *SuccessResponseListRoleOut` + +NewSuccessResponseListRoleOutWithDefaults instantiates a new SuccessResponseListRoleOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseListRoleOut) GetData() []RoleOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseListRoleOut) GetDataOk() (*[]RoleOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseListRoleOut) SetData(v []RoleOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseListRoleOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseListRoleOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseListRoleOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseListRoleOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseListRoleOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseListRoleOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseListRoleOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseListRoleOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponsePermissionOut.md b/sdks/go/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..3bbc3ae --- /dev/null +++ b/sdks/go/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,103 @@ +# SuccessResponsePermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PermissionOut**](PermissionOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponsePermissionOut + +`func NewSuccessResponsePermissionOut(data PermissionOut, ) *SuccessResponsePermissionOut` + +NewSuccessResponsePermissionOut instantiates a new SuccessResponsePermissionOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponsePermissionOutWithDefaults + +`func NewSuccessResponsePermissionOutWithDefaults() *SuccessResponsePermissionOut` + +NewSuccessResponsePermissionOutWithDefaults instantiates a new SuccessResponsePermissionOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponsePermissionOut) GetData() PermissionOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponsePermissionOut) GetDataOk() (*PermissionOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponsePermissionOut) SetData(v PermissionOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponsePermissionOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponsePermissionOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponsePermissionOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponsePermissionOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponsePermissionOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponsePermissionOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponsePermissionOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponsePermissionOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponsePolicyOut.md b/sdks/go/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..0d78fac --- /dev/null +++ b/sdks/go/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,103 @@ +# SuccessResponsePolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PolicyOut**](PolicyOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponsePolicyOut + +`func NewSuccessResponsePolicyOut(data PolicyOut, ) *SuccessResponsePolicyOut` + +NewSuccessResponsePolicyOut instantiates a new SuccessResponsePolicyOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponsePolicyOutWithDefaults + +`func NewSuccessResponsePolicyOutWithDefaults() *SuccessResponsePolicyOut` + +NewSuccessResponsePolicyOutWithDefaults instantiates a new SuccessResponsePolicyOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponsePolicyOut) GetData() PolicyOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponsePolicyOut) GetDataOk() (*PolicyOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponsePolicyOut) SetData(v PolicyOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponsePolicyOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponsePolicyOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponsePolicyOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponsePolicyOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponsePolicyOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponsePolicyOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponsePolicyOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponsePolicyOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponsePolicySimulationResponse.md b/sdks/go/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..bcf2e7b --- /dev/null +++ b/sdks/go/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,103 @@ +# SuccessResponsePolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponsePolicySimulationResponse + +`func NewSuccessResponsePolicySimulationResponse(data PolicySimulationResponse, ) *SuccessResponsePolicySimulationResponse` + +NewSuccessResponsePolicySimulationResponse instantiates a new SuccessResponsePolicySimulationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponsePolicySimulationResponseWithDefaults + +`func NewSuccessResponsePolicySimulationResponseWithDefaults() *SuccessResponsePolicySimulationResponse` + +NewSuccessResponsePolicySimulationResponseWithDefaults instantiates a new SuccessResponsePolicySimulationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponsePolicySimulationResponse) GetData() PolicySimulationResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponsePolicySimulationResponse) GetDataOk() (*PolicySimulationResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponsePolicySimulationResponse) SetData(v PolicySimulationResponse)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponsePolicySimulationResponse) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponsePolicySimulationResponse) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponsePolicySimulationResponse) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponsePolicySimulationResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponsePolicySimulationResponse) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponsePolicySimulationResponse) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponsePolicySimulationResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseRelationshipOut.md b/sdks/go/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..bec03b2 --- /dev/null +++ b/sdks/go/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,103 @@ +# SuccessResponseRelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RelationshipOut**](RelationshipOut.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseRelationshipOut + +`func NewSuccessResponseRelationshipOut(data RelationshipOut, ) *SuccessResponseRelationshipOut` + +NewSuccessResponseRelationshipOut instantiates a new SuccessResponseRelationshipOut object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseRelationshipOutWithDefaults + +`func NewSuccessResponseRelationshipOutWithDefaults() *SuccessResponseRelationshipOut` + +NewSuccessResponseRelationshipOutWithDefaults instantiates a new SuccessResponseRelationshipOut object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseRelationshipOut) GetData() RelationshipOut` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseRelationshipOut) GetDataOk() (*RelationshipOut, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseRelationshipOut) SetData(v RelationshipOut)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseRelationshipOut) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseRelationshipOut) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseRelationshipOut) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseRelationshipOut) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseRelationshipOut) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseRelationshipOut) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseRelationshipOut) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseRelationshipOut) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/SuccessResponseSimulationResponse.md b/sdks/go/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..0d70f02 --- /dev/null +++ b/sdks/go/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,103 @@ +# SuccessResponseSimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**SimulationResponse**](SimulationResponse.md) | | +**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] +**Error** | Pointer to [**nil**](nil.md) | | [optional] + +## Methods + +### NewSuccessResponseSimulationResponse + +`func NewSuccessResponseSimulationResponse(data SimulationResponse, ) *SuccessResponseSimulationResponse` + +NewSuccessResponseSimulationResponse instantiates a new SuccessResponseSimulationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSuccessResponseSimulationResponseWithDefaults + +`func NewSuccessResponseSimulationResponseWithDefaults() *SuccessResponseSimulationResponse` + +NewSuccessResponseSimulationResponseWithDefaults instantiates a new SuccessResponseSimulationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SuccessResponseSimulationResponse) GetData() SimulationResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SuccessResponseSimulationResponse) GetDataOk() (*SimulationResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SuccessResponseSimulationResponse) SetData(v SimulationResponse)` + +SetData sets Data field to given value. + + +### GetMeta + +`func (o *SuccessResponseSimulationResponse) GetMeta() MetaBody` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *SuccessResponseSimulationResponse) GetMetaOk() (*MetaBody, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *SuccessResponseSimulationResponse) SetMeta(v MetaBody)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *SuccessResponseSimulationResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetError + +`func (o *SuccessResponseSimulationResponse) GetError() nil` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *SuccessResponseSimulationResponse) GetErrorOk() (*nil, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *SuccessResponseSimulationResponse) SetError(v nil)` + +SetError sets Error field to given value. + +### HasError + +`func (o *SuccessResponseSimulationResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/docs/ValidationError.md b/sdks/go/docs/ValidationError.md new file mode 100644 index 0000000..463e7cf --- /dev/null +++ b/sdks/go/docs/ValidationError.md @@ -0,0 +1,155 @@ +# ValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Loc** | [**[]LocationInner**](LocationInner.md) | | +**Msg** | **string** | | +**Type** | **string** | | +**Input** | Pointer to **interface{}** | | [optional] +**Ctx** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewValidationError + +`func NewValidationError(loc []LocationInner, msg string, type_ string, ) *ValidationError` + +NewValidationError instantiates a new ValidationError object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewValidationErrorWithDefaults + +`func NewValidationErrorWithDefaults() *ValidationError` + +NewValidationErrorWithDefaults instantiates a new ValidationError object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLoc + +`func (o *ValidationError) GetLoc() []LocationInner` + +GetLoc returns the Loc field if non-nil, zero value otherwise. + +### GetLocOk + +`func (o *ValidationError) GetLocOk() (*[]LocationInner, bool)` + +GetLocOk returns a tuple with the Loc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoc + +`func (o *ValidationError) SetLoc(v []LocationInner)` + +SetLoc sets Loc field to given value. + + +### GetMsg + +`func (o *ValidationError) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *ValidationError) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *ValidationError) SetMsg(v string)` + +SetMsg sets Msg field to given value. + + +### GetType + +`func (o *ValidationError) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ValidationError) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ValidationError) SetType(v string)` + +SetType sets Type field to given value. + + +### GetInput + +`func (o *ValidationError) GetInput() interface{}` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *ValidationError) GetInputOk() (*interface{}, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *ValidationError) SetInput(v interface{})` + +SetInput sets Input field to given value. + +### HasInput + +`func (o *ValidationError) HasInput() bool` + +HasInput returns a boolean if a field has been set. + +### SetInputNil + +`func (o *ValidationError) SetInputNil(b bool)` + + SetInputNil sets the value for Input to be an explicit nil + +### UnsetInput +`func (o *ValidationError) UnsetInput()` + +UnsetInput ensures that no value is present for Input, not even an explicit nil +### GetCtx + +`func (o *ValidationError) GetCtx() map[string]interface{}` + +GetCtx returns the Ctx field if non-nil, zero value otherwise. + +### GetCtxOk + +`func (o *ValidationError) GetCtxOk() (*map[string]interface{}, bool)` + +GetCtxOk returns a tuple with the Ctx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCtx + +`func (o *ValidationError) SetCtx(v map[string]interface{})` + +SetCtx sets Ctx field to given value. + +### HasCtx + +`func (o *ValidationError) HasCtx() bool` + +HasCtx returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/go/git_push.sh b/sdks/go/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/go/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/go/go.mod b/sdks/go/go.mod new file mode 100644 index 0000000..a7b52a2 --- /dev/null +++ b/sdks/go/go.mod @@ -0,0 +1,6 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.23 + +require ( +) diff --git a/sdks/go/go.sum b/sdks/go/go.sum new file mode 100644 index 0000000..c966c8d --- /dev/null +++ b/sdks/go/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/sdks/go/keynetra_client.go b/sdks/go/keynetra_client.go new file mode 100644 index 0000000..cb399f1 --- /dev/null +++ b/sdks/go/keynetra_client.go @@ -0,0 +1,29 @@ +package keynetra + +type KeyNetraClient struct { + Access *AccessApiService + Auth *AuthApiService + Dev *DevApiService + Health *HealthApiService + Management *ManagementApiService + Playground *PlaygroundApiService + client *APIClient +} + +func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { + cfg := NewConfiguration() + cfg.Servers = ServerConfigurations{{URL: baseURL}} + cfg.DefaultHeader["X-API-Key"] = apiKey + cfg.DefaultHeader["Authorization"] = "Bearer " + apiKey + + client := NewAPIClient(cfg) + return &KeyNetraClient{ + Access: client.AccessApi, + Auth: client.AuthApi, + Dev: client.DevApi, + Health: client.HealthApi, + Management: client.ManagementApi, + Playground: client.PlaygroundApi, + client: client, + } +} diff --git a/sdks/go/model_access_decision_response.go b/sdks/go/model_access_decision_response.go new file mode 100644 index 0000000..2948d7b --- /dev/null +++ b/sdks/go/model_access_decision_response.go @@ -0,0 +1,396 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessDecisionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessDecisionResponse{} + +// AccessDecisionResponse struct for AccessDecisionResponse +type AccessDecisionResponse struct { + Allowed bool `json:"allowed"` + Decision string `json:"decision"` + MatchedPolicies []string `json:"matched_policies,omitempty"` + Reason NullableString `json:"reason,omitempty"` + PolicyId NullableString `json:"policy_id,omitempty"` + ExplainTrace []map[string]interface{} `json:"explain_trace,omitempty"` + Revision NullableInt32 `json:"revision,omitempty"` +} + +type _AccessDecisionResponse AccessDecisionResponse + +// NewAccessDecisionResponse instantiates a new AccessDecisionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessDecisionResponse(allowed bool, decision string) *AccessDecisionResponse { + this := AccessDecisionResponse{} + this.Allowed = allowed + this.Decision = decision + return &this +} + +// NewAccessDecisionResponseWithDefaults instantiates a new AccessDecisionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessDecisionResponseWithDefaults() *AccessDecisionResponse { + this := AccessDecisionResponse{} + return &this +} + +// GetAllowed returns the Allowed field value +func (o *AccessDecisionResponse) GetAllowed() bool { + if o == nil { + var ret bool + return ret + } + + return o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value +// and a boolean to check if the value has been set. +func (o *AccessDecisionResponse) GetAllowedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Allowed, true +} + +// SetAllowed sets field value +func (o *AccessDecisionResponse) SetAllowed(v bool) { + o.Allowed = v +} + +// GetDecision returns the Decision field value +func (o *AccessDecisionResponse) GetDecision() string { + if o == nil { + var ret string + return ret + } + + return o.Decision +} + +// GetDecisionOk returns a tuple with the Decision field value +// and a boolean to check if the value has been set. +func (o *AccessDecisionResponse) GetDecisionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Decision, true +} + +// SetDecision sets field value +func (o *AccessDecisionResponse) SetDecision(v string) { + o.Decision = v +} + +// GetMatchedPolicies returns the MatchedPolicies field value if set, zero value otherwise. +func (o *AccessDecisionResponse) GetMatchedPolicies() []string { + if o == nil || IsNil(o.MatchedPolicies) { + var ret []string + return ret + } + return o.MatchedPolicies +} + +// GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessDecisionResponse) GetMatchedPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.MatchedPolicies) { + return nil, false + } + return o.MatchedPolicies, true +} + +// HasMatchedPolicies returns a boolean if a field has been set. +func (o *AccessDecisionResponse) HasMatchedPolicies() bool { + if o != nil && !IsNil(o.MatchedPolicies) { + return true + } + + return false +} + +// SetMatchedPolicies gets a reference to the given []string and assigns it to the MatchedPolicies field. +func (o *AccessDecisionResponse) SetMatchedPolicies(v []string) { + o.MatchedPolicies = v +} + +// GetReason returns the Reason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AccessDecisionResponse) GetReason() string { + if o == nil || IsNil(o.Reason.Get()) { + var ret string + return ret + } + return *o.Reason.Get() +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessDecisionResponse) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Reason.Get(), o.Reason.IsSet() +} + +// HasReason returns a boolean if a field has been set. +func (o *AccessDecisionResponse) HasReason() bool { + if o != nil && o.Reason.IsSet() { + return true + } + + return false +} + +// SetReason gets a reference to the given NullableString and assigns it to the Reason field. +func (o *AccessDecisionResponse) SetReason(v string) { + o.Reason.Set(&v) +} +// SetReasonNil sets the value for Reason to be an explicit nil +func (o *AccessDecisionResponse) SetReasonNil() { + o.Reason.Set(nil) +} + +// UnsetReason ensures that no value is present for Reason, not even an explicit nil +func (o *AccessDecisionResponse) UnsetReason() { + o.Reason.Unset() +} + +// GetPolicyId returns the PolicyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AccessDecisionResponse) GetPolicyId() string { + if o == nil || IsNil(o.PolicyId.Get()) { + var ret string + return ret + } + return *o.PolicyId.Get() +} + +// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessDecisionResponse) GetPolicyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PolicyId.Get(), o.PolicyId.IsSet() +} + +// HasPolicyId returns a boolean if a field has been set. +func (o *AccessDecisionResponse) HasPolicyId() bool { + if o != nil && o.PolicyId.IsSet() { + return true + } + + return false +} + +// SetPolicyId gets a reference to the given NullableString and assigns it to the PolicyId field. +func (o *AccessDecisionResponse) SetPolicyId(v string) { + o.PolicyId.Set(&v) +} +// SetPolicyIdNil sets the value for PolicyId to be an explicit nil +func (o *AccessDecisionResponse) SetPolicyIdNil() { + o.PolicyId.Set(nil) +} + +// UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil +func (o *AccessDecisionResponse) UnsetPolicyId() { + o.PolicyId.Unset() +} + +// GetExplainTrace returns the ExplainTrace field value if set, zero value otherwise. +func (o *AccessDecisionResponse) GetExplainTrace() []map[string]interface{} { + if o == nil || IsNil(o.ExplainTrace) { + var ret []map[string]interface{} + return ret + } + return o.ExplainTrace +} + +// GetExplainTraceOk returns a tuple with the ExplainTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessDecisionResponse) GetExplainTraceOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.ExplainTrace) { + return nil, false + } + return o.ExplainTrace, true +} + +// HasExplainTrace returns a boolean if a field has been set. +func (o *AccessDecisionResponse) HasExplainTrace() bool { + if o != nil && !IsNil(o.ExplainTrace) { + return true + } + + return false +} + +// SetExplainTrace gets a reference to the given []map[string]interface{} and assigns it to the ExplainTrace field. +func (o *AccessDecisionResponse) SetExplainTrace(v []map[string]interface{}) { + o.ExplainTrace = v +} + +// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AccessDecisionResponse) GetRevision() int32 { + if o == nil || IsNil(o.Revision.Get()) { + var ret int32 + return ret + } + return *o.Revision.Get() +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessDecisionResponse) GetRevisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Revision.Get(), o.Revision.IsSet() +} + +// HasRevision returns a boolean if a field has been set. +func (o *AccessDecisionResponse) HasRevision() bool { + if o != nil && o.Revision.IsSet() { + return true + } + + return false +} + +// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. +func (o *AccessDecisionResponse) SetRevision(v int32) { + o.Revision.Set(&v) +} +// SetRevisionNil sets the value for Revision to be an explicit nil +func (o *AccessDecisionResponse) SetRevisionNil() { + o.Revision.Set(nil) +} + +// UnsetRevision ensures that no value is present for Revision, not even an explicit nil +func (o *AccessDecisionResponse) UnsetRevision() { + o.Revision.Unset() +} + +func (o AccessDecisionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessDecisionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["allowed"] = o.Allowed + toSerialize["decision"] = o.Decision + if !IsNil(o.MatchedPolicies) { + toSerialize["matched_policies"] = o.MatchedPolicies + } + if o.Reason.IsSet() { + toSerialize["reason"] = o.Reason.Get() + } + if o.PolicyId.IsSet() { + toSerialize["policy_id"] = o.PolicyId.Get() + } + if !IsNil(o.ExplainTrace) { + toSerialize["explain_trace"] = o.ExplainTrace + } + if o.Revision.IsSet() { + toSerialize["revision"] = o.Revision.Get() + } + return toSerialize, nil +} + +func (o *AccessDecisionResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "allowed", + "decision", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAccessDecisionResponse := _AccessDecisionResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessDecisionResponse) + + if err != nil { + return err + } + + *o = AccessDecisionResponse(varAccessDecisionResponse) + + return err +} + +type NullableAccessDecisionResponse struct { + value *AccessDecisionResponse + isSet bool +} + +func (v NullableAccessDecisionResponse) Get() *AccessDecisionResponse { + return v.value +} + +func (v *NullableAccessDecisionResponse) Set(val *AccessDecisionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAccessDecisionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessDecisionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessDecisionResponse(val *AccessDecisionResponse) *NullableAccessDecisionResponse { + return &NullableAccessDecisionResponse{value: val, isSet: true} +} + +func (v NullableAccessDecisionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessDecisionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_access_request.go b/sdks/go/model_access_request.go new file mode 100644 index 0000000..ac89c8e --- /dev/null +++ b/sdks/go/model_access_request.go @@ -0,0 +1,352 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessRequest{} + +// AccessRequest Explicit authorization request passed through the API boundary. +type AccessRequest struct { + User map[string]interface{} `json:"user,omitempty"` + Action string `json:"action"` + Resource map[string]interface{} `json:"resource,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + Consistency *string `json:"consistency,omitempty"` + Revision NullableInt32 `json:"revision,omitempty"` +} + +type _AccessRequest AccessRequest + +// NewAccessRequest instantiates a new AccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessRequest(action string) *AccessRequest { + this := AccessRequest{} + this.Action = action + var consistency string = "eventual" + this.Consistency = &consistency + return &this +} + +// NewAccessRequestWithDefaults instantiates a new AccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessRequestWithDefaults() *AccessRequest { + this := AccessRequest{} + var consistency string = "eventual" + this.Consistency = &consistency + return &this +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *AccessRequest) GetUser() map[string]interface{} { + if o == nil || IsNil(o.User) { + var ret map[string]interface{} + return ret + } + return o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetUserOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.User) { + return map[string]interface{}{}, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *AccessRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given map[string]interface{} and assigns it to the User field. +func (o *AccessRequest) SetUser(v map[string]interface{}) { + o.User = v +} + +// GetAction returns the Action field value +func (o *AccessRequest) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *AccessRequest) SetAction(v string) { + o.Action = v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *AccessRequest) GetResource() map[string]interface{} { + if o == nil || IsNil(o.Resource) { + var ret map[string]interface{} + return ret + } + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetResourceOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Resource) { + return map[string]interface{}{}, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *AccessRequest) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given map[string]interface{} and assigns it to the Resource field. +func (o *AccessRequest) SetResource(v map[string]interface{}) { + o.Resource = v +} + +// GetContext returns the Context field value if set, zero value otherwise. +func (o *AccessRequest) GetContext() map[string]interface{} { + if o == nil || IsNil(o.Context) { + var ret map[string]interface{} + return ret + } + return o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetContextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Context) { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *AccessRequest) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. +func (o *AccessRequest) SetContext(v map[string]interface{}) { + o.Context = v +} + +// GetConsistency returns the Consistency field value if set, zero value otherwise. +func (o *AccessRequest) GetConsistency() string { + if o == nil || IsNil(o.Consistency) { + var ret string + return ret + } + return *o.Consistency +} + +// GetConsistencyOk returns a tuple with the Consistency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetConsistencyOk() (*string, bool) { + if o == nil || IsNil(o.Consistency) { + return nil, false + } + return o.Consistency, true +} + +// HasConsistency returns a boolean if a field has been set. +func (o *AccessRequest) HasConsistency() bool { + if o != nil && !IsNil(o.Consistency) { + return true + } + + return false +} + +// SetConsistency gets a reference to the given string and assigns it to the Consistency field. +func (o *AccessRequest) SetConsistency(v string) { + o.Consistency = &v +} + +// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AccessRequest) GetRevision() int32 { + if o == nil || IsNil(o.Revision.Get()) { + var ret int32 + return ret + } + return *o.Revision.Get() +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessRequest) GetRevisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Revision.Get(), o.Revision.IsSet() +} + +// HasRevision returns a boolean if a field has been set. +func (o *AccessRequest) HasRevision() bool { + if o != nil && o.Revision.IsSet() { + return true + } + + return false +} + +// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. +func (o *AccessRequest) SetRevision(v int32) { + o.Revision.Set(&v) +} +// SetRevisionNil sets the value for Revision to be an explicit nil +func (o *AccessRequest) SetRevisionNil() { + o.Revision.Set(nil) +} + +// UnsetRevision ensures that no value is present for Revision, not even an explicit nil +func (o *AccessRequest) UnsetRevision() { + o.Revision.Unset() +} + +func (o AccessRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + toSerialize["action"] = o.Action + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } + if !IsNil(o.Consistency) { + toSerialize["consistency"] = o.Consistency + } + if o.Revision.IsSet() { + toSerialize["revision"] = o.Revision.Get() + } + return toSerialize, nil +} + +func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAccessRequest := _AccessRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessRequest) + + if err != nil { + return err + } + + *o = AccessRequest(varAccessRequest) + + return err +} + +type NullableAccessRequest struct { + value *AccessRequest + isSet bool +} + +func (v NullableAccessRequest) Get() *AccessRequest { + return v.value +} + +func (v *NullableAccessRequest) Set(val *AccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessRequest(val *AccessRequest) *NullableAccessRequest { + return &NullableAccessRequest{value: val, isSet: true} +} + +func (v NullableAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_acl_create.go b/sdks/go/model_acl_create.go new file mode 100644 index 0000000..57e3ce8 --- /dev/null +++ b/sdks/go/model_acl_create.go @@ -0,0 +1,298 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ACLCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ACLCreate{} + +// ACLCreate struct for ACLCreate +type ACLCreate struct { + SubjectType string `json:"subject_type"` + SubjectId string `json:"subject_id"` + ResourceType string `json:"resource_type"` + ResourceId string `json:"resource_id"` + Action string `json:"action"` + Effect string `json:"effect"` +} + +type _ACLCreate ACLCreate + +// NewACLCreate instantiates a new ACLCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewACLCreate(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string) *ACLCreate { + this := ACLCreate{} + this.SubjectType = subjectType + this.SubjectId = subjectId + this.ResourceType = resourceType + this.ResourceId = resourceId + this.Action = action + this.Effect = effect + return &this +} + +// NewACLCreateWithDefaults instantiates a new ACLCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewACLCreateWithDefaults() *ACLCreate { + this := ACLCreate{} + return &this +} + +// GetSubjectType returns the SubjectType field value +func (o *ACLCreate) GetSubjectType() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectType +} + +// GetSubjectTypeOk returns a tuple with the SubjectType field value +// and a boolean to check if the value has been set. +func (o *ACLCreate) GetSubjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectType, true +} + +// SetSubjectType sets field value +func (o *ACLCreate) SetSubjectType(v string) { + o.SubjectType = v +} + +// GetSubjectId returns the SubjectId field value +func (o *ACLCreate) GetSubjectId() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectId +} + +// GetSubjectIdOk returns a tuple with the SubjectId field value +// and a boolean to check if the value has been set. +func (o *ACLCreate) GetSubjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectId, true +} + +// SetSubjectId sets field value +func (o *ACLCreate) SetSubjectId(v string) { + o.SubjectId = v +} + +// GetResourceType returns the ResourceType field value +func (o *ACLCreate) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *ACLCreate) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *ACLCreate) SetResourceType(v string) { + o.ResourceType = v +} + +// GetResourceId returns the ResourceId field value +func (o *ACLCreate) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ACLCreate) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ACLCreate) SetResourceId(v string) { + o.ResourceId = v +} + +// GetAction returns the Action field value +func (o *ACLCreate) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *ACLCreate) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *ACLCreate) SetAction(v string) { + o.Action = v +} + +// GetEffect returns the Effect field value +func (o *ACLCreate) GetEffect() string { + if o == nil { + var ret string + return ret + } + + return o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value +// and a boolean to check if the value has been set. +func (o *ACLCreate) GetEffectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Effect, true +} + +// SetEffect sets field value +func (o *ACLCreate) SetEffect(v string) { + o.Effect = v +} + +func (o ACLCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ACLCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subject_type"] = o.SubjectType + toSerialize["subject_id"] = o.SubjectId + toSerialize["resource_type"] = o.ResourceType + toSerialize["resource_id"] = o.ResourceId + toSerialize["action"] = o.Action + toSerialize["effect"] = o.Effect + return toSerialize, nil +} + +func (o *ACLCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "subject_type", + "subject_id", + "resource_type", + "resource_id", + "action", + "effect", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varACLCreate := _ACLCreate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varACLCreate) + + if err != nil { + return err + } + + *o = ACLCreate(varACLCreate) + + return err +} + +type NullableACLCreate struct { + value *ACLCreate + isSet bool +} + +func (v NullableACLCreate) Get() *ACLCreate { + return v.value +} + +func (v *NullableACLCreate) Set(val *ACLCreate) { + v.value = val + v.isSet = true +} + +func (v NullableACLCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableACLCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableACLCreate(val *ACLCreate) *NullableACLCreate { + return &NullableACLCreate{value: val, isSet: true} +} + +func (v NullableACLCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableACLCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_acl_out.go b/sdks/go/model_acl_out.go new file mode 100644 index 0000000..824ec34 --- /dev/null +++ b/sdks/go/model_acl_out.go @@ -0,0 +1,401 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the ACLOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ACLOut{} + +// ACLOut struct for ACLOut +type ACLOut struct { + SubjectType string `json:"subject_type"` + SubjectId string `json:"subject_id"` + ResourceType string `json:"resource_type"` + ResourceId string `json:"resource_id"` + Action string `json:"action"` + Effect string `json:"effect"` + Id int32 `json:"id"` + TenantId int32 `json:"tenant_id"` + CreatedAt NullableTime `json:"created_at,omitempty"` +} + +type _ACLOut ACLOut + +// NewACLOut instantiates a new ACLOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewACLOut(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string, id int32, tenantId int32) *ACLOut { + this := ACLOut{} + this.SubjectType = subjectType + this.SubjectId = subjectId + this.ResourceType = resourceType + this.ResourceId = resourceId + this.Action = action + this.Effect = effect + this.Id = id + this.TenantId = tenantId + return &this +} + +// NewACLOutWithDefaults instantiates a new ACLOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewACLOutWithDefaults() *ACLOut { + this := ACLOut{} + return &this +} + +// GetSubjectType returns the SubjectType field value +func (o *ACLOut) GetSubjectType() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectType +} + +// GetSubjectTypeOk returns a tuple with the SubjectType field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetSubjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectType, true +} + +// SetSubjectType sets field value +func (o *ACLOut) SetSubjectType(v string) { + o.SubjectType = v +} + +// GetSubjectId returns the SubjectId field value +func (o *ACLOut) GetSubjectId() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectId +} + +// GetSubjectIdOk returns a tuple with the SubjectId field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetSubjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectId, true +} + +// SetSubjectId sets field value +func (o *ACLOut) SetSubjectId(v string) { + o.SubjectId = v +} + +// GetResourceType returns the ResourceType field value +func (o *ACLOut) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *ACLOut) SetResourceType(v string) { + o.ResourceType = v +} + +// GetResourceId returns the ResourceId field value +func (o *ACLOut) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ACLOut) SetResourceId(v string) { + o.ResourceId = v +} + +// GetAction returns the Action field value +func (o *ACLOut) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *ACLOut) SetAction(v string) { + o.Action = v +} + +// GetEffect returns the Effect field value +func (o *ACLOut) GetEffect() string { + if o == nil { + var ret string + return ret + } + + return o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetEffectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Effect, true +} + +// SetEffect sets field value +func (o *ACLOut) SetEffect(v string) { + o.Effect = v +} + +// GetId returns the Id field value +func (o *ACLOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ACLOut) SetId(v int32) { + o.Id = v +} + +// GetTenantId returns the TenantId field value +func (o *ACLOut) GetTenantId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *ACLOut) GetTenantIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *ACLOut) SetTenantId(v int32) { + o.TenantId = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ACLOut) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt.Get()) { + var ret time.Time + return ret + } + return *o.CreatedAt.Get() +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ACLOut) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.CreatedAt.Get(), o.CreatedAt.IsSet() +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ACLOut) HasCreatedAt() bool { + if o != nil && o.CreatedAt.IsSet() { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field. +func (o *ACLOut) SetCreatedAt(v time.Time) { + o.CreatedAt.Set(&v) +} +// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil +func (o *ACLOut) SetCreatedAtNil() { + o.CreatedAt.Set(nil) +} + +// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +func (o *ACLOut) UnsetCreatedAt() { + o.CreatedAt.Unset() +} + +func (o ACLOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ACLOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subject_type"] = o.SubjectType + toSerialize["subject_id"] = o.SubjectId + toSerialize["resource_type"] = o.ResourceType + toSerialize["resource_id"] = o.ResourceId + toSerialize["action"] = o.Action + toSerialize["effect"] = o.Effect + toSerialize["id"] = o.Id + toSerialize["tenant_id"] = o.TenantId + if o.CreatedAt.IsSet() { + toSerialize["created_at"] = o.CreatedAt.Get() + } + return toSerialize, nil +} + +func (o *ACLOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "subject_type", + "subject_id", + "resource_type", + "resource_id", + "action", + "effect", + "id", + "tenant_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varACLOut := _ACLOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varACLOut) + + if err != nil { + return err + } + + *o = ACLOut(varACLOut) + + return err +} + +type NullableACLOut struct { + value *ACLOut + isSet bool +} + +func (v NullableACLOut) Get() *ACLOut { + return v.value +} + +func (v *NullableACLOut) Set(val *ACLOut) { + v.value = val + v.isSet = true +} + +func (v NullableACLOut) IsSet() bool { + return v.isSet +} + +func (v *NullableACLOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableACLOut(val *ACLOut) *NullableACLOut { + return &NullableACLOut{value: val, isSet: true} +} + +func (v NullableACLOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableACLOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_admin_login_request.go b/sdks/go/model_admin_login_request.go new file mode 100644 index 0000000..d1b1e8d --- /dev/null +++ b/sdks/go/model_admin_login_request.go @@ -0,0 +1,186 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AdminLoginRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdminLoginRequest{} + +// AdminLoginRequest struct for AdminLoginRequest +type AdminLoginRequest struct { + Username string `json:"username"` + Password string `json:"password"` +} + +type _AdminLoginRequest AdminLoginRequest + +// NewAdminLoginRequest instantiates a new AdminLoginRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdminLoginRequest(username string, password string) *AdminLoginRequest { + this := AdminLoginRequest{} + this.Username = username + this.Password = password + return &this +} + +// NewAdminLoginRequestWithDefaults instantiates a new AdminLoginRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdminLoginRequestWithDefaults() *AdminLoginRequest { + this := AdminLoginRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *AdminLoginRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *AdminLoginRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *AdminLoginRequest) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *AdminLoginRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *AdminLoginRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *AdminLoginRequest) SetPassword(v string) { + o.Password = v +} + +func (o AdminLoginRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdminLoginRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + return toSerialize, nil +} + +func (o *AdminLoginRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAdminLoginRequest := _AdminLoginRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAdminLoginRequest) + + if err != nil { + return err + } + + *o = AdminLoginRequest(varAdminLoginRequest) + + return err +} + +type NullableAdminLoginRequest struct { + value *AdminLoginRequest + isSet bool +} + +func (v NullableAdminLoginRequest) Get() *AdminLoginRequest { + return v.value +} + +func (v *NullableAdminLoginRequest) Set(val *AdminLoginRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAdminLoginRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAdminLoginRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdminLoginRequest(val *AdminLoginRequest) *NullableAdminLoginRequest { + return &NullableAdminLoginRequest{value: val, isSet: true} +} + +func (v NullableAdminLoginRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdminLoginRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_admin_login_response.go b/sdks/go/model_admin_login_response.go new file mode 100644 index 0000000..f4bf410 --- /dev/null +++ b/sdks/go/model_admin_login_response.go @@ -0,0 +1,294 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AdminLoginResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdminLoginResponse{} + +// AdminLoginResponse struct for AdminLoginResponse +type AdminLoginResponse struct { + AccessToken string `json:"access_token"` + TokenType *string `json:"token_type,omitempty"` + ExpiresIn int32 `json:"expires_in"` + Role *string `json:"role,omitempty"` + TenantKey string `json:"tenant_key"` +} + +type _AdminLoginResponse AdminLoginResponse + +// NewAdminLoginResponse instantiates a new AdminLoginResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdminLoginResponse(accessToken string, expiresIn int32, tenantKey string) *AdminLoginResponse { + this := AdminLoginResponse{} + this.AccessToken = accessToken + var tokenType string = "bearer" + this.TokenType = &tokenType + this.ExpiresIn = expiresIn + var role string = "admin" + this.Role = &role + this.TenantKey = tenantKey + return &this +} + +// NewAdminLoginResponseWithDefaults instantiates a new AdminLoginResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdminLoginResponseWithDefaults() *AdminLoginResponse { + this := AdminLoginResponse{} + var tokenType string = "bearer" + this.TokenType = &tokenType + var role string = "admin" + this.Role = &role + return &this +} + +// GetAccessToken returns the AccessToken field value +func (o *AdminLoginResponse) GetAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value +// and a boolean to check if the value has been set. +func (o *AdminLoginResponse) GetAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessToken, true +} + +// SetAccessToken sets field value +func (o *AdminLoginResponse) SetAccessToken(v string) { + o.AccessToken = v +} + +// GetTokenType returns the TokenType field value if set, zero value otherwise. +func (o *AdminLoginResponse) GetTokenType() string { + if o == nil || IsNil(o.TokenType) { + var ret string + return ret + } + return *o.TokenType +} + +// GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminLoginResponse) GetTokenTypeOk() (*string, bool) { + if o == nil || IsNil(o.TokenType) { + return nil, false + } + return o.TokenType, true +} + +// HasTokenType returns a boolean if a field has been set. +func (o *AdminLoginResponse) HasTokenType() bool { + if o != nil && !IsNil(o.TokenType) { + return true + } + + return false +} + +// SetTokenType gets a reference to the given string and assigns it to the TokenType field. +func (o *AdminLoginResponse) SetTokenType(v string) { + o.TokenType = &v +} + +// GetExpiresIn returns the ExpiresIn field value +func (o *AdminLoginResponse) GetExpiresIn() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ExpiresIn +} + +// GetExpiresInOk returns a tuple with the ExpiresIn field value +// and a boolean to check if the value has been set. +func (o *AdminLoginResponse) GetExpiresInOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ExpiresIn, true +} + +// SetExpiresIn sets field value +func (o *AdminLoginResponse) SetExpiresIn(v int32) { + o.ExpiresIn = v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *AdminLoginResponse) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdminLoginResponse) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *AdminLoginResponse) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *AdminLoginResponse) SetRole(v string) { + o.Role = &v +} + +// GetTenantKey returns the TenantKey field value +func (o *AdminLoginResponse) GetTenantKey() string { + if o == nil { + var ret string + return ret + } + + return o.TenantKey +} + +// GetTenantKeyOk returns a tuple with the TenantKey field value +// and a boolean to check if the value has been set. +func (o *AdminLoginResponse) GetTenantKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantKey, true +} + +// SetTenantKey sets field value +func (o *AdminLoginResponse) SetTenantKey(v string) { + o.TenantKey = v +} + +func (o AdminLoginResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdminLoginResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["access_token"] = o.AccessToken + if !IsNil(o.TokenType) { + toSerialize["token_type"] = o.TokenType + } + toSerialize["expires_in"] = o.ExpiresIn + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["tenant_key"] = o.TenantKey + return toSerialize, nil +} + +func (o *AdminLoginResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "access_token", + "expires_in", + "tenant_key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAdminLoginResponse := _AdminLoginResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAdminLoginResponse) + + if err != nil { + return err + } + + *o = AdminLoginResponse(varAdminLoginResponse) + + return err +} + +type NullableAdminLoginResponse struct { + value *AdminLoginResponse + isSet bool +} + +func (v NullableAdminLoginResponse) Get() *AdminLoginResponse { + return v.value +} + +func (v *NullableAdminLoginResponse) Set(val *AdminLoginResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAdminLoginResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAdminLoginResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdminLoginResponse(val *AdminLoginResponse) *NullableAdminLoginResponse { + return &NullableAdminLoginResponse{value: val, isSet: true} +} + +func (v NullableAdminLoginResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdminLoginResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_audit_record_out.go b/sdks/go/model_audit_record_out.go new file mode 100644 index 0000000..ed8430c --- /dev/null +++ b/sdks/go/model_audit_record_out.go @@ -0,0 +1,531 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the AuditRecordOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditRecordOut{} + +// AuditRecordOut struct for AuditRecordOut +type AuditRecordOut struct { + Id int32 `json:"id"` + PrincipalType string `json:"principal_type"` + PrincipalId string `json:"principal_id"` + CorrelationId NullableString `json:"correlation_id,omitempty"` + User map[string]interface{} `json:"user"` + Action string `json:"action"` + Resource map[string]interface{} `json:"resource"` + Decision string `json:"decision"` + MatchedPolicies []interface{} `json:"matched_policies"` + Reason NullableString `json:"reason,omitempty"` + EvaluatedRules []interface{} `json:"evaluated_rules"` + FailedConditions []interface{} `json:"failed_conditions"` + CreatedAt time.Time `json:"created_at"` +} + +type _AuditRecordOut AuditRecordOut + +// NewAuditRecordOut instantiates a new AuditRecordOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditRecordOut(id int32, principalType string, principalId string, user map[string]interface{}, action string, resource map[string]interface{}, decision string, matchedPolicies []interface{}, evaluatedRules []interface{}, failedConditions []interface{}, createdAt time.Time) *AuditRecordOut { + this := AuditRecordOut{} + this.Id = id + this.PrincipalType = principalType + this.PrincipalId = principalId + this.User = user + this.Action = action + this.Resource = resource + this.Decision = decision + this.MatchedPolicies = matchedPolicies + this.EvaluatedRules = evaluatedRules + this.FailedConditions = failedConditions + this.CreatedAt = createdAt + return &this +} + +// NewAuditRecordOutWithDefaults instantiates a new AuditRecordOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditRecordOutWithDefaults() *AuditRecordOut { + this := AuditRecordOut{} + return &this +} + +// GetId returns the Id field value +func (o *AuditRecordOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AuditRecordOut) SetId(v int32) { + o.Id = v +} + +// GetPrincipalType returns the PrincipalType field value +func (o *AuditRecordOut) GetPrincipalType() string { + if o == nil { + var ret string + return ret + } + + return o.PrincipalType +} + +// GetPrincipalTypeOk returns a tuple with the PrincipalType field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetPrincipalTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrincipalType, true +} + +// SetPrincipalType sets field value +func (o *AuditRecordOut) SetPrincipalType(v string) { + o.PrincipalType = v +} + +// GetPrincipalId returns the PrincipalId field value +func (o *AuditRecordOut) GetPrincipalId() string { + if o == nil { + var ret string + return ret + } + + return o.PrincipalId +} + +// GetPrincipalIdOk returns a tuple with the PrincipalId field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetPrincipalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrincipalId, true +} + +// SetPrincipalId sets field value +func (o *AuditRecordOut) SetPrincipalId(v string) { + o.PrincipalId = v +} + +// GetCorrelationId returns the CorrelationId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuditRecordOut) GetCorrelationId() string { + if o == nil || IsNil(o.CorrelationId.Get()) { + var ret string + return ret + } + return *o.CorrelationId.Get() +} + +// GetCorrelationIdOk returns a tuple with the CorrelationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuditRecordOut) GetCorrelationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CorrelationId.Get(), o.CorrelationId.IsSet() +} + +// HasCorrelationId returns a boolean if a field has been set. +func (o *AuditRecordOut) HasCorrelationId() bool { + if o != nil && o.CorrelationId.IsSet() { + return true + } + + return false +} + +// SetCorrelationId gets a reference to the given NullableString and assigns it to the CorrelationId field. +func (o *AuditRecordOut) SetCorrelationId(v string) { + o.CorrelationId.Set(&v) +} +// SetCorrelationIdNil sets the value for CorrelationId to be an explicit nil +func (o *AuditRecordOut) SetCorrelationIdNil() { + o.CorrelationId.Set(nil) +} + +// UnsetCorrelationId ensures that no value is present for CorrelationId, not even an explicit nil +func (o *AuditRecordOut) UnsetCorrelationId() { + o.CorrelationId.Unset() +} + +// GetUser returns the User field value +func (o *AuditRecordOut) GetUser() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetUserOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.User, true +} + +// SetUser sets field value +func (o *AuditRecordOut) SetUser(v map[string]interface{}) { + o.User = v +} + +// GetAction returns the Action field value +func (o *AuditRecordOut) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *AuditRecordOut) SetAction(v string) { + o.Action = v +} + +// GetResource returns the Resource field value +func (o *AuditRecordOut) GetResource() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetResourceOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Resource, true +} + +// SetResource sets field value +func (o *AuditRecordOut) SetResource(v map[string]interface{}) { + o.Resource = v +} + +// GetDecision returns the Decision field value +func (o *AuditRecordOut) GetDecision() string { + if o == nil { + var ret string + return ret + } + + return o.Decision +} + +// GetDecisionOk returns a tuple with the Decision field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetDecisionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Decision, true +} + +// SetDecision sets field value +func (o *AuditRecordOut) SetDecision(v string) { + o.Decision = v +} + +// GetMatchedPolicies returns the MatchedPolicies field value +func (o *AuditRecordOut) GetMatchedPolicies() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.MatchedPolicies +} + +// GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetMatchedPoliciesOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.MatchedPolicies, true +} + +// SetMatchedPolicies sets field value +func (o *AuditRecordOut) SetMatchedPolicies(v []interface{}) { + o.MatchedPolicies = v +} + +// GetReason returns the Reason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuditRecordOut) GetReason() string { + if o == nil || IsNil(o.Reason.Get()) { + var ret string + return ret + } + return *o.Reason.Get() +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuditRecordOut) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Reason.Get(), o.Reason.IsSet() +} + +// HasReason returns a boolean if a field has been set. +func (o *AuditRecordOut) HasReason() bool { + if o != nil && o.Reason.IsSet() { + return true + } + + return false +} + +// SetReason gets a reference to the given NullableString and assigns it to the Reason field. +func (o *AuditRecordOut) SetReason(v string) { + o.Reason.Set(&v) +} +// SetReasonNil sets the value for Reason to be an explicit nil +func (o *AuditRecordOut) SetReasonNil() { + o.Reason.Set(nil) +} + +// UnsetReason ensures that no value is present for Reason, not even an explicit nil +func (o *AuditRecordOut) UnsetReason() { + o.Reason.Unset() +} + +// GetEvaluatedRules returns the EvaluatedRules field value +func (o *AuditRecordOut) GetEvaluatedRules() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.EvaluatedRules +} + +// GetEvaluatedRulesOk returns a tuple with the EvaluatedRules field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetEvaluatedRulesOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.EvaluatedRules, true +} + +// SetEvaluatedRules sets field value +func (o *AuditRecordOut) SetEvaluatedRules(v []interface{}) { + o.EvaluatedRules = v +} + +// GetFailedConditions returns the FailedConditions field value +func (o *AuditRecordOut) GetFailedConditions() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.FailedConditions +} + +// GetFailedConditionsOk returns a tuple with the FailedConditions field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetFailedConditionsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.FailedConditions, true +} + +// SetFailedConditions sets field value +func (o *AuditRecordOut) SetFailedConditions(v []interface{}) { + o.FailedConditions = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AuditRecordOut) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AuditRecordOut) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AuditRecordOut) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +func (o AuditRecordOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditRecordOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["principal_type"] = o.PrincipalType + toSerialize["principal_id"] = o.PrincipalId + if o.CorrelationId.IsSet() { + toSerialize["correlation_id"] = o.CorrelationId.Get() + } + toSerialize["user"] = o.User + toSerialize["action"] = o.Action + toSerialize["resource"] = o.Resource + toSerialize["decision"] = o.Decision + toSerialize["matched_policies"] = o.MatchedPolicies + if o.Reason.IsSet() { + toSerialize["reason"] = o.Reason.Get() + } + toSerialize["evaluated_rules"] = o.EvaluatedRules + toSerialize["failed_conditions"] = o.FailedConditions + toSerialize["created_at"] = o.CreatedAt + return toSerialize, nil +} + +func (o *AuditRecordOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "principal_type", + "principal_id", + "user", + "action", + "resource", + "decision", + "matched_policies", + "evaluated_rules", + "failed_conditions", + "created_at", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAuditRecordOut := _AuditRecordOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAuditRecordOut) + + if err != nil { + return err + } + + *o = AuditRecordOut(varAuditRecordOut) + + return err +} + +type NullableAuditRecordOut struct { + value *AuditRecordOut + isSet bool +} + +func (v NullableAuditRecordOut) Get() *AuditRecordOut { + return v.value +} + +func (v *NullableAuditRecordOut) Set(val *AuditRecordOut) { + v.value = val + v.isSet = true +} + +func (v NullableAuditRecordOut) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditRecordOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditRecordOut(val *AuditRecordOut) *NullableAuditRecordOut { + return &NullableAuditRecordOut{value: val, isSet: true} +} + +func (v NullableAuditRecordOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditRecordOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_auth_model_create.go b/sdks/go/model_auth_model_create.go new file mode 100644 index 0000000..c1bf1a3 --- /dev/null +++ b/sdks/go/model_auth_model_create.go @@ -0,0 +1,158 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AuthModelCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthModelCreate{} + +// AuthModelCreate struct for AuthModelCreate +type AuthModelCreate struct { + Schema string `json:"schema"` +} + +type _AuthModelCreate AuthModelCreate + +// NewAuthModelCreate instantiates a new AuthModelCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthModelCreate(schema string) *AuthModelCreate { + this := AuthModelCreate{} + this.Schema = schema + return &this +} + +// NewAuthModelCreateWithDefaults instantiates a new AuthModelCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthModelCreateWithDefaults() *AuthModelCreate { + this := AuthModelCreate{} + return &this +} + +// GetSchema returns the Schema field value +func (o *AuthModelCreate) GetSchema() string { + if o == nil { + var ret string + return ret + } + + return o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value +// and a boolean to check if the value has been set. +func (o *AuthModelCreate) GetSchemaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Schema, true +} + +// SetSchema sets field value +func (o *AuthModelCreate) SetSchema(v string) { + o.Schema = v +} + +func (o AuthModelCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthModelCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["schema"] = o.Schema + return toSerialize, nil +} + +func (o *AuthModelCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "schema", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAuthModelCreate := _AuthModelCreate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAuthModelCreate) + + if err != nil { + return err + } + + *o = AuthModelCreate(varAuthModelCreate) + + return err +} + +type NullableAuthModelCreate struct { + value *AuthModelCreate + isSet bool +} + +func (v NullableAuthModelCreate) Get() *AuthModelCreate { + return v.value +} + +func (v *NullableAuthModelCreate) Set(val *AuthModelCreate) { + v.value = val + v.isSet = true +} + +func (v NullableAuthModelCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthModelCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthModelCreate(val *AuthModelCreate) *NullableAuthModelCreate { + return &NullableAuthModelCreate{value: val, isSet: true} +} + +func (v NullableAuthModelCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthModelCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_auth_model_out.go b/sdks/go/model_auth_model_out.go new file mode 100644 index 0000000..fe0709e --- /dev/null +++ b/sdks/go/model_auth_model_out.go @@ -0,0 +1,270 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AuthModelOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthModelOut{} + +// AuthModelOut struct for AuthModelOut +type AuthModelOut struct { + Id int32 `json:"id"` + TenantId int32 `json:"tenant_id"` + Schema string `json:"schema"` + Parsed map[string]interface{} `json:"parsed"` + Compiled map[string]interface{} `json:"compiled"` +} + +type _AuthModelOut AuthModelOut + +// NewAuthModelOut instantiates a new AuthModelOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthModelOut(id int32, tenantId int32, schema string, parsed map[string]interface{}, compiled map[string]interface{}) *AuthModelOut { + this := AuthModelOut{} + this.Id = id + this.TenantId = tenantId + this.Schema = schema + this.Parsed = parsed + this.Compiled = compiled + return &this +} + +// NewAuthModelOutWithDefaults instantiates a new AuthModelOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthModelOutWithDefaults() *AuthModelOut { + this := AuthModelOut{} + return &this +} + +// GetId returns the Id field value +func (o *AuthModelOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AuthModelOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AuthModelOut) SetId(v int32) { + o.Id = v +} + +// GetTenantId returns the TenantId field value +func (o *AuthModelOut) GetTenantId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *AuthModelOut) GetTenantIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *AuthModelOut) SetTenantId(v int32) { + o.TenantId = v +} + +// GetSchema returns the Schema field value +func (o *AuthModelOut) GetSchema() string { + if o == nil { + var ret string + return ret + } + + return o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value +// and a boolean to check if the value has been set. +func (o *AuthModelOut) GetSchemaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Schema, true +} + +// SetSchema sets field value +func (o *AuthModelOut) SetSchema(v string) { + o.Schema = v +} + +// GetParsed returns the Parsed field value +func (o *AuthModelOut) GetParsed() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Parsed +} + +// GetParsedOk returns a tuple with the Parsed field value +// and a boolean to check if the value has been set. +func (o *AuthModelOut) GetParsedOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Parsed, true +} + +// SetParsed sets field value +func (o *AuthModelOut) SetParsed(v map[string]interface{}) { + o.Parsed = v +} + +// GetCompiled returns the Compiled field value +func (o *AuthModelOut) GetCompiled() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Compiled +} + +// GetCompiledOk returns a tuple with the Compiled field value +// and a boolean to check if the value has been set. +func (o *AuthModelOut) GetCompiledOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Compiled, true +} + +// SetCompiled sets field value +func (o *AuthModelOut) SetCompiled(v map[string]interface{}) { + o.Compiled = v +} + +func (o AuthModelOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthModelOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["tenant_id"] = o.TenantId + toSerialize["schema"] = o.Schema + toSerialize["parsed"] = o.Parsed + toSerialize["compiled"] = o.Compiled + return toSerialize, nil +} + +func (o *AuthModelOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "tenant_id", + "schema", + "parsed", + "compiled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAuthModelOut := _AuthModelOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAuthModelOut) + + if err != nil { + return err + } + + *o = AuthModelOut(varAuthModelOut) + + return err +} + +type NullableAuthModelOut struct { + value *AuthModelOut + isSet bool +} + +func (v NullableAuthModelOut) Get() *AuthModelOut { + return v.value +} + +func (v *NullableAuthModelOut) Set(val *AuthModelOut) { + v.value = val + v.isSet = true +} + +func (v NullableAuthModelOut) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthModelOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthModelOut(val *AuthModelOut) *NullableAuthModelOut { + return &NullableAuthModelOut{value: val, isSet: true} +} + +func (v NullableAuthModelOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthModelOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_batch_access_item.go b/sdks/go/model_batch_access_item.go new file mode 100644 index 0000000..1bfc1dc --- /dev/null +++ b/sdks/go/model_batch_access_item.go @@ -0,0 +1,194 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BatchAccessItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BatchAccessItem{} + +// BatchAccessItem struct for BatchAccessItem +type BatchAccessItem struct { + Action string `json:"action"` + Resource map[string]interface{} `json:"resource,omitempty"` +} + +type _BatchAccessItem BatchAccessItem + +// NewBatchAccessItem instantiates a new BatchAccessItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBatchAccessItem(action string) *BatchAccessItem { + this := BatchAccessItem{} + this.Action = action + return &this +} + +// NewBatchAccessItemWithDefaults instantiates a new BatchAccessItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBatchAccessItemWithDefaults() *BatchAccessItem { + this := BatchAccessItem{} + return &this +} + +// GetAction returns the Action field value +func (o *BatchAccessItem) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *BatchAccessItem) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *BatchAccessItem) SetAction(v string) { + o.Action = v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *BatchAccessItem) GetResource() map[string]interface{} { + if o == nil || IsNil(o.Resource) { + var ret map[string]interface{} + return ret + } + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BatchAccessItem) GetResourceOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Resource) { + return map[string]interface{}{}, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *BatchAccessItem) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given map[string]interface{} and assigns it to the Resource field. +func (o *BatchAccessItem) SetResource(v map[string]interface{}) { + o.Resource = v +} + +func (o BatchAccessItem) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BatchAccessItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + return toSerialize, nil +} + +func (o *BatchAccessItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBatchAccessItem := _BatchAccessItem{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBatchAccessItem) + + if err != nil { + return err + } + + *o = BatchAccessItem(varBatchAccessItem) + + return err +} + +type NullableBatchAccessItem struct { + value *BatchAccessItem + isSet bool +} + +func (v NullableBatchAccessItem) Get() *BatchAccessItem { + return v.value +} + +func (v *NullableBatchAccessItem) Set(val *BatchAccessItem) { + v.value = val + v.isSet = true +} + +func (v NullableBatchAccessItem) IsSet() bool { + return v.isSet +} + +func (v *NullableBatchAccessItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBatchAccessItem(val *BatchAccessItem) *NullableBatchAccessItem { + return &NullableBatchAccessItem{value: val, isSet: true} +} + +func (v NullableBatchAccessItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBatchAccessItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_batch_access_request.go b/sdks/go/model_batch_access_request.go new file mode 100644 index 0000000..5347ab4 --- /dev/null +++ b/sdks/go/model_batch_access_request.go @@ -0,0 +1,280 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BatchAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BatchAccessRequest{} + +// BatchAccessRequest struct for BatchAccessRequest +type BatchAccessRequest struct { + User map[string]interface{} `json:"user,omitempty"` + Items []BatchAccessItem `json:"items"` + Consistency *string `json:"consistency,omitempty"` + Revision NullableInt32 `json:"revision,omitempty"` +} + +type _BatchAccessRequest BatchAccessRequest + +// NewBatchAccessRequest instantiates a new BatchAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBatchAccessRequest(items []BatchAccessItem) *BatchAccessRequest { + this := BatchAccessRequest{} + this.Items = items + var consistency string = "eventual" + this.Consistency = &consistency + return &this +} + +// NewBatchAccessRequestWithDefaults instantiates a new BatchAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBatchAccessRequestWithDefaults() *BatchAccessRequest { + this := BatchAccessRequest{} + var consistency string = "eventual" + this.Consistency = &consistency + return &this +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *BatchAccessRequest) GetUser() map[string]interface{} { + if o == nil || IsNil(o.User) { + var ret map[string]interface{} + return ret + } + return o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BatchAccessRequest) GetUserOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.User) { + return map[string]interface{}{}, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *BatchAccessRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given map[string]interface{} and assigns it to the User field. +func (o *BatchAccessRequest) SetUser(v map[string]interface{}) { + o.User = v +} + +// GetItems returns the Items field value +func (o *BatchAccessRequest) GetItems() []BatchAccessItem { + if o == nil { + var ret []BatchAccessItem + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *BatchAccessRequest) GetItemsOk() ([]BatchAccessItem, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *BatchAccessRequest) SetItems(v []BatchAccessItem) { + o.Items = v +} + +// GetConsistency returns the Consistency field value if set, zero value otherwise. +func (o *BatchAccessRequest) GetConsistency() string { + if o == nil || IsNil(o.Consistency) { + var ret string + return ret + } + return *o.Consistency +} + +// GetConsistencyOk returns a tuple with the Consistency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BatchAccessRequest) GetConsistencyOk() (*string, bool) { + if o == nil || IsNil(o.Consistency) { + return nil, false + } + return o.Consistency, true +} + +// HasConsistency returns a boolean if a field has been set. +func (o *BatchAccessRequest) HasConsistency() bool { + if o != nil && !IsNil(o.Consistency) { + return true + } + + return false +} + +// SetConsistency gets a reference to the given string and assigns it to the Consistency field. +func (o *BatchAccessRequest) SetConsistency(v string) { + o.Consistency = &v +} + +// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BatchAccessRequest) GetRevision() int32 { + if o == nil || IsNil(o.Revision.Get()) { + var ret int32 + return ret + } + return *o.Revision.Get() +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BatchAccessRequest) GetRevisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Revision.Get(), o.Revision.IsSet() +} + +// HasRevision returns a boolean if a field has been set. +func (o *BatchAccessRequest) HasRevision() bool { + if o != nil && o.Revision.IsSet() { + return true + } + + return false +} + +// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. +func (o *BatchAccessRequest) SetRevision(v int32) { + o.Revision.Set(&v) +} +// SetRevisionNil sets the value for Revision to be an explicit nil +func (o *BatchAccessRequest) SetRevisionNil() { + o.Revision.Set(nil) +} + +// UnsetRevision ensures that no value is present for Revision, not even an explicit nil +func (o *BatchAccessRequest) UnsetRevision() { + o.Revision.Unset() +} + +func (o BatchAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BatchAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + toSerialize["items"] = o.Items + if !IsNil(o.Consistency) { + toSerialize["consistency"] = o.Consistency + } + if o.Revision.IsSet() { + toSerialize["revision"] = o.Revision.Get() + } + return toSerialize, nil +} + +func (o *BatchAccessRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "items", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBatchAccessRequest := _BatchAccessRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBatchAccessRequest) + + if err != nil { + return err + } + + *o = BatchAccessRequest(varBatchAccessRequest) + + return err +} + +type NullableBatchAccessRequest struct { + value *BatchAccessRequest + isSet bool +} + +func (v NullableBatchAccessRequest) Get() *BatchAccessRequest { + return v.value +} + +func (v *NullableBatchAccessRequest) Set(val *BatchAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBatchAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBatchAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBatchAccessRequest(val *BatchAccessRequest) *NullableBatchAccessRequest { + return &NullableBatchAccessRequest{value: val, isSet: true} +} + +func (v NullableBatchAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBatchAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_batch_access_response.go b/sdks/go/model_batch_access_response.go new file mode 100644 index 0000000..e0e2286 --- /dev/null +++ b/sdks/go/model_batch_access_response.go @@ -0,0 +1,204 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BatchAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BatchAccessResponse{} + +// BatchAccessResponse struct for BatchAccessResponse +type BatchAccessResponse struct { + Results []BatchAccessResult `json:"results"` + Revision NullableInt32 `json:"revision,omitempty"` +} + +type _BatchAccessResponse BatchAccessResponse + +// NewBatchAccessResponse instantiates a new BatchAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBatchAccessResponse(results []BatchAccessResult) *BatchAccessResponse { + this := BatchAccessResponse{} + this.Results = results + return &this +} + +// NewBatchAccessResponseWithDefaults instantiates a new BatchAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBatchAccessResponseWithDefaults() *BatchAccessResponse { + this := BatchAccessResponse{} + return &this +} + +// GetResults returns the Results field value +func (o *BatchAccessResponse) GetResults() []BatchAccessResult { + if o == nil { + var ret []BatchAccessResult + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *BatchAccessResponse) GetResultsOk() ([]BatchAccessResult, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *BatchAccessResponse) SetResults(v []BatchAccessResult) { + o.Results = v +} + +// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BatchAccessResponse) GetRevision() int32 { + if o == nil || IsNil(o.Revision.Get()) { + var ret int32 + return ret + } + return *o.Revision.Get() +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BatchAccessResponse) GetRevisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Revision.Get(), o.Revision.IsSet() +} + +// HasRevision returns a boolean if a field has been set. +func (o *BatchAccessResponse) HasRevision() bool { + if o != nil && o.Revision.IsSet() { + return true + } + + return false +} + +// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. +func (o *BatchAccessResponse) SetRevision(v int32) { + o.Revision.Set(&v) +} +// SetRevisionNil sets the value for Revision to be an explicit nil +func (o *BatchAccessResponse) SetRevisionNil() { + o.Revision.Set(nil) +} + +// UnsetRevision ensures that no value is present for Revision, not even an explicit nil +func (o *BatchAccessResponse) UnsetRevision() { + o.Revision.Unset() +} + +func (o BatchAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BatchAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["results"] = o.Results + if o.Revision.IsSet() { + toSerialize["revision"] = o.Revision.Get() + } + return toSerialize, nil +} + +func (o *BatchAccessResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBatchAccessResponse := _BatchAccessResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBatchAccessResponse) + + if err != nil { + return err + } + + *o = BatchAccessResponse(varBatchAccessResponse) + + return err +} + +type NullableBatchAccessResponse struct { + value *BatchAccessResponse + isSet bool +} + +func (v NullableBatchAccessResponse) Get() *BatchAccessResponse { + return v.value +} + +func (v *NullableBatchAccessResponse) Set(val *BatchAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBatchAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBatchAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBatchAccessResponse(val *BatchAccessResponse) *NullableBatchAccessResponse { + return &NullableBatchAccessResponse{value: val, isSet: true} +} + +func (v NullableBatchAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBatchAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_batch_access_result.go b/sdks/go/model_batch_access_result.go new file mode 100644 index 0000000..10054b6 --- /dev/null +++ b/sdks/go/model_batch_access_result.go @@ -0,0 +1,232 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BatchAccessResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BatchAccessResult{} + +// BatchAccessResult struct for BatchAccessResult +type BatchAccessResult struct { + Action string `json:"action"` + Allowed bool `json:"allowed"` + Revision NullableInt32 `json:"revision,omitempty"` +} + +type _BatchAccessResult BatchAccessResult + +// NewBatchAccessResult instantiates a new BatchAccessResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBatchAccessResult(action string, allowed bool) *BatchAccessResult { + this := BatchAccessResult{} + this.Action = action + this.Allowed = allowed + return &this +} + +// NewBatchAccessResultWithDefaults instantiates a new BatchAccessResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBatchAccessResultWithDefaults() *BatchAccessResult { + this := BatchAccessResult{} + return &this +} + +// GetAction returns the Action field value +func (o *BatchAccessResult) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *BatchAccessResult) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *BatchAccessResult) SetAction(v string) { + o.Action = v +} + +// GetAllowed returns the Allowed field value +func (o *BatchAccessResult) GetAllowed() bool { + if o == nil { + var ret bool + return ret + } + + return o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value +// and a boolean to check if the value has been set. +func (o *BatchAccessResult) GetAllowedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Allowed, true +} + +// SetAllowed sets field value +func (o *BatchAccessResult) SetAllowed(v bool) { + o.Allowed = v +} + +// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BatchAccessResult) GetRevision() int32 { + if o == nil || IsNil(o.Revision.Get()) { + var ret int32 + return ret + } + return *o.Revision.Get() +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BatchAccessResult) GetRevisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Revision.Get(), o.Revision.IsSet() +} + +// HasRevision returns a boolean if a field has been set. +func (o *BatchAccessResult) HasRevision() bool { + if o != nil && o.Revision.IsSet() { + return true + } + + return false +} + +// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. +func (o *BatchAccessResult) SetRevision(v int32) { + o.Revision.Set(&v) +} +// SetRevisionNil sets the value for Revision to be an explicit nil +func (o *BatchAccessResult) SetRevisionNil() { + o.Revision.Set(nil) +} + +// UnsetRevision ensures that no value is present for Revision, not even an explicit nil +func (o *BatchAccessResult) UnsetRevision() { + o.Revision.Unset() +} + +func (o BatchAccessResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BatchAccessResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + toSerialize["allowed"] = o.Allowed + if o.Revision.IsSet() { + toSerialize["revision"] = o.Revision.Get() + } + return toSerialize, nil +} + +func (o *BatchAccessResult) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "allowed", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBatchAccessResult := _BatchAccessResult{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBatchAccessResult) + + if err != nil { + return err + } + + *o = BatchAccessResult(varBatchAccessResult) + + return err +} + +type NullableBatchAccessResult struct { + value *BatchAccessResult + isSet bool +} + +func (v NullableBatchAccessResult) Get() *BatchAccessResult { + return v.value +} + +func (v *NullableBatchAccessResult) Set(val *BatchAccessResult) { + v.value = val + v.isSet = true +} + +func (v NullableBatchAccessResult) IsSet() bool { + return v.isSet +} + +func (v *NullableBatchAccessResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBatchAccessResult(val *BatchAccessResult) *NullableBatchAccessResult { + return &NullableBatchAccessResult{value: val, isSet: true} +} + +func (v NullableBatchAccessResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBatchAccessResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_data_value.go b/sdks/go/model_data_value.go new file mode 100644 index 0000000..0d1bc0c --- /dev/null +++ b/sdks/go/model_data_value.go @@ -0,0 +1,107 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "fmt" +) + + +// DataValue struct for DataValue +type DataValue struct { + Int32 *int32 + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *DataValue) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into Int32 + err = json.Unmarshal(data, &dst.Int32); + if err == nil { + jsonInt32, _ := json.Marshal(dst.Int32) + if string(jsonInt32) == "{}" { // empty struct + dst.Int32 = nil + } else { + return nil // data stored in dst.Int32, return on the first match + } + } else { + dst.Int32 = nil + } + + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(DataValue)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src DataValue) MarshalJSON() ([]byte, error) { + if src.Int32 != nil { + return json.Marshal(&src.Int32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableDataValue struct { + value *DataValue + isSet bool +} + +func (v NullableDataValue) Get() *DataValue { + return v.value +} + +func (v *NullableDataValue) Set(val *DataValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataValue(val *DataValue) *NullableDataValue { + return &NullableDataValue{value: val, isSet: true} +} + +func (v NullableDataValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_http_validation_error.go b/sdks/go/model_http_validation_error.go new file mode 100644 index 0000000..6bad133 --- /dev/null +++ b/sdks/go/model_http_validation_error.go @@ -0,0 +1,126 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" +) + +// checks if the HTTPValidationError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HTTPValidationError{} + +// HTTPValidationError struct for HTTPValidationError +type HTTPValidationError struct { + Detail []ValidationError `json:"detail,omitempty"` +} + +// NewHTTPValidationError instantiates a new HTTPValidationError object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHTTPValidationError() *HTTPValidationError { + this := HTTPValidationError{} + return &this +} + +// NewHTTPValidationErrorWithDefaults instantiates a new HTTPValidationError object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHTTPValidationErrorWithDefaults() *HTTPValidationError { + this := HTTPValidationError{} + return &this +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *HTTPValidationError) GetDetail() []ValidationError { + if o == nil || IsNil(o.Detail) { + var ret []ValidationError + return ret + } + return o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HTTPValidationError) GetDetailOk() ([]ValidationError, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *HTTPValidationError) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given []ValidationError and assigns it to the Detail field. +func (o *HTTPValidationError) SetDetail(v []ValidationError) { + o.Detail = v +} + +func (o HTTPValidationError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HTTPValidationError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + return toSerialize, nil +} + +type NullableHTTPValidationError struct { + value *HTTPValidationError + isSet bool +} + +func (v NullableHTTPValidationError) Get() *HTTPValidationError { + return v.value +} + +func (v *NullableHTTPValidationError) Set(val *HTTPValidationError) { + v.value = val + v.isSet = true +} + +func (v NullableHTTPValidationError) IsSet() bool { + return v.isSet +} + +func (v *NullableHTTPValidationError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHTTPValidationError(val *HTTPValidationError) *NullableHTTPValidationError { + return &NullableHTTPValidationError{value: val, isSet: true} +} + +func (v NullableHTTPValidationError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHTTPValidationError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_impact_analysis_request.go b/sdks/go/model_impact_analysis_request.go new file mode 100644 index 0000000..077a252 --- /dev/null +++ b/sdks/go/model_impact_analysis_request.go @@ -0,0 +1,158 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ImpactAnalysisRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImpactAnalysisRequest{} + +// ImpactAnalysisRequest struct for ImpactAnalysisRequest +type ImpactAnalysisRequest struct { + PolicyChange string `json:"policy_change"` +} + +type _ImpactAnalysisRequest ImpactAnalysisRequest + +// NewImpactAnalysisRequest instantiates a new ImpactAnalysisRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewImpactAnalysisRequest(policyChange string) *ImpactAnalysisRequest { + this := ImpactAnalysisRequest{} + this.PolicyChange = policyChange + return &this +} + +// NewImpactAnalysisRequestWithDefaults instantiates a new ImpactAnalysisRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewImpactAnalysisRequestWithDefaults() *ImpactAnalysisRequest { + this := ImpactAnalysisRequest{} + return &this +} + +// GetPolicyChange returns the PolicyChange field value +func (o *ImpactAnalysisRequest) GetPolicyChange() string { + if o == nil { + var ret string + return ret + } + + return o.PolicyChange +} + +// GetPolicyChangeOk returns a tuple with the PolicyChange field value +// and a boolean to check if the value has been set. +func (o *ImpactAnalysisRequest) GetPolicyChangeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PolicyChange, true +} + +// SetPolicyChange sets field value +func (o *ImpactAnalysisRequest) SetPolicyChange(v string) { + o.PolicyChange = v +} + +func (o ImpactAnalysisRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImpactAnalysisRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["policy_change"] = o.PolicyChange + return toSerialize, nil +} + +func (o *ImpactAnalysisRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "policy_change", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varImpactAnalysisRequest := _ImpactAnalysisRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varImpactAnalysisRequest) + + if err != nil { + return err + } + + *o = ImpactAnalysisRequest(varImpactAnalysisRequest) + + return err +} + +type NullableImpactAnalysisRequest struct { + value *ImpactAnalysisRequest + isSet bool +} + +func (v NullableImpactAnalysisRequest) Get() *ImpactAnalysisRequest { + return v.value +} + +func (v *NullableImpactAnalysisRequest) Set(val *ImpactAnalysisRequest) { + v.value = val + v.isSet = true +} + +func (v NullableImpactAnalysisRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableImpactAnalysisRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImpactAnalysisRequest(val *ImpactAnalysisRequest) *NullableImpactAnalysisRequest { + return &NullableImpactAnalysisRequest{value: val, isSet: true} +} + +func (v NullableImpactAnalysisRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImpactAnalysisRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_impact_analysis_response.go b/sdks/go/model_impact_analysis_response.go new file mode 100644 index 0000000..ac74446 --- /dev/null +++ b/sdks/go/model_impact_analysis_response.go @@ -0,0 +1,162 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" +) + +// checks if the ImpactAnalysisResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImpactAnalysisResponse{} + +// ImpactAnalysisResponse struct for ImpactAnalysisResponse +type ImpactAnalysisResponse struct { + GainedAccess []int32 `json:"gained_access,omitempty"` + LostAccess []int32 `json:"lost_access,omitempty"` +} + +// NewImpactAnalysisResponse instantiates a new ImpactAnalysisResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewImpactAnalysisResponse() *ImpactAnalysisResponse { + this := ImpactAnalysisResponse{} + return &this +} + +// NewImpactAnalysisResponseWithDefaults instantiates a new ImpactAnalysisResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewImpactAnalysisResponseWithDefaults() *ImpactAnalysisResponse { + this := ImpactAnalysisResponse{} + return &this +} + +// GetGainedAccess returns the GainedAccess field value if set, zero value otherwise. +func (o *ImpactAnalysisResponse) GetGainedAccess() []int32 { + if o == nil || IsNil(o.GainedAccess) { + var ret []int32 + return ret + } + return o.GainedAccess +} + +// GetGainedAccessOk returns a tuple with the GainedAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactAnalysisResponse) GetGainedAccessOk() ([]int32, bool) { + if o == nil || IsNil(o.GainedAccess) { + return nil, false + } + return o.GainedAccess, true +} + +// HasGainedAccess returns a boolean if a field has been set. +func (o *ImpactAnalysisResponse) HasGainedAccess() bool { + if o != nil && !IsNil(o.GainedAccess) { + return true + } + + return false +} + +// SetGainedAccess gets a reference to the given []int32 and assigns it to the GainedAccess field. +func (o *ImpactAnalysisResponse) SetGainedAccess(v []int32) { + o.GainedAccess = v +} + +// GetLostAccess returns the LostAccess field value if set, zero value otherwise. +func (o *ImpactAnalysisResponse) GetLostAccess() []int32 { + if o == nil || IsNil(o.LostAccess) { + var ret []int32 + return ret + } + return o.LostAccess +} + +// GetLostAccessOk returns a tuple with the LostAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactAnalysisResponse) GetLostAccessOk() ([]int32, bool) { + if o == nil || IsNil(o.LostAccess) { + return nil, false + } + return o.LostAccess, true +} + +// HasLostAccess returns a boolean if a field has been set. +func (o *ImpactAnalysisResponse) HasLostAccess() bool { + if o != nil && !IsNil(o.LostAccess) { + return true + } + + return false +} + +// SetLostAccess gets a reference to the given []int32 and assigns it to the LostAccess field. +func (o *ImpactAnalysisResponse) SetLostAccess(v []int32) { + o.LostAccess = v +} + +func (o ImpactAnalysisResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImpactAnalysisResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GainedAccess) { + toSerialize["gained_access"] = o.GainedAccess + } + if !IsNil(o.LostAccess) { + toSerialize["lost_access"] = o.LostAccess + } + return toSerialize, nil +} + +type NullableImpactAnalysisResponse struct { + value *ImpactAnalysisResponse + isSet bool +} + +func (v NullableImpactAnalysisResponse) Get() *ImpactAnalysisResponse { + return v.value +} + +func (v *NullableImpactAnalysisResponse) Set(val *ImpactAnalysisResponse) { + v.value = val + v.isSet = true +} + +func (v NullableImpactAnalysisResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableImpactAnalysisResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImpactAnalysisResponse(val *ImpactAnalysisResponse) *NullableImpactAnalysisResponse { + return &NullableImpactAnalysisResponse{value: val, isSet: true} +} + +func (v NullableImpactAnalysisResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImpactAnalysisResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_location_inner.go b/sdks/go/model_location_inner.go new file mode 100644 index 0000000..63d0dc7 --- /dev/null +++ b/sdks/go/model_location_inner.go @@ -0,0 +1,107 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "fmt" +) + + +// LocationInner struct for LocationInner +type LocationInner struct { + Int32 *int32 + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *LocationInner) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into Int32 + err = json.Unmarshal(data, &dst.Int32); + if err == nil { + jsonInt32, _ := json.Marshal(dst.Int32) + if string(jsonInt32) == "{}" { // empty struct + dst.Int32 = nil + } else { + return nil // data stored in dst.Int32, return on the first match + } + } else { + dst.Int32 = nil + } + + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(LocationInner)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src LocationInner) MarshalJSON() ([]byte, error) { + if src.Int32 != nil { + return json.Marshal(&src.Int32) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableLocationInner struct { + value *LocationInner + isSet bool +} + +func (v NullableLocationInner) Get() *LocationInner { + return v.value +} + +func (v *NullableLocationInner) Set(val *LocationInner) { + v.value = val + v.isSet = true +} + +func (v NullableLocationInner) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationInner(val *LocationInner) *NullableLocationInner { + return &NullableLocationInner{value: val, isSet: true} +} + +func (v NullableLocationInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_meta_body.go b/sdks/go/model_meta_body.go new file mode 100644 index 0000000..0dd4bd0 --- /dev/null +++ b/sdks/go/model_meta_body.go @@ -0,0 +1,264 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" +) + +// checks if the MetaBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetaBody{} + +// MetaBody struct for MetaBody +type MetaBody struct { + RequestId NullableString `json:"request_id,omitempty"` + Limit NullableInt32 `json:"limit,omitempty"` + NextCursor NullableString `json:"next_cursor,omitempty"` + Extra map[string]interface{} `json:"extra,omitempty"` +} + +// NewMetaBody instantiates a new MetaBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetaBody() *MetaBody { + this := MetaBody{} + return &this +} + +// NewMetaBodyWithDefaults instantiates a new MetaBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetaBodyWithDefaults() *MetaBody { + this := MetaBody{} + return &this +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetaBody) GetRequestId() string { + if o == nil || IsNil(o.RequestId.Get()) { + var ret string + return ret + } + return *o.RequestId.Get() +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetaBody) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestId.Get(), o.RequestId.IsSet() +} + +// HasRequestId returns a boolean if a field has been set. +func (o *MetaBody) HasRequestId() bool { + if o != nil && o.RequestId.IsSet() { + return true + } + + return false +} + +// SetRequestId gets a reference to the given NullableString and assigns it to the RequestId field. +func (o *MetaBody) SetRequestId(v string) { + o.RequestId.Set(&v) +} +// SetRequestIdNil sets the value for RequestId to be an explicit nil +func (o *MetaBody) SetRequestIdNil() { + o.RequestId.Set(nil) +} + +// UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil +func (o *MetaBody) UnsetRequestId() { + o.RequestId.Unset() +} + +// GetLimit returns the Limit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetaBody) GetLimit() int32 { + if o == nil || IsNil(o.Limit.Get()) { + var ret int32 + return ret + } + return *o.Limit.Get() +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetaBody) GetLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Limit.Get(), o.Limit.IsSet() +} + +// HasLimit returns a boolean if a field has been set. +func (o *MetaBody) HasLimit() bool { + if o != nil && o.Limit.IsSet() { + return true + } + + return false +} + +// SetLimit gets a reference to the given NullableInt32 and assigns it to the Limit field. +func (o *MetaBody) SetLimit(v int32) { + o.Limit.Set(&v) +} +// SetLimitNil sets the value for Limit to be an explicit nil +func (o *MetaBody) SetLimitNil() { + o.Limit.Set(nil) +} + +// UnsetLimit ensures that no value is present for Limit, not even an explicit nil +func (o *MetaBody) UnsetLimit() { + o.Limit.Unset() +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetaBody) GetNextCursor() string { + if o == nil || IsNil(o.NextCursor.Get()) { + var ret string + return ret + } + return *o.NextCursor.Get() +} + +// GetNextCursorOk returns a tuple with the NextCursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetaBody) GetNextCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextCursor.Get(), o.NextCursor.IsSet() +} + +// HasNextCursor returns a boolean if a field has been set. +func (o *MetaBody) HasNextCursor() bool { + if o != nil && o.NextCursor.IsSet() { + return true + } + + return false +} + +// SetNextCursor gets a reference to the given NullableString and assigns it to the NextCursor field. +func (o *MetaBody) SetNextCursor(v string) { + o.NextCursor.Set(&v) +} +// SetNextCursorNil sets the value for NextCursor to be an explicit nil +func (o *MetaBody) SetNextCursorNil() { + o.NextCursor.Set(nil) +} + +// UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +func (o *MetaBody) UnsetNextCursor() { + o.NextCursor.Unset() +} + +// GetExtra returns the Extra field value if set, zero value otherwise. +func (o *MetaBody) GetExtra() map[string]interface{} { + if o == nil || IsNil(o.Extra) { + var ret map[string]interface{} + return ret + } + return o.Extra +} + +// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetaBody) GetExtraOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Extra) { + return map[string]interface{}{}, false + } + return o.Extra, true +} + +// HasExtra returns a boolean if a field has been set. +func (o *MetaBody) HasExtra() bool { + if o != nil && !IsNil(o.Extra) { + return true + } + + return false +} + +// SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field. +func (o *MetaBody) SetExtra(v map[string]interface{}) { + o.Extra = v +} + +func (o MetaBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetaBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.RequestId.IsSet() { + toSerialize["request_id"] = o.RequestId.Get() + } + if o.Limit.IsSet() { + toSerialize["limit"] = o.Limit.Get() + } + if o.NextCursor.IsSet() { + toSerialize["next_cursor"] = o.NextCursor.Get() + } + if !IsNil(o.Extra) { + toSerialize["extra"] = o.Extra + } + return toSerialize, nil +} + +type NullableMetaBody struct { + value *MetaBody + isSet bool +} + +func (v NullableMetaBody) Get() *MetaBody { + return v.value +} + +func (v *NullableMetaBody) Set(val *MetaBody) { + v.value = val + v.isSet = true +} + +func (v NullableMetaBody) IsSet() bool { + return v.isSet +} + +func (v *NullableMetaBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetaBody(val *MetaBody) *NullableMetaBody { + return &NullableMetaBody{value: val, isSet: true} +} + +func (v NullableMetaBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetaBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_permission_create.go b/sdks/go/model_permission_create.go new file mode 100644 index 0000000..08475dc --- /dev/null +++ b/sdks/go/model_permission_create.go @@ -0,0 +1,158 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PermissionCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionCreate{} + +// PermissionCreate struct for PermissionCreate +type PermissionCreate struct { + Action string `json:"action"` +} + +type _PermissionCreate PermissionCreate + +// NewPermissionCreate instantiates a new PermissionCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionCreate(action string) *PermissionCreate { + this := PermissionCreate{} + this.Action = action + return &this +} + +// NewPermissionCreateWithDefaults instantiates a new PermissionCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionCreateWithDefaults() *PermissionCreate { + this := PermissionCreate{} + return &this +} + +// GetAction returns the Action field value +func (o *PermissionCreate) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PermissionCreate) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PermissionCreate) SetAction(v string) { + o.Action = v +} + +func (o PermissionCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + return toSerialize, nil +} + +func (o *PermissionCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPermissionCreate := _PermissionCreate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPermissionCreate) + + if err != nil { + return err + } + + *o = PermissionCreate(varPermissionCreate) + + return err +} + +type NullablePermissionCreate struct { + value *PermissionCreate + isSet bool +} + +func (v NullablePermissionCreate) Get() *PermissionCreate { + return v.value +} + +func (v *NullablePermissionCreate) Set(val *PermissionCreate) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionCreate) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionCreate(val *PermissionCreate) *NullablePermissionCreate { + return &NullablePermissionCreate{value: val, isSet: true} +} + +func (v NullablePermissionCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_permission_out.go b/sdks/go/model_permission_out.go new file mode 100644 index 0000000..390ee09 --- /dev/null +++ b/sdks/go/model_permission_out.go @@ -0,0 +1,186 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PermissionOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionOut{} + +// PermissionOut struct for PermissionOut +type PermissionOut struct { + Id int32 `json:"id"` + Action string `json:"action"` +} + +type _PermissionOut PermissionOut + +// NewPermissionOut instantiates a new PermissionOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionOut(id int32, action string) *PermissionOut { + this := PermissionOut{} + this.Id = id + this.Action = action + return &this +} + +// NewPermissionOutWithDefaults instantiates a new PermissionOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionOutWithDefaults() *PermissionOut { + this := PermissionOut{} + return &this +} + +// GetId returns the Id field value +func (o *PermissionOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionOut) SetId(v int32) { + o.Id = v +} + +// GetAction returns the Action field value +func (o *PermissionOut) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PermissionOut) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PermissionOut) SetAction(v string) { + o.Action = v +} + +func (o PermissionOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["action"] = o.Action + return toSerialize, nil +} + +func (o *PermissionOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPermissionOut := _PermissionOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPermissionOut) + + if err != nil { + return err + } + + *o = PermissionOut(varPermissionOut) + + return err +} + +type NullablePermissionOut struct { + value *PermissionOut + isSet bool +} + +func (v NullablePermissionOut) Get() *PermissionOut { + return v.value +} + +func (v *NullablePermissionOut) Set(val *PermissionOut) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionOut) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionOut(val *PermissionOut) *NullablePermissionOut { + return &NullablePermissionOut{value: val, isSet: true} +} + +func (v NullablePermissionOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_permission_update.go b/sdks/go/model_permission_update.go new file mode 100644 index 0000000..02f465f --- /dev/null +++ b/sdks/go/model_permission_update.go @@ -0,0 +1,158 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PermissionUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionUpdate{} + +// PermissionUpdate struct for PermissionUpdate +type PermissionUpdate struct { + Action string `json:"action"` +} + +type _PermissionUpdate PermissionUpdate + +// NewPermissionUpdate instantiates a new PermissionUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionUpdate(action string) *PermissionUpdate { + this := PermissionUpdate{} + this.Action = action + return &this +} + +// NewPermissionUpdateWithDefaults instantiates a new PermissionUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionUpdateWithDefaults() *PermissionUpdate { + this := PermissionUpdate{} + return &this +} + +// GetAction returns the Action field value +func (o *PermissionUpdate) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PermissionUpdate) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PermissionUpdate) SetAction(v string) { + o.Action = v +} + +func (o PermissionUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + return toSerialize, nil +} + +func (o *PermissionUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPermissionUpdate := _PermissionUpdate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPermissionUpdate) + + if err != nil { + return err + } + + *o = PermissionUpdate(varPermissionUpdate) + + return err +} + +type NullablePermissionUpdate struct { + value *PermissionUpdate + isSet bool +} + +func (v NullablePermissionUpdate) Get() *PermissionUpdate { + return v.value +} + +func (v *NullablePermissionUpdate) Set(val *PermissionUpdate) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionUpdate(val *PermissionUpdate) *NullablePermissionUpdate { + return &NullablePermissionUpdate{value: val, isSet: true} +} + +func (v NullablePermissionUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_playground_evaluate_request.go b/sdks/go/model_playground_evaluate_request.go new file mode 100644 index 0000000..9984f9b --- /dev/null +++ b/sdks/go/model_playground_evaluate_request.go @@ -0,0 +1,186 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PlaygroundEvaluateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlaygroundEvaluateRequest{} + +// PlaygroundEvaluateRequest struct for PlaygroundEvaluateRequest +type PlaygroundEvaluateRequest struct { + Policies []PlaygroundPolicy `json:"policies"` + Input PlaygroundInput `json:"input"` +} + +type _PlaygroundEvaluateRequest PlaygroundEvaluateRequest + +// NewPlaygroundEvaluateRequest instantiates a new PlaygroundEvaluateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlaygroundEvaluateRequest(policies []PlaygroundPolicy, input PlaygroundInput) *PlaygroundEvaluateRequest { + this := PlaygroundEvaluateRequest{} + this.Policies = policies + this.Input = input + return &this +} + +// NewPlaygroundEvaluateRequestWithDefaults instantiates a new PlaygroundEvaluateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlaygroundEvaluateRequestWithDefaults() *PlaygroundEvaluateRequest { + this := PlaygroundEvaluateRequest{} + return &this +} + +// GetPolicies returns the Policies field value +func (o *PlaygroundEvaluateRequest) GetPolicies() []PlaygroundPolicy { + if o == nil { + var ret []PlaygroundPolicy + return ret + } + + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value +// and a boolean to check if the value has been set. +func (o *PlaygroundEvaluateRequest) GetPoliciesOk() ([]PlaygroundPolicy, bool) { + if o == nil { + return nil, false + } + return o.Policies, true +} + +// SetPolicies sets field value +func (o *PlaygroundEvaluateRequest) SetPolicies(v []PlaygroundPolicy) { + o.Policies = v +} + +// GetInput returns the Input field value +func (o *PlaygroundEvaluateRequest) GetInput() PlaygroundInput { + if o == nil { + var ret PlaygroundInput + return ret + } + + return o.Input +} + +// GetInputOk returns a tuple with the Input field value +// and a boolean to check if the value has been set. +func (o *PlaygroundEvaluateRequest) GetInputOk() (*PlaygroundInput, bool) { + if o == nil { + return nil, false + } + return &o.Input, true +} + +// SetInput sets field value +func (o *PlaygroundEvaluateRequest) SetInput(v PlaygroundInput) { + o.Input = v +} + +func (o PlaygroundEvaluateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlaygroundEvaluateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["policies"] = o.Policies + toSerialize["input"] = o.Input + return toSerialize, nil +} + +func (o *PlaygroundEvaluateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "policies", + "input", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPlaygroundEvaluateRequest := _PlaygroundEvaluateRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlaygroundEvaluateRequest) + + if err != nil { + return err + } + + *o = PlaygroundEvaluateRequest(varPlaygroundEvaluateRequest) + + return err +} + +type NullablePlaygroundEvaluateRequest struct { + value *PlaygroundEvaluateRequest + isSet bool +} + +func (v NullablePlaygroundEvaluateRequest) Get() *PlaygroundEvaluateRequest { + return v.value +} + +func (v *NullablePlaygroundEvaluateRequest) Set(val *PlaygroundEvaluateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePlaygroundEvaluateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePlaygroundEvaluateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlaygroundEvaluateRequest(val *PlaygroundEvaluateRequest) *NullablePlaygroundEvaluateRequest { + return &NullablePlaygroundEvaluateRequest{value: val, isSet: true} +} + +func (v NullablePlaygroundEvaluateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlaygroundEvaluateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_playground_input.go b/sdks/go/model_playground_input.go new file mode 100644 index 0000000..a9080dd --- /dev/null +++ b/sdks/go/model_playground_input.go @@ -0,0 +1,238 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" +) + +// checks if the PlaygroundInput type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlaygroundInput{} + +// PlaygroundInput struct for PlaygroundInput +type PlaygroundInput struct { + User map[string]interface{} `json:"user,omitempty"` + Resource map[string]interface{} `json:"resource,omitempty"` + Action *string `json:"action,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` +} + +// NewPlaygroundInput instantiates a new PlaygroundInput object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlaygroundInput() *PlaygroundInput { + this := PlaygroundInput{} + var action string = "" + this.Action = &action + return &this +} + +// NewPlaygroundInputWithDefaults instantiates a new PlaygroundInput object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlaygroundInputWithDefaults() *PlaygroundInput { + this := PlaygroundInput{} + var action string = "" + this.Action = &action + return &this +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PlaygroundInput) GetUser() map[string]interface{} { + if o == nil || IsNil(o.User) { + var ret map[string]interface{} + return ret + } + return o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundInput) GetUserOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.User) { + return map[string]interface{}{}, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PlaygroundInput) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given map[string]interface{} and assigns it to the User field. +func (o *PlaygroundInput) SetUser(v map[string]interface{}) { + o.User = v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *PlaygroundInput) GetResource() map[string]interface{} { + if o == nil || IsNil(o.Resource) { + var ret map[string]interface{} + return ret + } + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundInput) GetResourceOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Resource) { + return map[string]interface{}{}, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *PlaygroundInput) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given map[string]interface{} and assigns it to the Resource field. +func (o *PlaygroundInput) SetResource(v map[string]interface{}) { + o.Resource = v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *PlaygroundInput) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundInput) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *PlaygroundInput) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *PlaygroundInput) SetAction(v string) { + o.Action = &v +} + +// GetContext returns the Context field value if set, zero value otherwise. +func (o *PlaygroundInput) GetContext() map[string]interface{} { + if o == nil || IsNil(o.Context) { + var ret map[string]interface{} + return ret + } + return o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundInput) GetContextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Context) { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *PlaygroundInput) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. +func (o *PlaygroundInput) SetContext(v map[string]interface{}) { + o.Context = v +} + +func (o PlaygroundInput) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlaygroundInput) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } + return toSerialize, nil +} + +type NullablePlaygroundInput struct { + value *PlaygroundInput + isSet bool +} + +func (v NullablePlaygroundInput) Get() *PlaygroundInput { + return v.value +} + +func (v *NullablePlaygroundInput) Set(val *PlaygroundInput) { + v.value = val + v.isSet = true +} + +func (v NullablePlaygroundInput) IsSet() bool { + return v.isSet +} + +func (v *NullablePlaygroundInput) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlaygroundInput(val *PlaygroundInput) *NullablePlaygroundInput { + return &NullablePlaygroundInput{value: val, isSet: true} +} + +func (v NullablePlaygroundInput) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlaygroundInput) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_playground_policy.go b/sdks/go/model_playground_policy.go new file mode 100644 index 0000000..48b8e9b --- /dev/null +++ b/sdks/go/model_playground_policy.go @@ -0,0 +1,320 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PlaygroundPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlaygroundPolicy{} + +// PlaygroundPolicy struct for PlaygroundPolicy +type PlaygroundPolicy struct { + Action string `json:"action"` + Effect *string `json:"effect,omitempty"` + Priority *int32 `json:"priority,omitempty"` + PolicyId NullableString `json:"policy_id,omitempty"` + Conditions map[string]interface{} `json:"conditions,omitempty"` +} + +type _PlaygroundPolicy PlaygroundPolicy + +// NewPlaygroundPolicy instantiates a new PlaygroundPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlaygroundPolicy(action string) *PlaygroundPolicy { + this := PlaygroundPolicy{} + this.Action = action + var effect string = "allow" + this.Effect = &effect + var priority int32 = 100 + this.Priority = &priority + return &this +} + +// NewPlaygroundPolicyWithDefaults instantiates a new PlaygroundPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlaygroundPolicyWithDefaults() *PlaygroundPolicy { + this := PlaygroundPolicy{} + var effect string = "allow" + this.Effect = &effect + var priority int32 = 100 + this.Priority = &priority + return &this +} + +// GetAction returns the Action field value +func (o *PlaygroundPolicy) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PlaygroundPolicy) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PlaygroundPolicy) SetAction(v string) { + o.Action = v +} + +// GetEffect returns the Effect field value if set, zero value otherwise. +func (o *PlaygroundPolicy) GetEffect() string { + if o == nil || IsNil(o.Effect) { + var ret string + return ret + } + return *o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundPolicy) GetEffectOk() (*string, bool) { + if o == nil || IsNil(o.Effect) { + return nil, false + } + return o.Effect, true +} + +// HasEffect returns a boolean if a field has been set. +func (o *PlaygroundPolicy) HasEffect() bool { + if o != nil && !IsNil(o.Effect) { + return true + } + + return false +} + +// SetEffect gets a reference to the given string and assigns it to the Effect field. +func (o *PlaygroundPolicy) SetEffect(v string) { + o.Effect = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *PlaygroundPolicy) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundPolicy) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PlaygroundPolicy) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *PlaygroundPolicy) SetPriority(v int32) { + o.Priority = &v +} + +// GetPolicyId returns the PolicyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlaygroundPolicy) GetPolicyId() string { + if o == nil || IsNil(o.PolicyId.Get()) { + var ret string + return ret + } + return *o.PolicyId.Get() +} + +// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlaygroundPolicy) GetPolicyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PolicyId.Get(), o.PolicyId.IsSet() +} + +// HasPolicyId returns a boolean if a field has been set. +func (o *PlaygroundPolicy) HasPolicyId() bool { + if o != nil && o.PolicyId.IsSet() { + return true + } + + return false +} + +// SetPolicyId gets a reference to the given NullableString and assigns it to the PolicyId field. +func (o *PlaygroundPolicy) SetPolicyId(v string) { + o.PolicyId.Set(&v) +} +// SetPolicyIdNil sets the value for PolicyId to be an explicit nil +func (o *PlaygroundPolicy) SetPolicyIdNil() { + o.PolicyId.Set(nil) +} + +// UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil +func (o *PlaygroundPolicy) UnsetPolicyId() { + o.PolicyId.Unset() +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *PlaygroundPolicy) GetConditions() map[string]interface{} { + if o == nil || IsNil(o.Conditions) { + var ret map[string]interface{} + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlaygroundPolicy) GetConditionsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Conditions) { + return map[string]interface{}{}, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *PlaygroundPolicy) HasConditions() bool { + if o != nil && !IsNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field. +func (o *PlaygroundPolicy) SetConditions(v map[string]interface{}) { + o.Conditions = v +} + +func (o PlaygroundPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlaygroundPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.Effect) { + toSerialize["effect"] = o.Effect + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if o.PolicyId.IsSet() { + toSerialize["policy_id"] = o.PolicyId.Get() + } + if !IsNil(o.Conditions) { + toSerialize["conditions"] = o.Conditions + } + return toSerialize, nil +} + +func (o *PlaygroundPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPlaygroundPolicy := _PlaygroundPolicy{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlaygroundPolicy) + + if err != nil { + return err + } + + *o = PlaygroundPolicy(varPlaygroundPolicy) + + return err +} + +type NullablePlaygroundPolicy struct { + value *PlaygroundPolicy + isSet bool +} + +func (v NullablePlaygroundPolicy) Get() *PlaygroundPolicy { + return v.value +} + +func (v *NullablePlaygroundPolicy) Set(val *PlaygroundPolicy) { + v.value = val + v.isSet = true +} + +func (v NullablePlaygroundPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullablePlaygroundPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlaygroundPolicy(val *PlaygroundPolicy) *NullablePlaygroundPolicy { + return &NullablePlaygroundPolicy{value: val, isSet: true} +} + +func (v NullablePlaygroundPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlaygroundPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_policy_create.go b/sdks/go/model_policy_create.go new file mode 100644 index 0000000..d9440fc --- /dev/null +++ b/sdks/go/model_policy_create.go @@ -0,0 +1,314 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PolicyCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyCreate{} + +// PolicyCreate struct for PolicyCreate +type PolicyCreate struct { + Action string `json:"action"` + Effect *string `json:"effect,omitempty"` + Priority *int32 `json:"priority,omitempty"` + State *string `json:"state,omitempty"` + Conditions map[string]interface{} `json:"conditions,omitempty"` +} + +type _PolicyCreate PolicyCreate + +// NewPolicyCreate instantiates a new PolicyCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyCreate(action string) *PolicyCreate { + this := PolicyCreate{} + this.Action = action + var effect string = "allow" + this.Effect = &effect + var priority int32 = 100 + this.Priority = &priority + var state string = "active" + this.State = &state + return &this +} + +// NewPolicyCreateWithDefaults instantiates a new PolicyCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyCreateWithDefaults() *PolicyCreate { + this := PolicyCreate{} + var effect string = "allow" + this.Effect = &effect + var priority int32 = 100 + this.Priority = &priority + var state string = "active" + this.State = &state + return &this +} + +// GetAction returns the Action field value +func (o *PolicyCreate) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PolicyCreate) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PolicyCreate) SetAction(v string) { + o.Action = v +} + +// GetEffect returns the Effect field value if set, zero value otherwise. +func (o *PolicyCreate) GetEffect() string { + if o == nil || IsNil(o.Effect) { + var ret string + return ret + } + return *o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyCreate) GetEffectOk() (*string, bool) { + if o == nil || IsNil(o.Effect) { + return nil, false + } + return o.Effect, true +} + +// HasEffect returns a boolean if a field has been set. +func (o *PolicyCreate) HasEffect() bool { + if o != nil && !IsNil(o.Effect) { + return true + } + + return false +} + +// SetEffect gets a reference to the given string and assigns it to the Effect field. +func (o *PolicyCreate) SetEffect(v string) { + o.Effect = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *PolicyCreate) GetPriority() int32 { + if o == nil || IsNil(o.Priority) { + var ret int32 + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyCreate) GetPriorityOk() (*int32, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PolicyCreate) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given int32 and assigns it to the Priority field. +func (o *PolicyCreate) SetPriority(v int32) { + o.Priority = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *PolicyCreate) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyCreate) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *PolicyCreate) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *PolicyCreate) SetState(v string) { + o.State = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *PolicyCreate) GetConditions() map[string]interface{} { + if o == nil || IsNil(o.Conditions) { + var ret map[string]interface{} + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyCreate) GetConditionsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Conditions) { + return map[string]interface{}{}, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *PolicyCreate) HasConditions() bool { + if o != nil && !IsNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field. +func (o *PolicyCreate) SetConditions(v map[string]interface{}) { + o.Conditions = v +} + +func (o PolicyCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.Effect) { + toSerialize["effect"] = o.Effect + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Conditions) { + toSerialize["conditions"] = o.Conditions + } + return toSerialize, nil +} + +func (o *PolicyCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPolicyCreate := _PolicyCreate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPolicyCreate) + + if err != nil { + return err + } + + *o = PolicyCreate(varPolicyCreate) + + return err +} + +type NullablePolicyCreate struct { + value *PolicyCreate + isSet bool +} + +func (v NullablePolicyCreate) Get() *PolicyCreate { + return v.value +} + +func (v *NullablePolicyCreate) Set(val *PolicyCreate) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyCreate) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyCreate(val *PolicyCreate) *NullablePolicyCreate { + return &NullablePolicyCreate{value: val, isSet: true} +} + +func (v NullablePolicyCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_policy_out.go b/sdks/go/model_policy_out.go new file mode 100644 index 0000000..e7b69bd --- /dev/null +++ b/sdks/go/model_policy_out.go @@ -0,0 +1,310 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PolicyOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyOut{} + +// PolicyOut struct for PolicyOut +type PolicyOut struct { + Id int32 `json:"id"` + Action string `json:"action"` + Effect string `json:"effect"` + Priority int32 `json:"priority"` + State *string `json:"state,omitempty"` + Conditions map[string]interface{} `json:"conditions"` +} + +type _PolicyOut PolicyOut + +// NewPolicyOut instantiates a new PolicyOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyOut(id int32, action string, effect string, priority int32, conditions map[string]interface{}) *PolicyOut { + this := PolicyOut{} + this.Id = id + this.Action = action + this.Effect = effect + this.Priority = priority + var state string = "active" + this.State = &state + this.Conditions = conditions + return &this +} + +// NewPolicyOutWithDefaults instantiates a new PolicyOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyOutWithDefaults() *PolicyOut { + this := PolicyOut{} + var state string = "active" + this.State = &state + return &this +} + +// GetId returns the Id field value +func (o *PolicyOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PolicyOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PolicyOut) SetId(v int32) { + o.Id = v +} + +// GetAction returns the Action field value +func (o *PolicyOut) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *PolicyOut) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *PolicyOut) SetAction(v string) { + o.Action = v +} + +// GetEffect returns the Effect field value +func (o *PolicyOut) GetEffect() string { + if o == nil { + var ret string + return ret + } + + return o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value +// and a boolean to check if the value has been set. +func (o *PolicyOut) GetEffectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Effect, true +} + +// SetEffect sets field value +func (o *PolicyOut) SetEffect(v string) { + o.Effect = v +} + +// GetPriority returns the Priority field value +func (o *PolicyOut) GetPriority() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value +// and a boolean to check if the value has been set. +func (o *PolicyOut) GetPriorityOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Priority, true +} + +// SetPriority sets field value +func (o *PolicyOut) SetPriority(v int32) { + o.Priority = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *PolicyOut) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyOut) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *PolicyOut) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *PolicyOut) SetState(v string) { + o.State = &v +} + +// GetConditions returns the Conditions field value +func (o *PolicyOut) GetConditions() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value +// and a boolean to check if the value has been set. +func (o *PolicyOut) GetConditionsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Conditions, true +} + +// SetConditions sets field value +func (o *PolicyOut) SetConditions(v map[string]interface{}) { + o.Conditions = v +} + +func (o PolicyOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["action"] = o.Action + toSerialize["effect"] = o.Effect + toSerialize["priority"] = o.Priority + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + toSerialize["conditions"] = o.Conditions + return toSerialize, nil +} + +func (o *PolicyOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "action", + "effect", + "priority", + "conditions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPolicyOut := _PolicyOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPolicyOut) + + if err != nil { + return err + } + + *o = PolicyOut(varPolicyOut) + + return err +} + +type NullablePolicyOut struct { + value *PolicyOut + isSet bool +} + +func (v NullablePolicyOut) Get() *PolicyOut { + return v.value +} + +func (v *NullablePolicyOut) Set(val *PolicyOut) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyOut) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyOut(val *PolicyOut) *NullablePolicyOut { + return &NullablePolicyOut{value: val, isSet: true} +} + +func (v NullablePolicyOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_policy_simulation_input.go b/sdks/go/model_policy_simulation_input.go new file mode 100644 index 0000000..26bb824 --- /dev/null +++ b/sdks/go/model_policy_simulation_input.go @@ -0,0 +1,210 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" +) + +// checks if the PolicySimulationInput type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicySimulationInput{} + +// PolicySimulationInput struct for PolicySimulationInput +type PolicySimulationInput struct { + PolicyChange NullableString `json:"policy_change,omitempty"` + RelationshipChange map[string]interface{} `json:"relationship_change,omitempty"` + RoleChange map[string]interface{} `json:"role_change,omitempty"` +} + +// NewPolicySimulationInput instantiates a new PolicySimulationInput object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicySimulationInput() *PolicySimulationInput { + this := PolicySimulationInput{} + return &this +} + +// NewPolicySimulationInputWithDefaults instantiates a new PolicySimulationInput object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicySimulationInputWithDefaults() *PolicySimulationInput { + this := PolicySimulationInput{} + return &this +} + +// GetPolicyChange returns the PolicyChange field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PolicySimulationInput) GetPolicyChange() string { + if o == nil || IsNil(o.PolicyChange.Get()) { + var ret string + return ret + } + return *o.PolicyChange.Get() +} + +// GetPolicyChangeOk returns a tuple with the PolicyChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PolicySimulationInput) GetPolicyChangeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PolicyChange.Get(), o.PolicyChange.IsSet() +} + +// HasPolicyChange returns a boolean if a field has been set. +func (o *PolicySimulationInput) HasPolicyChange() bool { + if o != nil && o.PolicyChange.IsSet() { + return true + } + + return false +} + +// SetPolicyChange gets a reference to the given NullableString and assigns it to the PolicyChange field. +func (o *PolicySimulationInput) SetPolicyChange(v string) { + o.PolicyChange.Set(&v) +} +// SetPolicyChangeNil sets the value for PolicyChange to be an explicit nil +func (o *PolicySimulationInput) SetPolicyChangeNil() { + o.PolicyChange.Set(nil) +} + +// UnsetPolicyChange ensures that no value is present for PolicyChange, not even an explicit nil +func (o *PolicySimulationInput) UnsetPolicyChange() { + o.PolicyChange.Unset() +} + +// GetRelationshipChange returns the RelationshipChange field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PolicySimulationInput) GetRelationshipChange() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.RelationshipChange +} + +// GetRelationshipChangeOk returns a tuple with the RelationshipChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PolicySimulationInput) GetRelationshipChangeOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.RelationshipChange) { + return map[string]interface{}{}, false + } + return o.RelationshipChange, true +} + +// HasRelationshipChange returns a boolean if a field has been set. +func (o *PolicySimulationInput) HasRelationshipChange() bool { + if o != nil && !IsNil(o.RelationshipChange) { + return true + } + + return false +} + +// SetRelationshipChange gets a reference to the given map[string]interface{} and assigns it to the RelationshipChange field. +func (o *PolicySimulationInput) SetRelationshipChange(v map[string]interface{}) { + o.RelationshipChange = v +} + +// GetRoleChange returns the RoleChange field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PolicySimulationInput) GetRoleChange() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.RoleChange +} + +// GetRoleChangeOk returns a tuple with the RoleChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PolicySimulationInput) GetRoleChangeOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.RoleChange) { + return map[string]interface{}{}, false + } + return o.RoleChange, true +} + +// HasRoleChange returns a boolean if a field has been set. +func (o *PolicySimulationInput) HasRoleChange() bool { + if o != nil && !IsNil(o.RoleChange) { + return true + } + + return false +} + +// SetRoleChange gets a reference to the given map[string]interface{} and assigns it to the RoleChange field. +func (o *PolicySimulationInput) SetRoleChange(v map[string]interface{}) { + o.RoleChange = v +} + +func (o PolicySimulationInput) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicySimulationInput) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.PolicyChange.IsSet() { + toSerialize["policy_change"] = o.PolicyChange.Get() + } + if o.RelationshipChange != nil { + toSerialize["relationship_change"] = o.RelationshipChange + } + if o.RoleChange != nil { + toSerialize["role_change"] = o.RoleChange + } + return toSerialize, nil +} + +type NullablePolicySimulationInput struct { + value *PolicySimulationInput + isSet bool +} + +func (v NullablePolicySimulationInput) Get() *PolicySimulationInput { + return v.value +} + +func (v *NullablePolicySimulationInput) Set(val *PolicySimulationInput) { + v.value = val + v.isSet = true +} + +func (v NullablePolicySimulationInput) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicySimulationInput) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicySimulationInput(val *PolicySimulationInput) *NullablePolicySimulationInput { + return &NullablePolicySimulationInput{value: val, isSet: true} +} + +func (v NullablePolicySimulationInput) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicySimulationInput) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_policy_simulation_request.go b/sdks/go/model_policy_simulation_request.go new file mode 100644 index 0000000..2f732e2 --- /dev/null +++ b/sdks/go/model_policy_simulation_request.go @@ -0,0 +1,162 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" +) + +// checks if the PolicySimulationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicySimulationRequest{} + +// PolicySimulationRequest struct for PolicySimulationRequest +type PolicySimulationRequest struct { + Simulate *PolicySimulationInput `json:"simulate,omitempty"` + Request map[string]interface{} `json:"request,omitempty"` +} + +// NewPolicySimulationRequest instantiates a new PolicySimulationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicySimulationRequest() *PolicySimulationRequest { + this := PolicySimulationRequest{} + return &this +} + +// NewPolicySimulationRequestWithDefaults instantiates a new PolicySimulationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicySimulationRequestWithDefaults() *PolicySimulationRequest { + this := PolicySimulationRequest{} + return &this +} + +// GetSimulate returns the Simulate field value if set, zero value otherwise. +func (o *PolicySimulationRequest) GetSimulate() PolicySimulationInput { + if o == nil || IsNil(o.Simulate) { + var ret PolicySimulationInput + return ret + } + return *o.Simulate +} + +// GetSimulateOk returns a tuple with the Simulate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicySimulationRequest) GetSimulateOk() (*PolicySimulationInput, bool) { + if o == nil || IsNil(o.Simulate) { + return nil, false + } + return o.Simulate, true +} + +// HasSimulate returns a boolean if a field has been set. +func (o *PolicySimulationRequest) HasSimulate() bool { + if o != nil && !IsNil(o.Simulate) { + return true + } + + return false +} + +// SetSimulate gets a reference to the given PolicySimulationInput and assigns it to the Simulate field. +func (o *PolicySimulationRequest) SetSimulate(v PolicySimulationInput) { + o.Simulate = &v +} + +// GetRequest returns the Request field value if set, zero value otherwise. +func (o *PolicySimulationRequest) GetRequest() map[string]interface{} { + if o == nil || IsNil(o.Request) { + var ret map[string]interface{} + return ret + } + return o.Request +} + +// GetRequestOk returns a tuple with the Request field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicySimulationRequest) GetRequestOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Request) { + return map[string]interface{}{}, false + } + return o.Request, true +} + +// HasRequest returns a boolean if a field has been set. +func (o *PolicySimulationRequest) HasRequest() bool { + if o != nil && !IsNil(o.Request) { + return true + } + + return false +} + +// SetRequest gets a reference to the given map[string]interface{} and assigns it to the Request field. +func (o *PolicySimulationRequest) SetRequest(v map[string]interface{}) { + o.Request = v +} + +func (o PolicySimulationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicySimulationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Simulate) { + toSerialize["simulate"] = o.Simulate + } + if !IsNil(o.Request) { + toSerialize["request"] = o.Request + } + return toSerialize, nil +} + +type NullablePolicySimulationRequest struct { + value *PolicySimulationRequest + isSet bool +} + +func (v NullablePolicySimulationRequest) Get() *PolicySimulationRequest { + return v.value +} + +func (v *NullablePolicySimulationRequest) Set(val *PolicySimulationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePolicySimulationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicySimulationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicySimulationRequest(val *PolicySimulationRequest) *NullablePolicySimulationRequest { + return &NullablePolicySimulationRequest{value: val, isSet: true} +} + +func (v NullablePolicySimulationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicySimulationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_policy_simulation_response.go b/sdks/go/model_policy_simulation_response.go new file mode 100644 index 0000000..9a09a4a --- /dev/null +++ b/sdks/go/model_policy_simulation_response.go @@ -0,0 +1,186 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PolicySimulationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicySimulationResponse{} + +// PolicySimulationResponse struct for PolicySimulationResponse +type PolicySimulationResponse struct { + DecisionBefore map[string]interface{} `json:"decision_before"` + DecisionAfter map[string]interface{} `json:"decision_after"` +} + +type _PolicySimulationResponse PolicySimulationResponse + +// NewPolicySimulationResponse instantiates a new PolicySimulationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicySimulationResponse(decisionBefore map[string]interface{}, decisionAfter map[string]interface{}) *PolicySimulationResponse { + this := PolicySimulationResponse{} + this.DecisionBefore = decisionBefore + this.DecisionAfter = decisionAfter + return &this +} + +// NewPolicySimulationResponseWithDefaults instantiates a new PolicySimulationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicySimulationResponseWithDefaults() *PolicySimulationResponse { + this := PolicySimulationResponse{} + return &this +} + +// GetDecisionBefore returns the DecisionBefore field value +func (o *PolicySimulationResponse) GetDecisionBefore() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.DecisionBefore +} + +// GetDecisionBeforeOk returns a tuple with the DecisionBefore field value +// and a boolean to check if the value has been set. +func (o *PolicySimulationResponse) GetDecisionBeforeOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.DecisionBefore, true +} + +// SetDecisionBefore sets field value +func (o *PolicySimulationResponse) SetDecisionBefore(v map[string]interface{}) { + o.DecisionBefore = v +} + +// GetDecisionAfter returns the DecisionAfter field value +func (o *PolicySimulationResponse) GetDecisionAfter() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.DecisionAfter +} + +// GetDecisionAfterOk returns a tuple with the DecisionAfter field value +// and a boolean to check if the value has been set. +func (o *PolicySimulationResponse) GetDecisionAfterOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.DecisionAfter, true +} + +// SetDecisionAfter sets field value +func (o *PolicySimulationResponse) SetDecisionAfter(v map[string]interface{}) { + o.DecisionAfter = v +} + +func (o PolicySimulationResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicySimulationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["decision_before"] = o.DecisionBefore + toSerialize["decision_after"] = o.DecisionAfter + return toSerialize, nil +} + +func (o *PolicySimulationResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "decision_before", + "decision_after", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPolicySimulationResponse := _PolicySimulationResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPolicySimulationResponse) + + if err != nil { + return err + } + + *o = PolicySimulationResponse(varPolicySimulationResponse) + + return err +} + +type NullablePolicySimulationResponse struct { + value *PolicySimulationResponse + isSet bool +} + +func (v NullablePolicySimulationResponse) Get() *PolicySimulationResponse { + return v.value +} + +func (v *NullablePolicySimulationResponse) Set(val *PolicySimulationResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePolicySimulationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicySimulationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicySimulationResponse(val *PolicySimulationResponse) *NullablePolicySimulationResponse { + return &NullablePolicySimulationResponse{value: val, isSet: true} +} + +func (v NullablePolicySimulationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicySimulationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_relationship_create.go b/sdks/go/model_relationship_create.go new file mode 100644 index 0000000..e839caf --- /dev/null +++ b/sdks/go/model_relationship_create.go @@ -0,0 +1,270 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RelationshipCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RelationshipCreate{} + +// RelationshipCreate struct for RelationshipCreate +type RelationshipCreate struct { + SubjectType string `json:"subject_type"` + SubjectId string `json:"subject_id"` + Relation string `json:"relation"` + ObjectType string `json:"object_type"` + ObjectId string `json:"object_id"` +} + +type _RelationshipCreate RelationshipCreate + +// NewRelationshipCreate instantiates a new RelationshipCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRelationshipCreate(subjectType string, subjectId string, relation string, objectType string, objectId string) *RelationshipCreate { + this := RelationshipCreate{} + this.SubjectType = subjectType + this.SubjectId = subjectId + this.Relation = relation + this.ObjectType = objectType + this.ObjectId = objectId + return &this +} + +// NewRelationshipCreateWithDefaults instantiates a new RelationshipCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRelationshipCreateWithDefaults() *RelationshipCreate { + this := RelationshipCreate{} + return &this +} + +// GetSubjectType returns the SubjectType field value +func (o *RelationshipCreate) GetSubjectType() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectType +} + +// GetSubjectTypeOk returns a tuple with the SubjectType field value +// and a boolean to check if the value has been set. +func (o *RelationshipCreate) GetSubjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectType, true +} + +// SetSubjectType sets field value +func (o *RelationshipCreate) SetSubjectType(v string) { + o.SubjectType = v +} + +// GetSubjectId returns the SubjectId field value +func (o *RelationshipCreate) GetSubjectId() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectId +} + +// GetSubjectIdOk returns a tuple with the SubjectId field value +// and a boolean to check if the value has been set. +func (o *RelationshipCreate) GetSubjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectId, true +} + +// SetSubjectId sets field value +func (o *RelationshipCreate) SetSubjectId(v string) { + o.SubjectId = v +} + +// GetRelation returns the Relation field value +func (o *RelationshipCreate) GetRelation() string { + if o == nil { + var ret string + return ret + } + + return o.Relation +} + +// GetRelationOk returns a tuple with the Relation field value +// and a boolean to check if the value has been set. +func (o *RelationshipCreate) GetRelationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Relation, true +} + +// SetRelation sets field value +func (o *RelationshipCreate) SetRelation(v string) { + o.Relation = v +} + +// GetObjectType returns the ObjectType field value +func (o *RelationshipCreate) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *RelationshipCreate) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *RelationshipCreate) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *RelationshipCreate) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *RelationshipCreate) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *RelationshipCreate) SetObjectId(v string) { + o.ObjectId = v +} + +func (o RelationshipCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RelationshipCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subject_type"] = o.SubjectType + toSerialize["subject_id"] = o.SubjectId + toSerialize["relation"] = o.Relation + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + return toSerialize, nil +} + +func (o *RelationshipCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "subject_type", + "subject_id", + "relation", + "object_type", + "object_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRelationshipCreate := _RelationshipCreate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRelationshipCreate) + + if err != nil { + return err + } + + *o = RelationshipCreate(varRelationshipCreate) + + return err +} + +type NullableRelationshipCreate struct { + value *RelationshipCreate + isSet bool +} + +func (v NullableRelationshipCreate) Get() *RelationshipCreate { + return v.value +} + +func (v *NullableRelationshipCreate) Set(val *RelationshipCreate) { + v.value = val + v.isSet = true +} + +func (v NullableRelationshipCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableRelationshipCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelationshipCreate(val *RelationshipCreate) *NullableRelationshipCreate { + return &NullableRelationshipCreate{value: val, isSet: true} +} + +func (v NullableRelationshipCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelationshipCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_relationship_out.go b/sdks/go/model_relationship_out.go new file mode 100644 index 0000000..429fe11 --- /dev/null +++ b/sdks/go/model_relationship_out.go @@ -0,0 +1,298 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RelationshipOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RelationshipOut{} + +// RelationshipOut struct for RelationshipOut +type RelationshipOut struct { + SubjectType string `json:"subject_type"` + SubjectId string `json:"subject_id"` + Relation string `json:"relation"` + ObjectType string `json:"object_type"` + ObjectId string `json:"object_id"` + Id int32 `json:"id"` +} + +type _RelationshipOut RelationshipOut + +// NewRelationshipOut instantiates a new RelationshipOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRelationshipOut(subjectType string, subjectId string, relation string, objectType string, objectId string, id int32) *RelationshipOut { + this := RelationshipOut{} + this.SubjectType = subjectType + this.SubjectId = subjectId + this.Relation = relation + this.ObjectType = objectType + this.ObjectId = objectId + this.Id = id + return &this +} + +// NewRelationshipOutWithDefaults instantiates a new RelationshipOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRelationshipOutWithDefaults() *RelationshipOut { + this := RelationshipOut{} + return &this +} + +// GetSubjectType returns the SubjectType field value +func (o *RelationshipOut) GetSubjectType() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectType +} + +// GetSubjectTypeOk returns a tuple with the SubjectType field value +// and a boolean to check if the value has been set. +func (o *RelationshipOut) GetSubjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectType, true +} + +// SetSubjectType sets field value +func (o *RelationshipOut) SetSubjectType(v string) { + o.SubjectType = v +} + +// GetSubjectId returns the SubjectId field value +func (o *RelationshipOut) GetSubjectId() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectId +} + +// GetSubjectIdOk returns a tuple with the SubjectId field value +// and a boolean to check if the value has been set. +func (o *RelationshipOut) GetSubjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectId, true +} + +// SetSubjectId sets field value +func (o *RelationshipOut) SetSubjectId(v string) { + o.SubjectId = v +} + +// GetRelation returns the Relation field value +func (o *RelationshipOut) GetRelation() string { + if o == nil { + var ret string + return ret + } + + return o.Relation +} + +// GetRelationOk returns a tuple with the Relation field value +// and a boolean to check if the value has been set. +func (o *RelationshipOut) GetRelationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Relation, true +} + +// SetRelation sets field value +func (o *RelationshipOut) SetRelation(v string) { + o.Relation = v +} + +// GetObjectType returns the ObjectType field value +func (o *RelationshipOut) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *RelationshipOut) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *RelationshipOut) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *RelationshipOut) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *RelationshipOut) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *RelationshipOut) SetObjectId(v string) { + o.ObjectId = v +} + +// GetId returns the Id field value +func (o *RelationshipOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RelationshipOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RelationshipOut) SetId(v int32) { + o.Id = v +} + +func (o RelationshipOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RelationshipOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subject_type"] = o.SubjectType + toSerialize["subject_id"] = o.SubjectId + toSerialize["relation"] = o.Relation + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["id"] = o.Id + return toSerialize, nil +} + +func (o *RelationshipOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "subject_type", + "subject_id", + "relation", + "object_type", + "object_id", + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRelationshipOut := _RelationshipOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRelationshipOut) + + if err != nil { + return err + } + + *o = RelationshipOut(varRelationshipOut) + + return err +} + +type NullableRelationshipOut struct { + value *RelationshipOut + isSet bool +} + +func (v NullableRelationshipOut) Get() *RelationshipOut { + return v.value +} + +func (v *NullableRelationshipOut) Set(val *RelationshipOut) { + v.value = val + v.isSet = true +} + +func (v NullableRelationshipOut) IsSet() bool { + return v.isSet +} + +func (v *NullableRelationshipOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelationshipOut(val *RelationshipOut) *NullableRelationshipOut { + return &NullableRelationshipOut{value: val, isSet: true} +} + +func (v NullableRelationshipOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelationshipOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_role_create.go b/sdks/go/model_role_create.go new file mode 100644 index 0000000..e1e00f8 --- /dev/null +++ b/sdks/go/model_role_create.go @@ -0,0 +1,158 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RoleCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleCreate{} + +// RoleCreate struct for RoleCreate +type RoleCreate struct { + Name string `json:"name"` +} + +type _RoleCreate RoleCreate + +// NewRoleCreate instantiates a new RoleCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleCreate(name string) *RoleCreate { + this := RoleCreate{} + this.Name = name + return &this +} + +// NewRoleCreateWithDefaults instantiates a new RoleCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleCreateWithDefaults() *RoleCreate { + this := RoleCreate{} + return &this +} + +// GetName returns the Name field value +func (o *RoleCreate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RoleCreate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RoleCreate) SetName(v string) { + o.Name = v +} + +func (o RoleCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + return toSerialize, nil +} + +func (o *RoleCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRoleCreate := _RoleCreate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRoleCreate) + + if err != nil { + return err + } + + *o = RoleCreate(varRoleCreate) + + return err +} + +type NullableRoleCreate struct { + value *RoleCreate + isSet bool +} + +func (v NullableRoleCreate) Get() *RoleCreate { + return v.value +} + +func (v *NullableRoleCreate) Set(val *RoleCreate) { + v.value = val + v.isSet = true +} + +func (v NullableRoleCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleCreate(val *RoleCreate) *NullableRoleCreate { + return &NullableRoleCreate{value: val, isSet: true} +} + +func (v NullableRoleCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_role_out.go b/sdks/go/model_role_out.go new file mode 100644 index 0000000..0ac09da --- /dev/null +++ b/sdks/go/model_role_out.go @@ -0,0 +1,186 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RoleOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleOut{} + +// RoleOut struct for RoleOut +type RoleOut struct { + Id int32 `json:"id"` + Name string `json:"name"` +} + +type _RoleOut RoleOut + +// NewRoleOut instantiates a new RoleOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleOut(id int32, name string) *RoleOut { + this := RoleOut{} + this.Id = id + this.Name = name + return &this +} + +// NewRoleOutWithDefaults instantiates a new RoleOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleOutWithDefaults() *RoleOut { + this := RoleOut{} + return &this +} + +// GetId returns the Id field value +func (o *RoleOut) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RoleOut) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RoleOut) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *RoleOut) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RoleOut) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RoleOut) SetName(v string) { + o.Name = v +} + +func (o RoleOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + return toSerialize, nil +} + +func (o *RoleOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRoleOut := _RoleOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRoleOut) + + if err != nil { + return err + } + + *o = RoleOut(varRoleOut) + + return err +} + +type NullableRoleOut struct { + value *RoleOut + isSet bool +} + +func (v NullableRoleOut) Get() *RoleOut { + return v.value +} + +func (v *NullableRoleOut) Set(val *RoleOut) { + v.value = val + v.isSet = true +} + +func (v NullableRoleOut) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleOut(val *RoleOut) *NullableRoleOut { + return &NullableRoleOut{value: val, isSet: true} +} + +func (v NullableRoleOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_role_update.go b/sdks/go/model_role_update.go new file mode 100644 index 0000000..025729f --- /dev/null +++ b/sdks/go/model_role_update.go @@ -0,0 +1,158 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RoleUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleUpdate{} + +// RoleUpdate struct for RoleUpdate +type RoleUpdate struct { + Name string `json:"name"` +} + +type _RoleUpdate RoleUpdate + +// NewRoleUpdate instantiates a new RoleUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleUpdate(name string) *RoleUpdate { + this := RoleUpdate{} + this.Name = name + return &this +} + +// NewRoleUpdateWithDefaults instantiates a new RoleUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleUpdateWithDefaults() *RoleUpdate { + this := RoleUpdate{} + return &this +} + +// GetName returns the Name field value +func (o *RoleUpdate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RoleUpdate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RoleUpdate) SetName(v string) { + o.Name = v +} + +func (o RoleUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + return toSerialize, nil +} + +func (o *RoleUpdate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRoleUpdate := _RoleUpdate{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRoleUpdate) + + if err != nil { + return err + } + + *o = RoleUpdate(varRoleUpdate) + + return err +} + +type NullableRoleUpdate struct { + value *RoleUpdate + isSet bool +} + +func (v NullableRoleUpdate) Get() *RoleUpdate { + return v.value +} + +func (v *NullableRoleUpdate) Set(val *RoleUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableRoleUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleUpdate(val *RoleUpdate) *NullableRoleUpdate { + return &NullableRoleUpdate{value: val, isSet: true} +} + +func (v NullableRoleUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_simulation_response.go b/sdks/go/model_simulation_response.go new file mode 100644 index 0000000..ea8577c --- /dev/null +++ b/sdks/go/model_simulation_response.go @@ -0,0 +1,396 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SimulationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SimulationResponse{} + +// SimulationResponse struct for SimulationResponse +type SimulationResponse struct { + Decision string `json:"decision"` + MatchedPolicies []string `json:"matched_policies"` + Reason NullableString `json:"reason,omitempty"` + PolicyId NullableString `json:"policy_id,omitempty"` + ExplainTrace []map[string]interface{} `json:"explain_trace,omitempty"` + FailedConditions []string `json:"failed_conditions,omitempty"` + Revision NullableInt32 `json:"revision,omitempty"` +} + +type _SimulationResponse SimulationResponse + +// NewSimulationResponse instantiates a new SimulationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSimulationResponse(decision string, matchedPolicies []string) *SimulationResponse { + this := SimulationResponse{} + this.Decision = decision + this.MatchedPolicies = matchedPolicies + return &this +} + +// NewSimulationResponseWithDefaults instantiates a new SimulationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSimulationResponseWithDefaults() *SimulationResponse { + this := SimulationResponse{} + return &this +} + +// GetDecision returns the Decision field value +func (o *SimulationResponse) GetDecision() string { + if o == nil { + var ret string + return ret + } + + return o.Decision +} + +// GetDecisionOk returns a tuple with the Decision field value +// and a boolean to check if the value has been set. +func (o *SimulationResponse) GetDecisionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Decision, true +} + +// SetDecision sets field value +func (o *SimulationResponse) SetDecision(v string) { + o.Decision = v +} + +// GetMatchedPolicies returns the MatchedPolicies field value +func (o *SimulationResponse) GetMatchedPolicies() []string { + if o == nil { + var ret []string + return ret + } + + return o.MatchedPolicies +} + +// GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field value +// and a boolean to check if the value has been set. +func (o *SimulationResponse) GetMatchedPoliciesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.MatchedPolicies, true +} + +// SetMatchedPolicies sets field value +func (o *SimulationResponse) SetMatchedPolicies(v []string) { + o.MatchedPolicies = v +} + +// GetReason returns the Reason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SimulationResponse) GetReason() string { + if o == nil || IsNil(o.Reason.Get()) { + var ret string + return ret + } + return *o.Reason.Get() +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SimulationResponse) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Reason.Get(), o.Reason.IsSet() +} + +// HasReason returns a boolean if a field has been set. +func (o *SimulationResponse) HasReason() bool { + if o != nil && o.Reason.IsSet() { + return true + } + + return false +} + +// SetReason gets a reference to the given NullableString and assigns it to the Reason field. +func (o *SimulationResponse) SetReason(v string) { + o.Reason.Set(&v) +} +// SetReasonNil sets the value for Reason to be an explicit nil +func (o *SimulationResponse) SetReasonNil() { + o.Reason.Set(nil) +} + +// UnsetReason ensures that no value is present for Reason, not even an explicit nil +func (o *SimulationResponse) UnsetReason() { + o.Reason.Unset() +} + +// GetPolicyId returns the PolicyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SimulationResponse) GetPolicyId() string { + if o == nil || IsNil(o.PolicyId.Get()) { + var ret string + return ret + } + return *o.PolicyId.Get() +} + +// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SimulationResponse) GetPolicyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PolicyId.Get(), o.PolicyId.IsSet() +} + +// HasPolicyId returns a boolean if a field has been set. +func (o *SimulationResponse) HasPolicyId() bool { + if o != nil && o.PolicyId.IsSet() { + return true + } + + return false +} + +// SetPolicyId gets a reference to the given NullableString and assigns it to the PolicyId field. +func (o *SimulationResponse) SetPolicyId(v string) { + o.PolicyId.Set(&v) +} +// SetPolicyIdNil sets the value for PolicyId to be an explicit nil +func (o *SimulationResponse) SetPolicyIdNil() { + o.PolicyId.Set(nil) +} + +// UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil +func (o *SimulationResponse) UnsetPolicyId() { + o.PolicyId.Unset() +} + +// GetExplainTrace returns the ExplainTrace field value if set, zero value otherwise. +func (o *SimulationResponse) GetExplainTrace() []map[string]interface{} { + if o == nil || IsNil(o.ExplainTrace) { + var ret []map[string]interface{} + return ret + } + return o.ExplainTrace +} + +// GetExplainTraceOk returns a tuple with the ExplainTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimulationResponse) GetExplainTraceOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.ExplainTrace) { + return nil, false + } + return o.ExplainTrace, true +} + +// HasExplainTrace returns a boolean if a field has been set. +func (o *SimulationResponse) HasExplainTrace() bool { + if o != nil && !IsNil(o.ExplainTrace) { + return true + } + + return false +} + +// SetExplainTrace gets a reference to the given []map[string]interface{} and assigns it to the ExplainTrace field. +func (o *SimulationResponse) SetExplainTrace(v []map[string]interface{}) { + o.ExplainTrace = v +} + +// GetFailedConditions returns the FailedConditions field value if set, zero value otherwise. +func (o *SimulationResponse) GetFailedConditions() []string { + if o == nil || IsNil(o.FailedConditions) { + var ret []string + return ret + } + return o.FailedConditions +} + +// GetFailedConditionsOk returns a tuple with the FailedConditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimulationResponse) GetFailedConditionsOk() ([]string, bool) { + if o == nil || IsNil(o.FailedConditions) { + return nil, false + } + return o.FailedConditions, true +} + +// HasFailedConditions returns a boolean if a field has been set. +func (o *SimulationResponse) HasFailedConditions() bool { + if o != nil && !IsNil(o.FailedConditions) { + return true + } + + return false +} + +// SetFailedConditions gets a reference to the given []string and assigns it to the FailedConditions field. +func (o *SimulationResponse) SetFailedConditions(v []string) { + o.FailedConditions = v +} + +// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SimulationResponse) GetRevision() int32 { + if o == nil || IsNil(o.Revision.Get()) { + var ret int32 + return ret + } + return *o.Revision.Get() +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SimulationResponse) GetRevisionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Revision.Get(), o.Revision.IsSet() +} + +// HasRevision returns a boolean if a field has been set. +func (o *SimulationResponse) HasRevision() bool { + if o != nil && o.Revision.IsSet() { + return true + } + + return false +} + +// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. +func (o *SimulationResponse) SetRevision(v int32) { + o.Revision.Set(&v) +} +// SetRevisionNil sets the value for Revision to be an explicit nil +func (o *SimulationResponse) SetRevisionNil() { + o.Revision.Set(nil) +} + +// UnsetRevision ensures that no value is present for Revision, not even an explicit nil +func (o *SimulationResponse) UnsetRevision() { + o.Revision.Unset() +} + +func (o SimulationResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SimulationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["decision"] = o.Decision + toSerialize["matched_policies"] = o.MatchedPolicies + if o.Reason.IsSet() { + toSerialize["reason"] = o.Reason.Get() + } + if o.PolicyId.IsSet() { + toSerialize["policy_id"] = o.PolicyId.Get() + } + if !IsNil(o.ExplainTrace) { + toSerialize["explain_trace"] = o.ExplainTrace + } + if !IsNil(o.FailedConditions) { + toSerialize["failed_conditions"] = o.FailedConditions + } + if o.Revision.IsSet() { + toSerialize["revision"] = o.Revision.Get() + } + return toSerialize, nil +} + +func (o *SimulationResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "decision", + "matched_policies", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSimulationResponse := _SimulationResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSimulationResponse) + + if err != nil { + return err + } + + *o = SimulationResponse(varSimulationResponse) + + return err +} + +type NullableSimulationResponse struct { + value *SimulationResponse + isSet bool +} + +func (v NullableSimulationResponse) Get() *SimulationResponse { + return v.value +} + +func (v *NullableSimulationResponse) Set(val *SimulationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSimulationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSimulationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSimulationResponse(val *SimulationResponse) *NullableSimulationResponse { + return &NullableSimulationResponse{value: val, isSet: true} +} + +func (v NullableSimulationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSimulationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_access_decision_response_.go b/sdks/go/model_success_response_access_decision_response_.go new file mode 100644 index 0000000..80a4275 --- /dev/null +++ b/sdks/go/model_success_response_access_decision_response_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseAccessDecisionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseAccessDecisionResponse{} + +// SuccessResponseAccessDecisionResponse struct for SuccessResponseAccessDecisionResponse +type SuccessResponseAccessDecisionResponse struct { + Data AccessDecisionResponse `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseAccessDecisionResponse SuccessResponseAccessDecisionResponse + +// NewSuccessResponseAccessDecisionResponse instantiates a new SuccessResponseAccessDecisionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseAccessDecisionResponse(data AccessDecisionResponse) *SuccessResponseAccessDecisionResponse { + this := SuccessResponseAccessDecisionResponse{} + this.Data = data + return &this +} + +// NewSuccessResponseAccessDecisionResponseWithDefaults instantiates a new SuccessResponseAccessDecisionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseAccessDecisionResponseWithDefaults() *SuccessResponseAccessDecisionResponse { + this := SuccessResponseAccessDecisionResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseAccessDecisionResponse) GetData() AccessDecisionResponse { + if o == nil { + var ret AccessDecisionResponse + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseAccessDecisionResponse) GetDataOk() (*AccessDecisionResponse, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseAccessDecisionResponse) SetData(v AccessDecisionResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseAccessDecisionResponse) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseAccessDecisionResponse) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseAccessDecisionResponse) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseAccessDecisionResponse) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseAccessDecisionResponse) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseAccessDecisionResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseAccessDecisionResponse) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseAccessDecisionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseAccessDecisionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseAccessDecisionResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseAccessDecisionResponse := _SuccessResponseAccessDecisionResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseAccessDecisionResponse) + + if err != nil { + return err + } + + *o = SuccessResponseAccessDecisionResponse(varSuccessResponseAccessDecisionResponse) + + return err +} + +type NullableSuccessResponseAccessDecisionResponse struct { + value *SuccessResponseAccessDecisionResponse + isSet bool +} + +func (v NullableSuccessResponseAccessDecisionResponse) Get() *SuccessResponseAccessDecisionResponse { + return v.value +} + +func (v *NullableSuccessResponseAccessDecisionResponse) Set(val *SuccessResponseAccessDecisionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseAccessDecisionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseAccessDecisionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseAccessDecisionResponse(val *SuccessResponseAccessDecisionResponse) *NullableSuccessResponseAccessDecisionResponse { + return &NullableSuccessResponseAccessDecisionResponse{value: val, isSet: true} +} + +func (v NullableSuccessResponseAccessDecisionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseAccessDecisionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_acl_out_.go b/sdks/go/model_success_response_acl_out_.go new file mode 100644 index 0000000..ddaa481 --- /dev/null +++ b/sdks/go/model_success_response_acl_out_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseACLOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseACLOut{} + +// SuccessResponseACLOut struct for SuccessResponseACLOut +type SuccessResponseACLOut struct { + Data ACLOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseACLOut SuccessResponseACLOut + +// NewSuccessResponseACLOut instantiates a new SuccessResponseACLOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseACLOut(data ACLOut) *SuccessResponseACLOut { + this := SuccessResponseACLOut{} + this.Data = data + return &this +} + +// NewSuccessResponseACLOutWithDefaults instantiates a new SuccessResponseACLOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseACLOutWithDefaults() *SuccessResponseACLOut { + this := SuccessResponseACLOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseACLOut) GetData() ACLOut { + if o == nil { + var ret ACLOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseACLOut) GetDataOk() (*ACLOut, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseACLOut) SetData(v ACLOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseACLOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseACLOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseACLOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseACLOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseACLOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseACLOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseACLOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseACLOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseACLOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseACLOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseACLOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseACLOut := _SuccessResponseACLOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseACLOut) + + if err != nil { + return err + } + + *o = SuccessResponseACLOut(varSuccessResponseACLOut) + + return err +} + +type NullableSuccessResponseACLOut struct { + value *SuccessResponseACLOut + isSet bool +} + +func (v NullableSuccessResponseACLOut) Get() *SuccessResponseACLOut { + return v.value +} + +func (v *NullableSuccessResponseACLOut) Set(val *SuccessResponseACLOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseACLOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseACLOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseACLOut(val *SuccessResponseACLOut) *NullableSuccessResponseACLOut { + return &NullableSuccessResponseACLOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseACLOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseACLOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_admin_login_response_.go b/sdks/go/model_success_response_admin_login_response_.go new file mode 100644 index 0000000..949162b --- /dev/null +++ b/sdks/go/model_success_response_admin_login_response_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseAdminLoginResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseAdminLoginResponse{} + +// SuccessResponseAdminLoginResponse struct for SuccessResponseAdminLoginResponse +type SuccessResponseAdminLoginResponse struct { + Data AdminLoginResponse `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseAdminLoginResponse SuccessResponseAdminLoginResponse + +// NewSuccessResponseAdminLoginResponse instantiates a new SuccessResponseAdminLoginResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseAdminLoginResponse(data AdminLoginResponse) *SuccessResponseAdminLoginResponse { + this := SuccessResponseAdminLoginResponse{} + this.Data = data + return &this +} + +// NewSuccessResponseAdminLoginResponseWithDefaults instantiates a new SuccessResponseAdminLoginResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseAdminLoginResponseWithDefaults() *SuccessResponseAdminLoginResponse { + this := SuccessResponseAdminLoginResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseAdminLoginResponse) GetData() AdminLoginResponse { + if o == nil { + var ret AdminLoginResponse + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseAdminLoginResponse) GetDataOk() (*AdminLoginResponse, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseAdminLoginResponse) SetData(v AdminLoginResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseAdminLoginResponse) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseAdminLoginResponse) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseAdminLoginResponse) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseAdminLoginResponse) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseAdminLoginResponse) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseAdminLoginResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseAdminLoginResponse) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseAdminLoginResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseAdminLoginResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseAdminLoginResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseAdminLoginResponse := _SuccessResponseAdminLoginResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseAdminLoginResponse) + + if err != nil { + return err + } + + *o = SuccessResponseAdminLoginResponse(varSuccessResponseAdminLoginResponse) + + return err +} + +type NullableSuccessResponseAdminLoginResponse struct { + value *SuccessResponseAdminLoginResponse + isSet bool +} + +func (v NullableSuccessResponseAdminLoginResponse) Get() *SuccessResponseAdminLoginResponse { + return v.value +} + +func (v *NullableSuccessResponseAdminLoginResponse) Set(val *SuccessResponseAdminLoginResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseAdminLoginResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseAdminLoginResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseAdminLoginResponse(val *SuccessResponseAdminLoginResponse) *NullableSuccessResponseAdminLoginResponse { + return &NullableSuccessResponseAdminLoginResponse{value: val, isSet: true} +} + +func (v NullableSuccessResponseAdminLoginResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseAdminLoginResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_auth_model_out_.go b/sdks/go/model_success_response_auth_model_out_.go new file mode 100644 index 0000000..d613026 --- /dev/null +++ b/sdks/go/model_success_response_auth_model_out_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseAuthModelOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseAuthModelOut{} + +// SuccessResponseAuthModelOut struct for SuccessResponseAuthModelOut +type SuccessResponseAuthModelOut struct { + Data AuthModelOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseAuthModelOut SuccessResponseAuthModelOut + +// NewSuccessResponseAuthModelOut instantiates a new SuccessResponseAuthModelOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseAuthModelOut(data AuthModelOut) *SuccessResponseAuthModelOut { + this := SuccessResponseAuthModelOut{} + this.Data = data + return &this +} + +// NewSuccessResponseAuthModelOutWithDefaults instantiates a new SuccessResponseAuthModelOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseAuthModelOutWithDefaults() *SuccessResponseAuthModelOut { + this := SuccessResponseAuthModelOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseAuthModelOut) GetData() AuthModelOut { + if o == nil { + var ret AuthModelOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseAuthModelOut) GetDataOk() (*AuthModelOut, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseAuthModelOut) SetData(v AuthModelOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseAuthModelOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseAuthModelOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseAuthModelOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseAuthModelOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseAuthModelOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseAuthModelOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseAuthModelOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseAuthModelOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseAuthModelOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseAuthModelOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseAuthModelOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseAuthModelOut := _SuccessResponseAuthModelOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseAuthModelOut) + + if err != nil { + return err + } + + *o = SuccessResponseAuthModelOut(varSuccessResponseAuthModelOut) + + return err +} + +type NullableSuccessResponseAuthModelOut struct { + value *SuccessResponseAuthModelOut + isSet bool +} + +func (v NullableSuccessResponseAuthModelOut) Get() *SuccessResponseAuthModelOut { + return v.value +} + +func (v *NullableSuccessResponseAuthModelOut) Set(val *SuccessResponseAuthModelOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseAuthModelOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseAuthModelOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseAuthModelOut(val *SuccessResponseAuthModelOut) *NullableSuccessResponseAuthModelOut { + return &NullableSuccessResponseAuthModelOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseAuthModelOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseAuthModelOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_batch_access_response_.go b/sdks/go/model_success_response_batch_access_response_.go new file mode 100644 index 0000000..52c21ed --- /dev/null +++ b/sdks/go/model_success_response_batch_access_response_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseBatchAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseBatchAccessResponse{} + +// SuccessResponseBatchAccessResponse struct for SuccessResponseBatchAccessResponse +type SuccessResponseBatchAccessResponse struct { + Data BatchAccessResponse `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseBatchAccessResponse SuccessResponseBatchAccessResponse + +// NewSuccessResponseBatchAccessResponse instantiates a new SuccessResponseBatchAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseBatchAccessResponse(data BatchAccessResponse) *SuccessResponseBatchAccessResponse { + this := SuccessResponseBatchAccessResponse{} + this.Data = data + return &this +} + +// NewSuccessResponseBatchAccessResponseWithDefaults instantiates a new SuccessResponseBatchAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseBatchAccessResponseWithDefaults() *SuccessResponseBatchAccessResponse { + this := SuccessResponseBatchAccessResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseBatchAccessResponse) GetData() BatchAccessResponse { + if o == nil { + var ret BatchAccessResponse + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseBatchAccessResponse) GetDataOk() (*BatchAccessResponse, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseBatchAccessResponse) SetData(v BatchAccessResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseBatchAccessResponse) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseBatchAccessResponse) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseBatchAccessResponse) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseBatchAccessResponse) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseBatchAccessResponse) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseBatchAccessResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseBatchAccessResponse) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseBatchAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseBatchAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseBatchAccessResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseBatchAccessResponse := _SuccessResponseBatchAccessResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseBatchAccessResponse) + + if err != nil { + return err + } + + *o = SuccessResponseBatchAccessResponse(varSuccessResponseBatchAccessResponse) + + return err +} + +type NullableSuccessResponseBatchAccessResponse struct { + value *SuccessResponseBatchAccessResponse + isSet bool +} + +func (v NullableSuccessResponseBatchAccessResponse) Get() *SuccessResponseBatchAccessResponse { + return v.value +} + +func (v *NullableSuccessResponseBatchAccessResponse) Set(val *SuccessResponseBatchAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseBatchAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseBatchAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseBatchAccessResponse(val *SuccessResponseBatchAccessResponse) *NullableSuccessResponseBatchAccessResponse { + return &NullableSuccessResponseBatchAccessResponse{value: val, isSet: true} +} + +func (v NullableSuccessResponseBatchAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseBatchAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_dict_str__any__.go b/sdks/go/model_success_response_dict_str__any__.go new file mode 100644 index 0000000..5b33363 --- /dev/null +++ b/sdks/go/model_success_response_dict_str__any__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseDictStrAny type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseDictStrAny{} + +// SuccessResponseDictStrAny struct for SuccessResponseDictStrAny +type SuccessResponseDictStrAny struct { + Data map[string]interface{} `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseDictStrAny SuccessResponseDictStrAny + +// NewSuccessResponseDictStrAny instantiates a new SuccessResponseDictStrAny object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseDictStrAny(data map[string]interface{}) *SuccessResponseDictStrAny { + this := SuccessResponseDictStrAny{} + this.Data = data + return &this +} + +// NewSuccessResponseDictStrAnyWithDefaults instantiates a new SuccessResponseDictStrAny object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseDictStrAnyWithDefaults() *SuccessResponseDictStrAny { + this := SuccessResponseDictStrAny{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseDictStrAny) GetData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrAny) GetDataOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseDictStrAny) SetData(v map[string]interface{}) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseDictStrAny) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrAny) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseDictStrAny) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseDictStrAny) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseDictStrAny) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrAny) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseDictStrAny) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseDictStrAny) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseDictStrAny) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseDictStrAny) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseDictStrAny) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseDictStrAny := _SuccessResponseDictStrAny{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseDictStrAny) + + if err != nil { + return err + } + + *o = SuccessResponseDictStrAny(varSuccessResponseDictStrAny) + + return err +} + +type NullableSuccessResponseDictStrAny struct { + value *SuccessResponseDictStrAny + isSet bool +} + +func (v NullableSuccessResponseDictStrAny) Get() *SuccessResponseDictStrAny { + return v.value +} + +func (v *NullableSuccessResponseDictStrAny) Set(val *SuccessResponseDictStrAny) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseDictStrAny) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseDictStrAny) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseDictStrAny(val *SuccessResponseDictStrAny) *NullableSuccessResponseDictStrAny { + return &NullableSuccessResponseDictStrAny{value: val, isSet: true} +} + +func (v NullableSuccessResponseDictStrAny) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseDictStrAny) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_dict_str__int__.go b/sdks/go/model_success_response_dict_str__int__.go new file mode 100644 index 0000000..b2e0627 --- /dev/null +++ b/sdks/go/model_success_response_dict_str__int__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseDictStrInt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseDictStrInt{} + +// SuccessResponseDictStrInt struct for SuccessResponseDictStrInt +type SuccessResponseDictStrInt struct { + Data map[string]int32 `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseDictStrInt SuccessResponseDictStrInt + +// NewSuccessResponseDictStrInt instantiates a new SuccessResponseDictStrInt object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseDictStrInt(data map[string]int32) *SuccessResponseDictStrInt { + this := SuccessResponseDictStrInt{} + this.Data = data + return &this +} + +// NewSuccessResponseDictStrIntWithDefaults instantiates a new SuccessResponseDictStrInt object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseDictStrIntWithDefaults() *SuccessResponseDictStrInt { + this := SuccessResponseDictStrInt{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseDictStrInt) GetData() map[string]int32 { + if o == nil { + var ret map[string]int32 + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrInt) GetDataOk() (map[string]int32, bool) { + if o == nil { + return map[string]int32{}, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseDictStrInt) SetData(v map[string]int32) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseDictStrInt) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrInt) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseDictStrInt) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseDictStrInt) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseDictStrInt) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrInt) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseDictStrInt) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseDictStrInt) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseDictStrInt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseDictStrInt) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseDictStrInt) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseDictStrInt := _SuccessResponseDictStrInt{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseDictStrInt) + + if err != nil { + return err + } + + *o = SuccessResponseDictStrInt(varSuccessResponseDictStrInt) + + return err +} + +type NullableSuccessResponseDictStrInt struct { + value *SuccessResponseDictStrInt + isSet bool +} + +func (v NullableSuccessResponseDictStrInt) Get() *SuccessResponseDictStrInt { + return v.value +} + +func (v *NullableSuccessResponseDictStrInt) Set(val *SuccessResponseDictStrInt) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseDictStrInt) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseDictStrInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseDictStrInt(val *SuccessResponseDictStrInt) *NullableSuccessResponseDictStrInt { + return &NullableSuccessResponseDictStrInt{value: val, isSet: true} +} + +func (v NullableSuccessResponseDictStrInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseDictStrInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_dict_str__object__.go b/sdks/go/model_success_response_dict_str__object__.go new file mode 100644 index 0000000..1439934 --- /dev/null +++ b/sdks/go/model_success_response_dict_str__object__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseDictStrObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseDictStrObject{} + +// SuccessResponseDictStrObject struct for SuccessResponseDictStrObject +type SuccessResponseDictStrObject struct { + Data map[string]interface{} `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseDictStrObject SuccessResponseDictStrObject + +// NewSuccessResponseDictStrObject instantiates a new SuccessResponseDictStrObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseDictStrObject(data map[string]interface{}) *SuccessResponseDictStrObject { + this := SuccessResponseDictStrObject{} + this.Data = data + return &this +} + +// NewSuccessResponseDictStrObjectWithDefaults instantiates a new SuccessResponseDictStrObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseDictStrObjectWithDefaults() *SuccessResponseDictStrObject { + this := SuccessResponseDictStrObject{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseDictStrObject) GetData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrObject) GetDataOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseDictStrObject) SetData(v map[string]interface{}) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseDictStrObject) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrObject) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseDictStrObject) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseDictStrObject) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseDictStrObject) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrObject) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseDictStrObject) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseDictStrObject) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseDictStrObject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseDictStrObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseDictStrObject) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseDictStrObject := _SuccessResponseDictStrObject{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseDictStrObject) + + if err != nil { + return err + } + + *o = SuccessResponseDictStrObject(varSuccessResponseDictStrObject) + + return err +} + +type NullableSuccessResponseDictStrObject struct { + value *SuccessResponseDictStrObject + isSet bool +} + +func (v NullableSuccessResponseDictStrObject) Get() *SuccessResponseDictStrObject { + return v.value +} + +func (v *NullableSuccessResponseDictStrObject) Set(val *SuccessResponseDictStrObject) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseDictStrObject) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseDictStrObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseDictStrObject(val *SuccessResponseDictStrObject) *NullableSuccessResponseDictStrObject { + return &NullableSuccessResponseDictStrObject{value: val, isSet: true} +} + +func (v NullableSuccessResponseDictStrObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseDictStrObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_dict_str__str__.go b/sdks/go/model_success_response_dict_str__str__.go new file mode 100644 index 0000000..7fada77 --- /dev/null +++ b/sdks/go/model_success_response_dict_str__str__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseDictStrStr type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseDictStrStr{} + +// SuccessResponseDictStrStr struct for SuccessResponseDictStrStr +type SuccessResponseDictStrStr struct { + Data map[string]string `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseDictStrStr SuccessResponseDictStrStr + +// NewSuccessResponseDictStrStr instantiates a new SuccessResponseDictStrStr object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseDictStrStr(data map[string]string) *SuccessResponseDictStrStr { + this := SuccessResponseDictStrStr{} + this.Data = data + return &this +} + +// NewSuccessResponseDictStrStrWithDefaults instantiates a new SuccessResponseDictStrStr object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseDictStrStrWithDefaults() *SuccessResponseDictStrStr { + this := SuccessResponseDictStrStr{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseDictStrStr) GetData() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrStr) GetDataOk() (map[string]string, bool) { + if o == nil { + return map[string]string{}, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseDictStrStr) SetData(v map[string]string) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseDictStrStr) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrStr) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseDictStrStr) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseDictStrStr) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseDictStrStr) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrStr) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseDictStrStr) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseDictStrStr) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseDictStrStr) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseDictStrStr) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseDictStrStr) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseDictStrStr := _SuccessResponseDictStrStr{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseDictStrStr) + + if err != nil { + return err + } + + *o = SuccessResponseDictStrStr(varSuccessResponseDictStrStr) + + return err +} + +type NullableSuccessResponseDictStrStr struct { + value *SuccessResponseDictStrStr + isSet bool +} + +func (v NullableSuccessResponseDictStrStr) Get() *SuccessResponseDictStrStr { + return v.value +} + +func (v *NullableSuccessResponseDictStrStr) Set(val *SuccessResponseDictStrStr) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseDictStrStr) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseDictStrStr) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseDictStrStr(val *SuccessResponseDictStrStr) *NullableSuccessResponseDictStrStr { + return &NullableSuccessResponseDictStrStr{value: val, isSet: true} +} + +func (v NullableSuccessResponseDictStrStr) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseDictStrStr) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_dict_str__union_int__str___.go b/sdks/go/model_success_response_dict_str__union_int__str___.go new file mode 100644 index 0000000..fd97730 --- /dev/null +++ b/sdks/go/model_success_response_dict_str__union_int__str___.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseDictStrUnionIntStr type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseDictStrUnionIntStr{} + +// SuccessResponseDictStrUnionIntStr struct for SuccessResponseDictStrUnionIntStr +type SuccessResponseDictStrUnionIntStr struct { + Data map[string]DataValue `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseDictStrUnionIntStr SuccessResponseDictStrUnionIntStr + +// NewSuccessResponseDictStrUnionIntStr instantiates a new SuccessResponseDictStrUnionIntStr object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseDictStrUnionIntStr(data map[string]DataValue) *SuccessResponseDictStrUnionIntStr { + this := SuccessResponseDictStrUnionIntStr{} + this.Data = data + return &this +} + +// NewSuccessResponseDictStrUnionIntStrWithDefaults instantiates a new SuccessResponseDictStrUnionIntStr object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseDictStrUnionIntStrWithDefaults() *SuccessResponseDictStrUnionIntStr { + this := SuccessResponseDictStrUnionIntStr{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseDictStrUnionIntStr) GetData() map[string]DataValue { + if o == nil { + var ret map[string]DataValue + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrUnionIntStr) GetDataOk() (map[string]DataValue, bool) { + if o == nil { + return map[string]DataValue{}, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseDictStrUnionIntStr) SetData(v map[string]DataValue) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseDictStrUnionIntStr) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrUnionIntStr) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseDictStrUnionIntStr) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseDictStrUnionIntStr) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseDictStrUnionIntStr) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseDictStrUnionIntStr) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseDictStrUnionIntStr) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseDictStrUnionIntStr) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseDictStrUnionIntStr) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseDictStrUnionIntStr) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseDictStrUnionIntStr := _SuccessResponseDictStrUnionIntStr{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseDictStrUnionIntStr) + + if err != nil { + return err + } + + *o = SuccessResponseDictStrUnionIntStr(varSuccessResponseDictStrUnionIntStr) + + return err +} + +type NullableSuccessResponseDictStrUnionIntStr struct { + value *SuccessResponseDictStrUnionIntStr + isSet bool +} + +func (v NullableSuccessResponseDictStrUnionIntStr) Get() *SuccessResponseDictStrUnionIntStr { + return v.value +} + +func (v *NullableSuccessResponseDictStrUnionIntStr) Set(val *SuccessResponseDictStrUnionIntStr) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseDictStrUnionIntStr) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseDictStrUnionIntStr) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseDictStrUnionIntStr(val *SuccessResponseDictStrUnionIntStr) *NullableSuccessResponseDictStrUnionIntStr { + return &NullableSuccessResponseDictStrUnionIntStr{value: val, isSet: true} +} + +func (v NullableSuccessResponseDictStrUnionIntStr) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseDictStrUnionIntStr) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_impact_analysis_response_.go b/sdks/go/model_success_response_impact_analysis_response_.go new file mode 100644 index 0000000..05ec608 --- /dev/null +++ b/sdks/go/model_success_response_impact_analysis_response_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseImpactAnalysisResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseImpactAnalysisResponse{} + +// SuccessResponseImpactAnalysisResponse struct for SuccessResponseImpactAnalysisResponse +type SuccessResponseImpactAnalysisResponse struct { + Data ImpactAnalysisResponse `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseImpactAnalysisResponse SuccessResponseImpactAnalysisResponse + +// NewSuccessResponseImpactAnalysisResponse instantiates a new SuccessResponseImpactAnalysisResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseImpactAnalysisResponse(data ImpactAnalysisResponse) *SuccessResponseImpactAnalysisResponse { + this := SuccessResponseImpactAnalysisResponse{} + this.Data = data + return &this +} + +// NewSuccessResponseImpactAnalysisResponseWithDefaults instantiates a new SuccessResponseImpactAnalysisResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseImpactAnalysisResponseWithDefaults() *SuccessResponseImpactAnalysisResponse { + this := SuccessResponseImpactAnalysisResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseImpactAnalysisResponse) GetData() ImpactAnalysisResponse { + if o == nil { + var ret ImpactAnalysisResponse + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseImpactAnalysisResponse) GetDataOk() (*ImpactAnalysisResponse, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseImpactAnalysisResponse) SetData(v ImpactAnalysisResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseImpactAnalysisResponse) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseImpactAnalysisResponse) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseImpactAnalysisResponse) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseImpactAnalysisResponse) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseImpactAnalysisResponse) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseImpactAnalysisResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseImpactAnalysisResponse) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseImpactAnalysisResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseImpactAnalysisResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseImpactAnalysisResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseImpactAnalysisResponse := _SuccessResponseImpactAnalysisResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseImpactAnalysisResponse) + + if err != nil { + return err + } + + *o = SuccessResponseImpactAnalysisResponse(varSuccessResponseImpactAnalysisResponse) + + return err +} + +type NullableSuccessResponseImpactAnalysisResponse struct { + value *SuccessResponseImpactAnalysisResponse + isSet bool +} + +func (v NullableSuccessResponseImpactAnalysisResponse) Get() *SuccessResponseImpactAnalysisResponse { + return v.value +} + +func (v *NullableSuccessResponseImpactAnalysisResponse) Set(val *SuccessResponseImpactAnalysisResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseImpactAnalysisResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseImpactAnalysisResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseImpactAnalysisResponse(val *SuccessResponseImpactAnalysisResponse) *NullableSuccessResponseImpactAnalysisResponse { + return &NullableSuccessResponseImpactAnalysisResponse{value: val, isSet: true} +} + +func (v NullableSuccessResponseImpactAnalysisResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseImpactAnalysisResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_list_acl_out__.go b/sdks/go/model_success_response_list_acl_out__.go new file mode 100644 index 0000000..56c51d8 --- /dev/null +++ b/sdks/go/model_success_response_list_acl_out__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseListACLOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseListACLOut{} + +// SuccessResponseListACLOut struct for SuccessResponseListACLOut +type SuccessResponseListACLOut struct { + Data []ACLOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseListACLOut SuccessResponseListACLOut + +// NewSuccessResponseListACLOut instantiates a new SuccessResponseListACLOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseListACLOut(data []ACLOut) *SuccessResponseListACLOut { + this := SuccessResponseListACLOut{} + this.Data = data + return &this +} + +// NewSuccessResponseListACLOutWithDefaults instantiates a new SuccessResponseListACLOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseListACLOutWithDefaults() *SuccessResponseListACLOut { + this := SuccessResponseListACLOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseListACLOut) GetData() []ACLOut { + if o == nil { + var ret []ACLOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseListACLOut) GetDataOk() ([]ACLOut, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseListACLOut) SetData(v []ACLOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseListACLOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListACLOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseListACLOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseListACLOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseListACLOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListACLOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseListACLOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseListACLOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseListACLOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseListACLOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseListACLOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseListACLOut := _SuccessResponseListACLOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseListACLOut) + + if err != nil { + return err + } + + *o = SuccessResponseListACLOut(varSuccessResponseListACLOut) + + return err +} + +type NullableSuccessResponseListACLOut struct { + value *SuccessResponseListACLOut + isSet bool +} + +func (v NullableSuccessResponseListACLOut) Get() *SuccessResponseListACLOut { + return v.value +} + +func (v *NullableSuccessResponseListACLOut) Set(val *SuccessResponseListACLOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseListACLOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseListACLOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseListACLOut(val *SuccessResponseListACLOut) *NullableSuccessResponseListACLOut { + return &NullableSuccessResponseListACLOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseListACLOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseListACLOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_list_audit_record_out__.go b/sdks/go/model_success_response_list_audit_record_out__.go new file mode 100644 index 0000000..826ff05 --- /dev/null +++ b/sdks/go/model_success_response_list_audit_record_out__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseListAuditRecordOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseListAuditRecordOut{} + +// SuccessResponseListAuditRecordOut struct for SuccessResponseListAuditRecordOut +type SuccessResponseListAuditRecordOut struct { + Data []AuditRecordOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseListAuditRecordOut SuccessResponseListAuditRecordOut + +// NewSuccessResponseListAuditRecordOut instantiates a new SuccessResponseListAuditRecordOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseListAuditRecordOut(data []AuditRecordOut) *SuccessResponseListAuditRecordOut { + this := SuccessResponseListAuditRecordOut{} + this.Data = data + return &this +} + +// NewSuccessResponseListAuditRecordOutWithDefaults instantiates a new SuccessResponseListAuditRecordOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseListAuditRecordOutWithDefaults() *SuccessResponseListAuditRecordOut { + this := SuccessResponseListAuditRecordOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseListAuditRecordOut) GetData() []AuditRecordOut { + if o == nil { + var ret []AuditRecordOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseListAuditRecordOut) GetDataOk() ([]AuditRecordOut, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseListAuditRecordOut) SetData(v []AuditRecordOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseListAuditRecordOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListAuditRecordOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseListAuditRecordOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseListAuditRecordOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseListAuditRecordOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseListAuditRecordOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseListAuditRecordOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseListAuditRecordOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseListAuditRecordOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseListAuditRecordOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseListAuditRecordOut := _SuccessResponseListAuditRecordOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseListAuditRecordOut) + + if err != nil { + return err + } + + *o = SuccessResponseListAuditRecordOut(varSuccessResponseListAuditRecordOut) + + return err +} + +type NullableSuccessResponseListAuditRecordOut struct { + value *SuccessResponseListAuditRecordOut + isSet bool +} + +func (v NullableSuccessResponseListAuditRecordOut) Get() *SuccessResponseListAuditRecordOut { + return v.value +} + +func (v *NullableSuccessResponseListAuditRecordOut) Set(val *SuccessResponseListAuditRecordOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseListAuditRecordOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseListAuditRecordOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseListAuditRecordOut(val *SuccessResponseListAuditRecordOut) *NullableSuccessResponseListAuditRecordOut { + return &NullableSuccessResponseListAuditRecordOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseListAuditRecordOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseListAuditRecordOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_list_dict_str__str___.go b/sdks/go/model_success_response_list_dict_str__str___.go new file mode 100644 index 0000000..2800ddc --- /dev/null +++ b/sdks/go/model_success_response_list_dict_str__str___.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseListDictStrStr type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseListDictStrStr{} + +// SuccessResponseListDictStrStr struct for SuccessResponseListDictStrStr +type SuccessResponseListDictStrStr struct { + Data []map[string]string `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseListDictStrStr SuccessResponseListDictStrStr + +// NewSuccessResponseListDictStrStr instantiates a new SuccessResponseListDictStrStr object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseListDictStrStr(data []map[string]string) *SuccessResponseListDictStrStr { + this := SuccessResponseListDictStrStr{} + this.Data = data + return &this +} + +// NewSuccessResponseListDictStrStrWithDefaults instantiates a new SuccessResponseListDictStrStr object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseListDictStrStrWithDefaults() *SuccessResponseListDictStrStr { + this := SuccessResponseListDictStrStr{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseListDictStrStr) GetData() []map[string]string { + if o == nil { + var ret []map[string]string + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseListDictStrStr) GetDataOk() ([]map[string]string, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseListDictStrStr) SetData(v []map[string]string) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseListDictStrStr) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListDictStrStr) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseListDictStrStr) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseListDictStrStr) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseListDictStrStr) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListDictStrStr) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseListDictStrStr) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseListDictStrStr) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseListDictStrStr) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseListDictStrStr) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseListDictStrStr) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseListDictStrStr := _SuccessResponseListDictStrStr{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseListDictStrStr) + + if err != nil { + return err + } + + *o = SuccessResponseListDictStrStr(varSuccessResponseListDictStrStr) + + return err +} + +type NullableSuccessResponseListDictStrStr struct { + value *SuccessResponseListDictStrStr + isSet bool +} + +func (v NullableSuccessResponseListDictStrStr) Get() *SuccessResponseListDictStrStr { + return v.value +} + +func (v *NullableSuccessResponseListDictStrStr) Set(val *SuccessResponseListDictStrStr) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseListDictStrStr) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseListDictStrStr) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseListDictStrStr(val *SuccessResponseListDictStrStr) *NullableSuccessResponseListDictStrStr { + return &NullableSuccessResponseListDictStrStr{value: val, isSet: true} +} + +func (v NullableSuccessResponseListDictStrStr) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseListDictStrStr) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_list_permission_out__.go b/sdks/go/model_success_response_list_permission_out__.go new file mode 100644 index 0000000..e33d5af --- /dev/null +++ b/sdks/go/model_success_response_list_permission_out__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseListPermissionOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseListPermissionOut{} + +// SuccessResponseListPermissionOut struct for SuccessResponseListPermissionOut +type SuccessResponseListPermissionOut struct { + Data []PermissionOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseListPermissionOut SuccessResponseListPermissionOut + +// NewSuccessResponseListPermissionOut instantiates a new SuccessResponseListPermissionOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseListPermissionOut(data []PermissionOut) *SuccessResponseListPermissionOut { + this := SuccessResponseListPermissionOut{} + this.Data = data + return &this +} + +// NewSuccessResponseListPermissionOutWithDefaults instantiates a new SuccessResponseListPermissionOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseListPermissionOutWithDefaults() *SuccessResponseListPermissionOut { + this := SuccessResponseListPermissionOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseListPermissionOut) GetData() []PermissionOut { + if o == nil { + var ret []PermissionOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseListPermissionOut) GetDataOk() ([]PermissionOut, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseListPermissionOut) SetData(v []PermissionOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseListPermissionOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListPermissionOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseListPermissionOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseListPermissionOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseListPermissionOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListPermissionOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseListPermissionOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseListPermissionOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseListPermissionOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseListPermissionOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseListPermissionOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseListPermissionOut := _SuccessResponseListPermissionOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseListPermissionOut) + + if err != nil { + return err + } + + *o = SuccessResponseListPermissionOut(varSuccessResponseListPermissionOut) + + return err +} + +type NullableSuccessResponseListPermissionOut struct { + value *SuccessResponseListPermissionOut + isSet bool +} + +func (v NullableSuccessResponseListPermissionOut) Get() *SuccessResponseListPermissionOut { + return v.value +} + +func (v *NullableSuccessResponseListPermissionOut) Set(val *SuccessResponseListPermissionOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseListPermissionOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseListPermissionOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseListPermissionOut(val *SuccessResponseListPermissionOut) *NullableSuccessResponseListPermissionOut { + return &NullableSuccessResponseListPermissionOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseListPermissionOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseListPermissionOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_list_policy_out__.go b/sdks/go/model_success_response_list_policy_out__.go new file mode 100644 index 0000000..e0e40f0 --- /dev/null +++ b/sdks/go/model_success_response_list_policy_out__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseListPolicyOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseListPolicyOut{} + +// SuccessResponseListPolicyOut struct for SuccessResponseListPolicyOut +type SuccessResponseListPolicyOut struct { + Data []PolicyOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseListPolicyOut SuccessResponseListPolicyOut + +// NewSuccessResponseListPolicyOut instantiates a new SuccessResponseListPolicyOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseListPolicyOut(data []PolicyOut) *SuccessResponseListPolicyOut { + this := SuccessResponseListPolicyOut{} + this.Data = data + return &this +} + +// NewSuccessResponseListPolicyOutWithDefaults instantiates a new SuccessResponseListPolicyOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseListPolicyOutWithDefaults() *SuccessResponseListPolicyOut { + this := SuccessResponseListPolicyOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseListPolicyOut) GetData() []PolicyOut { + if o == nil { + var ret []PolicyOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseListPolicyOut) GetDataOk() ([]PolicyOut, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseListPolicyOut) SetData(v []PolicyOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseListPolicyOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListPolicyOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseListPolicyOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseListPolicyOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseListPolicyOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListPolicyOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseListPolicyOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseListPolicyOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseListPolicyOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseListPolicyOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseListPolicyOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseListPolicyOut := _SuccessResponseListPolicyOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseListPolicyOut) + + if err != nil { + return err + } + + *o = SuccessResponseListPolicyOut(varSuccessResponseListPolicyOut) + + return err +} + +type NullableSuccessResponseListPolicyOut struct { + value *SuccessResponseListPolicyOut + isSet bool +} + +func (v NullableSuccessResponseListPolicyOut) Get() *SuccessResponseListPolicyOut { + return v.value +} + +func (v *NullableSuccessResponseListPolicyOut) Set(val *SuccessResponseListPolicyOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseListPolicyOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseListPolicyOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseListPolicyOut(val *SuccessResponseListPolicyOut) *NullableSuccessResponseListPolicyOut { + return &NullableSuccessResponseListPolicyOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseListPolicyOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseListPolicyOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_list_role_out__.go b/sdks/go/model_success_response_list_role_out__.go new file mode 100644 index 0000000..63bd4b8 --- /dev/null +++ b/sdks/go/model_success_response_list_role_out__.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseListRoleOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseListRoleOut{} + +// SuccessResponseListRoleOut struct for SuccessResponseListRoleOut +type SuccessResponseListRoleOut struct { + Data []RoleOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseListRoleOut SuccessResponseListRoleOut + +// NewSuccessResponseListRoleOut instantiates a new SuccessResponseListRoleOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseListRoleOut(data []RoleOut) *SuccessResponseListRoleOut { + this := SuccessResponseListRoleOut{} + this.Data = data + return &this +} + +// NewSuccessResponseListRoleOutWithDefaults instantiates a new SuccessResponseListRoleOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseListRoleOutWithDefaults() *SuccessResponseListRoleOut { + this := SuccessResponseListRoleOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseListRoleOut) GetData() []RoleOut { + if o == nil { + var ret []RoleOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseListRoleOut) GetDataOk() ([]RoleOut, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseListRoleOut) SetData(v []RoleOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseListRoleOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListRoleOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseListRoleOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseListRoleOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseListRoleOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseListRoleOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseListRoleOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseListRoleOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseListRoleOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseListRoleOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseListRoleOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseListRoleOut := _SuccessResponseListRoleOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseListRoleOut) + + if err != nil { + return err + } + + *o = SuccessResponseListRoleOut(varSuccessResponseListRoleOut) + + return err +} + +type NullableSuccessResponseListRoleOut struct { + value *SuccessResponseListRoleOut + isSet bool +} + +func (v NullableSuccessResponseListRoleOut) Get() *SuccessResponseListRoleOut { + return v.value +} + +func (v *NullableSuccessResponseListRoleOut) Set(val *SuccessResponseListRoleOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseListRoleOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseListRoleOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseListRoleOut(val *SuccessResponseListRoleOut) *NullableSuccessResponseListRoleOut { + return &NullableSuccessResponseListRoleOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseListRoleOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseListRoleOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_permission_out_.go b/sdks/go/model_success_response_permission_out_.go new file mode 100644 index 0000000..3de2fbc --- /dev/null +++ b/sdks/go/model_success_response_permission_out_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponsePermissionOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponsePermissionOut{} + +// SuccessResponsePermissionOut struct for SuccessResponsePermissionOut +type SuccessResponsePermissionOut struct { + Data PermissionOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponsePermissionOut SuccessResponsePermissionOut + +// NewSuccessResponsePermissionOut instantiates a new SuccessResponsePermissionOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponsePermissionOut(data PermissionOut) *SuccessResponsePermissionOut { + this := SuccessResponsePermissionOut{} + this.Data = data + return &this +} + +// NewSuccessResponsePermissionOutWithDefaults instantiates a new SuccessResponsePermissionOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponsePermissionOutWithDefaults() *SuccessResponsePermissionOut { + this := SuccessResponsePermissionOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponsePermissionOut) GetData() PermissionOut { + if o == nil { + var ret PermissionOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponsePermissionOut) GetDataOk() (*PermissionOut, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponsePermissionOut) SetData(v PermissionOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponsePermissionOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponsePermissionOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponsePermissionOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponsePermissionOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponsePermissionOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponsePermissionOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponsePermissionOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponsePermissionOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponsePermissionOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponsePermissionOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponsePermissionOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponsePermissionOut := _SuccessResponsePermissionOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponsePermissionOut) + + if err != nil { + return err + } + + *o = SuccessResponsePermissionOut(varSuccessResponsePermissionOut) + + return err +} + +type NullableSuccessResponsePermissionOut struct { + value *SuccessResponsePermissionOut + isSet bool +} + +func (v NullableSuccessResponsePermissionOut) Get() *SuccessResponsePermissionOut { + return v.value +} + +func (v *NullableSuccessResponsePermissionOut) Set(val *SuccessResponsePermissionOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponsePermissionOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponsePermissionOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponsePermissionOut(val *SuccessResponsePermissionOut) *NullableSuccessResponsePermissionOut { + return &NullableSuccessResponsePermissionOut{value: val, isSet: true} +} + +func (v NullableSuccessResponsePermissionOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponsePermissionOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_policy_out_.go b/sdks/go/model_success_response_policy_out_.go new file mode 100644 index 0000000..004cffb --- /dev/null +++ b/sdks/go/model_success_response_policy_out_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponsePolicyOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponsePolicyOut{} + +// SuccessResponsePolicyOut struct for SuccessResponsePolicyOut +type SuccessResponsePolicyOut struct { + Data PolicyOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponsePolicyOut SuccessResponsePolicyOut + +// NewSuccessResponsePolicyOut instantiates a new SuccessResponsePolicyOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponsePolicyOut(data PolicyOut) *SuccessResponsePolicyOut { + this := SuccessResponsePolicyOut{} + this.Data = data + return &this +} + +// NewSuccessResponsePolicyOutWithDefaults instantiates a new SuccessResponsePolicyOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponsePolicyOutWithDefaults() *SuccessResponsePolicyOut { + this := SuccessResponsePolicyOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponsePolicyOut) GetData() PolicyOut { + if o == nil { + var ret PolicyOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponsePolicyOut) GetDataOk() (*PolicyOut, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponsePolicyOut) SetData(v PolicyOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponsePolicyOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponsePolicyOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponsePolicyOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponsePolicyOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponsePolicyOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponsePolicyOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponsePolicyOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponsePolicyOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponsePolicyOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponsePolicyOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponsePolicyOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponsePolicyOut := _SuccessResponsePolicyOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponsePolicyOut) + + if err != nil { + return err + } + + *o = SuccessResponsePolicyOut(varSuccessResponsePolicyOut) + + return err +} + +type NullableSuccessResponsePolicyOut struct { + value *SuccessResponsePolicyOut + isSet bool +} + +func (v NullableSuccessResponsePolicyOut) Get() *SuccessResponsePolicyOut { + return v.value +} + +func (v *NullableSuccessResponsePolicyOut) Set(val *SuccessResponsePolicyOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponsePolicyOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponsePolicyOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponsePolicyOut(val *SuccessResponsePolicyOut) *NullableSuccessResponsePolicyOut { + return &NullableSuccessResponsePolicyOut{value: val, isSet: true} +} + +func (v NullableSuccessResponsePolicyOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponsePolicyOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_policy_simulation_response_.go b/sdks/go/model_success_response_policy_simulation_response_.go new file mode 100644 index 0000000..82f632b --- /dev/null +++ b/sdks/go/model_success_response_policy_simulation_response_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponsePolicySimulationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponsePolicySimulationResponse{} + +// SuccessResponsePolicySimulationResponse struct for SuccessResponsePolicySimulationResponse +type SuccessResponsePolicySimulationResponse struct { + Data PolicySimulationResponse `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponsePolicySimulationResponse SuccessResponsePolicySimulationResponse + +// NewSuccessResponsePolicySimulationResponse instantiates a new SuccessResponsePolicySimulationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponsePolicySimulationResponse(data PolicySimulationResponse) *SuccessResponsePolicySimulationResponse { + this := SuccessResponsePolicySimulationResponse{} + this.Data = data + return &this +} + +// NewSuccessResponsePolicySimulationResponseWithDefaults instantiates a new SuccessResponsePolicySimulationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponsePolicySimulationResponseWithDefaults() *SuccessResponsePolicySimulationResponse { + this := SuccessResponsePolicySimulationResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponsePolicySimulationResponse) GetData() PolicySimulationResponse { + if o == nil { + var ret PolicySimulationResponse + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponsePolicySimulationResponse) GetDataOk() (*PolicySimulationResponse, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponsePolicySimulationResponse) SetData(v PolicySimulationResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponsePolicySimulationResponse) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponsePolicySimulationResponse) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponsePolicySimulationResponse) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponsePolicySimulationResponse) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponsePolicySimulationResponse) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponsePolicySimulationResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponsePolicySimulationResponse) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponsePolicySimulationResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponsePolicySimulationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponsePolicySimulationResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponsePolicySimulationResponse := _SuccessResponsePolicySimulationResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponsePolicySimulationResponse) + + if err != nil { + return err + } + + *o = SuccessResponsePolicySimulationResponse(varSuccessResponsePolicySimulationResponse) + + return err +} + +type NullableSuccessResponsePolicySimulationResponse struct { + value *SuccessResponsePolicySimulationResponse + isSet bool +} + +func (v NullableSuccessResponsePolicySimulationResponse) Get() *SuccessResponsePolicySimulationResponse { + return v.value +} + +func (v *NullableSuccessResponsePolicySimulationResponse) Set(val *SuccessResponsePolicySimulationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponsePolicySimulationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponsePolicySimulationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponsePolicySimulationResponse(val *SuccessResponsePolicySimulationResponse) *NullableSuccessResponsePolicySimulationResponse { + return &NullableSuccessResponsePolicySimulationResponse{value: val, isSet: true} +} + +func (v NullableSuccessResponsePolicySimulationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponsePolicySimulationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_relationship_out_.go b/sdks/go/model_success_response_relationship_out_.go new file mode 100644 index 0000000..aec8827 --- /dev/null +++ b/sdks/go/model_success_response_relationship_out_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseRelationshipOut type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseRelationshipOut{} + +// SuccessResponseRelationshipOut struct for SuccessResponseRelationshipOut +type SuccessResponseRelationshipOut struct { + Data RelationshipOut `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseRelationshipOut SuccessResponseRelationshipOut + +// NewSuccessResponseRelationshipOut instantiates a new SuccessResponseRelationshipOut object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseRelationshipOut(data RelationshipOut) *SuccessResponseRelationshipOut { + this := SuccessResponseRelationshipOut{} + this.Data = data + return &this +} + +// NewSuccessResponseRelationshipOutWithDefaults instantiates a new SuccessResponseRelationshipOut object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseRelationshipOutWithDefaults() *SuccessResponseRelationshipOut { + this := SuccessResponseRelationshipOut{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseRelationshipOut) GetData() RelationshipOut { + if o == nil { + var ret RelationshipOut + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseRelationshipOut) GetDataOk() (*RelationshipOut, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseRelationshipOut) SetData(v RelationshipOut) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseRelationshipOut) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseRelationshipOut) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseRelationshipOut) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseRelationshipOut) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseRelationshipOut) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseRelationshipOut) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseRelationshipOut) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseRelationshipOut) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseRelationshipOut) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseRelationshipOut) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseRelationshipOut) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseRelationshipOut := _SuccessResponseRelationshipOut{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseRelationshipOut) + + if err != nil { + return err + } + + *o = SuccessResponseRelationshipOut(varSuccessResponseRelationshipOut) + + return err +} + +type NullableSuccessResponseRelationshipOut struct { + value *SuccessResponseRelationshipOut + isSet bool +} + +func (v NullableSuccessResponseRelationshipOut) Get() *SuccessResponseRelationshipOut { + return v.value +} + +func (v *NullableSuccessResponseRelationshipOut) Set(val *SuccessResponseRelationshipOut) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseRelationshipOut) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseRelationshipOut) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseRelationshipOut(val *SuccessResponseRelationshipOut) *NullableSuccessResponseRelationshipOut { + return &NullableSuccessResponseRelationshipOut{value: val, isSet: true} +} + +func (v NullableSuccessResponseRelationshipOut) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseRelationshipOut) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_success_response_simulation_response_.go b/sdks/go/model_success_response_simulation_response_.go new file mode 100644 index 0000000..3b8936a --- /dev/null +++ b/sdks/go/model_success_response_simulation_response_.go @@ -0,0 +1,230 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SuccessResponseSimulationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuccessResponseSimulationResponse{} + +// SuccessResponseSimulationResponse struct for SuccessResponseSimulationResponse +type SuccessResponseSimulationResponse struct { + Data SimulationResponse `json:"data"` + Meta *MetaBody `json:"meta,omitempty"` + Error *nil `json:"error,omitempty"` +} + +type _SuccessResponseSimulationResponse SuccessResponseSimulationResponse + +// NewSuccessResponseSimulationResponse instantiates a new SuccessResponseSimulationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSuccessResponseSimulationResponse(data SimulationResponse) *SuccessResponseSimulationResponse { + this := SuccessResponseSimulationResponse{} + this.Data = data + return &this +} + +// NewSuccessResponseSimulationResponseWithDefaults instantiates a new SuccessResponseSimulationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSuccessResponseSimulationResponseWithDefaults() *SuccessResponseSimulationResponse { + this := SuccessResponseSimulationResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SuccessResponseSimulationResponse) GetData() SimulationResponse { + if o == nil { + var ret SimulationResponse + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SuccessResponseSimulationResponse) GetDataOk() (*SimulationResponse, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SuccessResponseSimulationResponse) SetData(v SimulationResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *SuccessResponseSimulationResponse) GetMeta() MetaBody { + if o == nil || IsNil(o.Meta) { + var ret MetaBody + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseSimulationResponse) GetMetaOk() (*MetaBody, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *SuccessResponseSimulationResponse) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. +func (o *SuccessResponseSimulationResponse) SetMeta(v MetaBody) { + o.Meta = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *SuccessResponseSimulationResponse) GetError() nil { + if o == nil || IsNil(o.Error) { + var ret nil + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessResponseSimulationResponse) GetErrorOk() (*nil, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *SuccessResponseSimulationResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given nil and assigns it to the Error field. +func (o *SuccessResponseSimulationResponse) SetError(v nil) { + o.Error = &v +} + +func (o SuccessResponseSimulationResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuccessResponseSimulationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +func (o *SuccessResponseSimulationResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSuccessResponseSimulationResponse := _SuccessResponseSimulationResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSuccessResponseSimulationResponse) + + if err != nil { + return err + } + + *o = SuccessResponseSimulationResponse(varSuccessResponseSimulationResponse) + + return err +} + +type NullableSuccessResponseSimulationResponse struct { + value *SuccessResponseSimulationResponse + isSet bool +} + +func (v NullableSuccessResponseSimulationResponse) Get() *SuccessResponseSimulationResponse { + return v.value +} + +func (v *NullableSuccessResponseSimulationResponse) Set(val *SuccessResponseSimulationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSuccessResponseSimulationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSuccessResponseSimulationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuccessResponseSimulationResponse(val *SuccessResponseSimulationResponse) *NullableSuccessResponseSimulationResponse { + return &NullableSuccessResponseSimulationResponse{value: val, isSet: true} +} + +func (v NullableSuccessResponseSimulationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuccessResponseSimulationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/model_validation_error.go b/sdks/go/model_validation_error.go new file mode 100644 index 0000000..ae51838 --- /dev/null +++ b/sdks/go/model_validation_error.go @@ -0,0 +1,287 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ValidationError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ValidationError{} + +// ValidationError struct for ValidationError +type ValidationError struct { + Loc []LocationInner `json:"loc"` + Msg string `json:"msg"` + Type string `json:"type"` + Input interface{} `json:"input,omitempty"` + Ctx map[string]interface{} `json:"ctx,omitempty"` +} + +type _ValidationError ValidationError + +// NewValidationError instantiates a new ValidationError object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewValidationError(loc []LocationInner, msg string, type_ string) *ValidationError { + this := ValidationError{} + this.Loc = loc + this.Msg = msg + this.Type = type_ + return &this +} + +// NewValidationErrorWithDefaults instantiates a new ValidationError object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewValidationErrorWithDefaults() *ValidationError { + this := ValidationError{} + return &this +} + +// GetLoc returns the Loc field value +func (o *ValidationError) GetLoc() []LocationInner { + if o == nil { + var ret []LocationInner + return ret + } + + return o.Loc +} + +// GetLocOk returns a tuple with the Loc field value +// and a boolean to check if the value has been set. +func (o *ValidationError) GetLocOk() ([]LocationInner, bool) { + if o == nil { + return nil, false + } + return o.Loc, true +} + +// SetLoc sets field value +func (o *ValidationError) SetLoc(v []LocationInner) { + o.Loc = v +} + +// GetMsg returns the Msg field value +func (o *ValidationError) GetMsg() string { + if o == nil { + var ret string + return ret + } + + return o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value +// and a boolean to check if the value has been set. +func (o *ValidationError) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Msg, true +} + +// SetMsg sets field value +func (o *ValidationError) SetMsg(v string) { + o.Msg = v +} + +// GetType returns the Type field value +func (o *ValidationError) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ValidationError) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ValidationError) SetType(v string) { + o.Type = v +} + +// GetInput returns the Input field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ValidationError) GetInput() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Input +} + +// GetInputOk returns a tuple with the Input field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ValidationError) GetInputOk() (*interface{}, bool) { + if o == nil || IsNil(o.Input) { + return nil, false + } + return &o.Input, true +} + +// HasInput returns a boolean if a field has been set. +func (o *ValidationError) HasInput() bool { + if o != nil && !IsNil(o.Input) { + return true + } + + return false +} + +// SetInput gets a reference to the given interface{} and assigns it to the Input field. +func (o *ValidationError) SetInput(v interface{}) { + o.Input = v +} + +// GetCtx returns the Ctx field value if set, zero value otherwise. +func (o *ValidationError) GetCtx() map[string]interface{} { + if o == nil || IsNil(o.Ctx) { + var ret map[string]interface{} + return ret + } + return o.Ctx +} + +// GetCtxOk returns a tuple with the Ctx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidationError) GetCtxOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Ctx) { + return map[string]interface{}{}, false + } + return o.Ctx, true +} + +// HasCtx returns a boolean if a field has been set. +func (o *ValidationError) HasCtx() bool { + if o != nil && !IsNil(o.Ctx) { + return true + } + + return false +} + +// SetCtx gets a reference to the given map[string]interface{} and assigns it to the Ctx field. +func (o *ValidationError) SetCtx(v map[string]interface{}) { + o.Ctx = v +} + +func (o ValidationError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ValidationError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["loc"] = o.Loc + toSerialize["msg"] = o.Msg + toSerialize["type"] = o.Type + if o.Input != nil { + toSerialize["input"] = o.Input + } + if !IsNil(o.Ctx) { + toSerialize["ctx"] = o.Ctx + } + return toSerialize, nil +} + +func (o *ValidationError) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "loc", + "msg", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varValidationError := _ValidationError{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varValidationError) + + if err != nil { + return err + } + + *o = ValidationError(varValidationError) + + return err +} + +type NullableValidationError struct { + value *ValidationError + isSet bool +} + +func (v NullableValidationError) Get() *ValidationError { + return v.value +} + +func (v *NullableValidationError) Set(val *ValidationError) { + v.value = val + v.isSet = true +} + +func (v NullableValidationError) IsSet() bool { + return v.isSet +} + +func (v *NullableValidationError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValidationError(val *ValidationError) *NullableValidationError { + return &NullableValidationError{value: val, isSet: true} +} + +func (v NullableValidationError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValidationError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdks/go/response.go b/sdks/go/response.go new file mode 100644 index 0000000..a8b0f1f --- /dev/null +++ b/sdks/go/response.go @@ -0,0 +1,47 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/sdks/go/test/api_access_test.go b/sdks/go/test/api_access_test.go new file mode 100644 index 0000000..8a4f08e --- /dev/null +++ b/sdks/go/test/api_access_test.go @@ -0,0 +1,61 @@ +/* +KeyNetra + +Testing AccessAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keynetra + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_keynetra_AccessAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AccessAPIService CheckAccessBatchCheckAccessBatchPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AccessAPI.CheckAccessBatchCheckAccessBatchPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AccessAPIService CheckAccessCheckAccessPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AccessAPI.CheckAccessCheckAccessPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AccessAPIService SimulateSimulatePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AccessAPI.SimulateSimulatePost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/sdks/go/test/api_auth_test.go b/sdks/go/test/api_auth_test.go new file mode 100644 index 0000000..930491d --- /dev/null +++ b/sdks/go/test/api_auth_test.go @@ -0,0 +1,49 @@ +/* +KeyNetra + +Testing AuthAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keynetra + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_keynetra_AuthAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AuthAPIService AdminLoginAdminLoginPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.AdminLoginAdminLoginPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuthAPIService AdminLoginAdminLoginPost_1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.AdminLoginAdminLoginPost_0(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/sdks/go/test/api_dev_test.go b/sdks/go/test/api_dev_test.go new file mode 100644 index 0000000..f1153d3 --- /dev/null +++ b/sdks/go/test/api_dev_test.go @@ -0,0 +1,49 @@ +/* +KeyNetra + +Testing DevAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keynetra + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_keynetra_DevAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DevAPIService GetSampleDataDevSampleDataGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DevAPI.GetSampleDataDevSampleDataGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DevAPIService SeedSampleDataDevSampleDataSeedPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DevAPI.SeedSampleDataDevSampleDataSeedPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/sdks/go/test/api_health_test.go b/sdks/go/test/api_health_test.go new file mode 100644 index 0000000..475519c --- /dev/null +++ b/sdks/go/test/api_health_test.go @@ -0,0 +1,61 @@ +/* +KeyNetra + +Testing HealthAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keynetra + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_keynetra_HealthAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test HealthAPIService HealthHealthGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.HealthAPI.HealthHealthGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HealthAPIService LivenessHealthLiveGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.HealthAPI.LivenessHealthLiveGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HealthAPIService ReadinessHealthReadyGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.HealthAPI.ReadinessHealthReadyGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/sdks/go/test/api_management_test.go b/sdks/go/test/api_management_test.go new file mode 100644 index 0000000..41d813d --- /dev/null +++ b/sdks/go/test/api_management_test.go @@ -0,0 +1,391 @@ +/* +KeyNetra + +Testing ManagementAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keynetra + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_keynetra_ManagementAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ManagementAPIService AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var roleId int32 + var permissionId int32 + + resp, httpRes, err := apiClient.ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(context.Background(), roleId, permissionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreateAclEntryAclPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreateAclEntryAclPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreateAuthModelAuthModelPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreateAuthModelAuthModelPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreatePermissionPermissionsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreatePermissionPermissionsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreatePolicyFromDslPoliciesDslPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreatePolicyFromDslPoliciesDslPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreatePolicyPoliciesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreatePolicyPoliciesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreateRelationshipRelationshipsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreateRelationshipRelationshipsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService CreateRoleRolesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.CreateRoleRolesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService DeleteAclEntryAclAclIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var aclId int32 + + resp, httpRes, err := apiClient.ManagementAPI.DeleteAclEntryAclAclIdDelete(context.Background(), aclId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService DeletePermissionPermissionsPermissionIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var permissionId int32 + + resp, httpRes, err := apiClient.ManagementAPI.DeletePermissionPermissionsPermissionIdDelete(context.Background(), permissionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService DeletePolicyPoliciesPolicyKeyDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var policyKey string + + resp, httpRes, err := apiClient.ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete(context.Background(), policyKey).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService DeleteRoleRolesRoleIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var roleId int32 + + resp, httpRes, err := apiClient.ManagementAPI.DeleteRoleRolesRoleIdDelete(context.Background(), roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService GetAuthModelAuthModelGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.GetAuthModelAuthModelGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ImpactAnalysisImpactAnalysisPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.ImpactAnalysisImpactAnalysisPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListAclEntriesAclResourceTypeResourceIdGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var resourceType string + var resourceId string + + resp, httpRes, err := apiClient.ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet(context.Background(), resourceType, resourceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListAuditLogsAuditGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.ListAuditLogsAuditGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListPermissionRolesPermissionsPermissionIdRolesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var permissionId int32 + + resp, httpRes, err := apiClient.ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet(context.Background(), permissionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListPermissionsPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.ListPermissionsPermissionsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListPoliciesPoliciesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.ListPoliciesPoliciesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListRelationshipsRelationshipsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.ListRelationshipsRelationshipsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListRolePermissionsRolesRoleIdPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var roleId int32 + + resp, httpRes, err := apiClient.ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet(context.Background(), roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService ListRolesRolesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.ListRolesRolesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var roleId int32 + var permissionId int32 + + resp, httpRes, err := apiClient.ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(context.Background(), roleId, permissionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService RollbackPolicyPoliciesPolicyKeyRollbackVersionPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var policyKey string + var version int32 + + resp, httpRes, err := apiClient.ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(context.Background(), policyKey, version).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService SimulatePolicySimulatePolicyPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ManagementAPI.SimulatePolicySimulatePolicyPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService UpdatePermissionPermissionsPermissionIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var permissionId int32 + + resp, httpRes, err := apiClient.ManagementAPI.UpdatePermissionPermissionsPermissionIdPut(context.Background(), permissionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService UpdatePolicyPoliciesPolicyKeyPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var policyKey string + + resp, httpRes, err := apiClient.ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut(context.Background(), policyKey).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ManagementAPIService UpdateRoleRolesRoleIdPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var roleId int32 + + resp, httpRes, err := apiClient.ManagementAPI.UpdateRoleRolesRoleIdPut(context.Background(), roleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/sdks/go/test/api_playground_test.go b/sdks/go/test/api_playground_test.go new file mode 100644 index 0000000..cf6311e --- /dev/null +++ b/sdks/go/test/api_playground_test.go @@ -0,0 +1,37 @@ +/* +KeyNetra + +Testing PlaygroundAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keynetra + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_keynetra_PlaygroundAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PlaygroundAPIService EvaluatePlaygroundEvaluatePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PlaygroundAPI.EvaluatePlaygroundEvaluatePost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/sdks/go/utils.go b/sdks/go/utils.go new file mode 100644 index 0000000..3b9e6bd --- /dev/null +++ b/sdks/go/utils.go @@ -0,0 +1,361 @@ +/* +KeyNetra + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keynetra + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file diff --git a/sdks/java/.github/workflows/maven.yml b/sdks/java/.github/workflows/maven.yml new file mode 100644 index 0000000..aa35283 --- /dev/null +++ b/sdks/java/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build KeyNetra + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 17, 21 ] + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/sdks/java/.gitignore b/sdks/java/.gitignore new file mode 100644 index 0000000..a530464 --- /dev/null +++ b/sdks/java/.gitignore @@ -0,0 +1,21 @@ +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# exclude jar for gradle wrapper +!gradle/wrapper/*.jar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# build files +**/target +target +.gradle +build diff --git a/sdks/java/.travis.yml b/sdks/java/.travis.yml new file mode 100644 index 0000000..1b6741c --- /dev/null +++ b/sdks/java/.travis.yml @@ -0,0 +1,22 @@ +# +# Generated by OpenAPI Generator: https://openapi-generator.tech +# +# Ref: https://docs.travis-ci.com/user/languages/java/ +# +language: java +jdk: + - openjdk12 + - openjdk11 + - openjdk10 + - openjdk9 + - openjdk8 +before_install: + # ensure gradlew has proper permission + - chmod a+x ./gradlew +script: + # test using maven + #- mvn test + # test using gradle + - gradle test + # test using sbt + # - sbt test diff --git a/sdks/java/README.md b/sdks/java/README.md new file mode 100644 index 0000000..5578d7f --- /dev/null +++ b/sdks/java/README.md @@ -0,0 +1,58 @@ +# keynetra-client + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official Java SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Java applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash + + io.keynetra + keynetra-client + 0.1.0 + +``` + +## ๐Ÿš€ Quick Start + +```java +import io.keynetra.client.KeyNetraClient; +import io.keynetra.client.model.AccessRequest; + +KeyNetraClient client = new KeyNetraClient( + "http://localhost:8080", + "YOUR_API_KEY" +); + +// Perform an access check +var decision = client.getAccess().checkAccess( + new AccessRequest() + .subject("user:123") + .action("read") + .resource("document:456") +); +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/java/api/openapi.yaml b/sdks/java/api/openapi.yaml new file mode 100644 index 0000000..4b45366 --- /dev/null +++ b/sdks/java/api/openapi.yaml @@ -0,0 +1,2903 @@ +openapi: 3.1.0 +info: + title: KeyNetra + version: 0.1.1 +servers: +- url: / +paths: + /health: + get: + operationId: health_health_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + summary: Health + tags: + - health + x-accepts: + - application/json + /health/live: + get: + operationId: liveness_health_live_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + summary: Liveness + tags: + - health + x-accepts: + - application/json + /health/ready: + get: + operationId: readiness_health_ready_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + summary: Readiness + tags: + - health + x-accepts: + - application/json + /check-access: + post: + operationId: check_access_check_access_post + parameters: + - explode: true + in: query + name: policy_set + required: false + schema: + default: active + title: Policy Set + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AccessDecisionResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Check Access + tags: + - access + x-content-type: application/json + x-accepts: + - application/json + /simulate: + post: + operationId: simulate_simulate_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_SimulationResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Simulate + tags: + - access + x-content-type: application/json + x-accepts: + - application/json + /check-access-batch: + post: + operationId: check_access_batch_check_access_batch_post + parameters: + - explode: true + in: query + name: policy_set + required: false + schema: + default: active + title: Policy Set + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BatchAccessRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_BatchAccessResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Check Access Batch + tags: + - access + x-content-type: application/json + x-accepts: + - application/json + /admin/login: + post: + operationId: admin_login_admin_login_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AdminLoginRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AdminLoginResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + summary: Admin Login + tags: + - auth + - auth + x-content-type: application/json + x-accepts: + - application/json + /policies: + get: + operationId: list_policies_policies_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PolicyOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Policies + tags: + - management + x-accepts: + - application/json + post: + operationId: create_policy_policies_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Policy + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /policies/{policy_key}: + delete: + operationId: delete_policy_policies__policy_key__delete + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__str__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Policy + tags: + - management + x-accepts: + - application/json + put: + operationId: update_policy_policies__policy_key__put + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyCreate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Policy + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /policies/dsl: + post: + operationId: create_policy_from_dsl_policies_dsl_post + parameters: + - explode: true + in: query + name: dsl + required: true + schema: + title: Dsl + type: string + style: form + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicyOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Policy From Dsl + tags: + - management + x-accepts: + - application/json + /policies/{policy_key}/rollback/{version}: + post: + operationId: rollback_policy_policies__policy_key__rollback__version__post + parameters: + - explode: false + in: path + name: policy_key + required: true + schema: + title: Policy Key + type: string + style: simple + - explode: false + in: path + name: version + required: true + schema: + title: Version + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Rollback Policy + tags: + - management + x-accepts: + - application/json + /acl: + post: + operationId: create_acl_entry_acl_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ACLCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_ACLOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Acl Entry + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /acl/{resource_type}/{resource_id}: + get: + operationId: list_acl_entries_acl__resource_type___resource_id__get + parameters: + - explode: false + in: path + name: resource_type + required: true + schema: + title: Resource Type + type: string + style: simple + - explode: false + in: path + name: resource_id + required: true + schema: + title: Resource Id + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_ACLOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Acl Entries + tags: + - management + x-accepts: + - application/json + /acl/{acl_id}: + delete: + operationId: delete_acl_entry_acl__acl_id__delete + parameters: + - explode: false + in: path + name: acl_id + required: true + schema: + title: Acl Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Acl Entry + tags: + - management + x-accepts: + - application/json + /auth-model: + get: + operationId: get_auth_model_auth_model_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" + description: Successful Response + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Get Auth Model + tags: + - management + x-accepts: + - application/json + post: + operationId: create_auth_model_auth_model_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AuthModelCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Auth Model + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /simulate-policy: + post: + operationId: simulate_policy_simulate_policy_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicySimulationRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PolicySimulationResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Simulate Policy + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /impact-analysis: + post: + operationId: impact_analysis_impact_analysis_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImpactAnalysisRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Impact Analysis + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /roles: + get: + operationId: list_roles_roles_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Roles + tags: + - management + x-accepts: + - application/json + post: + operationId: create_role_roles_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RoleCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/RoleOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Role + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /roles/{role_id}: + delete: + operationId: delete_role_roles__role_id__delete + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Role + tags: + - management + x-accepts: + - application/json + put: + operationId: update_role_roles__role_id__put + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RoleUpdate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RoleOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Role + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /roles/{role_id}/permissions: + get: + operationId: list_role_permissions_roles__role_id__permissions_get + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Role Permissions + tags: + - management + x-accepts: + - application/json + /roles/{role_id}/permissions/{permission_id}: + delete: + operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Remove Permission From Role + tags: + - management + x-accepts: + - application/json + post: + operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post + parameters: + - explode: false + in: path + name: role_id + required: true + schema: + title: Role Id + type: integer + style: simple + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_PermissionOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Add Permission To Role + tags: + - management + x-accepts: + - application/json + /permissions: + get: + operationId: list_permissions_permissions_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Permissions + tags: + - management + x-accepts: + - application/json + post: + operationId: create_permission_permissions_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Permission + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /permissions/{permission_id}: + delete: + operationId: delete_permission_permissions__permission_id__delete + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__int__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Delete Permission + tags: + - management + x-accepts: + - application/json + put: + operationId: update_permission_permissions__permission_id__put + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionUpdate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PermissionOut" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Update Permission + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /permissions/{permission_id}/roles: + get: + operationId: list_permission_roles_permissions__permission_id__roles_get + parameters: + - explode: false + in: path + name: permission_id + required: true + schema: + title: Permission Id + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Permission Roles + tags: + - management + x-accepts: + - application/json + /relationships: + get: + operationId: list_relationships_relationships_get + parameters: + - explode: true + in: query + name: subject_type + required: true + schema: + title: Subject Type + type: string + style: form + - explode: true + in: query + name: subject_id + required: true + schema: + title: Subject Id + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_dict_str__str___" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Relationships + tags: + - management + x-accepts: + - application/json + post: + operationId: create_relationship_relationships_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RelationshipCreate" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_RelationshipOut_" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Create Relationship + tags: + - management + x-content-type: application/json + x-accepts: + - application/json + /audit: + get: + operationId: list_audit_logs_audit_get + parameters: + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: user_id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: resource_id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: decision + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: start_time + required: false + schema: + format: date-time + nullable: true + type: string + style: form + - explode: true + in: query + name: end_time + required: false + schema: + format: date-time + nullable: true + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_list_AuditRecordOut__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: List Audit Logs + tags: + - management + x-accepts: + - application/json + /playground/evaluate: + post: + operationId: evaluate_playground_evaluate_post + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PlaygroundEvaluateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__Any__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + security: + - HTTPBearer: [] + - APIKeyHeader: [] + summary: Evaluate + tags: + - playground + x-content-type: application/json + x-accepts: + - application/json + /dev/sample-data: + get: + operationId: get_sample_data_dev_sample_data_get + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + summary: Get Sample Data + tags: + - dev + x-accepts: + - application/json + /dev/sample-data/seed: + post: + operationId: seed_sample_data_dev_sample_data_seed_post + parameters: + - description: Clear the sample dataset before reseeding it. + explode: true + in: query + name: reset + required: false + schema: + default: false + description: Clear the sample dataset before reseeding it. + title: Reset + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SuccessResponse_dict_str__object__" + description: Successful Response + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPValidationError" + description: Validation Error + summary: Seed Sample Data + tags: + - dev + x-accepts: + - application/json +components: + schemas: + ACLCreate: + example: + subject_id: subject_id + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + resource_type: + title: Resource Type + type: string + resource_id: + title: Resource Id + type: string + action: + title: Action + type: string + effect: + title: Effect + type: string + required: + - action + - effect + - resource_id + - resource_type + - subject_id + - subject_type + title: ACLCreate + ACLOut: + example: + subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + resource_type: + title: Resource Type + type: string + resource_id: + title: Resource Id + type: string + action: + title: Action + type: string + effect: + title: Effect + type: string + id: + title: Id + type: integer + tenant_id: + title: Tenant Id + type: integer + created_at: + format: date-time + nullable: true + type: string + required: + - action + - effect + - id + - resource_id + - resource_type + - subject_id + - subject_type + - tenant_id + title: ACLOut + AccessDecisionResponse: + example: + reason: reason + explain_trace: + - key: "" + - key: "" + decision: decision + policy_id: policy_id + allowed: true + matched_policies: + - matched_policies + - matched_policies + revision: 0 + properties: + allowed: + title: Allowed + type: boolean + decision: + title: Decision + type: string + matched_policies: + items: + type: string + title: Matched Policies + type: array + reason: + nullable: true + type: string + policy_id: + nullable: true + type: string + explain_trace: + items: + additionalProperties: true + type: object + title: Explain Trace + type: array + revision: + nullable: true + type: integer + required: + - allowed + - decision + title: AccessDecisionResponse + AccessRequest: + description: Explicit authorization request passed through the API boundary. + example: + resource: + key: "" + context: + key: "" + action: action + user: + key: "" + consistency: eventual + revision: 0 + properties: + user: + additionalProperties: true + title: User + type: object + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + context: + additionalProperties: true + title: Context + type: object + consistency: + default: eventual + title: Consistency + type: string + revision: + nullable: true + type: integer + required: + - action + title: AccessRequest + AdminLoginRequest: + example: + password: password + username: username + properties: + username: + title: Username + type: string + password: + title: Password + type: string + required: + - password + - username + title: AdminLoginRequest + AdminLoginResponse: + example: + access_token: access_token + role: admin + tenant_key: tenant_key + token_type: bearer + expires_in: 0 + properties: + access_token: + title: Access Token + type: string + token_type: + default: bearer + title: Token Type + type: string + expires_in: + title: Expires In + type: integer + role: + default: admin + title: Role + type: string + tenant_key: + title: Tenant Key + type: string + required: + - access_token + - expires_in + - tenant_key + title: AdminLoginResponse + AuditRecordOut: + example: + reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + properties: + id: + title: Id + type: integer + principal_type: + title: Principal Type + type: string + principal_id: + title: Principal Id + type: string + correlation_id: + nullable: true + type: string + user: + additionalProperties: true + title: User + type: object + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + decision: + title: Decision + type: string + matched_policies: + items: {} + title: Matched Policies + type: array + reason: + nullable: true + type: string + evaluated_rules: + items: {} + title: Evaluated Rules + type: array + failed_conditions: + items: {} + title: Failed Conditions + type: array + created_at: + format: date-time + title: Created At + type: string + required: + - action + - created_at + - decision + - evaluated_rules + - failed_conditions + - id + - matched_policies + - principal_id + - principal_type + - resource + - user + title: AuditRecordOut + AuthModelCreate: + example: + schema: schema + properties: + schema: + title: Schema + type: string + required: + - schema + title: AuthModelCreate + AuthModelOut: + example: + tenant_id: 6 + schema: schema + compiled: + key: "" + parsed: + key: "" + id: 0 + properties: + id: + title: Id + type: integer + tenant_id: + title: Tenant Id + type: integer + schema: + title: Schema + type: string + parsed: + additionalProperties: true + title: Parsed + type: object + compiled: + additionalProperties: true + title: Compiled + type: object + required: + - compiled + - id + - parsed + - schema + - tenant_id + title: AuthModelOut + BatchAccessItem: + example: + resource: + key: "" + action: action + properties: + action: + title: Action + type: string + resource: + additionalProperties: true + title: Resource + type: object + required: + - action + title: BatchAccessItem + BatchAccessRequest: + example: + user: + key: "" + items: + - resource: + key: "" + action: action + - resource: + key: "" + action: action + consistency: eventual + revision: 0 + properties: + user: + additionalProperties: true + title: User + type: object + items: + items: + $ref: "#/components/schemas/BatchAccessItem" + title: Items + type: array + consistency: + default: eventual + title: Consistency + type: string + revision: + nullable: true + type: integer + required: + - items + title: BatchAccessRequest + BatchAccessResponse: + example: + results: + - allowed: true + action: action + revision: 0 + - allowed: true + action: action + revision: 0 + revision: 6 + properties: + results: + items: + $ref: "#/components/schemas/BatchAccessResult" + title: Results + type: array + revision: + nullable: true + type: integer + required: + - results + title: BatchAccessResponse + BatchAccessResult: + example: + allowed: true + action: action + revision: 0 + properties: + action: + title: Action + type: string + allowed: + title: Allowed + type: boolean + revision: + nullable: true + type: integer + required: + - action + - allowed + title: BatchAccessResult + HTTPValidationError: + example: + detail: + - msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + - msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + properties: + detail: + items: + $ref: "#/components/schemas/ValidationError" + title: Detail + type: array + title: HTTPValidationError + ImpactAnalysisRequest: + example: + policy_change: policy_change + properties: + policy_change: + title: Policy Change + type: string + required: + - policy_change + title: ImpactAnalysisRequest + ImpactAnalysisResponse: + example: + gained_access: + - 0 + - 0 + lost_access: + - 6 + - 6 + properties: + gained_access: + items: + type: integer + title: Gained Access + type: array + lost_access: + items: + type: integer + title: Lost Access + type: array + title: ImpactAnalysisResponse + MetaBody: + example: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + properties: + request_id: + nullable: true + type: string + limit: + nullable: true + type: integer + next_cursor: + nullable: true + type: string + extra: + additionalProperties: true + title: Extra + type: object + title: MetaBody + PermissionCreate: + example: + action: action + properties: + action: + title: Action + type: string + required: + - action + title: PermissionCreate + PermissionOut: + example: + action: action + id: 0 + properties: + id: + title: Id + type: integer + action: + title: Action + type: string + required: + - action + - id + title: PermissionOut + PermissionUpdate: + example: + action: action + properties: + action: + title: Action + type: string + required: + - action + title: PermissionUpdate + PlaygroundEvaluateRequest: + example: + input: + resource: + key: "" + context: + key: "" + action: "" + user: + key: "" + policies: + - policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + - policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + properties: + policies: + items: + $ref: "#/components/schemas/PlaygroundPolicy" + title: Policies + type: array + input: + $ref: "#/components/schemas/PlaygroundInput" + required: + - input + - policies + title: PlaygroundEvaluateRequest + PlaygroundInput: + example: + resource: + key: "" + context: + key: "" + action: "" + user: + key: "" + properties: + user: + additionalProperties: true + title: User + type: object + resource: + additionalProperties: true + title: Resource + type: object + action: + default: "" + title: Action + type: string + context: + additionalProperties: true + title: Context + type: object + title: PlaygroundInput + PlaygroundPolicy: + example: + policy_id: policy_id + effect: allow + action: action + priority: 0 + conditions: + key: "" + properties: + action: + title: Action + type: string + effect: + default: allow + title: Effect + type: string + priority: + default: 100 + title: Priority + type: integer + policy_id: + nullable: true + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + title: PlaygroundPolicy + PolicyCreate: + example: + effect: allow + action: action + state: active + priority: 0 + conditions: + key: "" + properties: + action: + title: Action + type: string + effect: + default: allow + title: Effect + type: string + priority: + default: 100 + title: Priority + type: integer + state: + default: active + title: State + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + title: PolicyCreate + PolicyOut: + example: + effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + properties: + id: + title: Id + type: integer + action: + title: Action + type: string + effect: + title: Effect + type: string + priority: + title: Priority + type: integer + state: + default: active + title: State + type: string + conditions: + additionalProperties: true + title: Conditions + type: object + required: + - action + - conditions + - effect + - id + - priority + title: PolicyOut + PolicySimulationInput: + example: + relationship_change: + key: "" + role_change: + key: "" + policy_change: policy_change + properties: + policy_change: + nullable: true + type: string + relationship_change: + additionalProperties: true + nullable: true + type: object + role_change: + additionalProperties: true + nullable: true + type: object + title: PolicySimulationInput + PolicySimulationRequest: + example: + request: + key: "" + simulate: + relationship_change: + key: "" + role_change: + key: "" + policy_change: policy_change + properties: + simulate: + $ref: "#/components/schemas/PolicySimulationInput" + request: + additionalProperties: true + title: Request + type: object + title: PolicySimulationRequest + PolicySimulationResponse: + example: + decision_before: + key: "" + decision_after: + key: "" + properties: + decision_before: + additionalProperties: true + title: Decision Before + type: object + decision_after: + additionalProperties: true + title: Decision After + type: object + required: + - decision_after + - decision_before + title: PolicySimulationResponse + RelationshipCreate: + example: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + object_id: object_id + relation: relation + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + relation: + title: Relation + type: string + object_type: + title: Object Type + type: string + object_id: + title: Object Id + type: string + required: + - object_id + - object_type + - relation + - subject_id + - subject_type + title: RelationshipCreate + RelationshipOut: + example: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + id: 0 + object_id: object_id + relation: relation + properties: + subject_type: + title: Subject Type + type: string + subject_id: + title: Subject Id + type: string + relation: + title: Relation + type: string + object_type: + title: Object Type + type: string + object_id: + title: Object Id + type: string + id: + title: Id + type: integer + required: + - id + - object_id + - object_type + - relation + - subject_id + - subject_type + title: RelationshipOut + RoleCreate: + example: + name: name + properties: + name: + title: Name + type: string + required: + - name + title: RoleCreate + RoleOut: + example: + name: name + id: 0 + properties: + id: + title: Id + type: integer + name: + title: Name + type: string + required: + - id + - name + title: RoleOut + RoleUpdate: + example: + name: name + properties: + name: + title: Name + type: string + required: + - name + title: RoleUpdate + SimulationResponse: + example: + reason: reason + explain_trace: + - key: "" + - key: "" + failed_conditions: + - failed_conditions + - failed_conditions + decision: decision + policy_id: policy_id + matched_policies: + - matched_policies + - matched_policies + revision: 0 + properties: + decision: + title: Decision + type: string + matched_policies: + items: + type: string + title: Matched Policies + type: array + reason: + nullable: true + type: string + policy_id: + nullable: true + type: string + explain_trace: + items: + additionalProperties: true + type: object + title: Explain Trace + type: array + failed_conditions: + items: + type: string + title: Failed Conditions + type: array + revision: + nullable: true + type: integer + required: + - decision + - matched_policies + title: SimulationResponse + SuccessResponse_ACLOut_: + example: + data: + subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/ACLOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[ACLOut]" + SuccessResponse_AccessDecisionResponse_: + example: + data: + reason: reason + explain_trace: + - key: "" + - key: "" + decision: decision + policy_id: policy_id + allowed: true + matched_policies: + - matched_policies + - matched_policies + revision: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AccessDecisionResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AccessDecisionResponse]" + SuccessResponse_AdminLoginResponse_: + example: + data: + access_token: access_token + role: admin + tenant_key: tenant_key + token_type: bearer + expires_in: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AdminLoginResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AdminLoginResponse]" + SuccessResponse_AuthModelOut_: + example: + data: + tenant_id: 6 + schema: schema + compiled: + key: "" + parsed: + key: "" + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/AuthModelOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[AuthModelOut]" + SuccessResponse_BatchAccessResponse_: + example: + data: + results: + - allowed: true + action: action + revision: 0 + - allowed: true + action: action + revision: 0 + revision: 6 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/BatchAccessResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[BatchAccessResponse]" + SuccessResponse_ImpactAnalysisResponse_: + example: + data: + gained_access: + - 0 + - 0 + lost_access: + - 6 + - 6 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/ImpactAnalysisResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[ImpactAnalysisResponse]" + SuccessResponse_PermissionOut_: + example: + data: + action: action + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PermissionOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PermissionOut]" + SuccessResponse_PolicyOut_: + example: + data: + effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PolicyOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PolicyOut]" + SuccessResponse_PolicySimulationResponse_: + example: + data: + decision_before: + key: "" + decision_after: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/PolicySimulationResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[PolicySimulationResponse]" + SuccessResponse_RelationshipOut_: + example: + data: + subject_id: subject_id + subject_type: subject_type + object_type: object_type + id: 0 + object_id: object_id + relation: relation + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/RelationshipOut" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[RelationshipOut]" + SuccessResponse_SimulationResponse_: + example: + data: + reason: reason + explain_trace: + - key: "" + - key: "" + failed_conditions: + - failed_conditions + - failed_conditions + decision: decision + policy_id: policy_id + matched_policies: + - matched_policies + - matched_policies + revision: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + $ref: "#/components/schemas/SimulationResponse" + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[SimulationResponse]" + SuccessResponse_dict_str__Any__: + example: + data: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: true + title: Data + type: object + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, Any]]" + SuccessResponse_dict_str__Union_int__str___: + example: + data: + key: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + $ref: "#/components/schemas/Data_value" + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, Union[int, str]]]" + SuccessResponse_dict_str__int__: + example: + data: + key: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + type: integer + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, int]]" + SuccessResponse_dict_str__object__: + example: + data: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: true + title: Data + type: object + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, object]]" + SuccessResponse_dict_str__str__: + example: + data: + key: data + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + additionalProperties: + type: string + title: Data + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[dict[str, str]]" + SuccessResponse_list_ACLOut__: + example: + data: + - subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + - subject_id: subject_id + tenant_id: 6 + subject_type: subject_type + effect: effect + resource_type: resource_type + resource_id: resource_id + action: action + created_at: 2000-01-23T04:56:07.000+00:00 + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/ACLOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[ACLOut]]" + SuccessResponse_list_AuditRecordOut__: + example: + data: + - reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + - reason: reason + failed_conditions: + - "" + - "" + decision: decision + resource: + key: "" + created_at: 2000-01-23T04:56:07.000+00:00 + principal_id: principal_id + matched_policies: + - "" + - "" + correlation_id: correlation_id + action: action + id: 0 + principal_type: principal_type + user: + key: "" + evaluated_rules: + - "" + - "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/AuditRecordOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[AuditRecordOut]]" + SuccessResponse_list_PermissionOut__: + example: + data: + - action: action + id: 0 + - action: action + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/PermissionOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[PermissionOut]]" + SuccessResponse_list_PolicyOut__: + example: + data: + - effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + - effect: effect + action: action + id: 0 + state: active + priority: 6 + conditions: + key: "" + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/PolicyOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[PolicyOut]]" + SuccessResponse_list_RoleOut__: + example: + data: + - name: name + id: 0 + - name: name + id: 0 + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + $ref: "#/components/schemas/RoleOut" + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[RoleOut]]" + SuccessResponse_list_dict_str__str___: + example: + data: + - key: data + - key: data + meta: + next_cursor: next_cursor + extra: + key: "" + limit: 0 + request_id: request_id + error: "" + properties: + data: + items: + additionalProperties: + type: string + title: Data + type: array + meta: + $ref: "#/components/schemas/MetaBody" + error: + title: Error + required: + - data + title: "SuccessResponse[list[dict[str, str]]]" + ValidationError: + example: + msg: msg + loc: + - Location_inner + - Location_inner + input: "" + ctx: "{}" + type: type + properties: + loc: + items: + $ref: "#/components/schemas/Location_inner" + title: Location + type: array + msg: + title: Message + type: string + type: + title: Error Type + type: string + input: + title: Input + ctx: + title: Context + type: object + required: + - loc + - msg + - type + title: ValidationError + Data_value: + anyOf: + - type: integer + - type: string + Location_inner: + anyOf: + - type: string + - type: integer + securitySchemes: + HTTPBearer: + scheme: bearer + type: http + APIKeyHeader: + in: header + name: X-API-Key + type: apiKey + diff --git a/sdks/java/build.gradle b/sdks/java/build.gradle new file mode 100644 index 0000000..d9ec822 --- /dev/null +++ b/sdks/java/build.gradle @@ -0,0 +1,166 @@ +apply plugin: 'idea' +apply plugin: 'eclipse' +apply plugin: 'java' +apply plugin: 'com.diffplug.spotless' + +group = 'io.keynetra' +version = '0.1.0' + +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.+' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' + classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0' + } +} + +repositories { + mavenCentral() +} +sourceSets { + main.java.srcDirs = ['src/main/java'] +} + +if(hasProperty('target') && target == 'android') { + + apply plugin: 'com.android.library' + apply plugin: 'com.github.dcendents.android-maven' + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.2' + defaultConfig { + minSdkVersion 14 + targetSdkVersion 25 + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + // Rename the aar correctly + libraryVariants.all { variant -> + variant.outputs.each { output -> + def outputFile = output.outputFile + if (outputFile != null && outputFile.name.endsWith('.aar')) { + def fileName = "${project.name}-${variant.baseName}-${version}.aar" + output.outputFile = new File(outputFile.parent, fileName) + } + } + } + + dependencies { + provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + } + } + + afterEvaluate { + android.libraryVariants.all { variant -> + def task = project.tasks.create "jar${variant.name.capitalize()}", Jar + task.description = "Create jar artifact for ${variant.name}" + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDirectory + task.destinationDirectory = project.file("${project.buildDir}/outputs/jar") + task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar" + artifacts.add('archives', task) + } + } + + task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' + } + + artifacts { + archives sourcesJar + } + +} else { + + apply plugin: 'java' + apply plugin: 'maven-publish' + + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + + publishing { + publications { + maven(MavenPublication) { + artifactId = 'keynetra-client' + from components.java + } + } + } + + task execute(type:JavaExec) { + main = System.getProperty('mainClass') + classpath = sourceSets.main.runtimeClasspath + } +} + +ext { + jakarta_annotation_version = "1.3.5" +} + +dependencies { + implementation "com.google.code.findbugs:jsr305:3.0.2" + implementation 'com.squareup.okhttp3:okhttp:4.12.0' + implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' + implementation 'com.google.code.gson:gson:2.9.1' + implementation 'io.gsonfire:gson-fire:1.9.0' + implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' + implementation 'org.openapitools:jackson-databind-nullable:0.2.9' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0' + implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' + testImplementation 'org.mockito:mockito-core:3.12.4' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' +} + +javadoc { + options.tags = [ "http.response.details:a:Http Response Details" ] +} + +// Use spotless plugin to automatically format code, remove unused import, etc +// To apply changes directly to the file, run `gradlew spotlessApply` +// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle +spotless { + // comment out below to run spotless as part of the `check` task + enforceCheck false + + format 'misc', { + // define the files (e.g. '*.gradle', '*.md') to apply `misc` to + target '.gitignore' + + // define the steps to apply to those files + trimTrailingWhitespace() + indentWithSpaces() // Takes an integer argument if you don't like 4 + endWithNewline() + } + java { + // don't need to set target, it is inferred from java + + // apply a specific flavor of google-java-format + googleJavaFormat('1.8').aosp().reflowLongStrings() + + removeUnusedImports() + importOrder() + } +} + +test { + // Enable JUnit 5 (Gradle 4.6+). + useJUnitPlatform() + + // Always run tests, even when nothing changed. + dependsOn 'cleanTest' + + // Show test results. + testLogging { + events "passed", "skipped", "failed" + } + +} diff --git a/sdks/java/build.sbt b/sdks/java/build.sbt new file mode 100644 index 0000000..9eb6e80 --- /dev/null +++ b/sdks/java/build.sbt @@ -0,0 +1,27 @@ +lazy val root = (project in file(".")). + settings( + organization := "io.keynetra", + name := "keynetra-client", + version := "0.1.0", + scalaVersion := "2.11.12", + scalacOptions ++= Seq("-feature"), + compile / javacOptions ++= Seq("-Xlint:deprecation"), + Compile / packageDoc / publishArtifact := false, + resolvers += Resolver.mavenLocal, + libraryDependencies ++= Seq( + "io.swagger" % "swagger-annotations" % "1.6.5", + "com.squareup.okhttp3" % "okhttp" % "4.12.0", + "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", + "com.google.code.gson" % "gson" % "2.9.1", + "org.apache.commons" % "commons-lang3" % "3.18.0", + "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", + "org.openapitools" % "jackson-databind-nullable" % "0.2.9", + "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "org.junit.jupiter" % "junit-jupiter-api" % "5.10.3" % "test", + "com.novocode" % "junit-interface" % "0.10" % "test", + "org.mockito" % "mockito-core" % "3.12.4" % "test" + ) + ) diff --git a/sdks/java/docs/ACLCreate.md b/sdks/java/docs/ACLCreate.md new file mode 100644 index 0000000..2252315 --- /dev/null +++ b/sdks/java/docs/ACLCreate.md @@ -0,0 +1,18 @@ + + +# ACLCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subjectType** | **String** | | | +|**subjectId** | **String** | | | +|**resourceType** | **String** | | | +|**resourceId** | **String** | | | +|**action** | **String** | | | +|**effect** | **String** | | | + + + diff --git a/sdks/java/docs/ACLOut.md b/sdks/java/docs/ACLOut.md new file mode 100644 index 0000000..d85fa01 --- /dev/null +++ b/sdks/java/docs/ACLOut.md @@ -0,0 +1,21 @@ + + +# ACLOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subjectType** | **String** | | | +|**subjectId** | **String** | | | +|**resourceType** | **String** | | | +|**resourceId** | **String** | | | +|**action** | **String** | | | +|**effect** | **String** | | | +|**id** | **Integer** | | | +|**tenantId** | **Integer** | | | +|**createdAt** | **OffsetDateTime** | | [optional] | + + + diff --git a/sdks/java/docs/AccessApi.md b/sdks/java/docs/AccessApi.md new file mode 100644 index 0000000..8aca415 --- /dev/null +++ b/sdks/java/docs/AccessApi.md @@ -0,0 +1,231 @@ +# AccessApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**checkAccessBatchCheckAccessBatchPost**](AccessApi.md#checkAccessBatchCheckAccessBatchPost) | **POST** /check-access-batch | Check Access Batch | +| [**checkAccessCheckAccessPost**](AccessApi.md#checkAccessCheckAccessPost) | **POST** /check-access | Check Access | +| [**simulateSimulatePost**](AccessApi.md#simulateSimulatePost) | **POST** /simulate | Simulate | + + + +# **checkAccessBatchCheckAccessBatchPost** +> SuccessResponseBatchAccessResponse checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) + +Check Access Batch + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.AccessApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + AccessApi apiInstance = new AccessApi(defaultClient); + BatchAccessRequest batchAccessRequest = new BatchAccessRequest(); // BatchAccessRequest | + String policySet = "active"; // String | + try { + SuccessResponseBatchAccessResponse result = apiInstance.checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccessApi#checkAccessBatchCheckAccessBatchPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md)| | | +| **policySet** | **String**| | [optional] [default to active] | + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **checkAccessCheckAccessPost** +> SuccessResponseAccessDecisionResponse checkAccessCheckAccessPost(accessRequest, policySet) + +Check Access + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.AccessApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + AccessApi apiInstance = new AccessApi(defaultClient); + AccessRequest accessRequest = new AccessRequest(); // AccessRequest | + String policySet = "active"; // String | + try { + SuccessResponseAccessDecisionResponse result = apiInstance.checkAccessCheckAccessPost(accessRequest, policySet); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccessApi#checkAccessCheckAccessPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | +| **policySet** | **String**| | [optional] [default to active] | + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **simulateSimulatePost** +> SuccessResponseSimulationResponse simulateSimulatePost(accessRequest) + +Simulate + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.AccessApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + AccessApi apiInstance = new AccessApi(defaultClient); + AccessRequest accessRequest = new AccessRequest(); // AccessRequest | + try { + SuccessResponseSimulationResponse result = apiInstance.simulateSimulatePost(accessRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccessApi#simulateSimulatePost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/sdks/java/docs/AccessDecisionResponse.md b/sdks/java/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..c91dcfd --- /dev/null +++ b/sdks/java/docs/AccessDecisionResponse.md @@ -0,0 +1,19 @@ + + +# AccessDecisionResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowed** | **Boolean** | | | +|**decision** | **String** | | | +|**matchedPolicies** | **List<String>** | | [optional] | +|**reason** | **String** | | [optional] | +|**policyId** | **String** | | [optional] | +|**explainTrace** | **List<Map<String, Object>>** | | [optional] | +|**revision** | **Integer** | | [optional] | + + + diff --git a/sdks/java/docs/AccessRequest.md b/sdks/java/docs/AccessRequest.md new file mode 100644 index 0000000..ec894f3 --- /dev/null +++ b/sdks/java/docs/AccessRequest.md @@ -0,0 +1,19 @@ + + +# AccessRequest + +Explicit authorization request passed through the API boundary. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**user** | **Map<String, Object>** | | [optional] | +|**action** | **String** | | | +|**resource** | **Map<String, Object>** | | [optional] | +|**context** | **Map<String, Object>** | | [optional] | +|**consistency** | **String** | | [optional] | +|**revision** | **Integer** | | [optional] | + + + diff --git a/sdks/java/docs/AdminLoginRequest.md b/sdks/java/docs/AdminLoginRequest.md new file mode 100644 index 0000000..34d38cd --- /dev/null +++ b/sdks/java/docs/AdminLoginRequest.md @@ -0,0 +1,14 @@ + + +# AdminLoginRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**username** | **String** | | | +|**password** | **String** | | | + + + diff --git a/sdks/java/docs/AdminLoginResponse.md b/sdks/java/docs/AdminLoginResponse.md new file mode 100644 index 0000000..77d600d --- /dev/null +++ b/sdks/java/docs/AdminLoginResponse.md @@ -0,0 +1,17 @@ + + +# AdminLoginResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessToken** | **String** | | | +|**tokenType** | **String** | | [optional] | +|**expiresIn** | **Integer** | | | +|**role** | **String** | | [optional] | +|**tenantKey** | **String** | | | + + + diff --git a/sdks/java/docs/AuditRecordOut.md b/sdks/java/docs/AuditRecordOut.md new file mode 100644 index 0000000..8d773e1 --- /dev/null +++ b/sdks/java/docs/AuditRecordOut.md @@ -0,0 +1,25 @@ + + +# AuditRecordOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | | | +|**principalType** | **String** | | | +|**principalId** | **String** | | | +|**correlationId** | **String** | | [optional] | +|**user** | **Map<String, Object>** | | | +|**action** | **String** | | | +|**resource** | **Map<String, Object>** | | | +|**decision** | **String** | | | +|**matchedPolicies** | **List<Object>** | | | +|**reason** | **String** | | [optional] | +|**evaluatedRules** | **List<Object>** | | | +|**failedConditions** | **List<Object>** | | | +|**createdAt** | **OffsetDateTime** | | | + + + diff --git a/sdks/java/docs/AuthApi.md b/sdks/java/docs/AuthApi.md new file mode 100644 index 0000000..3dfe3be --- /dev/null +++ b/sdks/java/docs/AuthApi.md @@ -0,0 +1,132 @@ +# AuthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**adminLoginAdminLoginPost**](AuthApi.md#adminLoginAdminLoginPost) | **POST** /admin/login | Admin Login | +| [**adminLoginAdminLoginPost_0**](AuthApi.md#adminLoginAdminLoginPost_0) | **POST** /admin/login | Admin Login | + + + +# **adminLoginAdminLoginPost** +> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost(adminLoginRequest) + +Admin Login + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.AuthApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + AuthApi apiInstance = new AuthApi(defaultClient); + AdminLoginRequest adminLoginRequest = new AdminLoginRequest(); // AdminLoginRequest | + try { + SuccessResponseAdminLoginResponse result = apiInstance.adminLoginAdminLoginPost(adminLoginRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthApi#adminLoginAdminLoginPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **adminLoginAdminLoginPost_0** +> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost_0(adminLoginRequest) + +Admin Login + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.AuthApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + AuthApi apiInstance = new AuthApi(defaultClient); + AdminLoginRequest adminLoginRequest = new AdminLoginRequest(); // AdminLoginRequest | + try { + SuccessResponseAdminLoginResponse result = apiInstance.adminLoginAdminLoginPost_0(adminLoginRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthApi#adminLoginAdminLoginPost_0"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/sdks/java/docs/AuthModelCreate.md b/sdks/java/docs/AuthModelCreate.md new file mode 100644 index 0000000..1a6ad8f --- /dev/null +++ b/sdks/java/docs/AuthModelCreate.md @@ -0,0 +1,13 @@ + + +# AuthModelCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**schema** | **String** | | | + + + diff --git a/sdks/java/docs/AuthModelOut.md b/sdks/java/docs/AuthModelOut.md new file mode 100644 index 0000000..2796670 --- /dev/null +++ b/sdks/java/docs/AuthModelOut.md @@ -0,0 +1,17 @@ + + +# AuthModelOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | | | +|**tenantId** | **Integer** | | | +|**schema** | **String** | | | +|**parsed** | **Map<String, Object>** | | | +|**compiled** | **Map<String, Object>** | | | + + + diff --git a/sdks/java/docs/BatchAccessItem.md b/sdks/java/docs/BatchAccessItem.md new file mode 100644 index 0000000..ecdd19d --- /dev/null +++ b/sdks/java/docs/BatchAccessItem.md @@ -0,0 +1,14 @@ + + +# BatchAccessItem + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | +|**resource** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/BatchAccessRequest.md b/sdks/java/docs/BatchAccessRequest.md new file mode 100644 index 0000000..ed98a95 --- /dev/null +++ b/sdks/java/docs/BatchAccessRequest.md @@ -0,0 +1,16 @@ + + +# BatchAccessRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**user** | **Map<String, Object>** | | [optional] | +|**items** | [**List<BatchAccessItem>**](BatchAccessItem.md) | | | +|**consistency** | **String** | | [optional] | +|**revision** | **Integer** | | [optional] | + + + diff --git a/sdks/java/docs/BatchAccessResponse.md b/sdks/java/docs/BatchAccessResponse.md new file mode 100644 index 0000000..b386f79 --- /dev/null +++ b/sdks/java/docs/BatchAccessResponse.md @@ -0,0 +1,14 @@ + + +# BatchAccessResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**results** | [**List<BatchAccessResult>**](BatchAccessResult.md) | | | +|**revision** | **Integer** | | [optional] | + + + diff --git a/sdks/java/docs/BatchAccessResult.md b/sdks/java/docs/BatchAccessResult.md new file mode 100644 index 0000000..fe44760 --- /dev/null +++ b/sdks/java/docs/BatchAccessResult.md @@ -0,0 +1,15 @@ + + +# BatchAccessResult + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | +|**allowed** | **Boolean** | | | +|**revision** | **Integer** | | [optional] | + + + diff --git a/sdks/java/docs/DataValue.md b/sdks/java/docs/DataValue.md new file mode 100644 index 0000000..59f42d8 --- /dev/null +++ b/sdks/java/docs/DataValue.md @@ -0,0 +1,12 @@ + + +# DataValue + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/sdks/java/docs/DevApi.md b/sdks/java/docs/DevApi.md new file mode 100644 index 0000000..5c2f86f --- /dev/null +++ b/sdks/java/docs/DevApi.md @@ -0,0 +1,127 @@ +# DevApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getSampleDataDevSampleDataGet**](DevApi.md#getSampleDataDevSampleDataGet) | **GET** /dev/sample-data | Get Sample Data | +| [**seedSampleDataDevSampleDataSeedPost**](DevApi.md#seedSampleDataDevSampleDataSeedPost) | **POST** /dev/sample-data/seed | Seed Sample Data | + + + +# **getSampleDataDevSampleDataGet** +> SuccessResponseDictStrObject getSampleDataDevSampleDataGet() + +Get Sample Data + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.DevApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + DevApi apiInstance = new DevApi(defaultClient); + try { + SuccessResponseDictStrObject result = apiInstance.getSampleDataDevSampleDataGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DevApi#getSampleDataDevSampleDataGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + +# **seedSampleDataDevSampleDataSeedPost** +> SuccessResponseDictStrObject seedSampleDataDevSampleDataSeedPost(reset) + +Seed Sample Data + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.DevApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + DevApi apiInstance = new DevApi(defaultClient); + Boolean reset = false; // Boolean | Clear the sample dataset before reseeding it. + try { + SuccessResponseDictStrObject result = apiInstance.seedSampleDataDevSampleDataSeedPost(reset); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DevApi#seedSampleDataDevSampleDataSeedPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **reset** | **Boolean**| Clear the sample dataset before reseeding it. | [optional] [default to false] | + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/sdks/java/docs/HTTPValidationError.md b/sdks/java/docs/HTTPValidationError.md new file mode 100644 index 0000000..d2d806c --- /dev/null +++ b/sdks/java/docs/HTTPValidationError.md @@ -0,0 +1,13 @@ + + +# HTTPValidationError + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**detail** | [**List<ValidationError>**](ValidationError.md) | | [optional] | + + + diff --git a/sdks/java/docs/HealthApi.md b/sdks/java/docs/HealthApi.md new file mode 100644 index 0000000..829d260 --- /dev/null +++ b/sdks/java/docs/HealthApi.md @@ -0,0 +1,179 @@ +# HealthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**healthHealthGet**](HealthApi.md#healthHealthGet) | **GET** /health | Health | +| [**livenessHealthLiveGet**](HealthApi.md#livenessHealthLiveGet) | **GET** /health/live | Liveness | +| [**readinessHealthReadyGet**](HealthApi.md#readinessHealthReadyGet) | **GET** /health/ready | Readiness | + + + +# **healthHealthGet** +> SuccessResponseDictStrStr healthHealthGet() + +Health + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.HealthApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + HealthApi apiInstance = new HealthApi(defaultClient); + try { + SuccessResponseDictStrStr result = apiInstance.healthHealthGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling HealthApi#healthHealthGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + +# **livenessHealthLiveGet** +> SuccessResponseDictStrStr livenessHealthLiveGet() + +Liveness + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.HealthApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + HealthApi apiInstance = new HealthApi(defaultClient); + try { + SuccessResponseDictStrStr result = apiInstance.livenessHealthLiveGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling HealthApi#livenessHealthLiveGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + +# **readinessHealthReadyGet** +> SuccessResponseDictStrObject readinessHealthReadyGet() + +Readiness + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.models.*; +import io.keynetra.client.api.HealthApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + HealthApi apiInstance = new HealthApi(defaultClient); + try { + SuccessResponseDictStrObject result = apiInstance.readinessHealthReadyGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling HealthApi#readinessHealthReadyGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + diff --git a/sdks/java/docs/ImpactAnalysisRequest.md b/sdks/java/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..6f4688d --- /dev/null +++ b/sdks/java/docs/ImpactAnalysisRequest.md @@ -0,0 +1,13 @@ + + +# ImpactAnalysisRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**policyChange** | **String** | | | + + + diff --git a/sdks/java/docs/ImpactAnalysisResponse.md b/sdks/java/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..51ed84b --- /dev/null +++ b/sdks/java/docs/ImpactAnalysisResponse.md @@ -0,0 +1,14 @@ + + +# ImpactAnalysisResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**gainedAccess** | **List<Integer>** | | [optional] | +|**lostAccess** | **List<Integer>** | | [optional] | + + + diff --git a/sdks/java/docs/LocationInner.md b/sdks/java/docs/LocationInner.md new file mode 100644 index 0000000..c1e1d16 --- /dev/null +++ b/sdks/java/docs/LocationInner.md @@ -0,0 +1,12 @@ + + +# LocationInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/sdks/java/docs/ManagementApi.md b/sdks/java/docs/ManagementApi.md new file mode 100644 index 0000000..5988823 --- /dev/null +++ b/sdks/java/docs/ManagementApi.md @@ -0,0 +1,2085 @@ +# ManagementApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| [**createAclEntryAclPost**](ManagementApi.md#createAclEntryAclPost) | **POST** /acl | Create Acl Entry | +| [**createAuthModelAuthModelPost**](ManagementApi.md#createAuthModelAuthModelPost) | **POST** /auth-model | Create Auth Model | +| [**createPermissionPermissionsPost**](ManagementApi.md#createPermissionPermissionsPost) | **POST** /permissions | Create Permission | +| [**createPolicyFromDslPoliciesDslPost**](ManagementApi.md#createPolicyFromDslPoliciesDslPost) | **POST** /policies/dsl | Create Policy From Dsl | +| [**createPolicyPoliciesPost**](ManagementApi.md#createPolicyPoliciesPost) | **POST** /policies | Create Policy | +| [**createRelationshipRelationshipsPost**](ManagementApi.md#createRelationshipRelationshipsPost) | **POST** /relationships | Create Relationship | +| [**createRoleRolesPost**](ManagementApi.md#createRoleRolesPost) | **POST** /roles | Create Role | +| [**deleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteAclEntryAclAclIdDelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| [**deletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletePermissionPermissionsPermissionIdDelete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| [**deletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletePolicyPoliciesPolicyKeyDelete) | **DELETE** /policies/{policy_key} | Delete Policy | +| [**deleteRoleRolesRoleIdDelete**](ManagementApi.md#deleteRoleRolesRoleIdDelete) | **DELETE** /roles/{role_id} | Delete Role | +| [**getAuthModelAuthModelGet**](ManagementApi.md#getAuthModelAuthModelGet) | **GET** /auth-model | Get Auth Model | +| [**impactAnalysisImpactAnalysisPost**](ManagementApi.md#impactAnalysisImpactAnalysisPost) | **POST** /impact-analysis | Impact Analysis | +| [**listAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listAclEntriesAclResourceTypeResourceIdGet) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| [**listAuditLogsAuditGet**](ManagementApi.md#listAuditLogsAuditGet) | **GET** /audit | List Audit Logs | +| [**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listPermissionRolesPermissionsPermissionIdRolesGet) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| [**listPermissionsPermissionsGet**](ManagementApi.md#listPermissionsPermissionsGet) | **GET** /permissions | List Permissions | +| [**listPoliciesPoliciesGet**](ManagementApi.md#listPoliciesPoliciesGet) | **GET** /policies | List Policies | +| [**listRelationshipsRelationshipsGet**](ManagementApi.md#listRelationshipsRelationshipsGet) | **GET** /relationships | List Relationships | +| [**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listRolePermissionsRolesRoleIdPermissionsGet) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| [**listRolesRolesGet**](ManagementApi.md#listRolesRolesGet) | **GET** /roles | List Roles | +| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| [**simulatePolicySimulatePolicyPost**](ManagementApi.md#simulatePolicySimulatePolicyPost) | **POST** /simulate-policy | Simulate Policy | +| [**updatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatePermissionPermissionsPermissionIdPut) | **PUT** /permissions/{permission_id} | Update Permission | +| [**updatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatePolicyPoliciesPolicyKeyPut) | **PUT** /policies/{policy_key} | Update Policy | +| [**updateRoleRolesRoleIdPut**](ManagementApi.md#updateRoleRolesRoleIdPut) | **PUT** /roles/{role_id} | Update Role | + + + +# **addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** +> SuccessResponsePermissionOut addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) + +Add Permission To Role + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer roleId = 56; // Integer | + Integer permissionId = 56; // Integer | + try { + SuccessResponsePermissionOut result = apiInstance.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | **Integer**| | | +| **permissionId** | **Integer**| | | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createAclEntryAclPost** +> SuccessResponseACLOut createAclEntryAclPost(acLCreate) + +Create Acl Entry + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + ACLCreate acLCreate = new ACLCreate(); // ACLCreate | + try { + SuccessResponseACLOut result = apiInstance.createAclEntryAclPost(acLCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createAclEntryAclPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **acLCreate** | [**ACLCreate**](ACLCreate.md)| | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createAuthModelAuthModelPost** +> SuccessResponseAuthModelOut createAuthModelAuthModelPost(authModelCreate) + +Create Auth Model + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + AuthModelCreate authModelCreate = new AuthModelCreate(); // AuthModelCreate | + try { + SuccessResponseAuthModelOut result = apiInstance.createAuthModelAuthModelPost(authModelCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createAuthModelAuthModelPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md)| | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createPermissionPermissionsPost** +> PermissionOut createPermissionPermissionsPost(permissionCreate) + +Create Permission + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + PermissionCreate permissionCreate = new PermissionCreate(); // PermissionCreate | + try { + PermissionOut result = apiInstance.createPermissionPermissionsPost(permissionCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createPermissionPermissionsPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionCreate** | [**PermissionCreate**](PermissionCreate.md)| | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createPolicyFromDslPoliciesDslPost** +> SuccessResponsePolicyOut createPolicyFromDslPoliciesDslPost(dsl) + +Create Policy From Dsl + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String dsl = "dsl_example"; // String | + try { + SuccessResponsePolicyOut result = apiInstance.createPolicyFromDslPoliciesDslPost(dsl); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createPolicyFromDslPoliciesDslPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dsl** | **String**| | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createPolicyPoliciesPost** +> SuccessResponsePolicyOut createPolicyPoliciesPost(policyCreate) + +Create Policy + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + PolicyCreate policyCreate = new PolicyCreate(); // PolicyCreate | + try { + SuccessResponsePolicyOut result = apiInstance.createPolicyPoliciesPost(policyCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createPolicyPoliciesPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createRelationshipRelationshipsPost** +> SuccessResponseRelationshipOut createRelationshipRelationshipsPost(relationshipCreate) + +Create Relationship + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + RelationshipCreate relationshipCreate = new RelationshipCreate(); // RelationshipCreate | + try { + SuccessResponseRelationshipOut result = apiInstance.createRelationshipRelationshipsPost(relationshipCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createRelationshipRelationshipsPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md)| | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **createRoleRolesPost** +> RoleOut createRoleRolesPost(roleCreate) + +Create Role + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + RoleCreate roleCreate = new RoleCreate(); // RoleCreate | + try { + RoleOut result = apiInstance.createRoleRolesPost(roleCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createRoleRolesPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleCreate** | [**RoleCreate**](RoleCreate.md)| | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + + +# **deleteAclEntryAclAclIdDelete** +> SuccessResponseDictStrInt deleteAclEntryAclAclIdDelete(aclId) + +Delete Acl Entry + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer aclId = 56; // Integer | + try { + SuccessResponseDictStrInt result = apiInstance.deleteAclEntryAclAclIdDelete(aclId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteAclEntryAclAclIdDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **aclId** | **Integer**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **deletePermissionPermissionsPermissionIdDelete** +> SuccessResponseDictStrInt deletePermissionPermissionsPermissionIdDelete(permissionId) + +Delete Permission + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer permissionId = 56; // Integer | + try { + SuccessResponseDictStrInt result = apiInstance.deletePermissionPermissionsPermissionIdDelete(permissionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deletePermissionPermissionsPermissionIdDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionId** | **Integer**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **deletePolicyPoliciesPolicyKeyDelete** +> SuccessResponseDictStrStr deletePolicyPoliciesPolicyKeyDelete(policyKey) + +Delete Policy + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String policyKey = "policyKey_example"; // String | + try { + SuccessResponseDictStrStr result = apiInstance.deletePolicyPoliciesPolicyKeyDelete(policyKey); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deletePolicyPoliciesPolicyKeyDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyKey** | **String**| | | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **deleteRoleRolesRoleIdDelete** +> SuccessResponseDictStrInt deleteRoleRolesRoleIdDelete(roleId) + +Delete Role + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer roleId = 56; // Integer | + try { + SuccessResponseDictStrInt result = apiInstance.deleteRoleRolesRoleIdDelete(roleId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteRoleRolesRoleIdDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | **Integer**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **getAuthModelAuthModelGet** +> SuccessResponseAuthModelOut getAuthModelAuthModelGet() + +Get Auth Model + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + try { + SuccessResponseAuthModelOut result = apiInstance.getAuthModelAuthModelGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#getAuthModelAuthModelGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + +# **impactAnalysisImpactAnalysisPost** +> SuccessResponseImpactAnalysisResponse impactAnalysisImpactAnalysisPost(impactAnalysisRequest) + +Impact Analysis + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + ImpactAnalysisRequest impactAnalysisRequest = new ImpactAnalysisRequest(); // ImpactAnalysisRequest | + try { + SuccessResponseImpactAnalysisResponse result = apiInstance.impactAnalysisImpactAnalysisPost(impactAnalysisRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#impactAnalysisImpactAnalysisPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md)| | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listAclEntriesAclResourceTypeResourceIdGet** +> SuccessResponseListACLOut listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) + +List Acl Entries + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String resourceType = "resourceType_example"; // String | + String resourceId = "resourceId_example"; // String | + try { + SuccessResponseListACLOut result = apiInstance.listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listAclEntriesAclResourceTypeResourceIdGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **resourceType** | **String**| | | +| **resourceId** | **String**| | | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listAuditLogsAuditGet** +> SuccessResponseListAuditRecordOut listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) + +List Audit Logs + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer limit = 50; // Integer | + String cursor = "cursor_example"; // String | + String userId = "userId_example"; // String | + String resourceId = "resourceId_example"; // String | + String decision = "decision_example"; // String | + OffsetDateTime startTime = OffsetDateTime.now(); // OffsetDateTime | + OffsetDateTime endTime = OffsetDateTime.now(); // OffsetDateTime | + try { + SuccessResponseListAuditRecordOut result = apiInstance.listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listAuditLogsAuditGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| | [optional] [default to 50] | +| **cursor** | **String**| | [optional] | +| **userId** | **String**| | [optional] | +| **resourceId** | **String**| | [optional] | +| **decision** | **String**| | [optional] | +| **startTime** | **OffsetDateTime**| | [optional] | +| **endTime** | **OffsetDateTime**| | [optional] | + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listPermissionRolesPermissionsPermissionIdRolesGet** +> SuccessResponseListRoleOut listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) + +List Permission Roles + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer permissionId = 56; // Integer | + try { + SuccessResponseListRoleOut result = apiInstance.listPermissionRolesPermissionsPermissionIdRolesGet(permissionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listPermissionRolesPermissionsPermissionIdRolesGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionId** | **Integer**| | | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listPermissionsPermissionsGet** +> SuccessResponseListPermissionOut listPermissionsPermissionsGet(limit, cursor) + +List Permissions + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer limit = 50; // Integer | + String cursor = "cursor_example"; // String | + try { + SuccessResponseListPermissionOut result = apiInstance.listPermissionsPermissionsGet(limit, cursor); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listPermissionsPermissionsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| | [optional] [default to 50] | +| **cursor** | **String**| | [optional] | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listPoliciesPoliciesGet** +> SuccessResponseListPolicyOut listPoliciesPoliciesGet(limit, cursor) + +List Policies + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer limit = 50; // Integer | + String cursor = "cursor_example"; // String | + try { + SuccessResponseListPolicyOut result = apiInstance.listPoliciesPoliciesGet(limit, cursor); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listPoliciesPoliciesGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| | [optional] [default to 50] | +| **cursor** | **String**| | [optional] | + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listRelationshipsRelationshipsGet** +> SuccessResponseListDictStrStr listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) + +List Relationships + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String subjectType = "subjectType_example"; // String | + String subjectId = "subjectId_example"; // String | + Integer limit = 50; // Integer | + String cursor = "cursor_example"; // String | + try { + SuccessResponseListDictStrStr result = apiInstance.listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listRelationshipsRelationshipsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **subjectType** | **String**| | | +| **subjectId** | **String**| | | +| **limit** | **Integer**| | [optional] [default to 50] | +| **cursor** | **String**| | [optional] | + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listRolePermissionsRolesRoleIdPermissionsGet** +> SuccessResponseListPermissionOut listRolePermissionsRolesRoleIdPermissionsGet(roleId) + +List Role Permissions + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer roleId = 56; // Integer | + try { + SuccessResponseListPermissionOut result = apiInstance.listRolePermissionsRolesRoleIdPermissionsGet(roleId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listRolePermissionsRolesRoleIdPermissionsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | **Integer**| | | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **listRolesRolesGet** +> SuccessResponseListRoleOut listRolesRolesGet(limit, cursor) + +List Roles + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer limit = 50; // Integer | + String cursor = "cursor_example"; // String | + try { + SuccessResponseListRoleOut result = apiInstance.listRolesRolesGet(limit, cursor); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listRolesRolesGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| | [optional] [default to 50] | +| **cursor** | **String**| | [optional] | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** +> SuccessResponseDictStrInt removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) + +Remove Permission From Role + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer roleId = 56; // Integer | + Integer permissionId = 56; // Integer | + try { + SuccessResponseDictStrInt result = apiInstance.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | **Integer**| | | +| **permissionId** | **Integer**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **rollbackPolicyPoliciesPolicyKeyRollbackVersionPost** +> SuccessResponseDictStrUnionIntStr rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) + +Rollback Policy + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String policyKey = "policyKey_example"; // String | + Integer version = 56; // Integer | + try { + SuccessResponseDictStrUnionIntStr result = apiInstance.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyKey** | **String**| | | +| **version** | **Integer**| | | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **simulatePolicySimulatePolicyPost** +> SuccessResponsePolicySimulationResponse simulatePolicySimulatePolicyPost(policySimulationRequest) + +Simulate Policy + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + PolicySimulationRequest policySimulationRequest = new PolicySimulationRequest(); // PolicySimulationRequest | + try { + SuccessResponsePolicySimulationResponse result = apiInstance.simulatePolicySimulatePolicyPost(policySimulationRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#simulatePolicySimulatePolicyPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md)| | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **updatePermissionPermissionsPermissionIdPut** +> PermissionOut updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) + +Update Permission + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer permissionId = 56; // Integer | + PermissionUpdate permissionUpdate = new PermissionUpdate(); // PermissionUpdate | + try { + PermissionOut result = apiInstance.updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#updatePermissionPermissionsPermissionIdPut"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionId** | **Integer**| | | +| **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md)| | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **updatePolicyPoliciesPolicyKeyPut** +> SuccessResponsePolicyOut updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) + +Update Policy + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String policyKey = "policyKey_example"; // String | + PolicyCreate policyCreate = new PolicyCreate(); // PolicyCreate | + try { + SuccessResponsePolicyOut result = apiInstance.updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#updatePolicyPoliciesPolicyKeyPut"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyKey** | **String**| | | +| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **updateRoleRolesRoleIdPut** +> RoleOut updateRoleRolesRoleIdPut(roleId, roleUpdate) + +Update Role + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer roleId = 56; // Integer | + RoleUpdate roleUpdate = new RoleUpdate(); // RoleUpdate | + try { + RoleOut result = apiInstance.updateRoleRolesRoleIdPut(roleId, roleUpdate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#updateRoleRolesRoleIdPut"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | **Integer**| | | +| **roleUpdate** | [**RoleUpdate**](RoleUpdate.md)| | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/sdks/java/docs/MetaBody.md b/sdks/java/docs/MetaBody.md new file mode 100644 index 0000000..0e3f817 --- /dev/null +++ b/sdks/java/docs/MetaBody.md @@ -0,0 +1,16 @@ + + +# MetaBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestId** | **String** | | [optional] | +|**limit** | **Integer** | | [optional] | +|**nextCursor** | **String** | | [optional] | +|**extra** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/PermissionCreate.md b/sdks/java/docs/PermissionCreate.md new file mode 100644 index 0000000..fdeef2f --- /dev/null +++ b/sdks/java/docs/PermissionCreate.md @@ -0,0 +1,13 @@ + + +# PermissionCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | + + + diff --git a/sdks/java/docs/PermissionOut.md b/sdks/java/docs/PermissionOut.md new file mode 100644 index 0000000..7b7ead0 --- /dev/null +++ b/sdks/java/docs/PermissionOut.md @@ -0,0 +1,14 @@ + + +# PermissionOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | | | +|**action** | **String** | | | + + + diff --git a/sdks/java/docs/PermissionUpdate.md b/sdks/java/docs/PermissionUpdate.md new file mode 100644 index 0000000..cccf0ad --- /dev/null +++ b/sdks/java/docs/PermissionUpdate.md @@ -0,0 +1,13 @@ + + +# PermissionUpdate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | + + + diff --git a/sdks/java/docs/PlaygroundApi.md b/sdks/java/docs/PlaygroundApi.md new file mode 100644 index 0000000..469a603 --- /dev/null +++ b/sdks/java/docs/PlaygroundApi.md @@ -0,0 +1,81 @@ +# PlaygroundApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**evaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluatePlaygroundEvaluatePost) | **POST** /playground/evaluate | Evaluate | + + + +# **evaluatePlaygroundEvaluatePost** +> SuccessResponseDictStrAny evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) + +Evaluate + +### Example +```java +// Import classes: +import io.keynetra.client.ApiClient; +import io.keynetra.client.ApiException; +import io.keynetra.client.Configuration; +import io.keynetra.client.auth.*; +import io.keynetra.client.models.*; +import io.keynetra.client.api.PlaygroundApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: APIKeyHeader + ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); + APIKeyHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKeyHeader.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: HTTPBearer + HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); + HTTPBearer.setBearerToken("BEARER TOKEN"); + + PlaygroundApi apiInstance = new PlaygroundApi(defaultClient); + PlaygroundEvaluateRequest playgroundEvaluateRequest = new PlaygroundEvaluateRequest(); // PlaygroundEvaluateRequest | + try { + SuccessResponseDictStrAny result = apiInstance.evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PlaygroundApi#evaluatePlaygroundEvaluatePost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md)| | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/sdks/java/docs/PlaygroundEvaluateRequest.md b/sdks/java/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..23e524e --- /dev/null +++ b/sdks/java/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,14 @@ + + +# PlaygroundEvaluateRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**policies** | [**List<PlaygroundPolicy>**](PlaygroundPolicy.md) | | | +|**input** | [**PlaygroundInput**](PlaygroundInput.md) | | | + + + diff --git a/sdks/java/docs/PlaygroundInput.md b/sdks/java/docs/PlaygroundInput.md new file mode 100644 index 0000000..212aec7 --- /dev/null +++ b/sdks/java/docs/PlaygroundInput.md @@ -0,0 +1,16 @@ + + +# PlaygroundInput + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**user** | **Map<String, Object>** | | [optional] | +|**resource** | **Map<String, Object>** | | [optional] | +|**action** | **String** | | [optional] | +|**context** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/PlaygroundPolicy.md b/sdks/java/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..34e1277 --- /dev/null +++ b/sdks/java/docs/PlaygroundPolicy.md @@ -0,0 +1,17 @@ + + +# PlaygroundPolicy + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | +|**effect** | **String** | | [optional] | +|**priority** | **Integer** | | [optional] | +|**policyId** | **String** | | [optional] | +|**conditions** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/PolicyCreate.md b/sdks/java/docs/PolicyCreate.md new file mode 100644 index 0000000..92d81ec --- /dev/null +++ b/sdks/java/docs/PolicyCreate.md @@ -0,0 +1,17 @@ + + +# PolicyCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | +|**effect** | **String** | | [optional] | +|**priority** | **Integer** | | [optional] | +|**state** | **String** | | [optional] | +|**conditions** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/PolicyOut.md b/sdks/java/docs/PolicyOut.md new file mode 100644 index 0000000..343e38f --- /dev/null +++ b/sdks/java/docs/PolicyOut.md @@ -0,0 +1,18 @@ + + +# PolicyOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | | | +|**action** | **String** | | | +|**effect** | **String** | | | +|**priority** | **Integer** | | | +|**state** | **String** | | [optional] | +|**conditions** | **Map<String, Object>** | | | + + + diff --git a/sdks/java/docs/PolicySimulationInput.md b/sdks/java/docs/PolicySimulationInput.md new file mode 100644 index 0000000..8f7d6af --- /dev/null +++ b/sdks/java/docs/PolicySimulationInput.md @@ -0,0 +1,15 @@ + + +# PolicySimulationInput + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**policyChange** | **String** | | [optional] | +|**relationshipChange** | **Map<String, Object>** | | [optional] | +|**roleChange** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/PolicySimulationRequest.md b/sdks/java/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..a3b74f7 --- /dev/null +++ b/sdks/java/docs/PolicySimulationRequest.md @@ -0,0 +1,14 @@ + + +# PolicySimulationRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] | +|**request** | **Map<String, Object>** | | [optional] | + + + diff --git a/sdks/java/docs/PolicySimulationResponse.md b/sdks/java/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..fcf863b --- /dev/null +++ b/sdks/java/docs/PolicySimulationResponse.md @@ -0,0 +1,14 @@ + + +# PolicySimulationResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**decisionBefore** | **Map<String, Object>** | | | +|**decisionAfter** | **Map<String, Object>** | | | + + + diff --git a/sdks/java/docs/RelationshipCreate.md b/sdks/java/docs/RelationshipCreate.md new file mode 100644 index 0000000..f60e1cc --- /dev/null +++ b/sdks/java/docs/RelationshipCreate.md @@ -0,0 +1,17 @@ + + +# RelationshipCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subjectType** | **String** | | | +|**subjectId** | **String** | | | +|**relation** | **String** | | | +|**objectType** | **String** | | | +|**objectId** | **String** | | | + + + diff --git a/sdks/java/docs/RelationshipOut.md b/sdks/java/docs/RelationshipOut.md new file mode 100644 index 0000000..f0f4bd5 --- /dev/null +++ b/sdks/java/docs/RelationshipOut.md @@ -0,0 +1,18 @@ + + +# RelationshipOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subjectType** | **String** | | | +|**subjectId** | **String** | | | +|**relation** | **String** | | | +|**objectType** | **String** | | | +|**objectId** | **String** | | | +|**id** | **Integer** | | | + + + diff --git a/sdks/java/docs/RoleCreate.md b/sdks/java/docs/RoleCreate.md new file mode 100644 index 0000000..2b64d31 --- /dev/null +++ b/sdks/java/docs/RoleCreate.md @@ -0,0 +1,13 @@ + + +# RoleCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | | + + + diff --git a/sdks/java/docs/RoleOut.md b/sdks/java/docs/RoleOut.md new file mode 100644 index 0000000..06e09d7 --- /dev/null +++ b/sdks/java/docs/RoleOut.md @@ -0,0 +1,14 @@ + + +# RoleOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | | | +|**name** | **String** | | | + + + diff --git a/sdks/java/docs/RoleUpdate.md b/sdks/java/docs/RoleUpdate.md new file mode 100644 index 0000000..08d067b --- /dev/null +++ b/sdks/java/docs/RoleUpdate.md @@ -0,0 +1,13 @@ + + +# RoleUpdate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | | + + + diff --git a/sdks/java/docs/SimulationResponse.md b/sdks/java/docs/SimulationResponse.md new file mode 100644 index 0000000..68b727c --- /dev/null +++ b/sdks/java/docs/SimulationResponse.md @@ -0,0 +1,19 @@ + + +# SimulationResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**decision** | **String** | | | +|**matchedPolicies** | **List<String>** | | | +|**reason** | **String** | | [optional] | +|**policyId** | **String** | | [optional] | +|**explainTrace** | **List<Map<String, Object>>** | | [optional] | +|**failedConditions** | **List<String>** | | [optional] | +|**revision** | **Integer** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseACLOut.md b/sdks/java/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..2fe228d --- /dev/null +++ b/sdks/java/docs/SuccessResponseACLOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseACLOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ACLOut**](ACLOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseAccessDecisionResponse.md b/sdks/java/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..55685b4 --- /dev/null +++ b/sdks/java/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,15 @@ + + +# SuccessResponseAccessDecisionResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseAdminLoginResponse.md b/sdks/java/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..c172463 --- /dev/null +++ b/sdks/java/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,15 @@ + + +# SuccessResponseAdminLoginResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseAuthModelOut.md b/sdks/java/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..a357062 --- /dev/null +++ b/sdks/java/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseAuthModelOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**AuthModelOut**](AuthModelOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseBatchAccessResponse.md b/sdks/java/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..58be0a6 --- /dev/null +++ b/sdks/java/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,15 @@ + + +# SuccessResponseBatchAccessResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseDictStrAny.md b/sdks/java/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..0d94359 --- /dev/null +++ b/sdks/java/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,15 @@ + + +# SuccessResponseDictStrAny + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **Map<String, Object>** | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseDictStrInt.md b/sdks/java/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..b061f36 --- /dev/null +++ b/sdks/java/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,15 @@ + + +# SuccessResponseDictStrInt + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **Map<String, Integer>** | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseDictStrObject.md b/sdks/java/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..e73f0dd --- /dev/null +++ b/sdks/java/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,15 @@ + + +# SuccessResponseDictStrObject + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **Map<String, Object>** | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseDictStrStr.md b/sdks/java/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..e862e77 --- /dev/null +++ b/sdks/java/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,15 @@ + + +# SuccessResponseDictStrStr + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **Map<String, String>** | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..e8905e7 --- /dev/null +++ b/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,15 @@ + + +# SuccessResponseDictStrUnionIntStr + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Map<String, DataValue>**](DataValue.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..ece4d9e --- /dev/null +++ b/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,15 @@ + + +# SuccessResponseImpactAnalysisResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseListACLOut.md b/sdks/java/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..fb3705e --- /dev/null +++ b/sdks/java/docs/SuccessResponseListACLOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseListACLOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<ACLOut>**](ACLOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseListAuditRecordOut.md b/sdks/java/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..59703d3 --- /dev/null +++ b/sdks/java/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseListAuditRecordOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AuditRecordOut>**](AuditRecordOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseListDictStrStr.md b/sdks/java/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..c5173f7 --- /dev/null +++ b/sdks/java/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,15 @@ + + +# SuccessResponseListDictStrStr + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **List<Map<String, String>>** | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseListPermissionOut.md b/sdks/java/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..ea569ed --- /dev/null +++ b/sdks/java/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseListPermissionOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PermissionOut>**](PermissionOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseListPolicyOut.md b/sdks/java/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..e29e5ef --- /dev/null +++ b/sdks/java/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseListPolicyOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PolicyOut>**](PolicyOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseListRoleOut.md b/sdks/java/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..58b7d58 --- /dev/null +++ b/sdks/java/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseListRoleOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RoleOut>**](RoleOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponsePermissionOut.md b/sdks/java/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..717b22a --- /dev/null +++ b/sdks/java/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponsePermissionOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PermissionOut**](PermissionOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponsePolicyOut.md b/sdks/java/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..8a018df --- /dev/null +++ b/sdks/java/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponsePolicyOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PolicyOut**](PolicyOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponsePolicySimulationResponse.md b/sdks/java/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..cbf8f65 --- /dev/null +++ b/sdks/java/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,15 @@ + + +# SuccessResponsePolicySimulationResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseRelationshipOut.md b/sdks/java/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..7741d06 --- /dev/null +++ b/sdks/java/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,15 @@ + + +# SuccessResponseRelationshipOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RelationshipOut**](RelationshipOut.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/SuccessResponseSimulationResponse.md b/sdks/java/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..5bc43d9 --- /dev/null +++ b/sdks/java/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,15 @@ + + +# SuccessResponseSimulationResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SimulationResponse**](SimulationResponse.md) | | | +|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | +|**error** | **ModelNull** | | [optional] | + + + diff --git a/sdks/java/docs/ValidationError.md b/sdks/java/docs/ValidationError.md new file mode 100644 index 0000000..c8f7c74 --- /dev/null +++ b/sdks/java/docs/ValidationError.md @@ -0,0 +1,17 @@ + + +# ValidationError + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**loc** | [**List<LocationInner>**](LocationInner.md) | | | +|**msg** | **String** | | | +|**type** | **String** | | | +|**input** | **Object** | | [optional] | +|**ctx** | **Object** | | [optional] | + + + diff --git a/sdks/java/git_push.sh b/sdks/java/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/java/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/java/gradle.properties b/sdks/java/gradle.properties new file mode 100644 index 0000000..a340857 --- /dev/null +++ b/sdks/java/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/sdks/java/gradle/wrapper/gradle-wrapper.jar b/sdks/java/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..e6441136f3d4ba8a0da8d277868979cfbc8ad796 GIT binary patch literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vSTxF-Vi3+ZOI=Thq2} zyQgjYY1_7^ZQHh{?P))4+qUiQJLi1&{yE>h?~jU%tjdV0h|FENbM3X(KnJdPKc?~k zh=^Ixv*+smUll!DTWH!jrV*wSh*(mx0o6}1@JExzF(#9FXgmTXVoU+>kDe68N)dkQ zH#_98Zv$}lQwjKL@yBd;U(UD0UCl322=pav<=6g>03{O_3oKTq;9bLFX1ia*lw;#K zOiYDcBJf)82->83N_Y(J7Kr_3lE)hAu;)Q(nUVydv+l+nQ$?|%MWTy`t>{havFSQloHwiIkGK9YZ79^9?AZo0ZyQlVR#}lF%dn5n%xYksXf8gnBm=wO7g_^! zauQ-bH1Dc@3ItZ-9D_*pH}p!IG7j8A_o94#~>$LR|TFq zZ-b00*nuw|-5C2lJDCw&8p5N~Z1J&TrcyErds&!l3$eSz%`(*izc;-?HAFD9AHb-| z>)id`QCrzRws^9(#&=pIx9OEf2rmlob8sK&xPCWS+nD~qzU|qG6KwA{zbikcfQrdH z+ zQg>O<`K4L8rN7`GJB0*3<3`z({lWe#K!4AZLsI{%z#ja^OpfjU{!{)x0ZH~RB0W5X zTwN^w=|nA!4PEU2=LR05x~}|B&ZP?#pNgDMwD*ajI6oJqv!L81gu=KpqH22avXf0w zX3HjbCI!n9>l046)5rr5&v5ja!xkKK42zmqHzPx$9Nn_MZk`gLeSLgC=LFf;H1O#B zn=8|^1iRrujHfbgA+8i<9jaXc;CQBAmQvMGQPhFec2H1knCK2x!T`e6soyrqCamX% zTQ4dX_E*8so)E*TB$*io{$c6X)~{aWfaqdTh=xEeGvOAN9H&-t5tEE-qso<+C!2>+ zskX51H-H}#X{A75wqFe-J{?o8Bx|>fTBtl&tcbdR|132Ztqu5X0i-pisB-z8n71%q%>EF}yy5?z=Ve`}hVh{Drv1YWL zW=%ug_&chF11gDv3D6B)Tz5g54H0mDHNjuKZ+)CKFk4Z|$RD zfRuKLW`1B>B?*RUfVd0+u8h3r-{@fZ{k)c!93t1b0+Q9vOaRnEn1*IL>5Z4E4dZ!7 ztp4GP-^1d>8~LMeb}bW!(aAnB1tM_*la=Xx)q(I0Y@__Zd$!KYb8T2VBRw%e$iSdZ zkwdMwd}eV9q*;YvrBFTv1>1+}{H!JK2M*C|TNe$ZSA>UHKk);wz$(F$rXVc|sI^lD zV^?_J!3cLM;GJuBMbftbaRUs$;F}HDEDtIeHQ)^EJJ1F9FKJTGH<(Jj`phE6OuvE) zqK^K`;3S{Y#1M@8yRQwH`?kHMq4tHX#rJ>5lY3DM#o@or4&^_xtBC(|JpGTfrbGkA z2Tu+AyT^pHannww!4^!$5?@5v`LYy~T`qs7SYt$JgrY(w%C+IWA;ZkwEF)u5sDvOK zGk;G>Mh&elvXDcV69J_h02l&O;!{$({fng9Rlc3ID#tmB^FIG^w{HLUpF+iB`|
NnX)EH+Nua)3Y(c z&{(nX_ht=QbJ%DzAya}!&uNu!4V0xI)QE$SY__m)SAKcN0P(&JcoK*Lxr@P zY&P=}&B3*UWNlc|&$Oh{BEqwK2+N2U$4WB7Fd|aIal`FGANUa9E-O)!gV`((ZGCc$ zBJA|FFrlg~9OBp#f7aHodCe{6= zay$6vN~zj1ddMZ9gQ4p32(7wD?(dE>KA2;SOzXRmPBiBc6g`eOsy+pVcHu=;Yd8@{ zSGgXf@%sKKQz~;!J;|2fC@emm#^_rnO0esEn^QxXgJYd`#FPWOUU5b;9eMAF zZhfiZb|gk8aJIw*YLp4!*(=3l8Cp{(%p?ho22*vN9+5NLV0TTazNY$B5L6UKUrd$n zjbX%#m7&F#U?QNOBXkiiWB*_tk+H?N3`vg;1F-I+83{M2!8<^nydGr5XX}tC!10&e z7D36bLaB56WrjL&HiiMVtpff|K%|*{t*ltt^5ood{FOG0<>k&1h95qPio)2`eL${YAGIx(b4VN*~nKn6E~SIQUuRH zQ+5zP6jfnP$S0iJ@~t!Ai3o`X7biohli;E zT#yXyl{bojG@-TGZzpdVDXhbmF%F9+-^YSIv|MT1l3j zrxOFq>gd2%U}?6}8mIj?M zc077Zc9fq(-)4+gXv?Az26IO6eV`RAJz8e3)SC7~>%rlzDwySVx*q$ygTR5kW2ds- z!HBgcq0KON9*8Ff$X0wOq$`T7ml(@TF)VeoF}x1OttjuVHn3~sHrMB++}f7f9H%@f z=|kP_?#+fve@{0MlbkC9tyvQ_R?lRdRJ@$qcB(8*jyMyeME5ns6ypVI1Xm*Zr{DuS zZ!1)rQfa89c~;l~VkCiHI|PCBd`S*2RLNQM8!g9L6?n`^evQNEwfO@&JJRme+uopQX0%Jo zgd5G&#&{nX{o?TQwQvF1<^Cg3?2co;_06=~Hcb6~4XWpNFL!WU{+CK;>gH%|BLOh7@!hsa(>pNDAmpcuVO-?;Bic17R}^|6@8DahH)G z!EmhsfunLL|3b=M0MeK2vqZ|OqUqS8npxwge$w-4pFVXFq$_EKrZY?BuP@Az@(k`L z`ViQBSk`y+YwRT;&W| z2e3UfkCo^uTA4}Qmmtqs+nk#gNr2W4 zTH%hhErhB)pkXR{B!q5P3-OM+M;qu~f>}IjtF%>w{~K-0*jPVLl?Chz&zIdxp}bjx zStp&Iufr58FTQ36AHU)0+CmvaOpKF;W@sMTFpJ`j;3d)J_$tNQI^c<^1o<49Z(~K> z;EZTBaVT%14(bFw2ob@?JLQ2@(1pCdg3S%E4*dJ}dA*v}_a4_P(a`cHnBFJxNobAv zf&Zl-Yt*lhn-wjZsq<9v-IsXxAxMZ58C@e0!rzhJ+D@9^3~?~yllY^s$?&oNwyH!#~6x4gUrfxplCvK#!f z$viuszW>MFEcFL?>ux*((!L$;R?xc*myjRIjgnQX79@UPD$6Dz0jutM@7h_pq z0Zr)#O<^y_K6jfY^X%A-ip>P%3saX{!v;fxT-*0C_j4=UMH+Xth(XVkVGiiKE#f)q z%Jp=JT)uy{&}Iq2E*xr4YsJ5>w^=#-mRZ4vPXpI6q~1aFwi+lQcimO45V-JXP;>(Q zo={U`{=_JF`EQj87Wf}{Qy35s8r1*9Mxg({CvOt}?Vh9d&(}iI-quvs-rm~P;eRA@ zG5?1HO}puruc@S{YNAF3vmUc2B4!k*yi))<5BQmvd3tr}cIs#9)*AX>t`=~{f#Uz0 z0&Nk!7sSZwJe}=)-R^$0{yeS!V`Dh7w{w5rZ9ir!Z7Cd7dwZcK;BT#V0bzTt>;@Cl z#|#A!-IL6CZ@eHH!CG>OO8!%G8&8t4)Ro@}USB*k>oEUo0LsljsJ-%5Mo^MJF2I8- z#v7a5VdJ-Cd%(a+y6QwTmi+?f8Nxtm{g-+WGL>t;s#epv7ug>inqimZCVm!uT5Pf6 ziEgQt7^%xJf#!aPWbuC_3Nxfb&CFbQy!(8ANpkWLI4oSnH?Q3f?0k1t$3d+lkQs{~(>06l&v|MpcFsyAv zin6N!-;pggosR*vV=DO(#+}4ps|5$`udE%Kdmp?G7B#y%H`R|i8skKOd9Xzx8xgR$>Zo2R2Ytktq^w#ul4uicxW#{ zFjG_RNlBroV_n;a7U(KIpcp*{M~e~@>Q#Av90Jc5v%0c>egEdY4v3%|K1XvB{O_8G zkTWLC>OZKf;XguMH2-Pw{BKbFzaY;4v2seZV0>^7Q~d4O=AwaPhP3h|!hw5aqOtT@ z!SNz}$of**Bl3TK209@F=Tn1+mgZa8yh(Png%Zd6Mt}^NSjy)etQrF zme*llAW=N_8R*O~d2!apJnF%(JcN??=`$qs3Y+~xs>L9x`0^NIn!8mMRFA_tg`etw z3k{9JAjnl@ygIiJcNHTy02GMAvBVqEss&t2<2mnw!; zU`J)0>lWiqVqo|ex7!+@0i>B~BSU1A_0w#Ee+2pJx0BFiZ7RDHEvE*ptc9md(B{&+ zKE>TM)+Pd>HEmdJao7U@S>nL(qq*A)#eLOuIfAS@j`_sK0UEY6OAJJ-kOrHG zjHx`g!9j*_jRcJ%>CE9K2MVf?BUZKFHY?EpV6ai7sET-tqk=nDFh-(65rhjtlKEY% z@G&cQ<5BKatfdA1FKuB=i>CCC5(|9TMW%K~GbA4}80I5%B}(gck#Wlq@$nO3%@QP_ z8nvPkJFa|znk>V92cA!K1rKtr)skHEJD;k8P|R8RkCq1Rh^&}Evwa4BUJz2f!2=MH zo4j8Y$YL2313}H~F7@J7mh>u%556Hw0VUOz-Un@ZASCL)y8}4XXS`t1AC*^>PLwIc zUQok5PFS=*#)Z!3JZN&eZ6ZDP^-c@StY*t20JhCnbMxXf=LK#;`4KHEqMZ-Ly9KsS zI2VUJGY&PmdbM+iT)zek)#Qc#_i4uH43 z@T5SZBrhNCiK~~esjsO9!qBpaWK<`>!-`b71Y5ReXQ4AJU~T2Njri1CEp5oKw;Lnm)-Y@Z3sEY}XIgSy%xo=uek(kAAH5MsV$V3uTUsoTzxp_rF=tx zV07vlJNKtJhCu`b}*#m&5LV4TAE&%KtHViDAdv#c^x`J7bg z&N;#I2GkF@SIGht6p-V}`!F_~lCXjl1BdTLIjD2hH$J^YFN`7f{Q?OHPFEM$65^!u zNwkelo*5+$ZT|oQ%o%;rBX$+?xhvjb)SHgNHE_yP%wYkkvXHS{Bf$OiKJ5d1gI0j< zF6N}Aq=(WDo(J{e-uOecxPD>XZ@|u-tgTR<972`q8;&ZD!cep^@B5CaqFz|oU!iFj zU0;6fQX&~15E53EW&w1s9gQQ~Zk16X%6 zjG`j0yq}4deX2?Tr(03kg>C(!7a|b9qFI?jcE^Y>-VhudI@&LI6Qa}WQ>4H_!UVyF z((cm&!3gmq@;BD#5P~0;_2qgZhtJS|>WdtjY=q zLnHH~Fm!cxw|Z?Vw8*~?I$g#9j&uvgm7vPr#&iZgPP~v~BI4jOv;*OQ?jYJtzO<^y z7-#C={r7CO810!^s(MT!@@Vz_SVU)7VBi(e1%1rvS!?PTa}Uv`J!EP3s6Y!xUgM^8 z4f!fq<3Wer_#;u!5ECZ|^c1{|q_lh3m^9|nsMR1#Qm|?4Yp5~|er2?W^7~cl;_r4WSme_o68J9p03~Hc%X#VcX!xAu%1`R!dfGJCp zV*&m47>s^%Ib0~-2f$6oSgn3jg8m%UA;ArcdcRyM5;}|r;)?a^D*lel5C`V5G=c~k zy*w_&BfySOxE!(~PI$*dwG><+-%KT5p?whOUMA*k<9*gi#T{h3DAxzAPxN&Xws8o9Cp*`PA5>d9*Z-ynV# z9yY*1WR^D8|C%I@vo+d8r^pjJ$>eo|j>XiLWvTWLl(^;JHCsoPgem6PvegHb-OTf| zvTgsHSa;BkbG=(NgPO|CZu9gUCGr$8*EoH2_Z#^BnxF0yM~t`|9ws_xZ8X8iZYqh! zAh;HXJ)3P&)Q0(&F>!LN0g#bdbis-cQxyGn9Qgh`q+~49Fqd2epikEUw9caM%V6WgP)532RMRW}8gNS%V%Hx7apSz}tn@bQy!<=lbhmAH=FsMD?leawbnP5BWM0 z5{)@EEIYMu5;u)!+HQWhQ;D3_Cm_NADNeb-f56}<{41aYq8p4=93d=-=q0Yx#knGYfXVt z+kMxlus}t2T5FEyCN~!}90O_X@@PQpuy;kuGz@bWft%diBTx?d)_xWd_-(!LmVrh**oKg!1CNF&LX4{*j|) zIvjCR0I2UUuuEXh<9}oT_zT#jOrJAHNLFT~Ilh9hGJPI1<5`C-WA{tUYlyMeoy!+U zhA#=p!u1R7DNg9u4|QfED-2TuKI}>p#2P9--z;Bbf4Op*;Q9LCbO&aL2i<0O$ByoI z!9;Ght733FC>Pz>$_mw(F`zU?`m@>gE`9_p*=7o=7av`-&ifU(^)UU`Kg3Kw`h9-1 z6`e6+im=|m2v`pN(2dE%%n8YyQz;#3Q-|x`91z?gj68cMrHl}C25|6(_dIGk*8cA3 zRHB|Nwv{@sP4W+YZM)VKI>RlB`n=Oj~Rzx~M+Khz$N$45rLn6k1nvvD^&HtsMA4`s=MmuOJID@$s8Ph4E zAmSV^+s-z8cfv~Yd(40Sh4JG#F~aB>WFoX7ykaOr3JaJ&Lb49=B8Vk-SQT9%7TYhv z?-Pprt{|=Y5ZQ1?od|A<_IJU93|l4oAfBm?3-wk{O<8ea+`}u%(kub(LFo2zFtd?4 zwpN|2mBNywv+d^y_8#<$r>*5+$wRTCygFLcrwT(qc^n&@9r+}Kd_u@Ithz(6Qb4}A zWo_HdBj#V$VE#l6pD0a=NfB0l^6W^g`vm^sta>Tly?$E&{F?TTX~DsKF~poFfmN%2 z4x`Dc{u{Lkqz&y!33;X}weD}&;7p>xiI&ZUb1H9iD25a(gI|`|;G^NwJPv=1S5e)j z;U;`?n}jnY6rA{V^ zxTd{bK)Gi^odL3l989DQlN+Zs39Xe&otGeY(b5>rlIqfc7Ap4}EC?j<{M=hlH{1+d zw|c}}yx88_xQr`{98Z!d^FNH77=u(p-L{W6RvIn40f-BldeF-YD>p6#)(Qzf)lfZj z?3wAMtPPp>vMehkT`3gToPd%|D8~4`5WK{`#+}{L{jRUMt zrFz+O$C7y8$M&E4@+p+oV5c%uYzbqd2Y%SSgYy#xh4G3hQv>V*BnuKQhBa#=oZB~w{azUB+q%bRe_R^ z>fHBilnRTUfaJ201czL8^~Ix#+qOHSO)A|xWLqOxB$dT2W~)e-r9;bm=;p;RjYahB z*1hegN(VKK+ztr~h1}YP@6cfj{e#|sS`;3tJhIJK=tVJ-*h-5y9n*&cYCSdg#EHE# zSIx=r#qOaLJoVVf6v;(okg6?*L_55atl^W(gm^yjR?$GplNP>BZsBYEf_>wM0Lc;T zhf&gpzOWNxS>m+mN92N0{;4uw`P+9^*|-1~$uXpggj4- z^SFc4`uzj2OwdEVT@}Q`(^EcQ_5(ZtXTql*yGzdS&vrS_w>~~ra|Nb5abwf}Y!uq6R5f&6g2ge~2p(%c< z@O)cz%%rr4*cRJ5f`n@lvHNk@lE1a*96Kw6lJ~B-XfJW%?&-y?;E&?1AacU@`N`!O z6}V>8^%RZ7SQnZ-z$(jsX`amu*5Fj8g!3RTRwK^`2_QHe;_2y_n|6gSaGyPmI#kA0sYV<_qOZc#-2BO%hX)f$s-Z3xlI!ub z^;3ru11DA`4heAu%}HIXo&ctujzE2!6DIGE{?Zs>2}J+p&C$rc7gJC35gxhflorvsb%sGOxpuWhF)dL_&7&Z99=5M0b~Qa;Mo!j&Ti_kXW!86N%n= zSC@6Lw>UQ__F&+&Rzv?gscwAz8IP!n63>SP)^62(HK98nGjLY2*e^OwOq`3O|C92? z;TVhZ2SK%9AGW4ZavTB9?)mUbOoF`V7S=XM;#3EUpR+^oHtdV!GK^nXzCu>tpR|89 zdD{fnvCaN^^LL%amZ^}-E+214g&^56rpdc@yv0b<3}Ys?)f|fXN4oHf$six)-@<;W&&_kj z-B}M5U*1sb4)77aR=@%I?|Wkn-QJVuA96an25;~!gq(g1@O-5VGo7y&E_srxL6ZfS z*R%$gR}dyONgju*D&?geiSj7SZ@ftyA|}(*Y4KbvU!YLsi1EDQQCnb+-cM=K1io78o!v*);o<XwjaQH%)uIP&Zm?)Nfbfn;jIr z)d#!$gOe3QHp}2NBak@yYv3m(CPKkwI|{;d=gi552u?xj9ObCU^DJFQp4t4e1tPzM zvsRIGZ6VF+{6PvqsplMZWhz10YwS={?`~O0Ec$`-!klNUYtzWA^f9m7tkEzCy<_nS z=&<(awFeZvt51>@o_~>PLs05CY)$;}Oo$VDO)?l-{CS1Co=nxjqben*O1BR>#9`0^ zkwk^k-wcLCLGh|XLjdWv0_Hg54B&OzCE^3NCP}~OajK-LuRW53CkV~Su0U>zN%yQP zH8UH#W5P3-!ToO-2k&)}nFe`t+mdqCxxAHgcifup^gKpMObbox9LFK;LP3}0dP-UW z?Zo*^nrQ6*$FtZ(>kLCc2LY*|{!dUn$^RW~m9leoF|@Jy|M5p-G~j%+P0_#orRKf8 zvuu5<*XO!B?1E}-*SY~MOa$6c%2cM+xa8}_8x*aVn~57v&W(0mqN1W`5a7*VN{SUH zXz98DDyCnX2EPl-`Lesf`=AQT%YSDb`$%;(jUTrNen$NPJrlpPDP}prI>Ml!r6bCT;mjsg@X^#&<}CGf0JtR{Ecwd&)2zuhr#nqdgHj+g2n}GK9CHuwO zk>oZxy{vcOL)$8-}L^iVfJHAGfwN$prHjYV0ju}8%jWquw>}_W6j~m<}Jf!G?~r5&Rx)!9JNX!ts#SGe2HzobV5); zpj@&`cNcO&q+%*<%D7za|?m5qlmFK$=MJ_iv{aRs+BGVrs)98BlN^nMr{V_fcl_;jkzRju+c-y?gqBC_@J0dFLq-D9@VN&-`R9U;nv$Hg?>$oe4N&Ht$V_(JR3TG^! zzJsbQbi zFE6-{#9{G{+Z}ww!ycl*7rRdmU#_&|DqPfX3CR1I{Kk;bHwF6jh0opI`UV2W{*|nn zf_Y@%wW6APb&9RrbEN=PQRBEpM(N1w`81s=(xQj6 z-eO0k9=Al|>Ej|Mw&G`%q8e$2xVz1v4DXAi8G};R$y)ww638Y=9y$ZYFDM$}vzusg zUf+~BPX>(SjA|tgaFZr_e0{)+z9i6G#lgt=F_n$d=beAt0Sa0a7>z-?vcjl3e+W}+ z1&9=|vC=$co}-Zh*%3588G?v&U7%N1Qf-wNWJ)(v`iO5KHSkC5&g7CrKu8V}uQGcfcz zmBz#Lbqwqy#Z~UzHgOQ;Q-rPxrRNvl(&u6ts4~0=KkeS;zqURz%!-ERppmd%0v>iRlEf+H$yl{_8TMJzo0 z>n)`On|7=WQdsqhXI?#V{>+~}qt-cQbokEbgwV3QvSP7&hK4R{Z{aGHVS3;+h{|Hz z6$Js}_AJr383c_+6sNR|$qu6dqHXQTc6?(XWPCVZv=)D#6_;D_8P-=zOGEN5&?~8S zl5jQ?NL$c%O)*bOohdNwGIKM#jSAC?BVY={@A#c9GmX0=T(0G}xs`-%f3r=m6-cpK z!%waekyAvm9C3%>sixdZj+I(wQlbB4wv9xKI*T13DYG^T%}zZYJ|0$Oj^YtY+d$V$ zAVudSc-)FMl|54n=N{BnZTM|!>=bhaja?o7s+v1*U$!v!qQ%`T-6fBvmdPbVmro&d zk07TOp*KuxRUSTLRrBj{mjsnF8`d}rMViY8j`jo~Hp$fkv9F_g(jUo#Arp;Xw0M$~ zRIN!B22~$kx;QYmOkos@%|5k)!QypDMVe}1M9tZfkpXKGOxvKXB!=lo`p?|R1l=tA zp(1}c6T3Fwj_CPJwVsYtgeRKg?9?}%oRq0F+r+kdB=bFUdVDRPa;E~~>2$w}>O>v=?|e>#(-Lyx?nbg=ckJ#5U6;RT zNvHhXk$P}m9wSvFyU3}=7!y?Y z=fg$PbV8d7g25&-jOcs{%}wTDKm>!Vk);&rr;O1nvO0VrU&Q?TtYVU=ir`te8SLlS zKSNmV=+vF|ATGg`4$N1uS|n??f}C_4Sz!f|4Ly8#yTW-FBfvS48Tef|-46C(wEO_%pPhUC5$-~Y?!0vFZ^Gu`x=m7X99_?C-`|h zfmMM&Y@zdfitA@KPw4Mc(YHcY1)3*1xvW9V-r4n-9ZuBpFcf{yz+SR{ zo$ZSU_|fgwF~aakGr(9Be`~A|3)B=9`$M-TWKipq-NqRDRQc}ABo*s_5kV%doIX7LRLRau_gd@Rd_aLFXGSU+U?uAqh z8qusWWcvgQ&wu{|sRXmv?sl=xc<$6AR$+cl& zFNh5q1~kffG{3lDUdvEZu5c(aAG~+64FxdlfwY^*;JSS|m~CJusvi-!$XR`6@XtY2 znDHSz7}_Bx7zGq-^5{stTRy|I@N=>*y$zz>m^}^{d&~h;0kYiq8<^Wq7Dz0w31ShO^~LUfW6rfitR0(=3;Uue`Y%y@ex#eKPOW zO~V?)M#AeHB2kovn1v=n^D?2{2jhIQd9t|_Q+c|ZFaWt+r&#yrOu-!4pXAJuxM+Cx z*H&>eZ0v8Y`t}8{TV6smOj=__gFC=eah)mZt9gwz>>W$!>b3O;Rm^Ig*POZP8Rl0f zT~o=Nu1J|lO>}xX&#P58%Yl z83`HRs5#32Qm9mdCrMlV|NKNC+Z~ z9OB8xk5HJ>gBLi+m@(pvpw)1(OaVJKs*$Ou#@Knd#bk+V@y;YXT?)4eP9E5{J%KGtYinNYJUH9PU3A}66c>Xn zZ{Bn0<;8$WCOAL$^NqTjwM?5d=RHgw3!72WRo0c;+houoUA@HWLZM;^U$&sycWrFd zE7ekt9;kb0`lps{>R(}YnXlyGY}5pPd9zBpgXeJTY_jwaJGSJQC#-KJqmh-;ad&F- z-Y)E>!&`Rz!HtCz>%yOJ|v(u7P*I$jqEY3}(Z-orn4 zlI?CYKNl`6I){#2P1h)y(6?i;^z`N3bxTV%wNvQW+eu|x=kbj~s8rhCR*0H=iGkSj zk23lr9kr|p7#qKL=UjgO`@UnvzU)`&fI>1Qs7ubq{@+lK{hH* zvl6eSb9%yngRn^T<;jG1SVa)eA>T^XX=yUS@NCKpk?ovCW1D@!=@kn;l_BrG;hOTC z6K&H{<8K#dI(A+zw-MWxS+~{g$tI7|SfP$EYKxA}LlVO^sT#Oby^grkdZ^^lA}uEF zBSj$weBJG{+Bh@Yffzsw=HyChS(dtLE3i*}Zj@~!_T-Ay7z=B)+*~3|?w`Zd)Co2t zC&4DyB!o&YgSw+fJn6`sn$e)29`kUwAc+1MND7YjV%lO;H2}fNy>hD#=gT ze+-aFNpyKIoXY~Vq-}OWPBe?Rfu^{ps8>Xy%42r@RV#*QV~P83jdlFNgkPN=T|Kt7 zV*M`Rh*30&AWlb$;ae130e@}Tqi3zx2^JQHpM>j$6x`#{mu%tZlwx9Gj@Hc92IuY* zarmT|*d0E~vt6<+r?W^UW0&#U&)8B6+1+;k^2|FWBRP9?C4Rk)HAh&=AS8FS|NQaZ z2j!iZ)nbEyg4ZTp-zHwVlfLC~tXIrv(xrP8PAtR{*c;T24ycA-;auWsya-!kF~CWZ zw_uZ|%urXgUbc@x=L=_g@QJ@m#5beS@6W195Hn7>_}z@Xt{DIEA`A&V82bc^#!q8$ zFh?z_Vn|ozJ;NPd^5uu(9tspo8t%&-U9Ckay-s@DnM*R5rtu|4)~e)`z0P-sy?)kc zs_k&J@0&0!q4~%cKL)2l;N*T&0;mqX5T{Qy60%JtKTQZ-xb%KOcgqwJmb%MOOKk7N zgq})R_6**{8A|6H?fO+2`#QU)p$Ei2&nbj6TpLSIT^D$|`TcSeh+)}VMb}LmvZ{O| ze*1IdCt3+yhdYVxcM)Q_V0bIXLgr6~%JS<<&dxIgfL=Vnx4YHuU@I34JXA|+$_S3~ zy~X#gO_X!cSs^XM{yzDGNM>?v(+sF#<0;AH^YrE8smx<36bUsHbN#y57K8WEu(`qHvQ6cAZPo=J5C(lSmUCZ57Rj6cx!e^rfaI5%w}unz}4 zoX=nt)FVNV%QDJH`o!u9olLD4O5fl)xp+#RloZlaA92o3x4->?rB4`gS$;WO{R;Z3>cG3IgFX2EA?PK^M}@%1%A;?f6}s&CV$cIyEr#q5;yHdNZ9h{| z-=dX+a5elJoDo?Eq&Og!nN6A)5yYpnGEp}?=!C-V)(*~z-+?kY1Q7qs#Rsy%hu_60rdbB+QQNr?S1 z?;xtjUv|*E3}HmuNyB9aFL5H~3Ho0UsmuMZELp1a#CA1g`P{-mT?BchuLEtK}!QZ=3AWakRu~?f9V~3F;TV`5%9Pcs_$gq&CcU}r8gOO zC2&SWPsSG{&o-LIGTBqp6SLQZPvYKp$$7L4WRRZ0BR$Kf0I0SCFkqveCp@f)o8W)! z$%7D1R`&j7W9Q9CGus_)b%+B#J2G;l*FLz#s$hw{BHS~WNLODV#(!u_2Pe&tMsq={ zdm7>_WecWF#D=?eMjLj=-_z`aHMZ=3_-&E8;ibPmM}61i6J3is*=dKf%HC>=xbj4$ zS|Q-hWQ8T5mWde6h@;mS+?k=89?1FU<%qH9B(l&O>k|u_aD|DY*@~(`_pb|B#rJ&g zR0(~(68fpUPz6TdS@4JT5MOPrqDh5_H(eX1$P2SQrkvN8sTxwV>l0)Qq z0pzTuvtEAKRDkKGhhv^jk%|HQ1DdF%5oKq5BS>szk-CIke{%js?~%@$uaN3^Uz6Wf z_iyx{bZ(;9y4X&>LPV=L=d+A}7I4GkK0c1Xts{rrW1Q7apHf-))`BgC^0^F(>At1* za@e7{lq%yAkn*NH8Q1{@{lKhRg*^TfGvv!Sn*ed*x@6>M%aaqySxR|oNadYt1mpUZ z6H(rupHYf&Z z29$5g#|0MX#aR6TZ$@eGxxABRKakDYtD%5BmKp;HbG_ZbT+=81E&=XRk6m_3t9PvD zr5Cqy(v?gHcYvYvXkNH@S#Po~q(_7MOuCAB8G$a9BC##gw^5mW16cML=T=ERL7wsk zzNEayTG?mtB=x*wc@ifBCJ|irFVMOvH)AFRW8WE~U()QT=HBCe@s$dA9O!@`zAAT) zaOZ7l6vyR+Nk_OOF!ZlZmjoImKh)dxFbbR~z(cMhfeX1l7S_`;h|v3gI}n9$sSQ>+3@AFAy9=B_y$)q;Wdl|C-X|VV3w8 z2S#>|5dGA8^9%Bu&fhmVRrTX>Z7{~3V&0UpJNEl0=N32euvDGCJ>#6dUSi&PxFW*s zS`}TB>?}H(T2lxBJ!V#2taV;q%zd6fOr=SGHpoSG*4PDaiG0pdb5`jelVipkEk%FV zThLc@Hc_AL1#D&T4D=w@UezYNJ%0=f3iVRuVL5H?eeZM}4W*bomebEU@e2d`M<~uW zf#Bugwf`VezG|^Qbt6R_=U0}|=k;mIIakz99*>FrsQR{0aQRP6ko?5<7bkDN8evZ& zB@_KqQG?ErKL=1*ZM9_5?Pq%lcS4uLSzN(Mr5=t6xHLS~Ym`UgM@D&VNu8e?_=nSFtF$u@hpPSmI4Vo_t&v?>$~K4y(O~Rb*(MFy_igM7 z*~yYUyR6yQgzWnWMUgDov!!g=lInM+=lOmOk4L`O?{i&qxy&D*_qorRbDwj6?)!ef z#JLd7F6Z2I$S0iYI={rZNk*<{HtIl^mx=h>Cim*04K4+Z4IJtd*-)%6XV2(MCscPiw_a+y*?BKbTS@BZ3AUao^%Zi#PhoY9Vib4N>SE%4>=Jco0v zH_Miey{E;FkdlZSq)e<{`+S3W=*ttvD#hB8w=|2aV*D=yOV}(&p%0LbEWH$&@$X3x~CiF-?ejQ*N+-M zc8zT@3iwkdRT2t(XS`d7`tJQAjRmKAhiw{WOqpuvFp`i@Q@!KMhwKgsA}%@sw8Xo5Y=F zhRJZg)O4uqNWj?V&&vth*H#je6T}}p_<>!Dr#89q@uSjWv~JuW(>FqoJ5^ho0%K?E z9?x_Q;kmcsQ@5=}z@tdljMSt9-Z3xn$k)kEjK|qXS>EfuDmu(Z8|(W?gY6-l z@R_#M8=vxKMAoi&PwnaIYw2COJM@atcgfr=zK1bvjW?9B`-+Voe$Q+H$j!1$Tjn+* z&LY<%)L@;zhnJlB^Og6I&BOR-m?{IW;tyYC%FZ!&Z>kGjHJ6cqM-F z&19n+e1=9AH1VrVeHrIzqlC`w9=*zfmrerF?JMzO&|Mmv;!4DKc(sp+jy^Dx?(8>1 zH&yS_4yL7m&GWX~mdfgH*AB4{CKo;+egw=PrvkTaoBU+P-4u?E|&!c z)DKc;>$$B6u*Zr1SjUh2)FeuWLWHl5TH(UHWkf zLs>7px!c5n;rbe^lO@qlYLzlDVp(z?6rPZel=YB)Uv&n!2{+Mb$-vQl=xKw( zve&>xYx+jW_NJh!FV||r?;hdP*jOXYcLCp>DOtJ?2S^)DkM{{Eb zS$!L$e_o0(^}n3tA1R3-$SNvgBq;DOEo}fNc|tB%%#g4RA3{|euq)p+xd3I8^4E&m zFrD%}nvG^HUAIKe9_{tXB;tl|G<%>yk6R;8L2)KUJw4yHJXUOPM>(-+jxq4R;z8H#>rnJy*)8N+$wA$^F zN+H*3t)eFEgxLw+Nw3};4WV$qj&_D`%ADV2%r zJCPCo%{=z7;`F98(us5JnT(G@sKTZ^;2FVitXyLe-S5(hV&Ium+1pIUB(CZ#h|g)u zSLJJ<@HgrDiA-}V_6B^x1>c9B6%~847JkQ!^KLZ2skm;q*edo;UA)~?SghG8;QbHh z_6M;ouo_1rq9=x$<`Y@EA{C%6-pEV}B(1#sDoe_e1s3^Y>n#1Sw;N|}8D|s|VPd+g z-_$QhCz`vLxxrVMx3ape1xu3*wjx=yKSlM~nFgkNWb4?DDr*!?U)L_VeffF<+!j|b zZ$Wn2$TDv3C3V@BHpSgv3JUif8%hk%OsGZ=OxH@8&4`bbf$`aAMchl^qN>Eyu3JH} z9-S!x8-s4fE=lad%Pkp8hAs~u?|uRnL48O|;*DEU! zuS0{cpk%1E0nc__2%;apFsTm0bKtd&A0~S3Cj^?72-*Owk3V!ZG*PswDfS~}2<8le z5+W^`Y(&R)yVF*tU_s!XMcJS`;(Tr`J0%>p=Z&InR%D3@KEzzI+-2)HK zuoNZ&o=wUC&+*?ofPb0a(E6(<2Amd6%uSu_^-<1?hsxs~0K5^f(LsGqgEF^+0_H=uNk9S0bb!|O8d?m5gQjUKevPaO+*VfSn^2892K~%crWM8+6 z25@V?Y@J<9w%@NXh-2!}SK_(X)O4AM1-WTg>sj1{lj5@=q&dxE^9xng1_z9w9DK>| z6Iybcd0e zyi;Ew!KBRIfGPGytQ6}z}MeXCfLY0?9%RiyagSp_D1?N&c{ zyo>VbJ4Gy`@Fv+5cKgUgs~na$>BV{*em7PU3%lloy_aEovR+J7TfQKh8BJXyL6|P8un-Jnq(ghd!_HEOh$zlv2$~y3krgeH;9zC}V3f`uDtW(%mT#944DQa~^8ZI+zAUu4U(j0YcDfKR$bK#gvn_{JZ>|gZ5+)u?T$w7Q%F^;!Wk?G z(le7r!ufT*cxS}PR6hIVtXa)i`d$-_1KkyBU>qmgz-=T};uxx&sKgv48akIWQ89F{ z0XiY?WM^~;|T8zBOr zs#zuOONzH?svv*jokd5SK8wG>+yMC)LYL|vLqm^PMHcT=`}V$=nIRHe2?h)8WQa6O zPAU}d`1y(>kZiP~Gr=mtJLMu`i<2CspL|q2DqAgAD^7*$xzM`PU4^ga`ilE134XBQ z99P(LhHU@7qvl9Yzg$M`+dlS=x^(m-_3t|h>S}E0bcFMn=C|KamQ)=w2^e)35p`zY zRV8X?d;s^>Cof2SPR&nP3E+-LCkS0J$H!eh8~k0qo$}00b=7!H_I2O+Ro@3O$nPdm ztmbOO^B+IHzQ5w>@@@J4cKw5&^_w6s!s=H%&byAbUtczPQ7}wfTqxxtQNfn*u73Qw zGuWsrky_ajPx-5`R<)6xHf>C(oqGf_Fw|-U*GfS?xLML$kv;h_pZ@Kk$y0X(S+K80 z6^|z)*`5VUkawg}=z`S;VhZhxyDfrE0$(PMurAxl~<>lfZa>JZ288ULK7D` zl9|#L^JL}Y$j*j`0-K6kH#?bRmg#5L3iB4Z)%iF@SqT+Lp|{i`m%R-|ZE94Np7Pa5 zCqC^V3}B(FR340pmF*qaa}M}+h6}mqE~7Sh!9bDv9YRT|>vBNAqv09zXHMlcuhKD| zcjjA(b*XCIwJ33?CB!+;{)vX@9xns_b-VO{i0y?}{!sdXj1GM8+$#v>W7nw;+O_9B z_{4L;C6ol?(?W0<6taGEn1^uG=?Q3i29sE`RfYCaV$3DKc_;?HsL?D_fSYg}SuO5U zOB_f4^vZ_x%o`5|C@9C5+o=mFy@au{s)sKw!UgC&L35aH(sgDxRE2De%(%OT=VUdN ziVLEmdOvJ&5*tCMKRyXctCwQu_RH%;m*$YK&m;jtbdH#Ak~13T1^f89tn`A%QEHWs~jnY~E}p_Z$XC z=?YXLCkzVSK+Id`xZYTegb@W8_baLt-Fq`Tv|=)JPbFsKRm)4UW;yT+J`<)%#ue9DPOkje)YF2fsCilK9MIIK>p*`fkoD5nGfmLwt)!KOT+> zOFq*VZktDDyM3P5UOg`~XL#cbzC}eL%qMB=Q5$d89MKuN#$6|4gx_Jt0Gfn8w&q}%lq4QU%6#jT*MRT% zrLz~C8FYKHawn-EQWN1B75O&quS+Z81(zN)G>~vN8VwC+e+y(`>HcxC{MrJ;H1Z4k zZWuv$w_F0-Ub%MVcpIc){4PGL^I7M{>;hS?;eH!;gmcOE66z3;Z1Phqo(t zVP(Hg6q#0gIKgsg7L7WE!{Y#1nI(45tx2{$34dDd#!Z0NIyrm)HOn5W#7;f4pQci# zDW!FI(g4e668kI9{2+mLwB+=#9bfqgX%!B34V-$wwSN(_cm*^{y0jQtv*4}eO^sOV z*9xoNvX)c9isB}Tgx&ZRjp3kwhTVK?r9;n!x>^XYT z@Q^7zp{rkIs{2mUSE^2!Gf6$6;j~&4=-0cSJJDizZp6LTe8b45;{AKM%v99}{{FfC zz709%u0mC=1KXTo(=TqmZQ;c?$M3z(!xah>aywrj40sc2y3rKFw4jCq+Y+u=CH@_V zxz|qeTwa>+<|H%8Dz5u>ZI5MmjTFwXS-Fv!TDd*`>3{krWoNVx$<133`(ftS?ZPyY z&4@ah^3^i`vL$BZa>O|Nt?ucewzsF)0zX3qmM^|waXr=T0pfIb0*$AwU=?Ipl|1Y; z*Pk6{C-p4MY;j@IJ|DW>QHZQJcp;Z~?8(Q+Kk3^0qJ}SCk^*n4W zu9ZFwLHUx-$6xvaQ)SUQcYd6fF8&x)V`1bIuX@>{mE$b|Yd(qomn3;bPwnDUc0F=; zh*6_((%bqAYQWQ~odER?h>1mkL4kpb3s7`0m@rDKGU*oyF)$j~Ffd4fXV$?`f~rHf zB%Y)@5SXZvfwm10RY5X?TEo)PK_`L6qgBp=#>fO49$D zDq8Ozj0q6213tV5Qq=;fZ0$|KroY{Dz=l@lU^J)?Ko@ti20TRplXzphBi>XGx4bou zEWrkNjz0t5j!_ke{g5I#PUlEU$Km8g8TE|XK=MkU@PT4T><2OVamoK;wJ}3X0L$vX zgd7gNa359*nc)R-0!`2X@FOTB`+oETOPc=ubp5R)VQgY+5BTZZJ2?9QwnO=dnulIUF3gFn;BODC2)65)HeVd%t86sL7Rv^Y+nbn+&l z6BAJY(ETvwI)Ts$aiE8rht4KD*qNyE{8{x6R|%akbTBzw;2+6Echkt+W+`u^XX z_z&x%n '} +case $link in #( +/*) app_path=$link ;; #( +*) app_path=$APP_HOME$link ;; +esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { +echo "$*" +} >&2 + +die () { +echo +echo "$*" +echo +exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( +CYGWIN* ) cygwin=true ;; #( +Darwin* ) darwin=true ;; #( +MSYS* | MINGW* ) msys=true ;; #( +NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then +if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# IBM's JDK on AIX uses strange locations for the executables +JAVACMD=$JAVA_HOME/jre/sh/java +else +JAVACMD=$JAVA_HOME/bin/java +fi +if [ ! -x "$JAVACMD" ] ; then +die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi +else +JAVACMD=java +if ! command -v java >/dev/null 2>&1 +then +die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then +case $MAX_FD in #( +max*) +# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +MAX_FD=$( ulimit -H -n ) || +warn "Could not query maximum file descriptor limit" +esac +case $MAX_FD in #( +'' | soft) :;; #( +*) +# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +ulimit -n "$MAX_FD" || +warn "Could not set maximum file descriptor limit to $MAX_FD" +esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then +APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) +CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + +JAVACMD=$( cygpath --unix "$JAVACMD" ) + +# Now convert the arguments - kludge to limit ourselves to /bin/sh +for arg do +if +case $arg in #( +-*) false ;; # don't mess with options #( +/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath +[ -e "$t" ] ;; #( +*) false ;; +esac +then +arg=$( cygpath --path --ignore --mixed "$arg" ) +fi +# Roll the args list around exactly as many times as the number of +# args, so each arg winds up back in the position where it started, but +# possibly modified. +# +# NB: a `for` loop captures its iteration list before it begins, so +# changing the positional parameters here affects neither the number of +# iterations, nor the values presented in `arg`. +shift # remove old arg +set -- "$@" "$arg" # push replacement arg +done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ +"-Dorg.gradle.appname=$APP_BASE_NAME" \ +-classpath "$CLASSPATH" \ +org.gradle.wrapper.GradleWrapperMain \ +"$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then +die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( +printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | +xargs -n1 | +sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | +tr '\n' ' ' +)" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/sdks/java/gradlew.bat b/sdks/java/gradlew.bat new file mode 100644 index 0000000..25da30d --- /dev/null +++ b/sdks/java/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/sdks/java/pom.xml b/sdks/java/pom.xml new file mode 100644 index 0000000..c7c9728 --- /dev/null +++ b/sdks/java/pom.xml @@ -0,0 +1,340 @@ + + 4.0.0 + io.keynetra + keynetra-client + jar + keynetra-client + 0.1.0 + https://github.com/openapitools/openapi-generator + Official Java SDK for the KeyNetra authorization platform. + + scm:git:git://github.com/keynetra/keynetra-sdks.git + scm:git:ssh://github.com:keynetra/keynetra-sdks.git + https://github.com/keynetra/keynetra-sdks + + + + + Unlicense + http://unlicense.org + repo + + + + + + KeyNetra Engineering + business.keynetra@gmail.com + KeyNetra + https://keynetra.com + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + true + 128m + 512m + + -Xlint:all + -J-Xss4m + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.4.1 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + 10 + + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + + + + + maven-dependency-plugin + 3.6.1 + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + + test-jar + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.5.0 + + + add_sources + generate-sources + + add-source + + + + src/main/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.3 + + + attach-javadocs + + jar + + + + + none + + + http.response.details + a + Http Response Details: + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.0 + + + attach-sources + + jar-no-fork + + + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + + + .gitignore + + + + + + true + 4 + + + + + + + + + + 1.8 + + true + + + + + + + + + + + + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.1 + + + sign-artifacts + verify + + sign + + + + + + + + + + + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + + jakarta.annotation + jakarta.annotation-api + ${jakarta-annotation-version} + provided + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + + + jakarta.ws.rs + jakarta.ws.rs-api + ${jakarta.ws.rs-api-version} + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + test + + + org.junit.platform + junit-platform-runner + ${junit-platform-runner.version} + test + + + + 1.8 + ${java.version} + ${java.version} + 1.9.0 + 4.12.0 + 2.10.1 + 3.18.0 + 0.2.9 + 1.3.5 + 2.0.2 + 5.10.3 + 1.10.0 + 2.1.6 + 1.1.1 + UTF-8 + 2.43.0 + + diff --git a/sdks/java/settings.gradle b/sdks/java/settings.gradle new file mode 100644 index 0000000..6ce65b0 --- /dev/null +++ b/sdks/java/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "keynetra-client" \ No newline at end of file diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md new file mode 100644 index 0000000..df3d9db --- /dev/null +++ b/sdks/kotlin/README.md @@ -0,0 +1,48 @@ +# keynetra-client-kotlin + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official Kotlin SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Kotlin applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +implementation("io.keynetra:keynetra-client-kotlin:0.1.0") +``` + +## ๐Ÿš€ Quick Start + +```kotlin +import io.keynetra.client.KeyNetraClient + +val client = KeyNetraClient( + baseUrl = "http://localhost:8080", + apiKey = "YOUR_API_KEY" +) + +// Perform an access check +val decision = client.accessApi.checkAccess(...) +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/kotlin/build.gradle.kts b/sdks/kotlin/build.gradle.kts new file mode 100644 index 0000000..b3809a5 --- /dev/null +++ b/sdks/kotlin/build.gradle.kts @@ -0,0 +1,97 @@ +import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget + +plugins { + kotlin("multiplatform") version "2.2.20" // kotlin_version + kotlin("plugin.serialization") version "2.2.20" // kotlin_version +} + +group = "io.keynetra" +version = "0.1.0" + +val kotlin_version = "2.2.20" +val coroutines_version = "1.10.2" +val serialization_version = "1.9.0" +val ktor_version = "3.2.3" + +repositories { + mavenCentral() +} + +kotlin { + jvm() + iosX64() + iosArm64() + iosSimulatorArm64() + js { + browser() + nodejs() + } + + sourceSets { + commonMain { + dependencies { + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version") + + api("io.ktor:ktor-client-core:$ktor_version") + api("io.ktor:ktor-client-serialization:$ktor_version") + api("io.ktor:ktor-client-content-negotiation:$ktor_version") + api("io.ktor:ktor-serialization-kotlinx-json:$ktor_version") + + api("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1") + } + } + + commonTest { + dependencies { + implementation(kotlin("test")) + implementation("io.ktor:ktor-client-mock:$ktor_version") + } + } + + jvmMain { + dependencies { + implementation(kotlin("stdlib-jdk7")) + implementation("io.ktor:ktor-client-cio-jvm:$ktor_version") + } + } + + jvmTest { + dependencies { + implementation(kotlin("test-junit")) + } + } + + iosMain { + dependencies { + api("io.ktor:ktor-client-ios:$ktor_version") + } + } + + jsMain { + dependencies { + api("io.ktor:ktor-client-js:$ktor_version") + } + } + + all { + languageSettings { + optIn("kotlin.time.ExperimentalTime") + } + } + } +} + +tasks { + register("iosTest") { + val device = project.findProperty("device")?.toString() ?: "iPhone 8" + dependsOn("linkDebugTestIosX64") + group = JavaBasePlugin.VERIFICATION_GROUP + description = "Execute unit tests on ${device} simulator" + val binary = kotlin.targets.getByName("iosX64").binaries.getTest("DEBUG") + commandLine("xcrun", "simctl", "spawn", device, binary.outputFile) + } + register("test") { + dependsOn("allTests") + } +} diff --git a/sdks/kotlin/docs/ACLCreate.md b/sdks/kotlin/docs/ACLCreate.md new file mode 100644 index 0000000..d29e53e --- /dev/null +++ b/sdks/kotlin/docs/ACLCreate.md @@ -0,0 +1,15 @@ + +# ACLCreate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **subjectType** | **kotlin.String** | | | +| **subjectId** | **kotlin.String** | | | +| **resourceType** | **kotlin.String** | | | +| **resourceId** | **kotlin.String** | | | +| **action** | **kotlin.String** | | | +| **effect** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/ACLOut.md b/sdks/kotlin/docs/ACLOut.md new file mode 100644 index 0000000..87cc616 --- /dev/null +++ b/sdks/kotlin/docs/ACLOut.md @@ -0,0 +1,18 @@ + +# ACLOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **subjectType** | **kotlin.String** | | | +| **subjectId** | **kotlin.String** | | | +| **resourceType** | **kotlin.String** | | | +| **resourceId** | **kotlin.String** | | | +| **action** | **kotlin.String** | | | +| **effect** | **kotlin.String** | | | +| **id** | **kotlin.Int** | | | +| **tenantId** | **kotlin.Int** | | | +| **createdAt** | [**kotlin.time.Instant**](kotlin.time.Instant.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/AccessApi.md b/sdks/kotlin/docs/AccessApi.md new file mode 100644 index 0000000..cc7636a --- /dev/null +++ b/sdks/kotlin/docs/AccessApi.md @@ -0,0 +1,162 @@ +# AccessApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**checkAccessBatchCheckAccessBatchPost**](AccessApi.md#checkAccessBatchCheckAccessBatchPost) | **POST** /check-access-batch | Check Access Batch | +| [**checkAccessCheckAccessPost**](AccessApi.md#checkAccessCheckAccessPost) | **POST** /check-access | Check Access | +| [**simulateSimulatePost**](AccessApi.md#simulateSimulatePost) | **POST** /simulate | Simulate | + + + +# **checkAccessBatchCheckAccessBatchPost** +> SuccessResponseBatchAccessResponse checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) + +Check Access Batch + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = AccessApi() +val batchAccessRequest : BatchAccessRequest = // BatchAccessRequest | +val policySet : kotlin.String = policySet_example // kotlin.String | +try { + val result : SuccessResponseBatchAccessResponse = apiInstance.checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) + println(result) +} catch (e: ClientException) { + println("4xx response calling AccessApi#checkAccessBatchCheckAccessBatchPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling AccessApi#checkAccessBatchCheckAccessBatchPost") + e.printStackTrace() +} +``` + +### Parameters +| **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md)| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policySet** | **kotlin.String**| | [optional] [default to "active"] | + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **checkAccessCheckAccessPost** +> SuccessResponseAccessDecisionResponse checkAccessCheckAccessPost(accessRequest, policySet) + +Check Access + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = AccessApi() +val accessRequest : AccessRequest = // AccessRequest | +val policySet : kotlin.String = policySet_example // kotlin.String | +try { + val result : SuccessResponseAccessDecisionResponse = apiInstance.checkAccessCheckAccessPost(accessRequest, policySet) + println(result) +} catch (e: ClientException) { + println("4xx response calling AccessApi#checkAccessCheckAccessPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling AccessApi#checkAccessCheckAccessPost") + e.printStackTrace() +} +``` + +### Parameters +| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policySet** | **kotlin.String**| | [optional] [default to "active"] | + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **simulateSimulatePost** +> SuccessResponseSimulationResponse simulateSimulatePost(accessRequest) + +Simulate + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = AccessApi() +val accessRequest : AccessRequest = // AccessRequest | +try { + val result : SuccessResponseSimulationResponse = apiInstance.simulateSimulatePost(accessRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling AccessApi#simulateSimulatePost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling AccessApi#simulateSimulatePost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/sdks/kotlin/docs/AccessDecisionResponse.md b/sdks/kotlin/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..ed79de5 --- /dev/null +++ b/sdks/kotlin/docs/AccessDecisionResponse.md @@ -0,0 +1,16 @@ + +# AccessDecisionResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **allowed** | **kotlin.Boolean** | | | +| **decision** | **kotlin.String** | | | +| **matchedPolicies** | **kotlin.collections.List<kotlin.String>** | | [optional] | +| **reason** | **kotlin.String** | | [optional] | +| **policyId** | **kotlin.String** | | [optional] | +| **explainTrace** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.Any>>** | | [optional] | +| **revision** | **kotlin.Int** | | [optional] | + + + diff --git a/sdks/kotlin/docs/AccessRequest.md b/sdks/kotlin/docs/AccessRequest.md new file mode 100644 index 0000000..f2947c1 --- /dev/null +++ b/sdks/kotlin/docs/AccessRequest.md @@ -0,0 +1,15 @@ + +# AccessRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | +| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **context** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **consistency** | **kotlin.String** | | [optional] | +| **revision** | **kotlin.Int** | | [optional] | + + + diff --git a/sdks/kotlin/docs/AdminLoginRequest.md b/sdks/kotlin/docs/AdminLoginRequest.md new file mode 100644 index 0000000..45259f8 --- /dev/null +++ b/sdks/kotlin/docs/AdminLoginRequest.md @@ -0,0 +1,11 @@ + +# AdminLoginRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **username** | **kotlin.String** | | | +| **password** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/AdminLoginResponse.md b/sdks/kotlin/docs/AdminLoginResponse.md new file mode 100644 index 0000000..d4d55e6 --- /dev/null +++ b/sdks/kotlin/docs/AdminLoginResponse.md @@ -0,0 +1,14 @@ + +# AdminLoginResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **accessToken** | **kotlin.String** | | | +| **expiresIn** | **kotlin.Int** | | | +| **tenantKey** | **kotlin.String** | | | +| **tokenType** | **kotlin.String** | | [optional] | +| **role** | **kotlin.String** | | [optional] | + + + diff --git a/sdks/kotlin/docs/AuditRecordOut.md b/sdks/kotlin/docs/AuditRecordOut.md new file mode 100644 index 0000000..9c053a3 --- /dev/null +++ b/sdks/kotlin/docs/AuditRecordOut.md @@ -0,0 +1,22 @@ + +# AuditRecordOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **kotlin.Int** | | | +| **principalType** | **kotlin.String** | | | +| **principalId** | **kotlin.String** | | | +| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **action** | **kotlin.String** | | | +| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **decision** | **kotlin.String** | | | +| **matchedPolicies** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | | +| **evaluatedRules** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | | +| **failedConditions** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | | +| **createdAt** | [**kotlin.time.Instant**](kotlin.time.Instant.md) | | | +| **correlationId** | **kotlin.String** | | [optional] | +| **reason** | **kotlin.String** | | [optional] | + + + diff --git a/sdks/kotlin/docs/AuthApi.md b/sdks/kotlin/docs/AuthApi.md new file mode 100644 index 0000000..d31e2ac --- /dev/null +++ b/sdks/kotlin/docs/AuthApi.md @@ -0,0 +1,98 @@ +# AuthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**adminLoginAdminLoginPost**](AuthApi.md#adminLoginAdminLoginPost) | **POST** /admin/login | Admin Login | +| [**adminLoginAdminLoginPost_0**](AuthApi.md#adminLoginAdminLoginPost_0) | **POST** /admin/login | Admin Login | + + + +# **adminLoginAdminLoginPost** +> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost(adminLoginRequest) + +Admin Login + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = AuthApi() +val adminLoginRequest : AdminLoginRequest = // AdminLoginRequest | +try { + val result : SuccessResponseAdminLoginResponse = apiInstance.adminLoginAdminLoginPost(adminLoginRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling AuthApi#adminLoginAdminLoginPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling AuthApi#adminLoginAdminLoginPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **adminLoginAdminLoginPost_0** +> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost_0(adminLoginRequest) + +Admin Login + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = AuthApi() +val adminLoginRequest : AdminLoginRequest = // AdminLoginRequest | +try { + val result : SuccessResponseAdminLoginResponse = apiInstance.adminLoginAdminLoginPost_0(adminLoginRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling AuthApi#adminLoginAdminLoginPost_0") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling AuthApi#adminLoginAdminLoginPost_0") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/sdks/kotlin/docs/AuthModelCreate.md b/sdks/kotlin/docs/AuthModelCreate.md new file mode 100644 index 0000000..c1aa17b --- /dev/null +++ b/sdks/kotlin/docs/AuthModelCreate.md @@ -0,0 +1,10 @@ + +# AuthModelCreate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **schema** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/AuthModelOut.md b/sdks/kotlin/docs/AuthModelOut.md new file mode 100644 index 0000000..c004dce --- /dev/null +++ b/sdks/kotlin/docs/AuthModelOut.md @@ -0,0 +1,14 @@ + +# AuthModelOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **kotlin.Int** | | | +| **tenantId** | **kotlin.Int** | | | +| **schema** | **kotlin.String** | | | +| **parsed** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **compiled** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | + + + diff --git a/sdks/kotlin/docs/BatchAccessItem.md b/sdks/kotlin/docs/BatchAccessItem.md new file mode 100644 index 0000000..d01441f --- /dev/null +++ b/sdks/kotlin/docs/BatchAccessItem.md @@ -0,0 +1,11 @@ + +# BatchAccessItem + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | +| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/BatchAccessRequest.md b/sdks/kotlin/docs/BatchAccessRequest.md new file mode 100644 index 0000000..023f935 --- /dev/null +++ b/sdks/kotlin/docs/BatchAccessRequest.md @@ -0,0 +1,13 @@ + +# BatchAccessRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **items** | [**kotlin.collections.List<BatchAccessItem>**](BatchAccessItem.md) | | | +| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **consistency** | **kotlin.String** | | [optional] | +| **revision** | **kotlin.Int** | | [optional] | + + + diff --git a/sdks/kotlin/docs/BatchAccessResponse.md b/sdks/kotlin/docs/BatchAccessResponse.md new file mode 100644 index 0000000..07f0b9f --- /dev/null +++ b/sdks/kotlin/docs/BatchAccessResponse.md @@ -0,0 +1,11 @@ + +# BatchAccessResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **results** | [**kotlin.collections.List<BatchAccessResult>**](BatchAccessResult.md) | | | +| **revision** | **kotlin.Int** | | [optional] | + + + diff --git a/sdks/kotlin/docs/BatchAccessResult.md b/sdks/kotlin/docs/BatchAccessResult.md new file mode 100644 index 0000000..2278420 --- /dev/null +++ b/sdks/kotlin/docs/BatchAccessResult.md @@ -0,0 +1,12 @@ + +# BatchAccessResult + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | +| **allowed** | **kotlin.Boolean** | | | +| **revision** | **kotlin.Int** | | [optional] | + + + diff --git a/sdks/kotlin/docs/DataValue.md b/sdks/kotlin/docs/DataValue.md new file mode 100644 index 0000000..8eeb8d7 --- /dev/null +++ b/sdks/kotlin/docs/DataValue.md @@ -0,0 +1,9 @@ + +# DataValue + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | + + + diff --git a/sdks/kotlin/docs/DevApi.md b/sdks/kotlin/docs/DevApi.md new file mode 100644 index 0000000..c717253 --- /dev/null +++ b/sdks/kotlin/docs/DevApi.md @@ -0,0 +1,95 @@ +# DevApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**getSampleDataDevSampleDataGet**](DevApi.md#getSampleDataDevSampleDataGet) | **GET** /dev/sample-data | Get Sample Data | +| [**seedSampleDataDevSampleDataSeedPost**](DevApi.md#seedSampleDataDevSampleDataSeedPost) | **POST** /dev/sample-data/seed | Seed Sample Data | + + + +# **getSampleDataDevSampleDataGet** +> SuccessResponseDictStrObject getSampleDataDevSampleDataGet() + +Get Sample Data + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = DevApi() +try { + val result : SuccessResponseDictStrObject = apiInstance.getSampleDataDevSampleDataGet() + println(result) +} catch (e: ClientException) { + println("4xx response calling DevApi#getSampleDataDevSampleDataGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DevApi#getSampleDataDevSampleDataGet") + e.printStackTrace() +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **seedSampleDataDevSampleDataSeedPost** +> SuccessResponseDictStrObject seedSampleDataDevSampleDataSeedPost(reset) + +Seed Sample Data + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = DevApi() +val reset : kotlin.Boolean = true // kotlin.Boolean | Clear the sample dataset before reseeding it. +try { + val result : SuccessResponseDictStrObject = apiInstance.seedSampleDataDevSampleDataSeedPost(reset) + println(result) +} catch (e: ClientException) { + println("4xx response calling DevApi#seedSampleDataDevSampleDataSeedPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DevApi#seedSampleDataDevSampleDataSeedPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **reset** | **kotlin.Boolean**| Clear the sample dataset before reseeding it. | [optional] [default to false] | + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/sdks/kotlin/docs/HTTPValidationError.md b/sdks/kotlin/docs/HTTPValidationError.md new file mode 100644 index 0000000..ef9e2ca --- /dev/null +++ b/sdks/kotlin/docs/HTTPValidationError.md @@ -0,0 +1,10 @@ + +# HTTPValidationError + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **detail** | [**kotlin.collections.List<ValidationError>**](ValidationError.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/HealthApi.md b/sdks/kotlin/docs/HealthApi.md new file mode 100644 index 0000000..5651c85 --- /dev/null +++ b/sdks/kotlin/docs/HealthApi.md @@ -0,0 +1,134 @@ +# HealthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**healthHealthGet**](HealthApi.md#healthHealthGet) | **GET** /health | Health | +| [**livenessHealthLiveGet**](HealthApi.md#livenessHealthLiveGet) | **GET** /health/live | Liveness | +| [**readinessHealthReadyGet**](HealthApi.md#readinessHealthReadyGet) | **GET** /health/ready | Readiness | + + + +# **healthHealthGet** +> SuccessResponseDictStrStr healthHealthGet() + +Health + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = HealthApi() +try { + val result : SuccessResponseDictStrStr = apiInstance.healthHealthGet() + println(result) +} catch (e: ClientException) { + println("4xx response calling HealthApi#healthHealthGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling HealthApi#healthHealthGet") + e.printStackTrace() +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **livenessHealthLiveGet** +> SuccessResponseDictStrStr livenessHealthLiveGet() + +Liveness + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = HealthApi() +try { + val result : SuccessResponseDictStrStr = apiInstance.livenessHealthLiveGet() + println(result) +} catch (e: ClientException) { + println("4xx response calling HealthApi#livenessHealthLiveGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling HealthApi#livenessHealthLiveGet") + e.printStackTrace() +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **readinessHealthReadyGet** +> SuccessResponseDictStrObject readinessHealthReadyGet() + +Readiness + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = HealthApi() +try { + val result : SuccessResponseDictStrObject = apiInstance.readinessHealthReadyGet() + println(result) +} catch (e: ClientException) { + println("4xx response calling HealthApi#readinessHealthReadyGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling HealthApi#readinessHealthReadyGet") + e.printStackTrace() +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/sdks/kotlin/docs/ImpactAnalysisRequest.md b/sdks/kotlin/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..4ece68c --- /dev/null +++ b/sdks/kotlin/docs/ImpactAnalysisRequest.md @@ -0,0 +1,10 @@ + +# ImpactAnalysisRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **policyChange** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/ImpactAnalysisResponse.md b/sdks/kotlin/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..988f40b --- /dev/null +++ b/sdks/kotlin/docs/ImpactAnalysisResponse.md @@ -0,0 +1,11 @@ + +# ImpactAnalysisResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **gainedAccess** | **kotlin.collections.List<kotlin.Int>** | | [optional] | +| **lostAccess** | **kotlin.collections.List<kotlin.Int>** | | [optional] | + + + diff --git a/sdks/kotlin/docs/LocationInner.md b/sdks/kotlin/docs/LocationInner.md new file mode 100644 index 0000000..7d15d8a --- /dev/null +++ b/sdks/kotlin/docs/LocationInner.md @@ -0,0 +1,9 @@ + +# LocationInner + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | + + + diff --git a/sdks/kotlin/docs/ManagementApi.md b/sdks/kotlin/docs/ManagementApi.md new file mode 100644 index 0000000..b409a73 --- /dev/null +++ b/sdks/kotlin/docs/ManagementApi.md @@ -0,0 +1,1443 @@ +# ManagementApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| [**createAclEntryAclPost**](ManagementApi.md#createAclEntryAclPost) | **POST** /acl | Create Acl Entry | +| [**createAuthModelAuthModelPost**](ManagementApi.md#createAuthModelAuthModelPost) | **POST** /auth-model | Create Auth Model | +| [**createPermissionPermissionsPost**](ManagementApi.md#createPermissionPermissionsPost) | **POST** /permissions | Create Permission | +| [**createPolicyFromDslPoliciesDslPost**](ManagementApi.md#createPolicyFromDslPoliciesDslPost) | **POST** /policies/dsl | Create Policy From Dsl | +| [**createPolicyPoliciesPost**](ManagementApi.md#createPolicyPoliciesPost) | **POST** /policies | Create Policy | +| [**createRelationshipRelationshipsPost**](ManagementApi.md#createRelationshipRelationshipsPost) | **POST** /relationships | Create Relationship | +| [**createRoleRolesPost**](ManagementApi.md#createRoleRolesPost) | **POST** /roles | Create Role | +| [**deleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteAclEntryAclAclIdDelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| [**deletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletePermissionPermissionsPermissionIdDelete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| [**deletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletePolicyPoliciesPolicyKeyDelete) | **DELETE** /policies/{policy_key} | Delete Policy | +| [**deleteRoleRolesRoleIdDelete**](ManagementApi.md#deleteRoleRolesRoleIdDelete) | **DELETE** /roles/{role_id} | Delete Role | +| [**getAuthModelAuthModelGet**](ManagementApi.md#getAuthModelAuthModelGet) | **GET** /auth-model | Get Auth Model | +| [**impactAnalysisImpactAnalysisPost**](ManagementApi.md#impactAnalysisImpactAnalysisPost) | **POST** /impact-analysis | Impact Analysis | +| [**listAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listAclEntriesAclResourceTypeResourceIdGet) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| [**listAuditLogsAuditGet**](ManagementApi.md#listAuditLogsAuditGet) | **GET** /audit | List Audit Logs | +| [**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listPermissionRolesPermissionsPermissionIdRolesGet) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| [**listPermissionsPermissionsGet**](ManagementApi.md#listPermissionsPermissionsGet) | **GET** /permissions | List Permissions | +| [**listPoliciesPoliciesGet**](ManagementApi.md#listPoliciesPoliciesGet) | **GET** /policies | List Policies | +| [**listRelationshipsRelationshipsGet**](ManagementApi.md#listRelationshipsRelationshipsGet) | **GET** /relationships | List Relationships | +| [**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listRolePermissionsRolesRoleIdPermissionsGet) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| [**listRolesRolesGet**](ManagementApi.md#listRolesRolesGet) | **GET** /roles | List Roles | +| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| [**simulatePolicySimulatePolicyPost**](ManagementApi.md#simulatePolicySimulatePolicyPost) | **POST** /simulate-policy | Simulate Policy | +| [**updatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatePermissionPermissionsPermissionIdPut) | **PUT** /permissions/{permission_id} | Update Permission | +| [**updatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatePolicyPoliciesPolicyKeyPut) | **PUT** /policies/{policy_key} | Update Policy | +| [**updateRoleRolesRoleIdPut**](ManagementApi.md#updateRoleRolesRoleIdPut) | **PUT** /roles/{role_id} | Update Role | + + + +# **addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** +> SuccessResponsePermissionOut addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) + +Add Permission To Role + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val roleId : kotlin.Int = 56 // kotlin.Int | +val permissionId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponsePermissionOut = apiInstance.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost") + e.printStackTrace() +} +``` + +### Parameters +| **roleId** | **kotlin.Int**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **createAclEntryAclPost** +> SuccessResponseACLOut createAclEntryAclPost(acLCreate) + +Create Acl Entry + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val acLCreate : ACLCreate = // ACLCreate | +try { + val result : SuccessResponseACLOut = apiInstance.createAclEntryAclPost(acLCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createAclEntryAclPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createAclEntryAclPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **acLCreate** | [**ACLCreate**](ACLCreate.md)| | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createAuthModelAuthModelPost** +> SuccessResponseAuthModelOut createAuthModelAuthModelPost(authModelCreate) + +Create Auth Model + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val authModelCreate : AuthModelCreate = // AuthModelCreate | +try { + val result : SuccessResponseAuthModelOut = apiInstance.createAuthModelAuthModelPost(authModelCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createAuthModelAuthModelPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createAuthModelAuthModelPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md)| | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createPermissionPermissionsPost** +> PermissionOut createPermissionPermissionsPost(permissionCreate) + +Create Permission + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val permissionCreate : PermissionCreate = // PermissionCreate | +try { + val result : PermissionOut = apiInstance.createPermissionPermissionsPost(permissionCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createPermissionPermissionsPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createPermissionPermissionsPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionCreate** | [**PermissionCreate**](PermissionCreate.md)| | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createPolicyFromDslPoliciesDslPost** +> SuccessResponsePolicyOut createPolicyFromDslPoliciesDslPost(dsl) + +Create Policy From Dsl + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val dsl : kotlin.String = dsl_example // kotlin.String | +try { + val result : SuccessResponsePolicyOut = apiInstance.createPolicyFromDslPoliciesDslPost(dsl) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createPolicyFromDslPoliciesDslPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createPolicyFromDslPoliciesDslPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **dsl** | **kotlin.String**| | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **createPolicyPoliciesPost** +> SuccessResponsePolicyOut createPolicyPoliciesPost(policyCreate) + +Create Policy + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val policyCreate : PolicyCreate = // PolicyCreate | +try { + val result : SuccessResponsePolicyOut = apiInstance.createPolicyPoliciesPost(policyCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createPolicyPoliciesPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createPolicyPoliciesPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createRelationshipRelationshipsPost** +> SuccessResponseRelationshipOut createRelationshipRelationshipsPost(relationshipCreate) + +Create Relationship + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val relationshipCreate : RelationshipCreate = // RelationshipCreate | +try { + val result : SuccessResponseRelationshipOut = apiInstance.createRelationshipRelationshipsPost(relationshipCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createRelationshipRelationshipsPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createRelationshipRelationshipsPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md)| | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createRoleRolesPost** +> RoleOut createRoleRolesPost(roleCreate) + +Create Role + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val roleCreate : RoleCreate = // RoleCreate | +try { + val result : RoleOut = apiInstance.createRoleRolesPost(roleCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#createRoleRolesPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#createRoleRolesPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleCreate** | [**RoleCreate**](RoleCreate.md)| | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteAclEntryAclAclIdDelete** +> SuccessResponseDictStrInt deleteAclEntryAclAclIdDelete(aclId) + +Delete Acl Entry + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val aclId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseDictStrInt = apiInstance.deleteAclEntryAclAclIdDelete(aclId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#deleteAclEntryAclAclIdDelete") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#deleteAclEntryAclAclIdDelete") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **aclId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **deletePermissionPermissionsPermissionIdDelete** +> SuccessResponseDictStrInt deletePermissionPermissionsPermissionIdDelete(permissionId) + +Delete Permission + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val permissionId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseDictStrInt = apiInstance.deletePermissionPermissionsPermissionIdDelete(permissionId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#deletePermissionPermissionsPermissionIdDelete") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#deletePermissionPermissionsPermissionIdDelete") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **deletePolicyPoliciesPolicyKeyDelete** +> SuccessResponseDictStrStr deletePolicyPoliciesPolicyKeyDelete(policyKey) + +Delete Policy + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val policyKey : kotlin.String = policyKey_example // kotlin.String | +try { + val result : SuccessResponseDictStrStr = apiInstance.deletePolicyPoliciesPolicyKeyDelete(policyKey) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#deletePolicyPoliciesPolicyKeyDelete") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#deletePolicyPoliciesPolicyKeyDelete") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyKey** | **kotlin.String**| | | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **deleteRoleRolesRoleIdDelete** +> SuccessResponseDictStrInt deleteRoleRolesRoleIdDelete(roleId) + +Delete Role + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val roleId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseDictStrInt = apiInstance.deleteRoleRolesRoleIdDelete(roleId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#deleteRoleRolesRoleIdDelete") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#deleteRoleRolesRoleIdDelete") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **getAuthModelAuthModelGet** +> SuccessResponseAuthModelOut getAuthModelAuthModelGet() + +Get Auth Model + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +try { + val result : SuccessResponseAuthModelOut = apiInstance.getAuthModelAuthModelGet() + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#getAuthModelAuthModelGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#getAuthModelAuthModelGet") + e.printStackTrace() +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **impactAnalysisImpactAnalysisPost** +> SuccessResponseImpactAnalysisResponse impactAnalysisImpactAnalysisPost(impactAnalysisRequest) + +Impact Analysis + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val impactAnalysisRequest : ImpactAnalysisRequest = // ImpactAnalysisRequest | +try { + val result : SuccessResponseImpactAnalysisResponse = apiInstance.impactAnalysisImpactAnalysisPost(impactAnalysisRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#impactAnalysisImpactAnalysisPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#impactAnalysisImpactAnalysisPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md)| | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listAclEntriesAclResourceTypeResourceIdGet** +> SuccessResponseListACLOut listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) + +List Acl Entries + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val resourceType : kotlin.String = resourceType_example // kotlin.String | +val resourceId : kotlin.String = resourceId_example // kotlin.String | +try { + val result : SuccessResponseListACLOut = apiInstance.listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listAclEntriesAclResourceTypeResourceIdGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listAclEntriesAclResourceTypeResourceIdGet") + e.printStackTrace() +} +``` + +### Parameters +| **resourceType** | **kotlin.String**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **resourceId** | **kotlin.String**| | | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listAuditLogsAuditGet** +> SuccessResponseListAuditRecordOut listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) + +List Audit Logs + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val limit : kotlin.Int = 56 // kotlin.Int | +val cursor : kotlin.String = cursor_example // kotlin.String | +val userId : kotlin.String = userId_example // kotlin.String | +val resourceId : kotlin.String = resourceId_example // kotlin.String | +val decision : kotlin.String = decision_example // kotlin.String | +val startTime : kotlin.time.Instant = 2013-10-20T19:20:30+01:00 // kotlin.time.Instant | +val endTime : kotlin.time.Instant = 2013-10-20T19:20:30+01:00 // kotlin.time.Instant | +try { + val result : SuccessResponseListAuditRecordOut = apiInstance.listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listAuditLogsAuditGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listAuditLogsAuditGet") + e.printStackTrace() +} +``` + +### Parameters +| **limit** | **kotlin.Int**| | [optional] [default to 50] | +| **cursor** | **kotlin.String**| | [optional] | +| **userId** | **kotlin.String**| | [optional] | +| **resourceId** | **kotlin.String**| | [optional] | +| **decision** | **kotlin.String**| | [optional] | +| **startTime** | **kotlin.time.Instant**| | [optional] | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **endTime** | **kotlin.time.Instant**| | [optional] | + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listPermissionRolesPermissionsPermissionIdRolesGet** +> SuccessResponseListRoleOut listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) + +List Permission Roles + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val permissionId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseListRoleOut = apiInstance.listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listPermissionRolesPermissionsPermissionIdRolesGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listPermissionRolesPermissionsPermissionIdRolesGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listPermissionsPermissionsGet** +> SuccessResponseListPermissionOut listPermissionsPermissionsGet(limit, cursor) + +List Permissions + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val limit : kotlin.Int = 56 // kotlin.Int | +val cursor : kotlin.String = cursor_example // kotlin.String | +try { + val result : SuccessResponseListPermissionOut = apiInstance.listPermissionsPermissionsGet(limit, cursor) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listPermissionsPermissionsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listPermissionsPermissionsGet") + e.printStackTrace() +} +``` + +### Parameters +| **limit** | **kotlin.Int**| | [optional] [default to 50] | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **cursor** | **kotlin.String**| | [optional] | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listPoliciesPoliciesGet** +> SuccessResponseListPolicyOut listPoliciesPoliciesGet(limit, cursor) + +List Policies + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val limit : kotlin.Int = 56 // kotlin.Int | +val cursor : kotlin.String = cursor_example // kotlin.String | +try { + val result : SuccessResponseListPolicyOut = apiInstance.listPoliciesPoliciesGet(limit, cursor) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listPoliciesPoliciesGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listPoliciesPoliciesGet") + e.printStackTrace() +} +``` + +### Parameters +| **limit** | **kotlin.Int**| | [optional] [default to 50] | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **cursor** | **kotlin.String**| | [optional] | + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listRelationshipsRelationshipsGet** +> SuccessResponseListDictStrStr listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) + +List Relationships + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val subjectType : kotlin.String = subjectType_example // kotlin.String | +val subjectId : kotlin.String = subjectId_example // kotlin.String | +val limit : kotlin.Int = 56 // kotlin.Int | +val cursor : kotlin.String = cursor_example // kotlin.String | +try { + val result : SuccessResponseListDictStrStr = apiInstance.listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listRelationshipsRelationshipsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listRelationshipsRelationshipsGet") + e.printStackTrace() +} +``` + +### Parameters +| **subjectType** | **kotlin.String**| | | +| **subjectId** | **kotlin.String**| | | +| **limit** | **kotlin.Int**| | [optional] [default to 50] | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **cursor** | **kotlin.String**| | [optional] | + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listRolePermissionsRolesRoleIdPermissionsGet** +> SuccessResponseListPermissionOut listRolePermissionsRolesRoleIdPermissionsGet(roleId) + +List Role Permissions + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val roleId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseListPermissionOut = apiInstance.listRolePermissionsRolesRoleIdPermissionsGet(roleId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listRolePermissionsRolesRoleIdPermissionsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listRolePermissionsRolesRoleIdPermissionsGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listRolesRolesGet** +> SuccessResponseListRoleOut listRolesRolesGet(limit, cursor) + +List Roles + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val limit : kotlin.Int = 56 // kotlin.Int | +val cursor : kotlin.String = cursor_example // kotlin.String | +try { + val result : SuccessResponseListRoleOut = apiInstance.listRolesRolesGet(limit, cursor) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#listRolesRolesGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#listRolesRolesGet") + e.printStackTrace() +} +``` + +### Parameters +| **limit** | **kotlin.Int**| | [optional] [default to 50] | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **cursor** | **kotlin.String**| | [optional] | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** +> SuccessResponseDictStrInt removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) + +Remove Permission From Role + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val roleId : kotlin.Int = 56 // kotlin.Int | +val permissionId : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseDictStrInt = apiInstance.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete") + e.printStackTrace() +} +``` + +### Parameters +| **roleId** | **kotlin.Int**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **rollbackPolicyPoliciesPolicyKeyRollbackVersionPost** +> SuccessResponseDictStrUnionIntStr rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) + +Rollback Policy + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val policyKey : kotlin.String = policyKey_example // kotlin.String | +val version : kotlin.Int = 56 // kotlin.Int | +try { + val result : SuccessResponseDictStrUnionIntStr = apiInstance.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost") + e.printStackTrace() +} +``` + +### Parameters +| **policyKey** | **kotlin.String**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **version** | **kotlin.Int**| | | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **simulatePolicySimulatePolicyPost** +> SuccessResponsePolicySimulationResponse simulatePolicySimulatePolicyPost(policySimulationRequest) + +Simulate Policy + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val policySimulationRequest : PolicySimulationRequest = // PolicySimulationRequest | +try { + val result : SuccessResponsePolicySimulationResponse = apiInstance.simulatePolicySimulatePolicyPost(policySimulationRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#simulatePolicySimulatePolicyPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#simulatePolicySimulatePolicyPost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md)| | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updatePermissionPermissionsPermissionIdPut** +> PermissionOut updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) + +Update Permission + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val permissionId : kotlin.Int = 56 // kotlin.Int | +val permissionUpdate : PermissionUpdate = // PermissionUpdate | +try { + val result : PermissionOut = apiInstance.updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#updatePermissionPermissionsPermissionIdPut") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#updatePermissionPermissionsPermissionIdPut") + e.printStackTrace() +} +``` + +### Parameters +| **permissionId** | **kotlin.Int**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md)| | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updatePolicyPoliciesPolicyKeyPut** +> SuccessResponsePolicyOut updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) + +Update Policy + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val policyKey : kotlin.String = policyKey_example // kotlin.String | +val policyCreate : PolicyCreate = // PolicyCreate | +try { + val result : SuccessResponsePolicyOut = apiInstance.updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#updatePolicyPoliciesPolicyKeyPut") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#updatePolicyPoliciesPolicyKeyPut") + e.printStackTrace() +} +``` + +### Parameters +| **policyKey** | **kotlin.String**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **updateRoleRolesRoleIdPut** +> RoleOut updateRoleRolesRoleIdPut(roleId, roleUpdate) + +Update Role + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = ManagementApi() +val roleId : kotlin.Int = 56 // kotlin.Int | +val roleUpdate : RoleUpdate = // RoleUpdate | +try { + val result : RoleOut = apiInstance.updateRoleRolesRoleIdPut(roleId, roleUpdate) + println(result) +} catch (e: ClientException) { + println("4xx response calling ManagementApi#updateRoleRolesRoleIdPut") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ManagementApi#updateRoleRolesRoleIdPut") + e.printStackTrace() +} +``` + +### Parameters +| **roleId** | **kotlin.Int**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleUpdate** | [**RoleUpdate**](RoleUpdate.md)| | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/sdks/kotlin/docs/MetaBody.md b/sdks/kotlin/docs/MetaBody.md new file mode 100644 index 0000000..c3ec1f9 --- /dev/null +++ b/sdks/kotlin/docs/MetaBody.md @@ -0,0 +1,13 @@ + +# MetaBody + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **requestId** | **kotlin.String** | | [optional] | +| **limit** | **kotlin.Int** | | [optional] | +| **nextCursor** | **kotlin.String** | | [optional] | +| **extra** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/PermissionCreate.md b/sdks/kotlin/docs/PermissionCreate.md new file mode 100644 index 0000000..9e82160 --- /dev/null +++ b/sdks/kotlin/docs/PermissionCreate.md @@ -0,0 +1,10 @@ + +# PermissionCreate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/PermissionOut.md b/sdks/kotlin/docs/PermissionOut.md new file mode 100644 index 0000000..4aa346f --- /dev/null +++ b/sdks/kotlin/docs/PermissionOut.md @@ -0,0 +1,11 @@ + +# PermissionOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **kotlin.Int** | | | +| **action** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/PermissionUpdate.md b/sdks/kotlin/docs/PermissionUpdate.md new file mode 100644 index 0000000..d425dda --- /dev/null +++ b/sdks/kotlin/docs/PermissionUpdate.md @@ -0,0 +1,10 @@ + +# PermissionUpdate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/PlaygroundApi.md b/sdks/kotlin/docs/PlaygroundApi.md new file mode 100644 index 0000000..50273c5 --- /dev/null +++ b/sdks/kotlin/docs/PlaygroundApi.md @@ -0,0 +1,58 @@ +# PlaygroundApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**evaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluatePlaygroundEvaluatePost) | **POST** /playground/evaluate | Evaluate | + + + +# **evaluatePlaygroundEvaluatePost** +> SuccessResponseDictStrAny evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) + +Evaluate + +### Example +```kotlin +// Import classes: +//import io.keynetra.client.infrastructure.* +//import io.keynetra.client.models.* + +val apiInstance = PlaygroundApi() +val playgroundEvaluateRequest : PlaygroundEvaluateRequest = // PlaygroundEvaluateRequest | +try { + val result : SuccessResponseDictStrAny = apiInstance.evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling PlaygroundApi#evaluatePlaygroundEvaluatePost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling PlaygroundApi#evaluatePlaygroundEvaluatePost") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md)| | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + + +Configure APIKeyHeader: + ApiClient.apiKey["X-API-Key"] = "" + ApiClient.apiKeyPrefix["X-API-Key"] = "" +Configure HTTPBearer: + ApiClient.accessToken = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/sdks/kotlin/docs/PlaygroundEvaluateRequest.md b/sdks/kotlin/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..13e3914 --- /dev/null +++ b/sdks/kotlin/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,11 @@ + +# PlaygroundEvaluateRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **policies** | [**kotlin.collections.List<PlaygroundPolicy>**](PlaygroundPolicy.md) | | | +| **input** | [**PlaygroundInput**](PlaygroundInput.md) | | | + + + diff --git a/sdks/kotlin/docs/PlaygroundInput.md b/sdks/kotlin/docs/PlaygroundInput.md new file mode 100644 index 0000000..19bc925 --- /dev/null +++ b/sdks/kotlin/docs/PlaygroundInput.md @@ -0,0 +1,13 @@ + +# PlaygroundInput + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **action** | **kotlin.String** | | [optional] | +| **context** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/PlaygroundPolicy.md b/sdks/kotlin/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..6a29c15 --- /dev/null +++ b/sdks/kotlin/docs/PlaygroundPolicy.md @@ -0,0 +1,14 @@ + +# PlaygroundPolicy + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | +| **effect** | **kotlin.String** | | [optional] | +| **priority** | **kotlin.Int** | | [optional] | +| **policyId** | **kotlin.String** | | [optional] | +| **conditions** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/PolicyCreate.md b/sdks/kotlin/docs/PolicyCreate.md new file mode 100644 index 0000000..44465b1 --- /dev/null +++ b/sdks/kotlin/docs/PolicyCreate.md @@ -0,0 +1,14 @@ + +# PolicyCreate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **action** | **kotlin.String** | | | +| **effect** | **kotlin.String** | | [optional] | +| **priority** | **kotlin.Int** | | [optional] | +| **state** | **kotlin.String** | | [optional] | +| **conditions** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/PolicyOut.md b/sdks/kotlin/docs/PolicyOut.md new file mode 100644 index 0000000..1dfe7f6 --- /dev/null +++ b/sdks/kotlin/docs/PolicyOut.md @@ -0,0 +1,15 @@ + +# PolicyOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **kotlin.Int** | | | +| **action** | **kotlin.String** | | | +| **effect** | **kotlin.String** | | | +| **priority** | **kotlin.Int** | | | +| **conditions** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **state** | **kotlin.String** | | [optional] | + + + diff --git a/sdks/kotlin/docs/PolicySimulationInput.md b/sdks/kotlin/docs/PolicySimulationInput.md new file mode 100644 index 0000000..39b5ea6 --- /dev/null +++ b/sdks/kotlin/docs/PolicySimulationInput.md @@ -0,0 +1,12 @@ + +# PolicySimulationInput + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **policyChange** | **kotlin.String** | | [optional] | +| **relationshipChange** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | +| **roleChange** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/PolicySimulationRequest.md b/sdks/kotlin/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..ae99ed7 --- /dev/null +++ b/sdks/kotlin/docs/PolicySimulationRequest.md @@ -0,0 +1,11 @@ + +# PolicySimulationRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] | +| **request** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/PolicySimulationResponse.md b/sdks/kotlin/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..9045c09 --- /dev/null +++ b/sdks/kotlin/docs/PolicySimulationResponse.md @@ -0,0 +1,11 @@ + +# PolicySimulationResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **decisionBefore** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **decisionAfter** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | + + + diff --git a/sdks/kotlin/docs/RelationshipCreate.md b/sdks/kotlin/docs/RelationshipCreate.md new file mode 100644 index 0000000..412ff1d --- /dev/null +++ b/sdks/kotlin/docs/RelationshipCreate.md @@ -0,0 +1,14 @@ + +# RelationshipCreate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **subjectType** | **kotlin.String** | | | +| **subjectId** | **kotlin.String** | | | +| **relation** | **kotlin.String** | | | +| **objectType** | **kotlin.String** | | | +| **objectId** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/RelationshipOut.md b/sdks/kotlin/docs/RelationshipOut.md new file mode 100644 index 0000000..66145ae --- /dev/null +++ b/sdks/kotlin/docs/RelationshipOut.md @@ -0,0 +1,15 @@ + +# RelationshipOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **subjectType** | **kotlin.String** | | | +| **subjectId** | **kotlin.String** | | | +| **relation** | **kotlin.String** | | | +| **objectType** | **kotlin.String** | | | +| **objectId** | **kotlin.String** | | | +| **id** | **kotlin.Int** | | | + + + diff --git a/sdks/kotlin/docs/RoleCreate.md b/sdks/kotlin/docs/RoleCreate.md new file mode 100644 index 0000000..54bb77e --- /dev/null +++ b/sdks/kotlin/docs/RoleCreate.md @@ -0,0 +1,10 @@ + +# RoleCreate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/RoleOut.md b/sdks/kotlin/docs/RoleOut.md new file mode 100644 index 0000000..b47d54e --- /dev/null +++ b/sdks/kotlin/docs/RoleOut.md @@ -0,0 +1,11 @@ + +# RoleOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | **kotlin.Int** | | | +| **name** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/RoleUpdate.md b/sdks/kotlin/docs/RoleUpdate.md new file mode 100644 index 0000000..6743584 --- /dev/null +++ b/sdks/kotlin/docs/RoleUpdate.md @@ -0,0 +1,10 @@ + +# RoleUpdate + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | | | + + + diff --git a/sdks/kotlin/docs/SimulationResponse.md b/sdks/kotlin/docs/SimulationResponse.md new file mode 100644 index 0000000..b36e9e6 --- /dev/null +++ b/sdks/kotlin/docs/SimulationResponse.md @@ -0,0 +1,16 @@ + +# SimulationResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **decision** | **kotlin.String** | | | +| **matchedPolicies** | **kotlin.collections.List<kotlin.String>** | | | +| **reason** | **kotlin.String** | | [optional] | +| **policyId** | **kotlin.String** | | [optional] | +| **explainTrace** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.Any>>** | | [optional] | +| **failedConditions** | **kotlin.collections.List<kotlin.String>** | | [optional] | +| **revision** | **kotlin.Int** | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseACLOut.md b/sdks/kotlin/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..0dfa280 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseACLOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseACLOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**ACLOut**](ACLOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..0955eed --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,12 @@ + +# SuccessResponseAccessDecisionResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..a33348d --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,12 @@ + +# SuccessResponseAdminLoginResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..c040363 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseAuthModelOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**AuthModelOut**](AuthModelOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..a2ff457 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,12 @@ + +# SuccessResponseBatchAccessResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseDictStrAny.md b/sdks/kotlin/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..e207a05 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,12 @@ + +# SuccessResponseDictStrAny + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseDictStrInt.md b/sdks/kotlin/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..3188711 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,12 @@ + +# SuccessResponseDictStrInt + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.Int>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseDictStrObject.md b/sdks/kotlin/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..ac15ab8 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,12 @@ + +# SuccessResponseDictStrObject + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseDictStrStr.md b/sdks/kotlin/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..af1ebab --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,12 @@ + +# SuccessResponseDictStrStr + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..de8028a --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,12 @@ + +# SuccessResponseDictStrUnionIntStr + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.Map<kotlin.String, DataValue>**](DataValue.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..1a6e6c5 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,12 @@ + +# SuccessResponseImpactAnalysisResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseListACLOut.md b/sdks/kotlin/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..30aa0e7 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseListACLOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseListACLOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.List<ACLOut>**](ACLOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..ff03159 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseListAuditRecordOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.List<AuditRecordOut>**](AuditRecordOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..4127b1c --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,12 @@ + +# SuccessResponseListDictStrStr + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.String>>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..e56b8d1 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseListPermissionOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.List<PermissionOut>**](PermissionOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..3a24ffc --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseListPolicyOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.List<PolicyOut>**](PolicyOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseListRoleOut.md b/sdks/kotlin/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..a1d01af --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseListRoleOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**kotlin.collections.List<RoleOut>**](RoleOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponsePermissionOut.md b/sdks/kotlin/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..ceda82c --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,12 @@ + +# SuccessResponsePermissionOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**PermissionOut**](PermissionOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponsePolicyOut.md b/sdks/kotlin/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..29f94d6 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,12 @@ + +# SuccessResponsePolicyOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**PolicyOut**](PolicyOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..e43a166 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,12 @@ + +# SuccessResponsePolicySimulationResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..205449d --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,12 @@ + +# SuccessResponseRelationshipOut + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**RelationshipOut**](RelationshipOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..f955022 --- /dev/null +++ b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,12 @@ + +# SuccessResponseSimulationResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **`data`** | [**SimulationResponse**](SimulationResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + + + diff --git a/sdks/kotlin/docs/ValidationError.md b/sdks/kotlin/docs/ValidationError.md new file mode 100644 index 0000000..6c9709d --- /dev/null +++ b/sdks/kotlin/docs/ValidationError.md @@ -0,0 +1,14 @@ + +# ValidationError + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **loc** | [**kotlin.collections.List<LocationInner>**](LocationInner.md) | | | +| **msg** | **kotlin.String** | | | +| **type** | **kotlin.String** | | | +| **input** | [**kotlin.Any**](.md) | | [optional] | +| **ctx** | **kotlin.String** | | [optional] | + + + diff --git a/sdks/kotlin/gradle/wrapper/gradle-wrapper.jar b/sdks/kotlin/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..2c3521197d7c4586c843d1d3e9090525f1898cde GIT binary patch literal 43504 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vW>HF-ViB*%t0;Thq2} z+qP}n=Cp0wwr%5S+qN<7?r+``=l(h0z2`^8j;g2~Q4u?{cIL{JYY%l|iw&YH4FL(8 z1-*E#ANDHi+1f%lMJbRfq*`nG)*#?EJEVoDH5XdfqwR-C{zmbQoh?E zhW!|TvYv~>R*OAnyZf@gC+=%}6N90yU@E;0b_OV#xL9B?GX(D&7BkujjFC@HVKFci zb_>I5e!yuHA1LC`xm&;wnn|3ht3h7|rDaOsh0ePhcg_^Wh8Bq|AGe`4t5Gk(9^F;M z8mFr{uCm{)Uq0Xa$Fw6+da`C4%)M_#jaX$xj;}&Lzc8wTc%r!Y#1akd|6FMf(a4I6 z`cQqS_{rm0iLnhMG~CfDZc96G3O=Tihnv8g;*w?)C4N4LE0m#H1?-P=4{KeC+o}8b zZX)x#(zEysFm$v9W8-4lkW%VJIjM~iQIVW)A*RCO{Oe_L;rQ3BmF*bhWa}!=wcu@# zaRWW{&7~V-e_$s)j!lJsa-J?z;54!;KnU3vuhp~(9KRU2GKYfPj{qA?;#}H5f$Wv-_ zGrTb(EAnpR0*pKft3a}6$npzzq{}ApC&=C&9KoM3Ge@24D^8ZWJDiXq@r{hP=-02& z@Qrn-cbr2YFc$7XR0j7{jAyR;4LLBf_XNSrmd{dV3;ae;fsEjds*2DZ&@#e)Qcc}w zLgkfW=9Kz|eeM$E`-+=jQSt}*kAwbMBn7AZSAjkHUn4n||NBq*|2QPcKaceA6m)g5 z_}3?DX>90X|35eI7?n+>f9+hl5b>#q`2+`FXbOu9Q94UX-GWH;d*dpmSFd~7WM#H2 zvKNxjOtC)U_tx*0(J)eAI8xAD8SvhZ+VRUA?)| zeJjvg9)vi`Qx;;1QP!c_6hJp1=J=*%!>ug}%O!CoSh-D_6LK0JyiY}rOaqSeja&jb#P|DR7 z_JannlfrFeaE$irfrRIiN|huXmQhQUN6VG*6`bzN4Z3!*G?FjN8!`ZTn6Wn4n=Ync z_|Sq=pO7+~{W2}599SfKz@umgRYj6LR9u0*BaHqdEw^i)dKo5HomT9zzB$I6w$r?6 zs2gu*wNOAMK`+5yPBIxSOJpL$@SN&iUaM zQ3%$EQt%zQBNd`+rl9R~utRDAH%7XP@2Z1s=)ks77I(>#FuwydE5>LzFx)8ye4ClM zb*e2i*E$Te%hTKh7`&rQXz;gvm4Dam(r-!FBEcw*b$U%Wo9DIPOwlC5Ywm3WRCM4{ zF42rnEbBzUP>o>MA){;KANhAW7=FKR=DKK&S1AqSxyP;k z;fp_GVuV}y6YqAd)5p=tJ~0KtaeRQv^nvO?*hZEK-qA;vuIo!}Xgec4QGW2ipf2HK z&G&ppF*1aC`C!FR9(j4&r|SHy74IiDky~3Ab)z@9r&vF+Bapx<{u~gb2?*J zSl{6YcZ$&m*X)X?|8<2S}WDrWN3yhyY7wlf*q`n^z3LT4T$@$y``b{m953kfBBPpQ7hT;zs(Nme`Qw@{_pUO0OG zfugi3N?l|jn-Du3Qn{Aa2#6w&qT+oof=YM!Zq~Xi`vlg<;^)Jreeb^x6_4HL-j}sU z1U^^;-WetwPLKMsdx4QZ$haq3)rA#ATpEh{NXto-tOXjCwO~nJ(Z9F%plZ{z(ZW!e zF>nv&4ViOTs58M+f+sGimF^9cB*9b(gAizwyu5|--SLmBOP-uftqVnVBd$f7YrkJ8!jm*QQEQC zEQ+@T*AA1kV@SPF6H5sT%^$$6!e5;#N((^=OA5t}bqIdqf`PiMMFEDhnV#AQWSfLp zX=|ZEsbLt8Sk&wegQU0&kMC|cuY`&@<#r{t2*sq2$%epiTVpJxWm#OPC^wo_4p++U zU|%XFYs+ZCS4JHSRaVET)jV?lbYAd4ouXx0Ka6*wIFBRgvBgmg$kTNQEvs0=2s^sU z_909)3`Ut!m}}@sv<63E@aQx}-!qVdOjSOnAXTh~MKvr$0nr(1Fj-3uS{U6-T9NG1Y(Ua)Nc}Mi< zOBQz^&^v*$BqmTIO^;r@kpaq3n!BI?L{#bw)pdFV&M?D0HKqC*YBxa;QD_4(RlawI z5wBK;7T^4dT7zt%%P<*-M~m?Et;S^tdNgQSn?4$mFvIHHL!`-@K~_Ar4vBnhy{xuy zigp!>UAwPyl!@~(bkOY;un&B~Evy@5#Y&cEmzGm+)L~4o4~|g0uu&9bh8N0`&{B2b zDj2>biRE1`iw}lv!rl$Smn(4Ob>j<{4dT^TfLe-`cm#S!w_9f;U)@aXWSU4}90LuR zVcbw;`2|6ra88#Cjf#u62xq?J)}I)_y{`@hzES(@mX~}cPWI8}SRoH-H;o~`>JWU$ zhLudK3ug%iS=xjv9tnmOdTXcq_?&o30O;(+VmC&p+%+pd_`V}RY4ibQMNE&N5O+hb3bQ8bxk^33Fu4DB2*~t1909gqoutQHx^plq~;@g$d_+rzS0`2;}2UR2h#?p35B=B*f0BZS4ysiWC!kw?4B-dM%m6_BfRbey1Wh? zT1!@>-y=U}^fxH0A`u1)Mz90G6-<4aW^a@l_9L6Y;cd$3<#xIrhup)XLkFi$W&Ohu z8_j~-VeVXDf9b&6aGelt$g*BzEHgzh)KDgII_Y zb$fcY8?XI6-GEGTZVWW%O;njZld)29a_&1QvNYJ@OpFrUH{er@mnh*}326TYAK7_Z zA={KnK_o3QLk|%m@bx3U#^tCChLxjPxMesOc5D4G+&mvp@Clicz^=kQlWp1|+z|V7 zkU#7l61m@^#`1`{+m2L{sZC#j?#>0)2z4}}kqGhB{NX%~+3{5jOyij!e$5-OAs zDvq+>I2(XsY9%NNhNvKiF<%!6t^7&k{L7~FLdkP9!h%=2Kt$bUt(Zwp*&xq_+nco5 zK#5RCM_@b4WBK*~$CsWj!N!3sF>ijS=~$}_iw@vbKaSp5Jfg89?peR@51M5}xwcHW z(@1TK_kq$c4lmyb=aX3-JORe+JmuNkPP=bM*B?};c=_;h2gT-nt#qbriPkpaqoF@q z<)!80iKvTu`T-B3VT%qKO^lfPQ#m5Ei6Y%Fs@%Pt!8yX&C#tL$=|Ma8i?*^9;}Fk> zyzdQQC5YTBO&gx6kB~yhUUT&%q3a3o+zueh>5D7tdByYVcMz@>j!C@Iyg{N1)veYl`SPshuH6Rk=O6pvVrI71rI5*%uU3u81DpD%qmXsbKWMFR@2m4vO_^l6MMbO9a()DcWmYT&?0B_ zuY~tDiQ6*X7;9B*5pj?;xy_B}*{G}LjW*qU&%*QAyt30@-@O&NQTARZ+%VScr>`s^KX;M!p; z?8)|}P}L_CbOn!u(A{c5?g{s31Kn#7i)U@+_KNU-ZyVD$H7rtOjSht8%N(ST-)%r` z63;Hyp^KIm-?D;E-EnpAAWgz2#z{fawTx_;MR7)O6X~*jm*VUkam7>ueT^@+Gb3-Y zN3@wZls8ibbpaoR2xH=$b3x1Ng5Tai=LT2@_P&4JuBQ!r#Py3ew!ZVH4~T!^TcdyC ze#^@k4a(nNe~G+y zI~yXK@1HHWU4pj{gWT6v@$c(x){cLq*KlFeKy?f$_u##)hDu0X_mwL6uKei~oPd9( zRaF_k&w(J3J8b_`F~?0(Ei_pH}U^c&r$uSYawB8Ybs-JZ|&;vKLWX! z|HFZ%-uBDaP*hMcQKf*|j5!b%H40SPD*#{A`kj|~esk@1?q}-O7WyAm3mD@-vHzw( zTSOlO(K9>GW;@?@xSwpk%X3Ui4_Psm;c*HF~RW+q+C#RO_VT5(x!5B#On-W`T|u z>>=t)W{=B-8wWZejxMaBC9sHzBZGv5uz_uu281kxHg2cll_sZBC&1AKD`CYh2vKeW zm#|MMdC}6A&^DX=>_(etx8f}9o}`(G?Y``M?D+aTPJbZqONmSs>y>WSbvs>7PE~cb zjO+1Y)PMi*!=06^$%< z*{b^66BIl{7zKvz^jut7ylDQBt)ba_F*$UkDgJ2gSNfHB6+`OEiz@xs$Tcrl>X4?o zu9~~b&Xl0?w(7lJXu8-9Yh6V|A3f?)1|~+u-q&6#YV`U2i?XIqUw*lc-QTXwuf@8d zSjMe1BhBKY`Mo{$s%Ce~Hv(^B{K%w{yndEtvyYjjbvFY^rn2>C1Lbi!3RV7F>&;zlSDSk}R>{twI}V zA~NK%T!z=^!qbw(OEgsmSj?#?GR&A$0&K>^(?^4iphc3rN_(xXA%joi)k~DmRLEXl zaWmwMolK%@YiyI|HvX{X$*Ei7y+zJ%m{b}$?N7_SN&p+FpeT%4Z_2`0CP=}Y3D-*@ zL|4W4ja#8*%SfkZzn5sfVknpJv&>glRk^oUqykedE8yCgIwCV)fC1iVwMr4hc#KcV!|M-r_N|nQWw@`j+0(Ywct~kLXQ)Qyncmi{Q4`Ur7A{Ep)n`zCtm8D zVX`kxa8Syc`g$6$($Qc-(_|LtQKWZXDrTir5s*pSVmGhk#dKJzCYT?vqA9}N9DGv> zw}N$byrt?Mk*ZZbN5&zb>pv;rU}EH@Rp54)vhZ=330bLvrKPEPu!WqR%yeM3LB!(E zw|J05Y!tajnZ9Ml*-aX&5T8YtuWDq@on)_*FMhz-?m|>RT0~e3OHllrEMthVY(KwQ zu>ijTc4>Xz-q1(g!ESjaZ+C+Zk5FgmF)rFX29_RmU!`7Pw+0}>8xK^=pOxtUDV)ok zw-=p=OvEH&VO3wToRdI!hPHc`qX+_{T_mj!NxcA&xOgkEuvz`-Aa`ZlNv>qnD0`YT1T3USO0ec!%{KE~UOGPJX%I5_rZDGx@|w zVIMsRPP+}^Xxa&{x!q{hY1wat8jDO7YP0(8xHWeEdrd79lUjB8%)v{X1pQu|1dr*y9M&a(J`038}4>lK&K zIM~6wnX{XA?pFHz{hOmEq{oYBnB@56twXqEcFrFqvCy)sH9B{pQ`G50o{W^t&onwY z-l{ur4#8ylPV5YRLD%%j^d0&_WI>0nmfZ8! zaZ&vo@7D`!=?215+Vk181*U@^{U>VyoXh2F&ZNzZx5tDDtlLc)gi2=|o=GC`uaH;< zFuuF?Q9Q`>S#c(~2p|s49RA`3242`2P+)F)t2N!CIrcl^0#gN@MLRDQ2W4S#MXZJO z8<(9P>MvW;rf2qZ$6sHxCVIr0B-gP?G{5jEDn%W#{T#2_&eIjvlVqm8J$*8A#n`5r zs6PuC!JuZJ@<8cFbbP{cRnIZs>B`?`rPWWL*A?1C3QqGEG?*&!*S0|DgB~`vo_xIo z&n_Sa(>6<$P7%Py{R<>n6Jy?3W|mYYoxe5h^b6C#+UoKJ(zl?^WcBn#|7wMI5=?S# zRgk8l-J`oM%GV&jFc)9&h#9mAyowg^v%Fc-7_^ou5$*YvELa!1q>4tHfX7&PCGqW* zu8In~5`Q5qQvMdToE$w+RP^_cIS2xJjghjCTp6Z(za_D<$S;0Xjt?mAE8~Ym{)zfb zV62v9|59XOvR}wEpm~Cnhyr`=JfC$*o15k?T`3s-ZqF6Gy;Gm+_6H$%oJPywWA^Wl zzn$L=N%{VT8DkQba0|2LqGR#O2Pw!b%LV4#Ojcx5`?Cm;+aLpkyZ=!r1z@E}V= z$2v6v%Ai)MMd`@IM&UD!%%(63VH8+m0Ebk<5Du#0=WeK(E<2~3@>8TceT$wy5F52n zRFtY>G9Gp~h#&R92{G{jLruZSNJ4)gNK+zg*$P zW@~Hf>_Do)tvfEAAMKE1nQ=8coTgog&S;wj(s?Xa0!r?UU5#2>18V#|tKvay1Ka53 zl$RxpMqrkv`Sv&#!_u8$8PMken`QL0_sD2)r&dZziefzSlAdKNKroVU;gRJE#o*}w zP_bO{F4g;|t!iroy^xf~(Q5qc8a3<+vBW%VIOQ1!??d;yEn1at1wpt}*n- z0iQtfu}Isw4ZfH~8p~#RQUKwf<$XeqUr-5?8TSqokdHL7tY|47R; z#d+4NS%Cqp>LQbvvAMIhcCX@|HozKXl)%*5o>P2ZegGuOerV&_MeA}|+o-3L!ZNJd z#1xB^(r!IfE~i>*5r{u;pIfCjhY^Oev$Y1MT16w8pJ0?9@&FH*`d;hS=c#F6fq z{mqsHd*xa;>Hg?j80MwZ%}anqc@&s&2v{vHQS68fueNi5Z(VD2eH>jmv4uvE|HEQm z^=b&?1R9?<@=kjtUfm*I!wPf5Xnma(4*DfPk}Es*H$%NGCIM1qt(LSvbl7&tV>e2$ zUqvZOTiwQyxDoxL(mn?n_x%Tre?L&!FYCOy0>o}#DTC3uSPnyGBv*}!*Yv5IV)Bg_t%V+UrTXfr!Q8+eX}ANR*YLzwme7Rl z@q_*fP7wP2AZ(3WG*)4Z(q@)~c{Je&7?w^?&Wy3)v0{TvNQRGle9mIG>$M2TtQ(Vf z3*PV@1mX)}beRTPjoG#&&IO#Mn(DLGp}mn)_0e=9kXDewC8Pk@yo<8@XZjFP-_zic z{mocvT9Eo)H4Oj$>1->^#DbbiJn^M4?v7XbK>co+v=7g$hE{#HoG6ZEat!s~I<^_s zlFee93KDSbJKlv_+GPfC6P8b>(;dlJ5r9&Pc4kC2uR(0{Kjf+SMeUktef``iXD}8` zGufkM9*Sx4>+5WcK#Vqm$g#5z1DUhc_#gLGe4_icSzN5GKr|J&eB)LS;jTXWA$?(k zy?*%U9Q#Y88(blIlxrtKp6^jksNF>-K1?8=pmYAPj?qq}yO5L>_s8CAv=LQMe3J6? zOfWD>Kx_5A4jRoIU}&aICTgdYMqC|45}St;@0~7>Af+uK3vps9D!9qD)1;Y6Fz>4^ zR1X$s{QNZl7l%}Zwo2wXP+Cj-K|^wqZW?)s1WUw_APZLhH55g{wNW3liInD)WHh${ zOz&K>sB*4inVY3m)3z8w!yUz+CKF%_-s2KVr7DpwTUuZjPS9k-em^;>H4*?*B0Bg7 zLy2nfU=ac5N}x1+Tlq^lkNmB~Dj+t&l#fO&%|7~2iw*N!*xBy+ZBQ>#g_;I*+J{W* z=@*15><)Bh9f>>dgQrEhkrr2FEJ;R2rH%`kda8sD-FY6e#7S-<)V*zQA>)Ps)L- zgUuu@5;Ych#jX_KZ+;qEJJbu{_Z9WSsLSo#XqLpCK$gFidk}gddW(9$v}iyGm_OoH ztn$pv81zROq686_7@avq2heXZnkRi4n(3{5jTDO?9iP%u8S4KEqGL?^uBeg(-ws#1 z9!!Y_2Q~D?gCL3MQZO!n$+Wy(Twr5AS3{F7ak2f)Bu0iG^k^x??0}b6l!>Vjp{e*F z8r*(Y?3ZDDoS1G?lz#J4`d9jAEc9YGq1LbpYoFl!W!(j8-33Ey)@yx+BVpDIVyvpZ zq5QgKy>P}LlV?Bgy@I)JvefCG)I69H1;q@{8E8Ytw^s-rC7m5>Q>ZO(`$`9@`49s2)q#{2eN0A?~qS8%wxh%P*99h*Sv` zW_z3<=iRZBQKaDsKw^TfN;6`mRck|6Yt&e$R~tMA0ix;qgw$n~fe=62aG2v0S`7mU zI}gR#W)f+Gn=e3mm*F^r^tcv&S`Rym`X`6K`i8g-a0!p|#69@Bl!*&)QJ9(E7ycxz z)5-m9v`~$N1zszFi^=m%vw}Y{ZyYub!-6^KIY@mwF|W+|t~bZ%@rifEZ-28I@s$C` z>E+k~R1JC-M>8iC_GR>V9f9+uL2wPRATL9bC(sxd;AMJ>v6c#PcG|Xx1N5^1>ISd0 z4%vf-SNOw+1%yQq1YP`>iqq>5Q590_pr?OxS|HbLjx=9~Y)QO37RihG%JrJ^=Nj>g zPTcO$6r{jdE_096b&L;Wm8vcxUVxF0mA%W`aZz4n6XtvOi($ zaL!{WUCh&{5ar=>u)!mit|&EkGY$|YG<_)ZD)I32uEIWwu`R-_ z`FVeKyrx3>8Ep#2~%VVrQ%u#exo!anPe`bc)-M=^IP1n1?L2UQ@# zpNjoq-0+XCfqXS!LwMgFvG$PkX}5^6yxW)6%`S8{r~BA2-c%-u5SE#%mQ~5JQ=o$c z%+qa0udVq9`|=2n=0k#M=yiEh_vp?(tB|{J{EhVLPM^S@f-O*Lgb390BvwK7{wfdMKqUc0uIXKj5>g^z z#2`5^)>T73Eci+=E4n&jl42E@VYF2*UDiWLUOgF#p9`E4&-A#MJLUa&^hB@g7KL+n zr_bz+kfCcLIlAevILckIq~RCwh6dc5@%yN@#f3lhHIx4fZ_yT~o0#3@h#!HCN(rHHC6#0$+1AMq?bY~(3nn{o5g8{*e_#4RhW)xPmK zTYBEntuYd)`?`bzDksI9*MG$=^w!iiIcWg1lD&kM1NF@qKha0fDVz^W7JCam^!AQFxY@7*`a3tfBwN0uK_~YBQ18@^i%=YB}K0Iq(Q3 z=7hNZ#!N@YErE7{T|{kjVFZ+f9Hn($zih;f&q^wO)PJSF`K)|LdT>!^JLf=zXG>>G z15TmM=X`1%Ynk&dvu$Vic!XyFC(c=qM33v&SIl|p+z6Ah9(XQ0CWE^N-LgE#WF6Z+ zb_v`7^Rz8%KKg_@B>5*s-q*TVwu~MCRiXvVx&_3#r1h&L+{rM&-H6 zrcgH@I>0eY8WBX#Qj}Vml+fpv?;EQXBbD0lx%L?E4)b-nvrmMQS^}p_CI3M24IK(f| zV?tWzkaJXH87MBz^HyVKT&oHB;A4DRhZy;fIC-TlvECK)nu4-3s7qJfF-ZZGt7+6C3xZt!ZX4`M{eN|q!y*d^B+cF5W- zc9C|FzL;$bAfh56fg&y0j!PF8mjBV!qA=z$=~r-orU-{0AcQUt4 zNYC=_9(MOWe$Br9_50i#0z!*a1>U6ZvH>JYS9U$kkrCt7!mEUJR$W#Jt5vT?U&LCD zd@)kn%y|rkV|CijnZ((B2=j_rB;`b}F9+E1T46sg_aOPp+&*W~44r9t3AI}z)yUFJ z+}z5E6|oq+oPC3Jli)EPh9)o^B4KUYkk~AU9!g`OvC`a!#Q>JmDiMLTx>96_iDD9h@nW%Je4%>URwYM%5YU1&Dcdulvv3IH3GSrA4$)QjlGwUt6 zsR6+PnyJ$1x{|R=ogzErr~U|X!+b+F8=6y?Yi`E$yjWXsdmxZa^hIqa)YV9ubUqOj&IGY}bk zH4*DEn({py@MG5LQCI;J#6+98GaZYGW-K-&C`(r5#?R0Z){DlY8ZZk}lIi$xG}Q@2 z0LJhzuus-7dLAEpG1Lf+KOxn&NSwO{wn_~e0=}dovX)T(|WRMTqacoW8;A>8tTDr+0yRa+U!LW z!H#Gnf^iCy$tTk3kBBC=r@xhskjf1}NOkEEM4*r+A4`yNAIjz`_JMUI#xTf$+{UA7 zpBO_aJkKz)iaKqRA{8a6AtpdUwtc#Y-hxtZnWz~i(sfjMk`lq|kGea=`62V6y)TMPZw8q}tFDDHrW_n(Z84ZxWvRrntcw;F|Mv4ff9iaM% z4IM{=*zw}vIpbg=9%w&v`sA+a3UV@Rpn<6`c&5h+8a7izP>E@7CSsCv*AAvd-izwU z!sGJQ?fpCbt+LK`6m2Z3&cKtgcElAl){*m0b^0U#n<7?`8ktdIe#ytZTvaZy728o6 z3GDmw=vhh*U#hCo0gb9s#V5(IILXkw>(6a?BFdIb0%3~Y*5FiMh&JWHd2n(|y@?F8 zL$%!)uFu&n+1(6)oW6Hx*?{d~y zBeR)N*Z{7*gMlhMOad#k4gf`37OzEJ&pH?h!Z4#mNNCfnDI@LbiU~&2Gd^q7ix8~Y6$a=B9bK(BaTEO0$Oh=VCkBPwt0 zf#QuB25&2!m7MWY5xV_~sf(0|Y*#Wf8+FQI(sl2wgdM5H7V{aH6|ntE+OcLsTC`u; zeyrlkJgzdIb5=n#SCH)+kjN)rYW7=rppN3Eb;q_^8Zi}6jtL@eZ2XO^w{mCwX(q!t ztM^`%`ndZ5c+2@?p>R*dDNeVk#v>rsn>vEo;cP2Ecp=@E>A#n0!jZACKZ1=D0`f|{ zZnF;Ocp;$j86m}Gt~N+Ch6CJo7+Wzv|nlsXBvm z?St-5Ke&6hbGAWoO!Z2Rd8ARJhOY|a1rm*sOif%Th`*=^jlgWo%e9`3sS51n*>+Mh(9C7g@*mE|r%h*3k6I_uo;C!N z7CVMIX4kbA#gPZf_0%m18+BVeS4?D;U$QC`TT;X zP#H}tMsa=zS6N7n#BA$Fy8#R7vOesiCLM@d1UO6Tsnwv^gb}Q9I}ZQLI?--C8ok&S z9Idy06+V(_aj?M78-*vYBu|AaJ9mlEJpFEIP}{tRwm?G{ag>6u(ReBKAAx zDR6qe!3G88NQP$i99DZ~CW9lzz}iGynvGA4!yL}_9t`l*SZbEL-%N{n$%JgpDHJRn zvh<{AqR7z@ylV`kXdk+uEu-WWAt^=A4n(J=A1e8DpeLzAd;Nl#qlmp#KcHU!8`YJY zvBZy@>WiBZpx*wQ8JzKw?@k}8l99Wo&H>__vCFL}>m~MTmGvae% zPTn9?iR=@7NJ)?e+n-4kx$V#qS4tLpVUX*Je0@`f5LICdxLnph&Vjbxd*|+PbzS(l zBqqMlUeNoo8wL&_HKnM^8{iDI3IdzJAt32UupSr6XXh9KH2LjWD)Pz+`cmps%eHeD zU%i1SbPuSddp6?th;;DfUlxYnjRpd~i7vQ4V`cD%4+a9*!{+#QRBr5^Q$5Ec?gpju zv@dk9;G>d7QNEdRy}fgeA?i=~KFeibDtYffy)^OP?Ro~-X!onDpm+uGpe&6)*f@xJ zE1I3Qh}`1<7aFB@TS#}ee={<#9%1wOL%cuvOd($y4MC2?`1Nin=pVLXPkknn*0kx> z!9XHW${hYEV;r6F#iz7W=fg|a@GY0UG5>>9>$3Bj5@!N{nWDD`;JOdz_ZaZVVIUgH zo+<=+n8VGL*U%M|J$A~#ll__<`y+jL>bv;TpC!&|d=q%E2B|5p=)b-Q+ZrFO%+D_u z4%rc8BmOAO6{n(i(802yZW93?U;K^ZZlo0Gvs7B+<%}R;$%O}pe*Gi;!xP-M73W`k zXLv473Ex_VPcM-M^JO|H>KD;!sEGJ|E}Qepen;yNG2 zXqgD5sjQUDI(XLM+^8ZX1s_(X+PeyQ$Q5RukRt|Kwr-FSnW!^9?OG64UYX1^bU9d8 zJ}8K&UEYG+Je^cThf8W*^RqG07nSCmp*o5Z;#F zS?jochDWX@p+%CZ%dOKUl}q{9)^U@}qkQtA3zBF)`I&zyIKgb{mv)KtZ}?_h{r#VZ z%C+hwv&nB?we0^H+H`OKGw-&8FaF;=ei!tAclS5Q?qH9J$nt+YxdKkbRFLnWvn7GH zezC6<{mK0dd763JlLFqy&Oe|7UXII;K&2pye~yG4jldY~N;M9&rX}m76NsP=R#FEw zt(9h+=m9^zfl=6pH*D;JP~OVgbJkXh(+2MO_^;%F{V@pc2nGn~=U)Qx|JEV-e=vXk zPxA2J<9~IH{}29#X~KW$(1reJv}lc4_1JF31gdev>!CddVhf_62nsr6%w)?IWxz}{ z(}~~@w>c07!r=FZANq4R!F2Qi2?QGavZ{)PCq~X}3x;4ylsd&m;dQe;0GFSn5 zZ*J<=Xg1fEGYYDZ0{Z4}Jh*xlXa}@412nlKSM#@wjMM z*0(k>Gfd1Mj)smUuX}EM6m)811%n5zzr}T?$ZzH~*3b`3q3gHSpA<3cbzTeRDi`SA zT{O)l3%bH(CN0EEF9ph1(Osw5y$SJolG&Db~uL!I3U{X`h(h%^KsL71`2B1Yn z7(xI+Fk?|xS_Y5)x?oqk$xmjG@_+JdErI(q95~UBTvOXTQaJs?lgrC6Wa@d0%O0cC zzvslIeWMo0|C0({iEWX{=5F)t4Z*`rh@-t0ZTMse3VaJ`5`1zeUK0~F^KRY zj2z-gr%sR<(u0@SNEp%Lj38AB2v-+cd<8pKdtRU&8t3eYH#h7qH%bvKup4cnnrN>l z!5fve)~Y5_U9US`uXDFoOtx2gI&Z!t&VPIoqiv>&H(&1;J9b}kZhcOX7EiW*Bujy#MaCl52%NO-l|@2$aRKvZ!YjwpXwC#nA(tJtd1p?jx&U|?&jcb!0MT6oBlWurVRyiSCX?sN3j}d zh3==XK$^*8#zr+U^wk(UkF}bta4bKVgr`elH^az{w(m}3%23;y7dsEnH*pp{HW$Uk zV9J^I9ea7vp_A}0F8qF{>|rj`CeHZ?lf%HImvEJF<@7cgc1Tw%vAUA47{Qe(sP^5M zT=z<~l%*ZjJvObcWtlN?0$b%NdAj&l`Cr|x((dFs-njsj9%IIqoN|Q?tYtJYlRNIu zY(LtC-F14)Og*_V@gjGH^tLV4uN?f^#=dscCFV~a`r8_o?$gj3HrSk=YK2k^UW)sJ z&=a&&JkMkWshp0sto$c6j8f$J!Bsn*MTjC`3cv@l@7cINa!}fNcu(0XF7ZCAYbX|WJIL$iGx8l zGFFQsw}x|i!jOZIaP{@sw0BrV5Z5u!TGe@JGTzvH$}55Gf<;rieZlz+6E1}z_o3m2 z(t;Cp^Geen7iSt)ZVtC`+tzuv^<6--M`^5JXBeeLXV)>2;f7=l%(-4?+<5~;@=Th{1#>rK3+rLn(44TAFS@u(}dunUSYu}~))W*fr` zkBL}3k_@a4pXJ#u*_N|e#1gTqxE&WPsfDa=`@LL?PRR()9^HxG?~^SNmeO#^-5tMw zeGEW&CuX(Uz#-wZOEt8MmF}hQc%14L)0=ebo`e$$G6nVrb)afh!>+Nfa5P;N zCCOQ^NRel#saUVt$Ds0rGd%gkKP2LsQRxq6)g*`-r(FGM!Q51c|9lk!ha8Um3ys1{ zWpT7XDWYshQ{_F!8D8@3hvXhQDw;GlkUOzni&T1>^uD){WH3wRONgjh$u4u7?+$(Y zqTXEF>1aPNZCXP0nJ;zs6_%6;+D&J_|ugcih**y(4ApT`RKAi5>SZe0Bz|+l7z>P14>0ljIH*LhK z@}2O#{?1RNa&!~sEPBvIkm-uIt^Pt#%JnsbJ`-T0%pb ze}d;dzJFu7oQ=i`VHNt%Sv@?7$*oO`Rt*bRNhXh{FArB`9#f%ksG%q?Z`_<19;dBW z5pIoIo-JIK9N$IE1)g8@+4}_`sE7;Lus&WNAJ^H&=4rGjeAJP%Dw!tn*koQ&PrNZw zY88=H7qpHz11f}oTD!0lWO>pMI;i4sauS`%_!zM!n@91sLH#rz1~iEAu#1b%LA zhB}7{1(8{1{V8+SEs=*f=FcRE^;`6Pxm$Hie~|aD~W1BYy#@Y$C?pxJh*cC!T@8C9{xx*T*8P zhbkRk3*6)Zbk%}u>^?ItOhxdmX$j9KyoxxN>NrYGKMkLF4*fLsL_PRjHNNHCyaUHN z7W8yEhf&ag07fc9FD>B{t0#Civsoy0hvVepDREX(NK1LbK0n*>UJp&1FygZMg7T^G z(02BS)g#qMOI{RJIh7}pGNS8WhSH@kG+4n=(8j<+gVfTur)s*hYus70AHUBS2bN6Zp_GOHYxsbg{-Rcet{@0gzE`t$M0_!ZIqSAIW53j+Ln7N~8J zLZ0DOUjp^j`MvX#hq5dFixo^1szoQ=FTqa|@m>9F@%>7OuF9&_C_MDco&-{wfLKNrDMEN4pRUS8-SD6@GP`>_7$;r>dJo>KbeXm>GfQS? zjFS+Y6^%pDCaI0?9(z^ELsAE1`WhbhNv5DJ$Y}~r;>FynHjmjmA{bfDbseZXsKUv`%Fekv)1@f%7ti;B5hhs}5db1dP+P0${1DgKtb(DvN}6H6;0*LP6blg*rpr;Z(7? zrve>M`x6ZI(wtQc4%lO?v5vr{0iTPl&JT!@k-7qUN8b$O9YuItu7zrQ*$?xJIN#~b z#@z|*5z&D7g5>!o(^v+3N?JnJns5O2W4EkF>re*q1uVjgT#6ROP5>Ho)XTJoHDNRC zuLC(Cd_ZM?FAFPoMw;3FM4Ln0=!+vgTYBx2TdXpM@EhDCorzTS6@2`swp4J^9C0)U zq?)H8)=D;i+H`EVYge>kPy8d*AxKl};iumYu^UeM+e_3>O+LY`D4?pD%;Vextj!(; zomJ(u+dR(0m>+-61HTV7!>03vqozyo@uY@Zh^KrW`w7^ENCYh86_P2VC|4}(ilMBe zwa&B|1a7%Qkd>d14}2*_yYr@8-N}^&?LfSwr)C~UUHr)ydENu=?ZHkvoLS~xTiBH= zD%A=OdoC+10l7@rXif~Z#^AvW+4M-(KQBj=Nhgts)>xmA--IJf1jSZF6>@Ns&nmv} zXRk`|`@P5_9W4O-SI|f^DCZ-n*yX@2gf6N)epc~lRWl7QgCyXdx|zr^gy>q`Vwn^y z&r3_zS}N=HmrVtTZhAQS`3$kBmVZDqr4+o(oNok?tqel9kn3;uUerFRti=k+&W{bb zT{ZtEf51Qf+|Jc*@(nyn#U+nr1SFpu4(I7<1a=)M_yPUAcKVF+(vK!|DTL2;P)yG~ zrI*7V)wN_92cM)j`PtAOFz_dO)jIfTeawh2{d@x0nd^#?pDkBTBzr0Oxgmvjt`U^$ zcTPl=iwuen=;7ExMVh7LLFSKUrTiPJpMB&*Ml32>wl} zYn(H0N4+>MCrm2BC4p{meYPafDEXd4yf$i%ylWpC|9%R4XZBUQiha(x%wgQ5iJ?K_wQBRfw z+pYuKoIameAWV7Ex4$PCd>bYD7)A9J`ri&bwTRN*w~7DR0EeLXW|I2()Zkl6vxiw? zFBX){0zT@w_4YUT4~@TXa;nPb^Tu$DJ=vluc~9)mZ}uHd#4*V_eS7)^eZ9oI%Wws_ z`;97^W|?_Z6xHSsE!3EKHPN<3IZ^jTJW=Il{rMmlnR#OuoE6dqOO1KOMpW84ZtDHNn)(pYvs=frO`$X}sY zKY0At$G85&2>B|-{*+B*aqQn&Mqjt*DVH2kdwEm5f}~Xwn9+tPt?EPwh8=8=VWA8rjt*bHEs1FJ92QohQ)Y z4sQH~AzB5!Pisyf?pVa0?L4gthx2;SKlrr?XRU`?Y>RJgUeJn!az#sNF7oDbzksrD zw8)f=f1t*UK&$}_ktf!yf4Rjt{56ffTA{A=9n})E7~iXaQkE+%GW4zqbmlYF(|hE@ z421q9`UQf$uA5yDLx67`=EnSTxdEaG!6C%9_obpb?;u-^QFX% zU1wQ}Li{PeT^fS;&Sk2#$ZM#Zpxrn7jsd<@qhfWy*H)cw9q!I9!fDOCw~4zg zbW`EHsTp9IQUCETUse)!ZmuRICx}0Oe1KVoqdK+u>67A8v`*X*!*_i5`_qTzYRkbYXg#4vT5~A{lK#bA}Oc4ePu5hr-@;i%Z!4Y;-(yR z(1rHYTc7i1h1aipP4DaIY3g2kF#MX{XW7g&zL!39ohO98=eo5nZtq+nz}2E$OZpxx z&OFaOM1O;?mxq+`%k>YS!-=H7BB&WhqSTUC{S!x*k9E zcB;u0I!h%3nEchQwu1GnNkaQxuWnW0D@Xq5j@5WE@E(WlgDU;FLsT*eV|Bh)aH0;~@^yygFj<=+Vu3p)LlF%1AA%y5z-Oh`2 z$RDKk_6r+f#I`8fQ%y#Wx%~de1qkWL2(q^~veLKwht-dIcpt(@lc>`~@mISRIPKPm zD!Za&aX@7dy*CT!&Z7JC1jP2@8+ro8SmlH>_gzRte%ojgiwfd?TR+%Ny0`sp`QRLy zl5TiQkFhIC!2aaJ&=Ua`c9UuOk9GkSFZ}!IGeMZ5MXrL zGtMj`m{(X9+l%=d|L zW2OY?8!_pyhvJ1@O!Chsf6}@3HmKq@)x;CFItPMpkSr@npO&8zMc_O?*|sqkuL^U? zV9+x3vbr|6;Ft0J^J>IH_xpa<{S5K?u-sQWC7FB9YFMwoCKK3WZ*gvO-wAApF`K%#7@1 z^sEj4*%hH`f0@sRDGI|#Dl20o$Z*gttP$q(_?#~2!H9(!d=)I93-3)?e%@$1^*F=t9t&OQ9!p84Z`+y<$yQ9wlamK~Hz2CRpS8dWJfBl@(M2qX!9d_F= zd|4A&U~8dX^M25wyC7$Swa22$G61V;fl{%Q4Lh!t_#=SP(sr_pvQ=wqOi`R)do~QX zk*_gsy75$xoi5XE&h7;-xVECk;DLoO0lJ3|6(Ba~ezi73_SYdCZPItS5MKaGE_1My zdQpx?h&RuoQ7I=UY{2Qf ziGQ-FpR%piffR_4X{74~>Q!=i`)J@T415!{8e`AXy`J#ZK)5WWm3oH?x1PVvcAqE@ zWI|DEUgxyN({@Y99vCJVwiGyx@9)y2jNg`R{$s2o;`4!^6nDX_pb~fTuzf>ZoPV@X zXKe1ehcZ+3dxCB+vikgKz8pvH?>ZzlOEObd{(-aWY;F0XIbuIjSA+!%TNy87a>BoX zsae$}Fcw&+)z@n{Fvzo;SkAw0U*}?unSO)^-+sbpNRjD8&qyfp%GNH;YKdHlz^)4( z;n%`#2Pw&DPA8tc)R9FW7EBR3?GDWhf@0(u3G4ijQV;{qp3B)`Fd}kMV}gB2U%4Sy z3x>YU&`V^PU$xWc4J!OG{Jglti@E3rdYo62K31iu!BU&pdo}S66Ctq{NB<88P92Y9 zTOqX$h6HH_8fKH(I>MEJZl1_2GB~xI+!|BLvN;CnQrjHuh?grzUO7h;1AbzLi|_O= z2S=(0tX#nBjN92gRsv;7`rDCATA!o(ZA}6)+;g;T#+1~HXGFD1@3D#|Ky9!E@)u=h z3@zg3Us0BCYmq(pB`^QTp|RB9!lX*{;7r|Z(^>J+av(0-oUmIdR78c4(q%hP#=R@W ze{;yy$T^8kXr(oC*#NQMZSQlgU)aa=BrZDwpLUk5tm&(AkNt&Gel`=ydcL*<@Ypx{ z2uOxl>2vSY2g3%Si&JU<9D5#{_z{9PzJh=miNH;STk^;5#%8iMRfPe#G~T>^U_zt? zgSE)`UQhb!G$at%yCf5MU)<&(L73(hY3*%qqPbX;`%QDHed3ZaWw^k)8Vjd#ePg@;I&pMe+A18k+S+bou|QX?8eQ`{P-0vrm=uR;Y(bHV>d>Gen4LHILqcm_ z3peDMRE3JMA8wWgPkSthI^K<|8aal38qvIcEgLjHAFB0P#IfqP2y}L>=8eBR}Fm^V*mw2Q4+o=exP@*#=Zs zIqHh@neG)Vy%v4cB1!L}w9J>IqAo}CsqbFPrUVc@;~Ld7t_2IIG=15mT7Itrjq#2~ zqX*&nwZP>vso$6W!#` z-YZ}jhBwQku-Qc>TIMpn%_z~`^u4v3Skyf)KA}V{`dr!Q;3xK1TuGYdl}$sKF^9X!*a-R*Oq1#tLq!W)gO}{q`1HM;oh1-k4FU@8W(qe>P05$+ z`ud2&;4IW4vq8#2yA{G>OH=G+pS_jctJ*BqD$j-MI#avR+<>m-`H1@{3VgKYn2_Ih z0`2_1qUMRuzgj_V^*;5Ax_0s{_3tYR>|$i#c!F7)#`oVGmsD*M2?%930cBSI4Mj>P zTm&JmUrvDXlB%zeA_7$&ogjGK3>SOlV$ct{4)P0k)Kua%*fx9?)_fkvz<(G=F`KCp zE`0j*=FzH$^Y@iUI}MM2Hf#Yr@oQdlJMB5xe0$aGNk%tgex;0)NEuVYtLEvOt{}ti zL`o$K9HnnUnl*;DTGTNiwr&ydfDp@3Y)g5$pcY9l1-9g;yn6SBr_S9MV8Xl+RWgwb zXL%kZLE4#4rUO(Pj484!=`jy74tQxD0Zg>99vvQ}R$7~GW)-0DVJR@$5}drsp3IQG zlrJL}M{+SdWbrO@+g2BY^a}0VdQtuoml`jJ2s6GsG5D@(^$5pMi3$27psEIOe^n=*Nj|Ug7VXN0OrwMrRq&@sR&vdnsRlI%*$vfmJ~)s z^?lstAT$Ked`b&UZ@A6I<(uCHGZ9pLqNhD_g-kj*Sa#0%(=8j}4zd;@!o;#vJ+Bsd z4&K4RIP>6It9Ir)ey?M6Gi6@JzKNg;=jM=$)gs2#u_WhvuTRwm1x2^*!e%l&j02xz zYInQgI$_V7Epzf3*BU~gos}|EurFj8l}hsI(!5yX!~ECL%cnYMS-e<`AKDL%(G)62 zPU;uF1(~(YbH2444JGh58coXT>(*CdEwaFuyvB|%CULgVQesH$ znB`vk3BMP<-QauWOZ0W6xB5y7?tE5cisG|V;bhY^8+*BH1T0ZLbn&gi12|a9Oa%;I zxvaxX_xe3@ng%;4C?zPHQ1v%dbhjA6Sl7w<*)Nr#F{Ahzj}%n9c&!g5HVrlvUO&R2C)_$x6M9 zahficAbeHL2%jILO>Pq&RPPxl;i{K5#O*Yt15AORTCvkjNfJ)LrN4K{sY7>tGuTQ@ z^?N*+xssG&sfp0c$^vV*H)U1O!fTHk8;Q7@42MT@z6UTd^&DKSxVcC-1OLjl7m63& zBb&goU!hes(GF^yc!107bkV6Pr%;A-WWd@DK2;&=zyiK*0i^0@f?fh2c)4&DRSjrI zk!W^=l^JKlPW9US{*yo?_XT@T2Bx+Cm^+r{*5LVcKVw*ll3+)lkebA-4)o z8f5xHWOx0!FDSs4nv@o@>mxTQrOeKzj@5uL`d>mXSp|#{FE54EE_!KtQNq>-G(&5) ztz?xkqPU16A-8@-quJ|SU^ClZ?bJ2kCJPB|6L>NTDYBprw$WcwCH{B z5qlJ6wK_9sT@Kl6G|Q&$gsl@WT>hE;nDAbH#%f1ZwuOkvWLj{qV$m3LF423&l!^iV zhym*>R>Yyens++~6F5+uZQTCz9t~PEW+e?w)XF2g!^^%6k?@Jcu;MG0FG9!T+Gx{Z zK;31y@(J{!-$k4E{5#Sv(2DGy3EZQY}G_*z*G&CZ_J?m&Fg4IBrvPx1w z1zAb3k}6nT?E)HNCi%}aR^?)%w-DcpBR*tD(r_c{QU6V&2vU-j0;{TVDN6los%YJZ z5C(*ZE#kv-BvlGLDf9>EO#RH_jtolA)iRJ>tSfJpF!#DO+tk% zBAKCwVZwO^p)(Rhk2en$XLfWjQQ`ix>K}Ru6-sn8Ih6k&$$y`zQ}}4dj~o@9gX9_= z#~EkchJqd5$**l}~~6mOl(q#GMIcFg&XCKO;$w>!K14 zko1egAORiG{r|8qj*FsN>?7d`han?*MD#xe^)sOqj;o;hgdaVnBH$BM{_73?znS+R z*G2VHM!Jw6#<FfJ-J%-9AuDW$@mc-Eyk~F{Jbvt` zn;(%DbBDnKIYr~|I>ZTvbH@cxUyw%bp*)OSs}lwO^HTJ2M#u5QsPF0?Jv*OVPfdKv z+t$Z5P!~jzZ~Y!d#iP?S{?M_g%Ua0Q)WawbIx+2uYpcf(7Im%W=rAu4dSceo7RZh# zN38=RmwOJQE$qbPXIuO^E`wSeJKCx3Q76irp~QS#19dusEVCWPrKhK9{7cbIMg9U} TZiJi*F`$tkWLn) literal 0 HcmV?d00001 diff --git a/sdks/kotlin/gradle/wrapper/gradle-wrapper.properties b/sdks/kotlin/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..7705927 --- /dev/null +++ b/sdks/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/sdks/kotlin/gradlew b/sdks/kotlin/gradlew new file mode 100644 index 0000000..51eb8bb --- /dev/null +++ b/sdks/kotlin/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright ยฉ 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions ยซ$varยป, ยซ${var}ยป, ยซ${var:-default}ยป, ยซ${var+SET}ยป, +# ยซ${var#prefix}ยป, ยซ${var%suffix}ยป, and ยซ$( cmd )ยป; +# * compound commands having a testable exit status, especially ยซcaseยป; +# * various built-in commands including ยซcommandยป, ยซsetยป, and ยซulimitยป. +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while +APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path +[ -h "$app_path" ] +do +ls=$( ls -ld "$app_path" ) +link=${ls#*' -> '} +case $link in #( +/*) app_path=$link ;; #( +*) app_path=$APP_HOME$link ;; +esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { +echo "$*" +} >&2 + +die () { +echo +echo "$*" +echo +exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( +CYGWIN* ) cygwin=true ;; #( +Darwin* ) darwin=true ;; #( +MSYS* | MINGW* ) msys=true ;; #( +NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then +if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# IBM's JDK on AIX uses strange locations for the executables +JAVACMD=$JAVA_HOME/jre/sh/java +else +JAVACMD=$JAVA_HOME/bin/java +fi +if [ ! -x "$JAVACMD" ] ; then +die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi +else +JAVACMD=java +if ! command -v java >/dev/null 2>&1 +then +die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then +case $MAX_FD in #( +max*) +# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +MAX_FD=$( ulimit -H -n ) || +warn "Could not query maximum file descriptor limit" +esac +case $MAX_FD in #( +'' | soft) :;; #( +*) +# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +ulimit -n "$MAX_FD" || +warn "Could not set maximum file descriptor limit to $MAX_FD" +esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then +APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) +CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + +JAVACMD=$( cygpath --unix "$JAVACMD" ) + +# Now convert the arguments - kludge to limit ourselves to /bin/sh +for arg do +if +case $arg in #( +-*) false ;; # don't mess with options #( +/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath +[ -e "$t" ] ;; #( +*) false ;; +esac +then +arg=$( cygpath --path --ignore --mixed "$arg" ) +fi +# Roll the args list around exactly as many times as the number of +# args, so each arg winds up back in the position where it started, but +# possibly modified. +# +# NB: a `for` loop captures its iteration list before it begins, so +# changing the positional parameters here affects neither the number of +# iterations, nor the values presented in `arg`. +shift # remove old arg +set -- "$@" "$arg" # push replacement arg +done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ +"-Dorg.gradle.appname=$APP_BASE_NAME" \ +-classpath "$CLASSPATH" \ +org.gradle.wrapper.GradleWrapperMain \ +"$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then +die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( +printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | +xargs -n1 | +sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | +tr '\n' ' ' +)" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/sdks/kotlin/gradlew.bat b/sdks/kotlin/gradlew.bat new file mode 100644 index 0000000..9d21a21 --- /dev/null +++ b/sdks/kotlin/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/sdks/kotlin/settings.gradle.kts b/sdks/kotlin/settings.gradle.kts new file mode 100644 index 0000000..d8a4ef1 --- /dev/null +++ b/sdks/kotlin/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "keynetra-client-kotlin" diff --git a/sdks/php/.gitignore b/sdks/php/.gitignore new file mode 100644 index 0000000..9f1681c --- /dev/null +++ b/sdks/php/.gitignore @@ -0,0 +1,15 @@ +# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore + +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +# composer.lock + +# php-cs-fixer cache +.php_cs.cache +.php-cs-fixer.cache + +# PHPUnit cache +.phpunit.result.cache diff --git a/sdks/php/.php-cs-fixer.dist.php b/sdks/php/.php-cs-fixer.dist.php new file mode 100644 index 0000000..af9cf39 --- /dev/null +++ b/sdks/php/.php-cs-fixer.dist.php @@ -0,0 +1,29 @@ +in(__DIR__) + ->exclude('vendor') + ->exclude('test') + ->exclude('tests') +; + +$config = new PhpCsFixer\Config(); +return $config->setRules([ + '@PSR12' => true, + 'phpdoc_order' => true, + 'array_syntax' => [ 'syntax' => 'short' ], + 'strict_comparison' => true, + 'strict_param' => true, + 'no_trailing_whitespace' => false, + 'no_trailing_whitespace_in_comment' => false, + 'braces' => false, + 'single_blank_line_at_eof' => false, + 'blank_line_after_namespace' => false, + 'no_leading_import_slash' => false, + ]) + ->setFinder($finder) +; diff --git a/sdks/php/.travis.yml b/sdks/php/.travis.yml new file mode 100644 index 0000000..667b815 --- /dev/null +++ b/sdks/php/.travis.yml @@ -0,0 +1,8 @@ +language: php +# Bionic environment has preinstalled PHP from 7.1 to 7.4 +# https://docs.travis-ci.com/user/reference/bionic/#php-support +dist: bionic +php: + - 7.4 +before_install: "composer install" +script: "vendor/bin/phpunit" diff --git a/sdks/php/README.md b/sdks/php/README.md new file mode 100644 index 0000000..137ed3d --- /dev/null +++ b/sdks/php/README.md @@ -0,0 +1,48 @@ +# keynetra/client + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official PHP SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your PHP applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +composer require keynetra/client +``` + +## ๐Ÿš€ Quick Start + +```php +use KeyNetra\Client\KeyNetraClient; + +$client = new KeyNetraClient( + "http://localhost:8080", + "YOUR_API_KEY" +); + +// Perform an access check +$decision = $client->getAccessApi()->checkAccess(...); +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/php/composer.json b/sdks/php/composer.json new file mode 100644 index 0000000..b53b708 --- /dev/null +++ b/sdks/php/composer.json @@ -0,0 +1,39 @@ +{ + "name": "keynetra/client", + "description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)", + "keywords": [ + "openapitools", + "openapi-generator", + "openapi", + "php", + "sdk", + "rest", + "api" + ], + "homepage": "https://openapi-generator.tech", + "license": "Apache-2.0", + "authors": [ + { + "name": "KeyNetra", + "homepage": "https://keynetra.com" + } + ], + "require": { + "php": "^8.1", + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "guzzlehttp/guzzle": "^7.3", + "guzzlehttp/psr7": "^1.7 || ^2.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.0 || ^9.0", + "friendsofphp/php-cs-fixer": "^3.5" + }, + "autoload": { + "psr-4": { "KeyNetra\\Client\\" : "lib/" } + }, + "autoload-dev": { + "psr-4": { "KeyNetra\\Client\\Test\\" : "test/" } + } +} diff --git a/sdks/php/docs/Api/AccessApi.md b/sdks/php/docs/Api/AccessApi.md new file mode 100644 index 0000000..99a4604 --- /dev/null +++ b/sdks/php/docs/Api/AccessApi.md @@ -0,0 +1,205 @@ +# KeyNetra\Client\AccessApi + + + +All URIs are relative to http://localhost, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**checkAccessBatchCheckAccessBatchPost()**](AccessApi.md#checkAccessBatchCheckAccessBatchPost) | **POST** /check-access-batch | Check Access Batch | +| [**checkAccessCheckAccessPost()**](AccessApi.md#checkAccessCheckAccessPost) | **POST** /check-access | Check Access | +| [**simulateSimulatePost()**](AccessApi.md#simulateSimulatePost) | **POST** /simulate | Simulate | + + +## `checkAccessBatchCheckAccessBatchPost()` + +```php +checkAccessBatchCheckAccessBatchPost($batchAccessRequest, $policySet): \KeyNetra\Client\Model\SuccessResponseBatchAccessResponse +``` + +Check Access Batch + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\AccessApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$batchAccessRequest = new \KeyNetra\Client\Model\BatchAccessRequest(); // \KeyNetra\Client\Model\BatchAccessRequest +$policySet = 'active'; // string + +try { + $result = $apiInstance->checkAccessBatchCheckAccessBatchPost($batchAccessRequest, $policySet); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AccessApi->checkAccessBatchCheckAccessBatchPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **batchAccessRequest** | [**\KeyNetra\Client\Model\BatchAccessRequest**](../Model/BatchAccessRequest.md)| | | +| **policySet** | **string**| | [optional] [default to 'active'] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseBatchAccessResponse**](../Model/SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `checkAccessCheckAccessPost()` + +```php +checkAccessCheckAccessPost($accessRequest, $policySet): \KeyNetra\Client\Model\SuccessResponseAccessDecisionResponse +``` + +Check Access + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\AccessApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$accessRequest = new \KeyNetra\Client\Model\AccessRequest(); // \KeyNetra\Client\Model\AccessRequest +$policySet = 'active'; // string + +try { + $result = $apiInstance->checkAccessCheckAccessPost($accessRequest, $policySet); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AccessApi->checkAccessCheckAccessPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **accessRequest** | [**\KeyNetra\Client\Model\AccessRequest**](../Model/AccessRequest.md)| | | +| **policySet** | **string**| | [optional] [default to 'active'] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseAccessDecisionResponse**](../Model/SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `simulateSimulatePost()` + +```php +simulateSimulatePost($accessRequest): \KeyNetra\Client\Model\SuccessResponseSimulationResponse +``` + +Simulate + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\AccessApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$accessRequest = new \KeyNetra\Client\Model\AccessRequest(); // \KeyNetra\Client\Model\AccessRequest + +try { + $result = $apiInstance->simulateSimulatePost($accessRequest); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AccessApi->simulateSimulatePost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **accessRequest** | [**\KeyNetra\Client\Model\AccessRequest**](../Model/AccessRequest.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseSimulationResponse**](../Model/SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/AuthApi.md b/sdks/php/docs/Api/AuthApi.md new file mode 100644 index 0000000..b78b2cc --- /dev/null +++ b/sdks/php/docs/Api/AuthApi.md @@ -0,0 +1,119 @@ +# KeyNetra\Client\AuthApi + + + +All URIs are relative to http://localhost, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**adminLoginAdminLoginPost()**](AuthApi.md#adminLoginAdminLoginPost) | **POST** /admin/login | Admin Login | +| [**adminLoginAdminLoginPost_0()**](AuthApi.md#adminLoginAdminLoginPost_0) | **POST** /admin/login | Admin Login | + + +## `adminLoginAdminLoginPost()` + +```php +adminLoginAdminLoginPost($adminLoginRequest): \KeyNetra\Client\Model\SuccessResponseAdminLoginResponse +``` + +Admin Login + +### Example + +```php +adminLoginAdminLoginPost($adminLoginRequest); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AuthApi->adminLoginAdminLoginPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **adminLoginRequest** | [**\KeyNetra\Client\Model\AdminLoginRequest**](../Model/AdminLoginRequest.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseAdminLoginResponse**](../Model/SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `adminLoginAdminLoginPost_0()` + +```php +adminLoginAdminLoginPost_0($adminLoginRequest): \KeyNetra\Client\Model\SuccessResponseAdminLoginResponse +``` + +Admin Login + +### Example + +```php +adminLoginAdminLoginPost_0($adminLoginRequest); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AuthApi->adminLoginAdminLoginPost_0: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **adminLoginRequest** | [**\KeyNetra\Client\Model\AdminLoginRequest**](../Model/AdminLoginRequest.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseAdminLoginResponse**](../Model/SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/DevApi.md b/sdks/php/docs/Api/DevApi.md new file mode 100644 index 0000000..4ff9fa1 --- /dev/null +++ b/sdks/php/docs/Api/DevApi.md @@ -0,0 +1,116 @@ +# KeyNetra\Client\DevApi + + + +All URIs are relative to http://localhost, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**getSampleDataDevSampleDataGet()**](DevApi.md#getSampleDataDevSampleDataGet) | **GET** /dev/sample-data | Get Sample Data | +| [**seedSampleDataDevSampleDataSeedPost()**](DevApi.md#seedSampleDataDevSampleDataSeedPost) | **POST** /dev/sample-data/seed | Seed Sample Data | + + +## `getSampleDataDevSampleDataGet()` + +```php +getSampleDataDevSampleDataGet(): \KeyNetra\Client\Model\SuccessResponseDictStrObject +``` + +Get Sample Data + +### Example + +```php +getSampleDataDevSampleDataGet(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DevApi->getSampleDataDevSampleDataGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrObject**](../Model/SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `seedSampleDataDevSampleDataSeedPost()` + +```php +seedSampleDataDevSampleDataSeedPost($reset): \KeyNetra\Client\Model\SuccessResponseDictStrObject +``` + +Seed Sample Data + +### Example + +```php +seedSampleDataDevSampleDataSeedPost($reset); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DevApi->seedSampleDataDevSampleDataSeedPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **reset** | **bool**| Clear the sample dataset before reseeding it. | [optional] [default to false] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrObject**](../Model/SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/HealthApi.md b/sdks/php/docs/Api/HealthApi.md new file mode 100644 index 0000000..100e222 --- /dev/null +++ b/sdks/php/docs/Api/HealthApi.md @@ -0,0 +1,165 @@ +# KeyNetra\Client\HealthApi + + + +All URIs are relative to http://localhost, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**healthHealthGet()**](HealthApi.md#healthHealthGet) | **GET** /health | Health | +| [**livenessHealthLiveGet()**](HealthApi.md#livenessHealthLiveGet) | **GET** /health/live | Liveness | +| [**readinessHealthReadyGet()**](HealthApi.md#readinessHealthReadyGet) | **GET** /health/ready | Readiness | + + +## `healthHealthGet()` + +```php +healthHealthGet(): \KeyNetra\Client\Model\SuccessResponseDictStrStr +``` + +Health + +### Example + +```php +healthHealthGet(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling HealthApi->healthHealthGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrStr**](../Model/SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `livenessHealthLiveGet()` + +```php +livenessHealthLiveGet(): \KeyNetra\Client\Model\SuccessResponseDictStrStr +``` + +Liveness + +### Example + +```php +livenessHealthLiveGet(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling HealthApi->livenessHealthLiveGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrStr**](../Model/SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `readinessHealthReadyGet()` + +```php +readinessHealthReadyGet(): \KeyNetra\Client\Model\SuccessResponseDictStrObject +``` + +Readiness + +### Example + +```php +readinessHealthReadyGet(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling HealthApi->readinessHealthReadyGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrObject**](../Model/SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/ManagementApi.md b/sdks/php/docs/Api/ManagementApi.md new file mode 100644 index 0000000..c02e8fb --- /dev/null +++ b/sdks/php/docs/Api/ManagementApi.md @@ -0,0 +1,1836 @@ +# KeyNetra\Client\ManagementApi + + + +All URIs are relative to http://localhost, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost()**](ManagementApi.md#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| [**createAclEntryAclPost()**](ManagementApi.md#createAclEntryAclPost) | **POST** /acl | Create Acl Entry | +| [**createAuthModelAuthModelPost()**](ManagementApi.md#createAuthModelAuthModelPost) | **POST** /auth-model | Create Auth Model | +| [**createPermissionPermissionsPost()**](ManagementApi.md#createPermissionPermissionsPost) | **POST** /permissions | Create Permission | +| [**createPolicyFromDslPoliciesDslPost()**](ManagementApi.md#createPolicyFromDslPoliciesDslPost) | **POST** /policies/dsl | Create Policy From Dsl | +| [**createPolicyPoliciesPost()**](ManagementApi.md#createPolicyPoliciesPost) | **POST** /policies | Create Policy | +| [**createRelationshipRelationshipsPost()**](ManagementApi.md#createRelationshipRelationshipsPost) | **POST** /relationships | Create Relationship | +| [**createRoleRolesPost()**](ManagementApi.md#createRoleRolesPost) | **POST** /roles | Create Role | +| [**deleteAclEntryAclAclIdDelete()**](ManagementApi.md#deleteAclEntryAclAclIdDelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| [**deletePermissionPermissionsPermissionIdDelete()**](ManagementApi.md#deletePermissionPermissionsPermissionIdDelete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| [**deletePolicyPoliciesPolicyKeyDelete()**](ManagementApi.md#deletePolicyPoliciesPolicyKeyDelete) | **DELETE** /policies/{policy_key} | Delete Policy | +| [**deleteRoleRolesRoleIdDelete()**](ManagementApi.md#deleteRoleRolesRoleIdDelete) | **DELETE** /roles/{role_id} | Delete Role | +| [**getAuthModelAuthModelGet()**](ManagementApi.md#getAuthModelAuthModelGet) | **GET** /auth-model | Get Auth Model | +| [**impactAnalysisImpactAnalysisPost()**](ManagementApi.md#impactAnalysisImpactAnalysisPost) | **POST** /impact-analysis | Impact Analysis | +| [**listAclEntriesAclResourceTypeResourceIdGet()**](ManagementApi.md#listAclEntriesAclResourceTypeResourceIdGet) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| [**listAuditLogsAuditGet()**](ManagementApi.md#listAuditLogsAuditGet) | **GET** /audit | List Audit Logs | +| [**listPermissionRolesPermissionsPermissionIdRolesGet()**](ManagementApi.md#listPermissionRolesPermissionsPermissionIdRolesGet) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| [**listPermissionsPermissionsGet()**](ManagementApi.md#listPermissionsPermissionsGet) | **GET** /permissions | List Permissions | +| [**listPoliciesPoliciesGet()**](ManagementApi.md#listPoliciesPoliciesGet) | **GET** /policies | List Policies | +| [**listRelationshipsRelationshipsGet()**](ManagementApi.md#listRelationshipsRelationshipsGet) | **GET** /relationships | List Relationships | +| [**listRolePermissionsRolesRoleIdPermissionsGet()**](ManagementApi.md#listRolePermissionsRolesRoleIdPermissionsGet) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| [**listRolesRolesGet()**](ManagementApi.md#listRolesRolesGet) | **GET** /roles | List Roles | +| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete()**](ManagementApi.md#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost()**](ManagementApi.md#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| [**simulatePolicySimulatePolicyPost()**](ManagementApi.md#simulatePolicySimulatePolicyPost) | **POST** /simulate-policy | Simulate Policy | +| [**updatePermissionPermissionsPermissionIdPut()**](ManagementApi.md#updatePermissionPermissionsPermissionIdPut) | **PUT** /permissions/{permission_id} | Update Permission | +| [**updatePolicyPoliciesPolicyKeyPut()**](ManagementApi.md#updatePolicyPoliciesPolicyKeyPut) | **PUT** /policies/{policy_key} | Update Policy | +| [**updateRoleRolesRoleIdPut()**](ManagementApi.md#updateRoleRolesRoleIdPut) | **PUT** /roles/{role_id} | Update Role | + + +## `addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost()` + +```php +addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost($roleId, $permissionId): \KeyNetra\Client\Model\SuccessResponsePermissionOut +``` + +Add Permission To Role + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$roleId = 56; // int +$permissionId = 56; // int + +try { + $result = $apiInstance->addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost($roleId, $permissionId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **int**| | | +| **permissionId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponsePermissionOut**](../Model/SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createAclEntryAclPost()` + +```php +createAclEntryAclPost($aCLCreate): \KeyNetra\Client\Model\SuccessResponseACLOut +``` + +Create Acl Entry + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$aCLCreate = new \KeyNetra\Client\Model\ACLCreate(); // \KeyNetra\Client\Model\ACLCreate + +try { + $result = $apiInstance->createAclEntryAclPost($aCLCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createAclEntryAclPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **aCLCreate** | [**\KeyNetra\Client\Model\ACLCreate**](../Model/ACLCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseACLOut**](../Model/SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createAuthModelAuthModelPost()` + +```php +createAuthModelAuthModelPost($authModelCreate): \KeyNetra\Client\Model\SuccessResponseAuthModelOut +``` + +Create Auth Model + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$authModelCreate = new \KeyNetra\Client\Model\AuthModelCreate(); // \KeyNetra\Client\Model\AuthModelCreate + +try { + $result = $apiInstance->createAuthModelAuthModelPost($authModelCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createAuthModelAuthModelPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **authModelCreate** | [**\KeyNetra\Client\Model\AuthModelCreate**](../Model/AuthModelCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseAuthModelOut**](../Model/SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createPermissionPermissionsPost()` + +```php +createPermissionPermissionsPost($permissionCreate): \KeyNetra\Client\Model\PermissionOut +``` + +Create Permission + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$permissionCreate = new \KeyNetra\Client\Model\PermissionCreate(); // \KeyNetra\Client\Model\PermissionCreate + +try { + $result = $apiInstance->createPermissionPermissionsPost($permissionCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createPermissionPermissionsPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionCreate** | [**\KeyNetra\Client\Model\PermissionCreate**](../Model/PermissionCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\PermissionOut**](../Model/PermissionOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createPolicyFromDslPoliciesDslPost()` + +```php +createPolicyFromDslPoliciesDslPost($dsl): \KeyNetra\Client\Model\SuccessResponsePolicyOut +``` + +Create Policy From Dsl + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$dsl = 'dsl_example'; // string + +try { + $result = $apiInstance->createPolicyFromDslPoliciesDslPost($dsl); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createPolicyFromDslPoliciesDslPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **dsl** | **string**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponsePolicyOut**](../Model/SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createPolicyPoliciesPost()` + +```php +createPolicyPoliciesPost($policyCreate): \KeyNetra\Client\Model\SuccessResponsePolicyOut +``` + +Create Policy + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$policyCreate = new \KeyNetra\Client\Model\PolicyCreate(); // \KeyNetra\Client\Model\PolicyCreate + +try { + $result = $apiInstance->createPolicyPoliciesPost($policyCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createPolicyPoliciesPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyCreate** | [**\KeyNetra\Client\Model\PolicyCreate**](../Model/PolicyCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponsePolicyOut**](../Model/SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createRelationshipRelationshipsPost()` + +```php +createRelationshipRelationshipsPost($relationshipCreate): \KeyNetra\Client\Model\SuccessResponseRelationshipOut +``` + +Create Relationship + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$relationshipCreate = new \KeyNetra\Client\Model\RelationshipCreate(); // \KeyNetra\Client\Model\RelationshipCreate + +try { + $result = $apiInstance->createRelationshipRelationshipsPost($relationshipCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createRelationshipRelationshipsPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **relationshipCreate** | [**\KeyNetra\Client\Model\RelationshipCreate**](../Model/RelationshipCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseRelationshipOut**](../Model/SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createRoleRolesPost()` + +```php +createRoleRolesPost($roleCreate): \KeyNetra\Client\Model\RoleOut +``` + +Create Role + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$roleCreate = new \KeyNetra\Client\Model\RoleCreate(); // \KeyNetra\Client\Model\RoleCreate + +try { + $result = $apiInstance->createRoleRolesPost($roleCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->createRoleRolesPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleCreate** | [**\KeyNetra\Client\Model\RoleCreate**](../Model/RoleCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\RoleOut**](../Model/RoleOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `deleteAclEntryAclAclIdDelete()` + +```php +deleteAclEntryAclAclIdDelete($aclId): \KeyNetra\Client\Model\SuccessResponseDictStrInt +``` + +Delete Acl Entry + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$aclId = 56; // int + +try { + $result = $apiInstance->deleteAclEntryAclAclIdDelete($aclId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->deleteAclEntryAclAclIdDelete: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **aclId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `deletePermissionPermissionsPermissionIdDelete()` + +```php +deletePermissionPermissionsPermissionIdDelete($permissionId): \KeyNetra\Client\Model\SuccessResponseDictStrInt +``` + +Delete Permission + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$permissionId = 56; // int + +try { + $result = $apiInstance->deletePermissionPermissionsPermissionIdDelete($permissionId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->deletePermissionPermissionsPermissionIdDelete: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `deletePolicyPoliciesPolicyKeyDelete()` + +```php +deletePolicyPoliciesPolicyKeyDelete($policyKey): \KeyNetra\Client\Model\SuccessResponseDictStrStr +``` + +Delete Policy + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$policyKey = 'policyKey_example'; // string + +try { + $result = $apiInstance->deletePolicyPoliciesPolicyKeyDelete($policyKey); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->deletePolicyPoliciesPolicyKeyDelete: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyKey** | **string**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrStr**](../Model/SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `deleteRoleRolesRoleIdDelete()` + +```php +deleteRoleRolesRoleIdDelete($roleId): \KeyNetra\Client\Model\SuccessResponseDictStrInt +``` + +Delete Role + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$roleId = 56; // int + +try { + $result = $apiInstance->deleteRoleRolesRoleIdDelete($roleId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->deleteRoleRolesRoleIdDelete: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `getAuthModelAuthModelGet()` + +```php +getAuthModelAuthModelGet(): \KeyNetra\Client\Model\SuccessResponseAuthModelOut +``` + +Get Auth Model + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); + +try { + $result = $apiInstance->getAuthModelAuthModelGet(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->getAuthModelAuthModelGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseAuthModelOut**](../Model/SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `impactAnalysisImpactAnalysisPost()` + +```php +impactAnalysisImpactAnalysisPost($impactAnalysisRequest): \KeyNetra\Client\Model\SuccessResponseImpactAnalysisResponse +``` + +Impact Analysis + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$impactAnalysisRequest = new \KeyNetra\Client\Model\ImpactAnalysisRequest(); // \KeyNetra\Client\Model\ImpactAnalysisRequest + +try { + $result = $apiInstance->impactAnalysisImpactAnalysisPost($impactAnalysisRequest); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->impactAnalysisImpactAnalysisPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **impactAnalysisRequest** | [**\KeyNetra\Client\Model\ImpactAnalysisRequest**](../Model/ImpactAnalysisRequest.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseImpactAnalysisResponse**](../Model/SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listAclEntriesAclResourceTypeResourceIdGet()` + +```php +listAclEntriesAclResourceTypeResourceIdGet($resourceType, $resourceId): \KeyNetra\Client\Model\SuccessResponseListACLOut +``` + +List Acl Entries + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$resourceType = 'resourceType_example'; // string +$resourceId = 'resourceId_example'; // string + +try { + $result = $apiInstance->listAclEntriesAclResourceTypeResourceIdGet($resourceType, $resourceId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listAclEntriesAclResourceTypeResourceIdGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **resourceType** | **string**| | | +| **resourceId** | **string**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListACLOut**](../Model/SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listAuditLogsAuditGet()` + +```php +listAuditLogsAuditGet($limit, $cursor, $userId, $resourceId, $decision, $startTime, $endTime): \KeyNetra\Client\Model\SuccessResponseListAuditRecordOut +``` + +List Audit Logs + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$limit = 50; // int +$cursor = 'cursor_example'; // string +$userId = 'userId_example'; // string +$resourceId = 'resourceId_example'; // string +$decision = 'decision_example'; // string +$startTime = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime +$endTime = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime + +try { + $result = $apiInstance->listAuditLogsAuditGet($limit, $cursor, $userId, $resourceId, $decision, $startTime, $endTime); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listAuditLogsAuditGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **limit** | **int**| | [optional] [default to 50] | +| **cursor** | **string**| | [optional] | +| **userId** | **string**| | [optional] | +| **resourceId** | **string**| | [optional] | +| **decision** | **string**| | [optional] | +| **startTime** | **\DateTime**| | [optional] | +| **endTime** | **\DateTime**| | [optional] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListAuditRecordOut**](../Model/SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listPermissionRolesPermissionsPermissionIdRolesGet()` + +```php +listPermissionRolesPermissionsPermissionIdRolesGet($permissionId): \KeyNetra\Client\Model\SuccessResponseListRoleOut +``` + +List Permission Roles + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$permissionId = 56; // int + +try { + $result = $apiInstance->listPermissionRolesPermissionsPermissionIdRolesGet($permissionId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listPermissionRolesPermissionsPermissionIdRolesGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListRoleOut**](../Model/SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listPermissionsPermissionsGet()` + +```php +listPermissionsPermissionsGet($limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListPermissionOut +``` + +List Permissions + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$limit = 50; // int +$cursor = 'cursor_example'; // string + +try { + $result = $apiInstance->listPermissionsPermissionsGet($limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listPermissionsPermissionsGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **limit** | **int**| | [optional] [default to 50] | +| **cursor** | **string**| | [optional] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListPermissionOut**](../Model/SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listPoliciesPoliciesGet()` + +```php +listPoliciesPoliciesGet($limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListPolicyOut +``` + +List Policies + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$limit = 50; // int +$cursor = 'cursor_example'; // string + +try { + $result = $apiInstance->listPoliciesPoliciesGet($limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listPoliciesPoliciesGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **limit** | **int**| | [optional] [default to 50] | +| **cursor** | **string**| | [optional] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListPolicyOut**](../Model/SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listRelationshipsRelationshipsGet()` + +```php +listRelationshipsRelationshipsGet($subjectType, $subjectId, $limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListDictStrStr +``` + +List Relationships + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$subjectType = 'subjectType_example'; // string +$subjectId = 'subjectId_example'; // string +$limit = 50; // int +$cursor = 'cursor_example'; // string + +try { + $result = $apiInstance->listRelationshipsRelationshipsGet($subjectType, $subjectId, $limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listRelationshipsRelationshipsGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **subjectType** | **string**| | | +| **subjectId** | **string**| | | +| **limit** | **int**| | [optional] [default to 50] | +| **cursor** | **string**| | [optional] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListDictStrStr**](../Model/SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listRolePermissionsRolesRoleIdPermissionsGet()` + +```php +listRolePermissionsRolesRoleIdPermissionsGet($roleId): \KeyNetra\Client\Model\SuccessResponseListPermissionOut +``` + +List Role Permissions + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$roleId = 56; // int + +try { + $result = $apiInstance->listRolePermissionsRolesRoleIdPermissionsGet($roleId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listRolePermissionsRolesRoleIdPermissionsGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListPermissionOut**](../Model/SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listRolesRolesGet()` + +```php +listRolesRolesGet($limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListRoleOut +``` + +List Roles + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$limit = 50; // int +$cursor = 'cursor_example'; // string + +try { + $result = $apiInstance->listRolesRolesGet($limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->listRolesRolesGet: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **limit** | **int**| | [optional] [default to 50] | +| **cursor** | **string**| | [optional] | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseListRoleOut**](../Model/SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete()` + +```php +removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete($roleId, $permissionId): \KeyNetra\Client\Model\SuccessResponseDictStrInt +``` + +Remove Permission From Role + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$roleId = 56; // int +$permissionId = 56; // int + +try { + $result = $apiInstance->removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete($roleId, $permissionId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **int**| | | +| **permissionId** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `rollbackPolicyPoliciesPolicyKeyRollbackVersionPost()` + +```php +rollbackPolicyPoliciesPolicyKeyRollbackVersionPost($policyKey, $version): \KeyNetra\Client\Model\SuccessResponseDictStrUnionIntStr +``` + +Rollback Policy + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$policyKey = 'policyKey_example'; // string +$version = 56; // int + +try { + $result = $apiInstance->rollbackPolicyPoliciesPolicyKeyRollbackVersionPost($policyKey, $version); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->rollbackPolicyPoliciesPolicyKeyRollbackVersionPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyKey** | **string**| | | +| **version** | **int**| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrUnionIntStr**](../Model/SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `simulatePolicySimulatePolicyPost()` + +```php +simulatePolicySimulatePolicyPost($policySimulationRequest): \KeyNetra\Client\Model\SuccessResponsePolicySimulationResponse +``` + +Simulate Policy + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$policySimulationRequest = new \KeyNetra\Client\Model\PolicySimulationRequest(); // \KeyNetra\Client\Model\PolicySimulationRequest + +try { + $result = $apiInstance->simulatePolicySimulatePolicyPost($policySimulationRequest); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->simulatePolicySimulatePolicyPost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policySimulationRequest** | [**\KeyNetra\Client\Model\PolicySimulationRequest**](../Model/PolicySimulationRequest.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponsePolicySimulationResponse**](../Model/SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `updatePermissionPermissionsPermissionIdPut()` + +```php +updatePermissionPermissionsPermissionIdPut($permissionId, $permissionUpdate): \KeyNetra\Client\Model\PermissionOut +``` + +Update Permission + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$permissionId = 56; // int +$permissionUpdate = new \KeyNetra\Client\Model\PermissionUpdate(); // \KeyNetra\Client\Model\PermissionUpdate + +try { + $result = $apiInstance->updatePermissionPermissionsPermissionIdPut($permissionId, $permissionUpdate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->updatePermissionPermissionsPermissionIdPut: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **permissionId** | **int**| | | +| **permissionUpdate** | [**\KeyNetra\Client\Model\PermissionUpdate**](../Model/PermissionUpdate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\PermissionOut**](../Model/PermissionOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `updatePolicyPoliciesPolicyKeyPut()` + +```php +updatePolicyPoliciesPolicyKeyPut($policyKey, $policyCreate): \KeyNetra\Client\Model\SuccessResponsePolicyOut +``` + +Update Policy + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$policyKey = 'policyKey_example'; // string +$policyCreate = new \KeyNetra\Client\Model\PolicyCreate(); // \KeyNetra\Client\Model\PolicyCreate + +try { + $result = $apiInstance->updatePolicyPoliciesPolicyKeyPut($policyKey, $policyCreate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->updatePolicyPoliciesPolicyKeyPut: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **policyKey** | **string**| | | +| **policyCreate** | [**\KeyNetra\Client\Model\PolicyCreate**](../Model/PolicyCreate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponsePolicyOut**](../Model/SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `updateRoleRolesRoleIdPut()` + +```php +updateRoleRolesRoleIdPut($roleId, $roleUpdate): \KeyNetra\Client\Model\RoleOut +``` + +Update Role + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$roleId = 56; // int +$roleUpdate = new \KeyNetra\Client\Model\RoleUpdate(); // \KeyNetra\Client\Model\RoleUpdate + +try { + $result = $apiInstance->updateRoleRolesRoleIdPut($roleId, $roleUpdate); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->updateRoleRolesRoleIdPut: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **roleId** | **int**| | | +| **roleUpdate** | [**\KeyNetra\Client\Model\RoleUpdate**](../Model/RoleUpdate.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\RoleOut**](../Model/RoleOut.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/PlaygroundApi.md b/sdks/php/docs/Api/PlaygroundApi.md new file mode 100644 index 0000000..f19ff74 --- /dev/null +++ b/sdks/php/docs/Api/PlaygroundApi.md @@ -0,0 +1,73 @@ +# KeyNetra\Client\PlaygroundApi + + + +All URIs are relative to http://localhost, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**evaluatePlaygroundEvaluatePost()**](PlaygroundApi.md#evaluatePlaygroundEvaluatePost) | **POST** /playground/evaluate | Evaluate | + + +## `evaluatePlaygroundEvaluatePost()` + +```php +evaluatePlaygroundEvaluatePost($playgroundEvaluateRequest): \KeyNetra\Client\Model\SuccessResponseDictStrAny +``` + +Evaluate + +### Example + +```php +setApiKey('X-API-Key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); + +// Configure Bearer authorization: HTTPBearer +$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new KeyNetra\Client\Api\PlaygroundApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$playgroundEvaluateRequest = new \KeyNetra\Client\Model\PlaygroundEvaluateRequest(); // \KeyNetra\Client\Model\PlaygroundEvaluateRequest + +try { + $result = $apiInstance->evaluatePlaygroundEvaluatePost($playgroundEvaluateRequest); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling PlaygroundApi->evaluatePlaygroundEvaluatePost: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **playgroundEvaluateRequest** | [**\KeyNetra\Client\Model\PlaygroundEvaluateRequest**](../Model/PlaygroundEvaluateRequest.md)| | | + +### Return type + +[**\KeyNetra\Client\Model\SuccessResponseDictStrAny**](../Model/SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ACLCreate.md b/sdks/php/docs/Model/ACLCreate.md new file mode 100644 index 0000000..4514625 --- /dev/null +++ b/sdks/php/docs/Model/ACLCreate.md @@ -0,0 +1,14 @@ +# ACLCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **string** | | +**subjectId** | **string** | | +**resourceType** | **string** | | +**resourceId** | **string** | | +**action** | **string** | | +**effect** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ACLOut.md b/sdks/php/docs/Model/ACLOut.md new file mode 100644 index 0000000..a0580f6 --- /dev/null +++ b/sdks/php/docs/Model/ACLOut.md @@ -0,0 +1,17 @@ +# ACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **string** | | +**subjectId** | **string** | | +**resourceType** | **string** | | +**resourceId** | **string** | | +**action** | **string** | | +**effect** | **string** | | +**id** | **int** | | +**tenantId** | **int** | | +**createdAt** | **\DateTime** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AccessDecisionResponse.md b/sdks/php/docs/Model/AccessDecisionResponse.md new file mode 100644 index 0000000..7608955 --- /dev/null +++ b/sdks/php/docs/Model/AccessDecisionResponse.md @@ -0,0 +1,15 @@ +# AccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **bool** | | +**decision** | **string** | | +**matchedPolicies** | **string[]** | | [optional] +**reason** | **string** | | [optional] +**policyId** | **string** | | [optional] +**explainTrace** | **array[]** | | [optional] +**revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AccessRequest.md b/sdks/php/docs/Model/AccessRequest.md new file mode 100644 index 0000000..9224992 --- /dev/null +++ b/sdks/php/docs/Model/AccessRequest.md @@ -0,0 +1,14 @@ +# AccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **array** | | [optional] +**action** | **string** | | +**resource** | **array** | | [optional] +**context** | **array** | | [optional] +**consistency** | **string** | | [optional] [default to 'eventual'] +**revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AdminLoginRequest.md b/sdks/php/docs/Model/AdminLoginRequest.md new file mode 100644 index 0000000..049306c --- /dev/null +++ b/sdks/php/docs/Model/AdminLoginRequest.md @@ -0,0 +1,10 @@ +# AdminLoginRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **string** | | +**password** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AdminLoginResponse.md b/sdks/php/docs/Model/AdminLoginResponse.md new file mode 100644 index 0000000..9bde3dd --- /dev/null +++ b/sdks/php/docs/Model/AdminLoginResponse.md @@ -0,0 +1,13 @@ +# AdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessToken** | **string** | | +**tokenType** | **string** | | [optional] [default to 'bearer'] +**expiresIn** | **int** | | +**role** | **string** | | [optional] [default to 'admin'] +**tenantKey** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AuditRecordOut.md b/sdks/php/docs/Model/AuditRecordOut.md new file mode 100644 index 0000000..94c57e7 --- /dev/null +++ b/sdks/php/docs/Model/AuditRecordOut.md @@ -0,0 +1,21 @@ +# AuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**principalType** | **string** | | +**principalId** | **string** | | +**correlationId** | **string** | | [optional] +**user** | **array** | | +**action** | **string** | | +**resource** | **array** | | +**decision** | **string** | | +**matchedPolicies** | **mixed[]** | | +**reason** | **string** | | [optional] +**evaluatedRules** | **mixed[]** | | +**failedConditions** | **mixed[]** | | +**createdAt** | **\DateTime** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AuthModelCreate.md b/sdks/php/docs/Model/AuthModelCreate.md new file mode 100644 index 0000000..560f3e2 --- /dev/null +++ b/sdks/php/docs/Model/AuthModelCreate.md @@ -0,0 +1,9 @@ +# AuthModelCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**schema** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AuthModelOut.md b/sdks/php/docs/Model/AuthModelOut.md new file mode 100644 index 0000000..9970262 --- /dev/null +++ b/sdks/php/docs/Model/AuthModelOut.md @@ -0,0 +1,13 @@ +# AuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**tenantId** | **int** | | +**schema** | **string** | | +**parsed** | **array** | | +**compiled** | **array** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessItem.md b/sdks/php/docs/Model/BatchAccessItem.md new file mode 100644 index 0000000..f28fdaa --- /dev/null +++ b/sdks/php/docs/Model/BatchAccessItem.md @@ -0,0 +1,10 @@ +# BatchAccessItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | +**resource** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessRequest.md b/sdks/php/docs/Model/BatchAccessRequest.md new file mode 100644 index 0000000..50d08b9 --- /dev/null +++ b/sdks/php/docs/Model/BatchAccessRequest.md @@ -0,0 +1,12 @@ +# BatchAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **array** | | [optional] +**items** | [**\KeyNetra\Client\Model\BatchAccessItem[]**](BatchAccessItem.md) | | +**consistency** | **string** | | [optional] [default to 'eventual'] +**revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessResponse.md b/sdks/php/docs/Model/BatchAccessResponse.md new file mode 100644 index 0000000..fd68c18 --- /dev/null +++ b/sdks/php/docs/Model/BatchAccessResponse.md @@ -0,0 +1,10 @@ +# BatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**\KeyNetra\Client\Model\BatchAccessResult[]**](BatchAccessResult.md) | | +**revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessResult.md b/sdks/php/docs/Model/BatchAccessResult.md new file mode 100644 index 0000000..9a599a0 --- /dev/null +++ b/sdks/php/docs/Model/BatchAccessResult.md @@ -0,0 +1,11 @@ +# BatchAccessResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | +**allowed** | **bool** | | +**revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/DataValue.md b/sdks/php/docs/Model/DataValue.md new file mode 100644 index 0000000..52cd496 --- /dev/null +++ b/sdks/php/docs/Model/DataValue.md @@ -0,0 +1,8 @@ +# DataValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/HTTPValidationError.md b/sdks/php/docs/Model/HTTPValidationError.md new file mode 100644 index 0000000..e55cd24 --- /dev/null +++ b/sdks/php/docs/Model/HTTPValidationError.md @@ -0,0 +1,9 @@ +# HTTPValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**detail** | [**\KeyNetra\Client\Model\ValidationError[]**](ValidationError.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ImpactAnalysisRequest.md b/sdks/php/docs/Model/ImpactAnalysisRequest.md new file mode 100644 index 0000000..9888070 --- /dev/null +++ b/sdks/php/docs/Model/ImpactAnalysisRequest.md @@ -0,0 +1,9 @@ +# ImpactAnalysisRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policyChange** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ImpactAnalysisResponse.md b/sdks/php/docs/Model/ImpactAnalysisResponse.md new file mode 100644 index 0000000..8b93229 --- /dev/null +++ b/sdks/php/docs/Model/ImpactAnalysisResponse.md @@ -0,0 +1,10 @@ +# ImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gainedAccess** | **int[]** | | [optional] +**lostAccess** | **int[]** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/LocationInner.md b/sdks/php/docs/Model/LocationInner.md new file mode 100644 index 0000000..801e8ed --- /dev/null +++ b/sdks/php/docs/Model/LocationInner.md @@ -0,0 +1,8 @@ +# LocationInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/MetaBody.md b/sdks/php/docs/Model/MetaBody.md new file mode 100644 index 0000000..205affc --- /dev/null +++ b/sdks/php/docs/Model/MetaBody.md @@ -0,0 +1,12 @@ +# MetaBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requestId** | **string** | | [optional] +**limit** | **int** | | [optional] +**nextCursor** | **string** | | [optional] +**extra** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PermissionCreate.md b/sdks/php/docs/Model/PermissionCreate.md new file mode 100644 index 0000000..a21f3bc --- /dev/null +++ b/sdks/php/docs/Model/PermissionCreate.md @@ -0,0 +1,9 @@ +# PermissionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PermissionOut.md b/sdks/php/docs/Model/PermissionOut.md new file mode 100644 index 0000000..9e480a6 --- /dev/null +++ b/sdks/php/docs/Model/PermissionOut.md @@ -0,0 +1,10 @@ +# PermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**action** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PermissionUpdate.md b/sdks/php/docs/Model/PermissionUpdate.md new file mode 100644 index 0000000..8ca9baf --- /dev/null +++ b/sdks/php/docs/Model/PermissionUpdate.md @@ -0,0 +1,9 @@ +# PermissionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PlaygroundEvaluateRequest.md b/sdks/php/docs/Model/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..fe9ab47 --- /dev/null +++ b/sdks/php/docs/Model/PlaygroundEvaluateRequest.md @@ -0,0 +1,10 @@ +# PlaygroundEvaluateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**\KeyNetra\Client\Model\PlaygroundPolicy[]**](PlaygroundPolicy.md) | | +**input** | [**\KeyNetra\Client\Model\PlaygroundInput**](PlaygroundInput.md) | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PlaygroundInput.md b/sdks/php/docs/Model/PlaygroundInput.md new file mode 100644 index 0000000..4877b56 --- /dev/null +++ b/sdks/php/docs/Model/PlaygroundInput.md @@ -0,0 +1,12 @@ +# PlaygroundInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **array** | | [optional] +**resource** | **array** | | [optional] +**action** | **string** | | [optional] [default to ''] +**context** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PlaygroundPolicy.md b/sdks/php/docs/Model/PlaygroundPolicy.md new file mode 100644 index 0000000..907f56a --- /dev/null +++ b/sdks/php/docs/Model/PlaygroundPolicy.md @@ -0,0 +1,13 @@ +# PlaygroundPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | +**effect** | **string** | | [optional] [default to 'allow'] +**priority** | **int** | | [optional] [default to 100] +**policyId** | **string** | | [optional] +**conditions** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicyCreate.md b/sdks/php/docs/Model/PolicyCreate.md new file mode 100644 index 0000000..3f782a7 --- /dev/null +++ b/sdks/php/docs/Model/PolicyCreate.md @@ -0,0 +1,13 @@ +# PolicyCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | +**effect** | **string** | | [optional] [default to 'allow'] +**priority** | **int** | | [optional] [default to 100] +**state** | **string** | | [optional] [default to 'active'] +**conditions** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicyOut.md b/sdks/php/docs/Model/PolicyOut.md new file mode 100644 index 0000000..9d488cc --- /dev/null +++ b/sdks/php/docs/Model/PolicyOut.md @@ -0,0 +1,14 @@ +# PolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**action** | **string** | | +**effect** | **string** | | +**priority** | **int** | | +**state** | **string** | | [optional] [default to 'active'] +**conditions** | **array** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicySimulationInput.md b/sdks/php/docs/Model/PolicySimulationInput.md new file mode 100644 index 0000000..4083614 --- /dev/null +++ b/sdks/php/docs/Model/PolicySimulationInput.md @@ -0,0 +1,11 @@ +# PolicySimulationInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policyChange** | **string** | | [optional] +**relationshipChange** | **array** | | [optional] +**roleChange** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicySimulationRequest.md b/sdks/php/docs/Model/PolicySimulationRequest.md new file mode 100644 index 0000000..7b454fa --- /dev/null +++ b/sdks/php/docs/Model/PolicySimulationRequest.md @@ -0,0 +1,10 @@ +# PolicySimulationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**simulate** | [**\KeyNetra\Client\Model\PolicySimulationInput**](PolicySimulationInput.md) | | [optional] +**request** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicySimulationResponse.md b/sdks/php/docs/Model/PolicySimulationResponse.md new file mode 100644 index 0000000..1a4d942 --- /dev/null +++ b/sdks/php/docs/Model/PolicySimulationResponse.md @@ -0,0 +1,10 @@ +# PolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decisionBefore** | **array** | | +**decisionAfter** | **array** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RelationshipCreate.md b/sdks/php/docs/Model/RelationshipCreate.md new file mode 100644 index 0000000..50522c4 --- /dev/null +++ b/sdks/php/docs/Model/RelationshipCreate.md @@ -0,0 +1,13 @@ +# RelationshipCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **string** | | +**subjectId** | **string** | | +**relation** | **string** | | +**objectType** | **string** | | +**objectId** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RelationshipOut.md b/sdks/php/docs/Model/RelationshipOut.md new file mode 100644 index 0000000..18cc96f --- /dev/null +++ b/sdks/php/docs/Model/RelationshipOut.md @@ -0,0 +1,14 @@ +# RelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **string** | | +**subjectId** | **string** | | +**relation** | **string** | | +**objectType** | **string** | | +**objectId** | **string** | | +**id** | **int** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RoleCreate.md b/sdks/php/docs/Model/RoleCreate.md new file mode 100644 index 0000000..01a4c14 --- /dev/null +++ b/sdks/php/docs/Model/RoleCreate.md @@ -0,0 +1,9 @@ +# RoleCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RoleOut.md b/sdks/php/docs/Model/RoleOut.md new file mode 100644 index 0000000..3f58067 --- /dev/null +++ b/sdks/php/docs/Model/RoleOut.md @@ -0,0 +1,10 @@ +# RoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**name** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RoleUpdate.md b/sdks/php/docs/Model/RoleUpdate.md new file mode 100644 index 0000000..68347db --- /dev/null +++ b/sdks/php/docs/Model/RoleUpdate.md @@ -0,0 +1,9 @@ +# RoleUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SimulationResponse.md b/sdks/php/docs/Model/SimulationResponse.md new file mode 100644 index 0000000..c637561 --- /dev/null +++ b/sdks/php/docs/Model/SimulationResponse.md @@ -0,0 +1,15 @@ +# SimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decision** | **string** | | +**matchedPolicies** | **string[]** | | +**reason** | **string** | | [optional] +**policyId** | **string** | | [optional] +**explainTrace** | **array[]** | | [optional] +**failedConditions** | **string[]** | | [optional] +**revision** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseACLOut.md b/sdks/php/docs/Model/SuccessResponseACLOut.md new file mode 100644 index 0000000..d9e6534 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseACLOut.md @@ -0,0 +1,11 @@ +# SuccessResponseACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\ACLOut**](ACLOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md b/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..c0df4d4 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,11 @@ +# SuccessResponseAccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\AccessDecisionResponse**](AccessDecisionResponse.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md b/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..333d829 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,11 @@ +# SuccessResponseAdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\AdminLoginResponse**](AdminLoginResponse.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAuthModelOut.md b/sdks/php/docs/Model/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..70f3e6d --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseAuthModelOut.md @@ -0,0 +1,11 @@ +# SuccessResponseAuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\AuthModelOut**](AuthModelOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md b/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..bc3bc00 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,11 @@ +# SuccessResponseBatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\BatchAccessResponse**](BatchAccessResponse.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrAny.md b/sdks/php/docs/Model/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..4a5f2a5 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseDictStrAny.md @@ -0,0 +1,11 @@ +# SuccessResponseDictStrAny + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **array** | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrInt.md b/sdks/php/docs/Model/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..6a000c3 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseDictStrInt.md @@ -0,0 +1,11 @@ +# SuccessResponseDictStrInt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **array** | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrObject.md b/sdks/php/docs/Model/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..0cd4461 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseDictStrObject.md @@ -0,0 +1,11 @@ +# SuccessResponseDictStrObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **array** | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrStr.md b/sdks/php/docs/Model/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..f12ffc3 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseDictStrStr.md @@ -0,0 +1,11 @@ +# SuccessResponseDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **array** | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md b/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..ed8c41f --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,11 @@ +# SuccessResponseDictStrUnionIntStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**array**](DataValue.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md b/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..110b619 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,11 @@ +# SuccessResponseImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListACLOut.md b/sdks/php/docs/Model/SuccessResponseListACLOut.md new file mode 100644 index 0000000..09c63c6 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseListACLOut.md @@ -0,0 +1,11 @@ +# SuccessResponseListACLOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\ACLOut[]**](ACLOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md b/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..4c971e0 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,11 @@ +# SuccessResponseListAuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\AuditRecordOut[]**](AuditRecordOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListDictStrStr.md b/sdks/php/docs/Model/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..56e3970 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseListDictStrStr.md @@ -0,0 +1,11 @@ +# SuccessResponseListDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **array[]** | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListPermissionOut.md b/sdks/php/docs/Model/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..56e4d61 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseListPermissionOut.md @@ -0,0 +1,11 @@ +# SuccessResponseListPermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\PermissionOut[]**](PermissionOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListPolicyOut.md b/sdks/php/docs/Model/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..ff8a4b0 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseListPolicyOut.md @@ -0,0 +1,11 @@ +# SuccessResponseListPolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\PolicyOut[]**](PolicyOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListRoleOut.md b/sdks/php/docs/Model/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..6712fa2 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseListRoleOut.md @@ -0,0 +1,11 @@ +# SuccessResponseListRoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\RoleOut[]**](RoleOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePermissionOut.md b/sdks/php/docs/Model/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..6df1fb7 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponsePermissionOut.md @@ -0,0 +1,11 @@ +# SuccessResponsePermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\PermissionOut**](PermissionOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePolicyOut.md b/sdks/php/docs/Model/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..1fb6906 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponsePolicyOut.md @@ -0,0 +1,11 @@ +# SuccessResponsePolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\PolicyOut**](PolicyOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md b/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..68f5d22 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,11 @@ +# SuccessResponsePolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\PolicySimulationResponse**](PolicySimulationResponse.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseRelationshipOut.md b/sdks/php/docs/Model/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..ad4403f --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseRelationshipOut.md @@ -0,0 +1,11 @@ +# SuccessResponseRelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\RelationshipOut**](RelationshipOut.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseSimulationResponse.md b/sdks/php/docs/Model/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..1a32394 --- /dev/null +++ b/sdks/php/docs/Model/SuccessResponseSimulationResponse.md @@ -0,0 +1,11 @@ +# SuccessResponseSimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\KeyNetra\Client\Model\SimulationResponse**](SimulationResponse.md) | | +**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ValidationError.md b/sdks/php/docs/Model/ValidationError.md new file mode 100644 index 0000000..8a70c36 --- /dev/null +++ b/sdks/php/docs/Model/ValidationError.md @@ -0,0 +1,13 @@ +# ValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loc** | [**\KeyNetra\Client\Model\LocationInner[]**](LocationInner.md) | | +**msg** | **string** | | +**type** | **string** | | +**input** | **mixed** | | [optional] +**ctx** | **object** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/git_push.sh b/sdks/php/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/php/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/php/phpunit.xml.dist b/sdks/php/phpunit.xml.dist new file mode 100644 index 0000000..485899a --- /dev/null +++ b/sdks/php/phpunit.xml.dist @@ -0,0 +1,18 @@ + + + + + ./lib/Api + ./lib/Model + + + + + ./test/Api + ./test/Model + + + + + + diff --git a/sdks/php/test/Api/AccessApiTest.php b/sdks/php/test/Api/AccessApiTest.php new file mode 100644 index 0000000..8fa0c59 --- /dev/null +++ b/sdks/php/test/Api/AccessApiTest.php @@ -0,0 +1,109 @@ + SuccessResponseBatchAccessResponse check_access_batch_check_access_batch_post(batch_access_request, policy_set=policy_set) + +Check Access Batch + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.batch_access_request import BatchAccessRequest +from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.AccessApi(api_client) + batch_access_request = keynetra_client.BatchAccessRequest() # BatchAccessRequest | + policy_set = 'active' # str | (optional) (default to 'active') + + try: + # Check Access Batch + api_response = api_instance.check_access_batch_check_access_batch_post(batch_access_request, policy_set=policy_set) + print("The response of AccessApi->check_access_batch_check_access_batch_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccessApi->check_access_batch_check_access_batch_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_access_request** | [**BatchAccessRequest**](BatchAccessRequest.md)| | + **policy_set** | **str**| | [optional] [default to 'active'] + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **check_access_check_access_post** +> SuccessResponseAccessDecisionResponse check_access_check_access_post(access_request, policy_set=policy_set) + +Check Access + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.access_request import AccessRequest +from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.AccessApi(api_client) + access_request = keynetra_client.AccessRequest() # AccessRequest | + policy_set = 'active' # str | (optional) (default to 'active') + + try: + # Check Access + api_response = api_instance.check_access_check_access_post(access_request, policy_set=policy_set) + print("The response of AccessApi->check_access_check_access_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccessApi->check_access_check_access_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **access_request** | [**AccessRequest**](AccessRequest.md)| | + **policy_set** | **str**| | [optional] [default to 'active'] + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **simulate_simulate_post** +> SuccessResponseSimulationResponse simulate_simulate_post(access_request) + +Simulate + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.access_request import AccessRequest +from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.AccessApi(api_client) + access_request = keynetra_client.AccessRequest() # AccessRequest | + + try: + # Simulate + api_response = api_instance.simulate_simulate_post(access_request) + print("The response of AccessApi->simulate_simulate_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccessApi->simulate_simulate_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **access_request** | [**AccessRequest**](AccessRequest.md)| | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/python/docs/AccessDecisionResponse.md b/sdks/python/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..5903c6b --- /dev/null +++ b/sdks/python/docs/AccessDecisionResponse.md @@ -0,0 +1,35 @@ +# AccessDecisionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **bool** | | +**decision** | **str** | | +**matched_policies** | **List[str]** | | [optional] +**reason** | **str** | | [optional] +**policy_id** | **str** | | [optional] +**explain_trace** | **List[Dict[str, object]]** | | [optional] +**revision** | **int** | | [optional] + +## Example + +```python +from keynetra_client.models.access_decision_response import AccessDecisionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AccessDecisionResponse from a JSON string +access_decision_response_instance = AccessDecisionResponse.from_json(json) +# print the JSON string representation of the object +print(AccessDecisionResponse.to_json()) + +# convert the object into a dict +access_decision_response_dict = access_decision_response_instance.to_dict() +# create an instance of AccessDecisionResponse from a dict +access_decision_response_from_dict = AccessDecisionResponse.from_dict(access_decision_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/AccessRequest.md b/sdks/python/docs/AccessRequest.md new file mode 100644 index 0000000..02274a0 --- /dev/null +++ b/sdks/python/docs/AccessRequest.md @@ -0,0 +1,35 @@ +# AccessRequest + +Explicit authorization request passed through the API boundary. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **Dict[str, object]** | | [optional] +**action** | **str** | | +**resource** | **Dict[str, object]** | | [optional] +**context** | **Dict[str, object]** | | [optional] +**consistency** | **str** | | [optional] [default to 'eventual'] +**revision** | **int** | | [optional] + +## Example + +```python +from keynetra_client.models.access_request import AccessRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AccessRequest from a JSON string +access_request_instance = AccessRequest.from_json(json) +# print the JSON string representation of the object +print(AccessRequest.to_json()) + +# convert the object into a dict +access_request_dict = access_request_instance.to_dict() +# create an instance of AccessRequest from a dict +access_request_from_dict = AccessRequest.from_dict(access_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/AdminLoginRequest.md b/sdks/python/docs/AdminLoginRequest.md new file mode 100644 index 0000000..991f64c --- /dev/null +++ b/sdks/python/docs/AdminLoginRequest.md @@ -0,0 +1,30 @@ +# AdminLoginRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **str** | | +**password** | **str** | | + +## Example + +```python +from keynetra_client.models.admin_login_request import AdminLoginRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AdminLoginRequest from a JSON string +admin_login_request_instance = AdminLoginRequest.from_json(json) +# print the JSON string representation of the object +print(AdminLoginRequest.to_json()) + +# convert the object into a dict +admin_login_request_dict = admin_login_request_instance.to_dict() +# create an instance of AdminLoginRequest from a dict +admin_login_request_from_dict = AdminLoginRequest.from_dict(admin_login_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/AdminLoginResponse.md b/sdks/python/docs/AdminLoginResponse.md new file mode 100644 index 0000000..9048a4d --- /dev/null +++ b/sdks/python/docs/AdminLoginResponse.md @@ -0,0 +1,33 @@ +# AdminLoginResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **str** | | +**token_type** | **str** | | [optional] [default to 'bearer'] +**expires_in** | **int** | | +**role** | **str** | | [optional] [default to 'admin'] +**tenant_key** | **str** | | + +## Example + +```python +from keynetra_client.models.admin_login_response import AdminLoginResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AdminLoginResponse from a JSON string +admin_login_response_instance = AdminLoginResponse.from_json(json) +# print the JSON string representation of the object +print(AdminLoginResponse.to_json()) + +# convert the object into a dict +admin_login_response_dict = admin_login_response_instance.to_dict() +# create an instance of AdminLoginResponse from a dict +admin_login_response_from_dict = AdminLoginResponse.from_dict(admin_login_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/AuditRecordOut.md b/sdks/python/docs/AuditRecordOut.md new file mode 100644 index 0000000..773fd12 --- /dev/null +++ b/sdks/python/docs/AuditRecordOut.md @@ -0,0 +1,41 @@ +# AuditRecordOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**principal_type** | **str** | | +**principal_id** | **str** | | +**correlation_id** | **str** | | [optional] +**user** | **Dict[str, object]** | | +**action** | **str** | | +**resource** | **Dict[str, object]** | | +**decision** | **str** | | +**matched_policies** | **List[object]** | | +**reason** | **str** | | [optional] +**evaluated_rules** | **List[object]** | | +**failed_conditions** | **List[object]** | | +**created_at** | **datetime** | | + +## Example + +```python +from keynetra_client.models.audit_record_out import AuditRecordOut + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditRecordOut from a JSON string +audit_record_out_instance = AuditRecordOut.from_json(json) +# print the JSON string representation of the object +print(AuditRecordOut.to_json()) + +# convert the object into a dict +audit_record_out_dict = audit_record_out_instance.to_dict() +# create an instance of AuditRecordOut from a dict +audit_record_out_from_dict = AuditRecordOut.from_dict(audit_record_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/AuthApi.md b/sdks/python/docs/AuthApi.md new file mode 100644 index 0000000..e7511e5 --- /dev/null +++ b/sdks/python/docs/AuthApi.md @@ -0,0 +1,146 @@ +# keynetra_client.AuthApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_login_admin_login_post**](AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login +[**admin_login_admin_login_post_0**](AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login + + +# **admin_login_admin_login_post** +> SuccessResponseAdminLoginResponse admin_login_admin_login_post(admin_login_request) + +Admin Login + +### Example + + +```python +import keynetra_client +from keynetra_client.models.admin_login_request import AdminLoginRequest +from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.AuthApi(api_client) + admin_login_request = keynetra_client.AdminLoginRequest() # AdminLoginRequest | + + try: + # Admin Login + api_response = api_instance.admin_login_admin_login_post(admin_login_request) + print("The response of AuthApi->admin_login_admin_login_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthApi->admin_login_admin_login_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md)| | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_login_admin_login_post_0** +> SuccessResponseAdminLoginResponse admin_login_admin_login_post_0(admin_login_request) + +Admin Login + +### Example + + +```python +import keynetra_client +from keynetra_client.models.admin_login_request import AdminLoginRequest +from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.AuthApi(api_client) + admin_login_request = keynetra_client.AdminLoginRequest() # AdminLoginRequest | + + try: + # Admin Login + api_response = api_instance.admin_login_admin_login_post_0(admin_login_request) + print("The response of AuthApi->admin_login_admin_login_post_0:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthApi->admin_login_admin_login_post_0: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md)| | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/python/docs/AuthModelCreate.md b/sdks/python/docs/AuthModelCreate.md new file mode 100644 index 0000000..aa26fc7 --- /dev/null +++ b/sdks/python/docs/AuthModelCreate.md @@ -0,0 +1,29 @@ +# AuthModelCreate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_schema** | **str** | | + +## Example + +```python +from keynetra_client.models.auth_model_create import AuthModelCreate + +# TODO update the JSON string below +json = "{}" +# create an instance of AuthModelCreate from a JSON string +auth_model_create_instance = AuthModelCreate.from_json(json) +# print the JSON string representation of the object +print(AuthModelCreate.to_json()) + +# convert the object into a dict +auth_model_create_dict = auth_model_create_instance.to_dict() +# create an instance of AuthModelCreate from a dict +auth_model_create_from_dict = AuthModelCreate.from_dict(auth_model_create_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/AuthModelOut.md b/sdks/python/docs/AuthModelOut.md new file mode 100644 index 0000000..97baa1f --- /dev/null +++ b/sdks/python/docs/AuthModelOut.md @@ -0,0 +1,33 @@ +# AuthModelOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**tenant_id** | **int** | | +**var_schema** | **str** | | +**parsed** | **Dict[str, object]** | | +**compiled** | **Dict[str, object]** | | + +## Example + +```python +from keynetra_client.models.auth_model_out import AuthModelOut + +# TODO update the JSON string below +json = "{}" +# create an instance of AuthModelOut from a JSON string +auth_model_out_instance = AuthModelOut.from_json(json) +# print the JSON string representation of the object +print(AuthModelOut.to_json()) + +# convert the object into a dict +auth_model_out_dict = auth_model_out_instance.to_dict() +# create an instance of AuthModelOut from a dict +auth_model_out_from_dict = AuthModelOut.from_dict(auth_model_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/BatchAccessItem.md b/sdks/python/docs/BatchAccessItem.md new file mode 100644 index 0000000..9a0cd4c --- /dev/null +++ b/sdks/python/docs/BatchAccessItem.md @@ -0,0 +1,30 @@ +# BatchAccessItem + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | +**resource** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.batch_access_item import BatchAccessItem + +# TODO update the JSON string below +json = "{}" +# create an instance of BatchAccessItem from a JSON string +batch_access_item_instance = BatchAccessItem.from_json(json) +# print the JSON string representation of the object +print(BatchAccessItem.to_json()) + +# convert the object into a dict +batch_access_item_dict = batch_access_item_instance.to_dict() +# create an instance of BatchAccessItem from a dict +batch_access_item_from_dict = BatchAccessItem.from_dict(batch_access_item_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/BatchAccessRequest.md b/sdks/python/docs/BatchAccessRequest.md new file mode 100644 index 0000000..a215b0b --- /dev/null +++ b/sdks/python/docs/BatchAccessRequest.md @@ -0,0 +1,32 @@ +# BatchAccessRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **Dict[str, object]** | | [optional] +**items** | [**List[BatchAccessItem]**](BatchAccessItem.md) | | +**consistency** | **str** | | [optional] [default to 'eventual'] +**revision** | **int** | | [optional] + +## Example + +```python +from keynetra_client.models.batch_access_request import BatchAccessRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BatchAccessRequest from a JSON string +batch_access_request_instance = BatchAccessRequest.from_json(json) +# print the JSON string representation of the object +print(BatchAccessRequest.to_json()) + +# convert the object into a dict +batch_access_request_dict = batch_access_request_instance.to_dict() +# create an instance of BatchAccessRequest from a dict +batch_access_request_from_dict = BatchAccessRequest.from_dict(batch_access_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/BatchAccessResponse.md b/sdks/python/docs/BatchAccessResponse.md new file mode 100644 index 0000000..7968cf8 --- /dev/null +++ b/sdks/python/docs/BatchAccessResponse.md @@ -0,0 +1,30 @@ +# BatchAccessResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List[BatchAccessResult]**](BatchAccessResult.md) | | +**revision** | **int** | | [optional] + +## Example + +```python +from keynetra_client.models.batch_access_response import BatchAccessResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of BatchAccessResponse from a JSON string +batch_access_response_instance = BatchAccessResponse.from_json(json) +# print the JSON string representation of the object +print(BatchAccessResponse.to_json()) + +# convert the object into a dict +batch_access_response_dict = batch_access_response_instance.to_dict() +# create an instance of BatchAccessResponse from a dict +batch_access_response_from_dict = BatchAccessResponse.from_dict(batch_access_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/BatchAccessResult.md b/sdks/python/docs/BatchAccessResult.md new file mode 100644 index 0000000..f7a3173 --- /dev/null +++ b/sdks/python/docs/BatchAccessResult.md @@ -0,0 +1,31 @@ +# BatchAccessResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | +**allowed** | **bool** | | +**revision** | **int** | | [optional] + +## Example + +```python +from keynetra_client.models.batch_access_result import BatchAccessResult + +# TODO update the JSON string below +json = "{}" +# create an instance of BatchAccessResult from a JSON string +batch_access_result_instance = BatchAccessResult.from_json(json) +# print the JSON string representation of the object +print(BatchAccessResult.to_json()) + +# convert the object into a dict +batch_access_result_dict = batch_access_result_instance.to_dict() +# create an instance of BatchAccessResult from a dict +batch_access_result_from_dict = BatchAccessResult.from_dict(batch_access_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/DataValue.md b/sdks/python/docs/DataValue.md new file mode 100644 index 0000000..3ae7867 --- /dev/null +++ b/sdks/python/docs/DataValue.md @@ -0,0 +1,28 @@ +# DataValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from keynetra_client.models.data_value import DataValue + +# TODO update the JSON string below +json = "{}" +# create an instance of DataValue from a JSON string +data_value_instance = DataValue.from_json(json) +# print the JSON string representation of the object +print(DataValue.to_json()) + +# convert the object into a dict +data_value_dict = data_value_instance.to_dict() +# create an instance of DataValue from a dict +data_value_from_dict = DataValue.from_dict(data_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/DevApi.md b/sdks/python/docs/DevApi.md new file mode 100644 index 0000000..73c37de --- /dev/null +++ b/sdks/python/docs/DevApi.md @@ -0,0 +1,139 @@ +# keynetra_client.DevApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_sample_data_dev_sample_data_get**](DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data +[**seed_sample_data_dev_sample_data_seed_post**](DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data + + +# **get_sample_data_dev_sample_data_get** +> SuccessResponseDictStrObject get_sample_data_dev_sample_data_get() + +Get Sample Data + +### Example + + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.DevApi(api_client) + + try: + # Get Sample Data + api_response = api_instance.get_sample_data_dev_sample_data_get() + print("The response of DevApi->get_sample_data_dev_sample_data_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DevApi->get_sample_data_dev_sample_data_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **seed_sample_data_dev_sample_data_seed_post** +> SuccessResponseDictStrObject seed_sample_data_dev_sample_data_seed_post(reset=reset) + +Seed Sample Data + +### Example + + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.DevApi(api_client) + reset = False # bool | Clear the sample dataset before reseeding it. (optional) (default to False) + + try: + # Seed Sample Data + api_response = api_instance.seed_sample_data_dev_sample_data_seed_post(reset=reset) + print("The response of DevApi->seed_sample_data_dev_sample_data_seed_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DevApi->seed_sample_data_dev_sample_data_seed_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reset** | **bool**| Clear the sample dataset before reseeding it. | [optional] [default to False] + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/python/docs/HTTPValidationError.md b/sdks/python/docs/HTTPValidationError.md new file mode 100644 index 0000000..c81c8ad --- /dev/null +++ b/sdks/python/docs/HTTPValidationError.md @@ -0,0 +1,29 @@ +# HTTPValidationError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**detail** | [**List[ValidationError]**](ValidationError.md) | | [optional] + +## Example + +```python +from keynetra_client.models.http_validation_error import HTTPValidationError + +# TODO update the JSON string below +json = "{}" +# create an instance of HTTPValidationError from a JSON string +http_validation_error_instance = HTTPValidationError.from_json(json) +# print the JSON string representation of the object +print(HTTPValidationError.to_json()) + +# convert the object into a dict +http_validation_error_dict = http_validation_error_instance.to_dict() +# create an instance of HTTPValidationError from a dict +http_validation_error_from_dict = HTTPValidationError.from_dict(http_validation_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/HealthApi.md b/sdks/python/docs/HealthApi.md new file mode 100644 index 0000000..ea81925 --- /dev/null +++ b/sdks/python/docs/HealthApi.md @@ -0,0 +1,197 @@ +# keynetra_client.HealthApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**health_health_get**](HealthApi.md#health_health_get) | **GET** /health | Health +[**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness +[**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness + + +# **health_health_get** +> SuccessResponseDictStrStr health_health_get() + +Health + +### Example + + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.HealthApi(api_client) + + try: + # Health + api_response = api_instance.health_health_get() + print("The response of HealthApi->health_health_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HealthApi->health_health_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **liveness_health_live_get** +> SuccessResponseDictStrStr liveness_health_live_get() + +Liveness + +### Example + + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.HealthApi(api_client) + + try: + # Liveness + api_response = api_instance.liveness_health_live_get() + print("The response of HealthApi->liveness_health_live_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HealthApi->liveness_health_live_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **readiness_health_ready_get** +> SuccessResponseDictStrObject readiness_health_ready_get() + +Readiness + +### Example + + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.HealthApi(api_client) + + try: + # Readiness + api_response = api_instance.readiness_health_ready_get() + print("The response of HealthApi->readiness_health_ready_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HealthApi->readiness_health_ready_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/python/docs/ImpactAnalysisRequest.md b/sdks/python/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..31947f6 --- /dev/null +++ b/sdks/python/docs/ImpactAnalysisRequest.md @@ -0,0 +1,29 @@ +# ImpactAnalysisRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy_change** | **str** | | + +## Example + +```python +from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ImpactAnalysisRequest from a JSON string +impact_analysis_request_instance = ImpactAnalysisRequest.from_json(json) +# print the JSON string representation of the object +print(ImpactAnalysisRequest.to_json()) + +# convert the object into a dict +impact_analysis_request_dict = impact_analysis_request_instance.to_dict() +# create an instance of ImpactAnalysisRequest from a dict +impact_analysis_request_from_dict = ImpactAnalysisRequest.from_dict(impact_analysis_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/ImpactAnalysisResponse.md b/sdks/python/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..3425b7b --- /dev/null +++ b/sdks/python/docs/ImpactAnalysisResponse.md @@ -0,0 +1,30 @@ +# ImpactAnalysisResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gained_access** | **List[int]** | | [optional] +**lost_access** | **List[int]** | | [optional] + +## Example + +```python +from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ImpactAnalysisResponse from a JSON string +impact_analysis_response_instance = ImpactAnalysisResponse.from_json(json) +# print the JSON string representation of the object +print(ImpactAnalysisResponse.to_json()) + +# convert the object into a dict +impact_analysis_response_dict = impact_analysis_response_instance.to_dict() +# create an instance of ImpactAnalysisResponse from a dict +impact_analysis_response_from_dict = ImpactAnalysisResponse.from_dict(impact_analysis_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/LocationInner.md b/sdks/python/docs/LocationInner.md new file mode 100644 index 0000000..58e2966 --- /dev/null +++ b/sdks/python/docs/LocationInner.md @@ -0,0 +1,28 @@ +# LocationInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from keynetra_client.models.location_inner import LocationInner + +# TODO update the JSON string below +json = "{}" +# create an instance of LocationInner from a JSON string +location_inner_instance = LocationInner.from_json(json) +# print the JSON string representation of the object +print(LocationInner.to_json()) + +# convert the object into a dict +location_inner_dict = location_inner_instance.to_dict() +# create an instance of LocationInner from a dict +location_inner_from_dict = LocationInner.from_dict(location_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/ManagementApi.md b/sdks/python/docs/ManagementApi.md new file mode 100644 index 0000000..005f3d1 --- /dev/null +++ b/sdks/python/docs/ManagementApi.md @@ -0,0 +1,2432 @@ +# keynetra_client.ManagementApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_permission_to_role_roles_role_id_permissions_permission_id_post**](ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +[**create_acl_entry_acl_post**](ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry +[**create_auth_model_auth_model_post**](ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model +[**create_permission_permissions_post**](ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission +[**create_policy_from_dsl_policies_dsl_post**](ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl +[**create_policy_policies_post**](ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy +[**create_relationship_relationships_post**](ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship +[**create_role_roles_post**](ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role +[**delete_acl_entry_acl_acl_id_delete**](ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +[**delete_permission_permissions_permission_id_delete**](ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission +[**delete_policy_policies_policy_key_delete**](ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy +[**delete_role_roles_role_id_delete**](ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role +[**get_auth_model_auth_model_get**](ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model +[**impact_analysis_impact_analysis_post**](ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis +[**list_acl_entries_acl_resource_type_resource_id_get**](ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +[**list_audit_logs_audit_get**](ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs +[**list_permission_roles_permissions_permission_id_roles_get**](ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles +[**list_permissions_permissions_get**](ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions +[**list_policies_policies_get**](ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies +[**list_relationships_relationships_get**](ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships +[**list_role_permissions_roles_role_id_permissions_get**](ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions +[**list_roles_roles_get**](ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles +[**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +[**rollback_policy_policies_policy_key_rollback_version_post**](ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +[**simulate_policy_simulate_policy_post**](ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy +[**update_permission_permissions_permission_id_put**](ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission +[**update_policy_policies_policy_key_put**](ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy +[**update_role_roles_role_id_put**](ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role + + +# **add_permission_to_role_roles_role_id_permissions_permission_id_post** +> SuccessResponsePermissionOut add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) + +Add Permission To Role + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + role_id = 56 # int | + permission_id = 56 # int | + + try: + # Add Permission To Role + api_response = api_instance.add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) + print("The response of ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_id** | **int**| | + **permission_id** | **int**| | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_acl_entry_acl_post** +> SuccessResponseACLOut create_acl_entry_acl_post(acl_create) + +Create Acl Entry + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.acl_create import ACLCreate +from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + acl_create = keynetra_client.ACLCreate() # ACLCreate | + + try: + # Create Acl Entry + api_response = api_instance.create_acl_entry_acl_post(acl_create) + print("The response of ManagementApi->create_acl_entry_acl_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_acl_entry_acl_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **acl_create** | [**ACLCreate**](ACLCreate.md)| | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_auth_model_auth_model_post** +> SuccessResponseAuthModelOut create_auth_model_auth_model_post(auth_model_create) + +Create Auth Model + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.auth_model_create import AuthModelCreate +from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + auth_model_create = keynetra_client.AuthModelCreate() # AuthModelCreate | + + try: + # Create Auth Model + api_response = api_instance.create_auth_model_auth_model_post(auth_model_create) + print("The response of ManagementApi->create_auth_model_auth_model_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_auth_model_auth_model_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_model_create** | [**AuthModelCreate**](AuthModelCreate.md)| | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_permission_permissions_post** +> PermissionOut create_permission_permissions_post(permission_create) + +Create Permission + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.permission_create import PermissionCreate +from keynetra_client.models.permission_out import PermissionOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + permission_create = keynetra_client.PermissionCreate() # PermissionCreate | + + try: + # Create Permission + api_response = api_instance.create_permission_permissions_post(permission_create) + print("The response of ManagementApi->create_permission_permissions_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_permission_permissions_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permission_create** | [**PermissionCreate**](PermissionCreate.md)| | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_policy_from_dsl_policies_dsl_post** +> SuccessResponsePolicyOut create_policy_from_dsl_policies_dsl_post(dsl) + +Create Policy From Dsl + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + dsl = 'dsl_example' # str | + + try: + # Create Policy From Dsl + api_response = api_instance.create_policy_from_dsl_policies_dsl_post(dsl) + print("The response of ManagementApi->create_policy_from_dsl_policies_dsl_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_policy_from_dsl_policies_dsl_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dsl** | **str**| | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_policy_policies_post** +> SuccessResponsePolicyOut create_policy_policies_post(policy_create) + +Create Policy + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.policy_create import PolicyCreate +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + policy_create = keynetra_client.PolicyCreate() # PolicyCreate | + + try: + # Create Policy + api_response = api_instance.create_policy_policies_post(policy_create) + print("The response of ManagementApi->create_policy_policies_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_policy_policies_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_create** | [**PolicyCreate**](PolicyCreate.md)| | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_relationship_relationships_post** +> SuccessResponseRelationshipOut create_relationship_relationships_post(relationship_create) + +Create Relationship + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.relationship_create import RelationshipCreate +from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + relationship_create = keynetra_client.RelationshipCreate() # RelationshipCreate | + + try: + # Create Relationship + api_response = api_instance.create_relationship_relationships_post(relationship_create) + print("The response of ManagementApi->create_relationship_relationships_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_relationship_relationships_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **relationship_create** | [**RelationshipCreate**](RelationshipCreate.md)| | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_role_roles_post** +> RoleOut create_role_roles_post(role_create) + +Create Role + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.role_create import RoleCreate +from keynetra_client.models.role_out import RoleOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + role_create = keynetra_client.RoleCreate() # RoleCreate | + + try: + # Create Role + api_response = api_instance.create_role_roles_post(role_create) + print("The response of ManagementApi->create_role_roles_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->create_role_roles_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_create** | [**RoleCreate**](RoleCreate.md)| | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_acl_entry_acl_acl_id_delete** +> SuccessResponseDictStrInt delete_acl_entry_acl_acl_id_delete(acl_id) + +Delete Acl Entry + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + acl_id = 56 # int | + + try: + # Delete Acl Entry + api_response = api_instance.delete_acl_entry_acl_acl_id_delete(acl_id) + print("The response of ManagementApi->delete_acl_entry_acl_acl_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->delete_acl_entry_acl_acl_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **acl_id** | **int**| | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_permission_permissions_permission_id_delete** +> SuccessResponseDictStrInt delete_permission_permissions_permission_id_delete(permission_id) + +Delete Permission + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + permission_id = 56 # int | + + try: + # Delete Permission + api_response = api_instance.delete_permission_permissions_permission_id_delete(permission_id) + print("The response of ManagementApi->delete_permission_permissions_permission_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->delete_permission_permissions_permission_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permission_id** | **int**| | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_policy_policies_policy_key_delete** +> SuccessResponseDictStrStr delete_policy_policies_policy_key_delete(policy_key) + +Delete Policy + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + policy_key = 'policy_key_example' # str | + + try: + # Delete Policy + api_response = api_instance.delete_policy_policies_policy_key_delete(policy_key) + print("The response of ManagementApi->delete_policy_policies_policy_key_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->delete_policy_policies_policy_key_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_key** | **str**| | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_role_roles_role_id_delete** +> SuccessResponseDictStrInt delete_role_roles_role_id_delete(role_id) + +Delete Role + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + role_id = 56 # int | + + try: + # Delete Role + api_response = api_instance.delete_role_roles_role_id_delete(role_id) + print("The response of ManagementApi->delete_role_roles_role_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->delete_role_roles_role_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_id** | **int**| | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_model_auth_model_get** +> SuccessResponseAuthModelOut get_auth_model_auth_model_get() + +Get Auth Model + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + + try: + # Get Auth Model + api_response = api_instance.get_auth_model_auth_model_get() + print("The response of ManagementApi->get_auth_model_auth_model_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->get_auth_model_auth_model_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **impact_analysis_impact_analysis_post** +> SuccessResponseImpactAnalysisResponse impact_analysis_impact_analysis_post(impact_analysis_request) + +Impact Analysis + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest +from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + impact_analysis_request = keynetra_client.ImpactAnalysisRequest() # ImpactAnalysisRequest | + + try: + # Impact Analysis + api_response = api_instance.impact_analysis_impact_analysis_post(impact_analysis_request) + print("The response of ManagementApi->impact_analysis_impact_analysis_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->impact_analysis_impact_analysis_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **impact_analysis_request** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md)| | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_acl_entries_acl_resource_type_resource_id_get** +> SuccessResponseListACLOut list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) + +List Acl Entries + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + resource_type = 'resource_type_example' # str | + resource_id = 'resource_id_example' # str | + + try: + # List Acl Entries + api_response = api_instance.list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) + print("The response of ManagementApi->list_acl_entries_acl_resource_type_resource_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_acl_entries_acl_resource_type_resource_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource_type** | **str**| | + **resource_id** | **str**| | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_audit_logs_audit_get** +> SuccessResponseListAuditRecordOut list_audit_logs_audit_get(limit=limit, cursor=cursor, user_id=user_id, resource_id=resource_id, decision=decision, start_time=start_time, end_time=end_time) + +List Audit Logs + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + limit = 50 # int | (optional) (default to 50) + cursor = 'cursor_example' # str | (optional) + user_id = 'user_id_example' # str | (optional) + resource_id = 'resource_id_example' # str | (optional) + decision = 'decision_example' # str | (optional) + start_time = '2013-10-20T19:20:30+01:00' # datetime | (optional) + end_time = '2013-10-20T19:20:30+01:00' # datetime | (optional) + + try: + # List Audit Logs + api_response = api_instance.list_audit_logs_audit_get(limit=limit, cursor=cursor, user_id=user_id, resource_id=resource_id, decision=decision, start_time=start_time, end_time=end_time) + print("The response of ManagementApi->list_audit_logs_audit_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_audit_logs_audit_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] [default to 50] + **cursor** | **str**| | [optional] + **user_id** | **str**| | [optional] + **resource_id** | **str**| | [optional] + **decision** | **str**| | [optional] + **start_time** | **datetime**| | [optional] + **end_time** | **datetime**| | [optional] + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_permission_roles_permissions_permission_id_roles_get** +> SuccessResponseListRoleOut list_permission_roles_permissions_permission_id_roles_get(permission_id) + +List Permission Roles + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + permission_id = 56 # int | + + try: + # List Permission Roles + api_response = api_instance.list_permission_roles_permissions_permission_id_roles_get(permission_id) + print("The response of ManagementApi->list_permission_roles_permissions_permission_id_roles_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_permission_roles_permissions_permission_id_roles_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permission_id** | **int**| | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_permissions_permissions_get** +> SuccessResponseListPermissionOut list_permissions_permissions_get(limit=limit, cursor=cursor) + +List Permissions + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + limit = 50 # int | (optional) (default to 50) + cursor = 'cursor_example' # str | (optional) + + try: + # List Permissions + api_response = api_instance.list_permissions_permissions_get(limit=limit, cursor=cursor) + print("The response of ManagementApi->list_permissions_permissions_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_permissions_permissions_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] [default to 50] + **cursor** | **str**| | [optional] + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_policies_policies_get** +> SuccessResponseListPolicyOut list_policies_policies_get(limit=limit, cursor=cursor) + +List Policies + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + limit = 50 # int | (optional) (default to 50) + cursor = 'cursor_example' # str | (optional) + + try: + # List Policies + api_response = api_instance.list_policies_policies_get(limit=limit, cursor=cursor) + print("The response of ManagementApi->list_policies_policies_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_policies_policies_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] [default to 50] + **cursor** | **str**| | [optional] + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_relationships_relationships_get** +> SuccessResponseListDictStrStr list_relationships_relationships_get(subject_type, subject_id, limit=limit, cursor=cursor) + +List Relationships + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + subject_type = 'subject_type_example' # str | + subject_id = 'subject_id_example' # str | + limit = 50 # int | (optional) (default to 50) + cursor = 'cursor_example' # str | (optional) + + try: + # List Relationships + api_response = api_instance.list_relationships_relationships_get(subject_type, subject_id, limit=limit, cursor=cursor) + print("The response of ManagementApi->list_relationships_relationships_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_relationships_relationships_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subject_type** | **str**| | + **subject_id** | **str**| | + **limit** | **int**| | [optional] [default to 50] + **cursor** | **str**| | [optional] + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role_permissions_roles_role_id_permissions_get** +> SuccessResponseListPermissionOut list_role_permissions_roles_role_id_permissions_get(role_id) + +List Role Permissions + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + role_id = 56 # int | + + try: + # List Role Permissions + api_response = api_instance.list_role_permissions_roles_role_id_permissions_get(role_id) + print("The response of ManagementApi->list_role_permissions_roles_role_id_permissions_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_role_permissions_roles_role_id_permissions_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_id** | **int**| | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_roles_roles_get** +> SuccessResponseListRoleOut list_roles_roles_get(limit=limit, cursor=cursor) + +List Roles + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + limit = 50 # int | (optional) (default to 50) + cursor = 'cursor_example' # str | (optional) + + try: + # List Roles + api_response = api_instance.list_roles_roles_get(limit=limit, cursor=cursor) + print("The response of ManagementApi->list_roles_roles_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->list_roles_roles_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] [default to 50] + **cursor** | **str**| | [optional] + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **remove_permission_from_role_roles_role_id_permissions_permission_id_delete** +> SuccessResponseDictStrInt remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) + +Remove Permission From Role + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + role_id = 56 # int | + permission_id = 56 # int | + + try: + # Remove Permission From Role + api_response = api_instance.remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) + print("The response of ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_id** | **int**| | + **permission_id** | **int**| | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **rollback_policy_policies_policy_key_rollback_version_post** +> SuccessResponseDictStrUnionIntStr rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) + +Rollback Policy + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + policy_key = 'policy_key_example' # str | + version = 56 # int | + + try: + # Rollback Policy + api_response = api_instance.rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) + print("The response of ManagementApi->rollback_policy_policies_policy_key_rollback_version_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->rollback_policy_policies_policy_key_rollback_version_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_key** | **str**| | + **version** | **int**| | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **simulate_policy_simulate_policy_post** +> SuccessResponsePolicySimulationResponse simulate_policy_simulate_policy_post(policy_simulation_request) + +Simulate Policy + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.policy_simulation_request import PolicySimulationRequest +from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + policy_simulation_request = keynetra_client.PolicySimulationRequest() # PolicySimulationRequest | + + try: + # Simulate Policy + api_response = api_instance.simulate_policy_simulate_policy_post(policy_simulation_request) + print("The response of ManagementApi->simulate_policy_simulate_policy_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->simulate_policy_simulate_policy_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_simulation_request** | [**PolicySimulationRequest**](PolicySimulationRequest.md)| | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_permission_permissions_permission_id_put** +> PermissionOut update_permission_permissions_permission_id_put(permission_id, permission_update) + +Update Permission + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.permission_out import PermissionOut +from keynetra_client.models.permission_update import PermissionUpdate +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + permission_id = 56 # int | + permission_update = keynetra_client.PermissionUpdate() # PermissionUpdate | + + try: + # Update Permission + api_response = api_instance.update_permission_permissions_permission_id_put(permission_id, permission_update) + print("The response of ManagementApi->update_permission_permissions_permission_id_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->update_permission_permissions_permission_id_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permission_id** | **int**| | + **permission_update** | [**PermissionUpdate**](PermissionUpdate.md)| | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_policy_policies_policy_key_put** +> SuccessResponsePolicyOut update_policy_policies_policy_key_put(policy_key, policy_create) + +Update Policy + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.policy_create import PolicyCreate +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + policy_key = 'policy_key_example' # str | + policy_create = keynetra_client.PolicyCreate() # PolicyCreate | + + try: + # Update Policy + api_response = api_instance.update_policy_policies_policy_key_put(policy_key, policy_create) + print("The response of ManagementApi->update_policy_policies_policy_key_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->update_policy_policies_policy_key_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_key** | **str**| | + **policy_create** | [**PolicyCreate**](PolicyCreate.md)| | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_role_roles_role_id_put** +> RoleOut update_role_roles_role_id_put(role_id, role_update) + +Update Role + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.role_out import RoleOut +from keynetra_client.models.role_update import RoleUpdate +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.ManagementApi(api_client) + role_id = 56 # int | + role_update = keynetra_client.RoleUpdate() # RoleUpdate | + + try: + # Update Role + api_response = api_instance.update_role_roles_role_id_put(role_id, role_update) + print("The response of ManagementApi->update_role_roles_role_id_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ManagementApi->update_role_roles_role_id_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_id** | **int**| | + **role_update** | [**RoleUpdate**](RoleUpdate.md)| | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/python/docs/MetaBody.md b/sdks/python/docs/MetaBody.md new file mode 100644 index 0000000..605f330 --- /dev/null +++ b/sdks/python/docs/MetaBody.md @@ -0,0 +1,32 @@ +# MetaBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **str** | | [optional] +**limit** | **int** | | [optional] +**next_cursor** | **str** | | [optional] +**extra** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.meta_body import MetaBody + +# TODO update the JSON string below +json = "{}" +# create an instance of MetaBody from a JSON string +meta_body_instance = MetaBody.from_json(json) +# print the JSON string representation of the object +print(MetaBody.to_json()) + +# convert the object into a dict +meta_body_dict = meta_body_instance.to_dict() +# create an instance of MetaBody from a dict +meta_body_from_dict = MetaBody.from_dict(meta_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PermissionCreate.md b/sdks/python/docs/PermissionCreate.md new file mode 100644 index 0000000..4d4e509 --- /dev/null +++ b/sdks/python/docs/PermissionCreate.md @@ -0,0 +1,29 @@ +# PermissionCreate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | + +## Example + +```python +from keynetra_client.models.permission_create import PermissionCreate + +# TODO update the JSON string below +json = "{}" +# create an instance of PermissionCreate from a JSON string +permission_create_instance = PermissionCreate.from_json(json) +# print the JSON string representation of the object +print(PermissionCreate.to_json()) + +# convert the object into a dict +permission_create_dict = permission_create_instance.to_dict() +# create an instance of PermissionCreate from a dict +permission_create_from_dict = PermissionCreate.from_dict(permission_create_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PermissionOut.md b/sdks/python/docs/PermissionOut.md new file mode 100644 index 0000000..e1cbda4 --- /dev/null +++ b/sdks/python/docs/PermissionOut.md @@ -0,0 +1,30 @@ +# PermissionOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**action** | **str** | | + +## Example + +```python +from keynetra_client.models.permission_out import PermissionOut + +# TODO update the JSON string below +json = "{}" +# create an instance of PermissionOut from a JSON string +permission_out_instance = PermissionOut.from_json(json) +# print the JSON string representation of the object +print(PermissionOut.to_json()) + +# convert the object into a dict +permission_out_dict = permission_out_instance.to_dict() +# create an instance of PermissionOut from a dict +permission_out_from_dict = PermissionOut.from_dict(permission_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PermissionUpdate.md b/sdks/python/docs/PermissionUpdate.md new file mode 100644 index 0000000..e2f4e9d --- /dev/null +++ b/sdks/python/docs/PermissionUpdate.md @@ -0,0 +1,29 @@ +# PermissionUpdate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | + +## Example + +```python +from keynetra_client.models.permission_update import PermissionUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of PermissionUpdate from a JSON string +permission_update_instance = PermissionUpdate.from_json(json) +# print the JSON string representation of the object +print(PermissionUpdate.to_json()) + +# convert the object into a dict +permission_update_dict = permission_update_instance.to_dict() +# create an instance of PermissionUpdate from a dict +permission_update_from_dict = PermissionUpdate.from_dict(permission_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PlaygroundApi.md b/sdks/python/docs/PlaygroundApi.md new file mode 100644 index 0000000..62c165a --- /dev/null +++ b/sdks/python/docs/PlaygroundApi.md @@ -0,0 +1,94 @@ +# keynetra_client.PlaygroundApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate + + +# **evaluate_playground_evaluate_post** +> SuccessResponseDictStrAny evaluate_playground_evaluate_post(playground_evaluate_request) + +Evaluate + +### Example + +* Api Key Authentication (APIKeyHeader): +* Bearer Authentication (HTTPBearer): + +```python +import keynetra_client +from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest +from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny +from keynetra_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = keynetra_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKeyHeader +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' + +# Configure Bearer authorization: HTTPBearer +configuration = keynetra_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with keynetra_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = keynetra_client.PlaygroundApi(api_client) + playground_evaluate_request = keynetra_client.PlaygroundEvaluateRequest() # PlaygroundEvaluateRequest | + + try: + # Evaluate + api_response = api_instance.evaluate_playground_evaluate_post(playground_evaluate_request) + print("The response of PlaygroundApi->evaluate_playground_evaluate_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PlaygroundApi->evaluate_playground_evaluate_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md)| | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/python/docs/PlaygroundEvaluateRequest.md b/sdks/python/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..db4e7b9 --- /dev/null +++ b/sdks/python/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,30 @@ +# PlaygroundEvaluateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**List[PlaygroundPolicy]**](PlaygroundPolicy.md) | | +**input** | [**PlaygroundInput**](PlaygroundInput.md) | | + +## Example + +```python +from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PlaygroundEvaluateRequest from a JSON string +playground_evaluate_request_instance = PlaygroundEvaluateRequest.from_json(json) +# print the JSON string representation of the object +print(PlaygroundEvaluateRequest.to_json()) + +# convert the object into a dict +playground_evaluate_request_dict = playground_evaluate_request_instance.to_dict() +# create an instance of PlaygroundEvaluateRequest from a dict +playground_evaluate_request_from_dict = PlaygroundEvaluateRequest.from_dict(playground_evaluate_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PlaygroundInput.md b/sdks/python/docs/PlaygroundInput.md new file mode 100644 index 0000000..b2618b2 --- /dev/null +++ b/sdks/python/docs/PlaygroundInput.md @@ -0,0 +1,32 @@ +# PlaygroundInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **Dict[str, object]** | | [optional] +**resource** | **Dict[str, object]** | | [optional] +**action** | **str** | | [optional] [default to ''] +**context** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.playground_input import PlaygroundInput + +# TODO update the JSON string below +json = "{}" +# create an instance of PlaygroundInput from a JSON string +playground_input_instance = PlaygroundInput.from_json(json) +# print the JSON string representation of the object +print(PlaygroundInput.to_json()) + +# convert the object into a dict +playground_input_dict = playground_input_instance.to_dict() +# create an instance of PlaygroundInput from a dict +playground_input_from_dict = PlaygroundInput.from_dict(playground_input_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PlaygroundPolicy.md b/sdks/python/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..c946ff3 --- /dev/null +++ b/sdks/python/docs/PlaygroundPolicy.md @@ -0,0 +1,33 @@ +# PlaygroundPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | +**effect** | **str** | | [optional] [default to 'allow'] +**priority** | **int** | | [optional] [default to 100] +**policy_id** | **str** | | [optional] +**conditions** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.playground_policy import PlaygroundPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of PlaygroundPolicy from a JSON string +playground_policy_instance = PlaygroundPolicy.from_json(json) +# print the JSON string representation of the object +print(PlaygroundPolicy.to_json()) + +# convert the object into a dict +playground_policy_dict = playground_policy_instance.to_dict() +# create an instance of PlaygroundPolicy from a dict +playground_policy_from_dict = PlaygroundPolicy.from_dict(playground_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PolicyCreate.md b/sdks/python/docs/PolicyCreate.md new file mode 100644 index 0000000..64a728a --- /dev/null +++ b/sdks/python/docs/PolicyCreate.md @@ -0,0 +1,33 @@ +# PolicyCreate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | +**effect** | **str** | | [optional] [default to 'allow'] +**priority** | **int** | | [optional] [default to 100] +**state** | **str** | | [optional] [default to 'active'] +**conditions** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.policy_create import PolicyCreate + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyCreate from a JSON string +policy_create_instance = PolicyCreate.from_json(json) +# print the JSON string representation of the object +print(PolicyCreate.to_json()) + +# convert the object into a dict +policy_create_dict = policy_create_instance.to_dict() +# create an instance of PolicyCreate from a dict +policy_create_from_dict = PolicyCreate.from_dict(policy_create_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PolicyOut.md b/sdks/python/docs/PolicyOut.md new file mode 100644 index 0000000..7e07ce4 --- /dev/null +++ b/sdks/python/docs/PolicyOut.md @@ -0,0 +1,34 @@ +# PolicyOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**action** | **str** | | +**effect** | **str** | | +**priority** | **int** | | +**state** | **str** | | [optional] [default to 'active'] +**conditions** | **Dict[str, object]** | | + +## Example + +```python +from keynetra_client.models.policy_out import PolicyOut + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyOut from a JSON string +policy_out_instance = PolicyOut.from_json(json) +# print the JSON string representation of the object +print(PolicyOut.to_json()) + +# convert the object into a dict +policy_out_dict = policy_out_instance.to_dict() +# create an instance of PolicyOut from a dict +policy_out_from_dict = PolicyOut.from_dict(policy_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PolicySimulationInput.md b/sdks/python/docs/PolicySimulationInput.md new file mode 100644 index 0000000..ffbd1a3 --- /dev/null +++ b/sdks/python/docs/PolicySimulationInput.md @@ -0,0 +1,31 @@ +# PolicySimulationInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy_change** | **str** | | [optional] +**relationship_change** | **Dict[str, object]** | | [optional] +**role_change** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.policy_simulation_input import PolicySimulationInput + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicySimulationInput from a JSON string +policy_simulation_input_instance = PolicySimulationInput.from_json(json) +# print the JSON string representation of the object +print(PolicySimulationInput.to_json()) + +# convert the object into a dict +policy_simulation_input_dict = policy_simulation_input_instance.to_dict() +# create an instance of PolicySimulationInput from a dict +policy_simulation_input_from_dict = PolicySimulationInput.from_dict(policy_simulation_input_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PolicySimulationRequest.md b/sdks/python/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..64cf73b --- /dev/null +++ b/sdks/python/docs/PolicySimulationRequest.md @@ -0,0 +1,30 @@ +# PolicySimulationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] +**request** | **Dict[str, object]** | | [optional] + +## Example + +```python +from keynetra_client.models.policy_simulation_request import PolicySimulationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicySimulationRequest from a JSON string +policy_simulation_request_instance = PolicySimulationRequest.from_json(json) +# print the JSON string representation of the object +print(PolicySimulationRequest.to_json()) + +# convert the object into a dict +policy_simulation_request_dict = policy_simulation_request_instance.to_dict() +# create an instance of PolicySimulationRequest from a dict +policy_simulation_request_from_dict = PolicySimulationRequest.from_dict(policy_simulation_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/PolicySimulationResponse.md b/sdks/python/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..27b7fc2 --- /dev/null +++ b/sdks/python/docs/PolicySimulationResponse.md @@ -0,0 +1,30 @@ +# PolicySimulationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decision_before** | **Dict[str, object]** | | +**decision_after** | **Dict[str, object]** | | + +## Example + +```python +from keynetra_client.models.policy_simulation_response import PolicySimulationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicySimulationResponse from a JSON string +policy_simulation_response_instance = PolicySimulationResponse.from_json(json) +# print the JSON string representation of the object +print(PolicySimulationResponse.to_json()) + +# convert the object into a dict +policy_simulation_response_dict = policy_simulation_response_instance.to_dict() +# create an instance of PolicySimulationResponse from a dict +policy_simulation_response_from_dict = PolicySimulationResponse.from_dict(policy_simulation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/RelationshipCreate.md b/sdks/python/docs/RelationshipCreate.md new file mode 100644 index 0000000..8e5f9e6 --- /dev/null +++ b/sdks/python/docs/RelationshipCreate.md @@ -0,0 +1,33 @@ +# RelationshipCreate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject_type** | **str** | | +**subject_id** | **str** | | +**relation** | **str** | | +**object_type** | **str** | | +**object_id** | **str** | | + +## Example + +```python +from keynetra_client.models.relationship_create import RelationshipCreate + +# TODO update the JSON string below +json = "{}" +# create an instance of RelationshipCreate from a JSON string +relationship_create_instance = RelationshipCreate.from_json(json) +# print the JSON string representation of the object +print(RelationshipCreate.to_json()) + +# convert the object into a dict +relationship_create_dict = relationship_create_instance.to_dict() +# create an instance of RelationshipCreate from a dict +relationship_create_from_dict = RelationshipCreate.from_dict(relationship_create_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/RelationshipOut.md b/sdks/python/docs/RelationshipOut.md new file mode 100644 index 0000000..6791d12 --- /dev/null +++ b/sdks/python/docs/RelationshipOut.md @@ -0,0 +1,34 @@ +# RelationshipOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject_type** | **str** | | +**subject_id** | **str** | | +**relation** | **str** | | +**object_type** | **str** | | +**object_id** | **str** | | +**id** | **int** | | + +## Example + +```python +from keynetra_client.models.relationship_out import RelationshipOut + +# TODO update the JSON string below +json = "{}" +# create an instance of RelationshipOut from a JSON string +relationship_out_instance = RelationshipOut.from_json(json) +# print the JSON string representation of the object +print(RelationshipOut.to_json()) + +# convert the object into a dict +relationship_out_dict = relationship_out_instance.to_dict() +# create an instance of RelationshipOut from a dict +relationship_out_from_dict = RelationshipOut.from_dict(relationship_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/RoleCreate.md b/sdks/python/docs/RoleCreate.md new file mode 100644 index 0000000..22a3205 --- /dev/null +++ b/sdks/python/docs/RoleCreate.md @@ -0,0 +1,29 @@ +# RoleCreate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | + +## Example + +```python +from keynetra_client.models.role_create import RoleCreate + +# TODO update the JSON string below +json = "{}" +# create an instance of RoleCreate from a JSON string +role_create_instance = RoleCreate.from_json(json) +# print the JSON string representation of the object +print(RoleCreate.to_json()) + +# convert the object into a dict +role_create_dict = role_create_instance.to_dict() +# create an instance of RoleCreate from a dict +role_create_from_dict = RoleCreate.from_dict(role_create_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/RoleOut.md b/sdks/python/docs/RoleOut.md new file mode 100644 index 0000000..3c72bcb --- /dev/null +++ b/sdks/python/docs/RoleOut.md @@ -0,0 +1,30 @@ +# RoleOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**name** | **str** | | + +## Example + +```python +from keynetra_client.models.role_out import RoleOut + +# TODO update the JSON string below +json = "{}" +# create an instance of RoleOut from a JSON string +role_out_instance = RoleOut.from_json(json) +# print the JSON string representation of the object +print(RoleOut.to_json()) + +# convert the object into a dict +role_out_dict = role_out_instance.to_dict() +# create an instance of RoleOut from a dict +role_out_from_dict = RoleOut.from_dict(role_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/RoleUpdate.md b/sdks/python/docs/RoleUpdate.md new file mode 100644 index 0000000..66ffee6 --- /dev/null +++ b/sdks/python/docs/RoleUpdate.md @@ -0,0 +1,29 @@ +# RoleUpdate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | + +## Example + +```python +from keynetra_client.models.role_update import RoleUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of RoleUpdate from a JSON string +role_update_instance = RoleUpdate.from_json(json) +# print the JSON string representation of the object +print(RoleUpdate.to_json()) + +# convert the object into a dict +role_update_dict = role_update_instance.to_dict() +# create an instance of RoleUpdate from a dict +role_update_from_dict = RoleUpdate.from_dict(role_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SimulationResponse.md b/sdks/python/docs/SimulationResponse.md new file mode 100644 index 0000000..f001def --- /dev/null +++ b/sdks/python/docs/SimulationResponse.md @@ -0,0 +1,35 @@ +# SimulationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decision** | **str** | | +**matched_policies** | **List[str]** | | +**reason** | **str** | | [optional] +**policy_id** | **str** | | [optional] +**explain_trace** | **List[Dict[str, object]]** | | [optional] +**failed_conditions** | **List[str]** | | [optional] +**revision** | **int** | | [optional] + +## Example + +```python +from keynetra_client.models.simulation_response import SimulationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SimulationResponse from a JSON string +simulation_response_instance = SimulationResponse.from_json(json) +# print the JSON string representation of the object +print(SimulationResponse.to_json()) + +# convert the object into a dict +simulation_response_dict = simulation_response_instance.to_dict() +# create an instance of SimulationResponse from a dict +simulation_response_from_dict = SimulationResponse.from_dict(simulation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseACLOut.md b/sdks/python/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..32b7fdb --- /dev/null +++ b/sdks/python/docs/SuccessResponseACLOut.md @@ -0,0 +1,31 @@ +# SuccessResponseACLOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ACLOut**](ACLOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseACLOut from a JSON string +success_response_acl_out_instance = SuccessResponseACLOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseACLOut.to_json()) + +# convert the object into a dict +success_response_acl_out_dict = success_response_acl_out_instance.to_dict() +# create an instance of SuccessResponseACLOut from a dict +success_response_acl_out_from_dict = SuccessResponseACLOut.from_dict(success_response_acl_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseAccessDecisionResponse.md b/sdks/python/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..a54de6d --- /dev/null +++ b/sdks/python/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,31 @@ +# SuccessResponseAccessDecisionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseAccessDecisionResponse from a JSON string +success_response_access_decision_response_instance = SuccessResponseAccessDecisionResponse.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseAccessDecisionResponse.to_json()) + +# convert the object into a dict +success_response_access_decision_response_dict = success_response_access_decision_response_instance.to_dict() +# create an instance of SuccessResponseAccessDecisionResponse from a dict +success_response_access_decision_response_from_dict = SuccessResponseAccessDecisionResponse.from_dict(success_response_access_decision_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseAdminLoginResponse.md b/sdks/python/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..42677c4 --- /dev/null +++ b/sdks/python/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,31 @@ +# SuccessResponseAdminLoginResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseAdminLoginResponse from a JSON string +success_response_admin_login_response_instance = SuccessResponseAdminLoginResponse.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseAdminLoginResponse.to_json()) + +# convert the object into a dict +success_response_admin_login_response_dict = success_response_admin_login_response_instance.to_dict() +# create an instance of SuccessResponseAdminLoginResponse from a dict +success_response_admin_login_response_from_dict = SuccessResponseAdminLoginResponse.from_dict(success_response_admin_login_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseAuthModelOut.md b/sdks/python/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..6874b1c --- /dev/null +++ b/sdks/python/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,31 @@ +# SuccessResponseAuthModelOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AuthModelOut**](AuthModelOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseAuthModelOut from a JSON string +success_response_auth_model_out_instance = SuccessResponseAuthModelOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseAuthModelOut.to_json()) + +# convert the object into a dict +success_response_auth_model_out_dict = success_response_auth_model_out_instance.to_dict() +# create an instance of SuccessResponseAuthModelOut from a dict +success_response_auth_model_out_from_dict = SuccessResponseAuthModelOut.from_dict(success_response_auth_model_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseBatchAccessResponse.md b/sdks/python/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..f781918 --- /dev/null +++ b/sdks/python/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,31 @@ +# SuccessResponseBatchAccessResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseBatchAccessResponse from a JSON string +success_response_batch_access_response_instance = SuccessResponseBatchAccessResponse.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseBatchAccessResponse.to_json()) + +# convert the object into a dict +success_response_batch_access_response_dict = success_response_batch_access_response_instance.to_dict() +# create an instance of SuccessResponseBatchAccessResponse from a dict +success_response_batch_access_response_from_dict = SuccessResponseBatchAccessResponse.from_dict(success_response_batch_access_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseDictStrAny.md b/sdks/python/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..49a89c0 --- /dev/null +++ b/sdks/python/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,31 @@ +# SuccessResponseDictStrAny + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Dict[str, object]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseDictStrAny from a JSON string +success_response_dict_str_any_instance = SuccessResponseDictStrAny.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseDictStrAny.to_json()) + +# convert the object into a dict +success_response_dict_str_any_dict = success_response_dict_str_any_instance.to_dict() +# create an instance of SuccessResponseDictStrAny from a dict +success_response_dict_str_any_from_dict = SuccessResponseDictStrAny.from_dict(success_response_dict_str_any_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseDictStrInt.md b/sdks/python/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..4bddde2 --- /dev/null +++ b/sdks/python/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,31 @@ +# SuccessResponseDictStrInt + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Dict[str, int]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseDictStrInt from a JSON string +success_response_dict_str_int_instance = SuccessResponseDictStrInt.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseDictStrInt.to_json()) + +# convert the object into a dict +success_response_dict_str_int_dict = success_response_dict_str_int_instance.to_dict() +# create an instance of SuccessResponseDictStrInt from a dict +success_response_dict_str_int_from_dict = SuccessResponseDictStrInt.from_dict(success_response_dict_str_int_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseDictStrObject.md b/sdks/python/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..4c50af5 --- /dev/null +++ b/sdks/python/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,31 @@ +# SuccessResponseDictStrObject + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Dict[str, object]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseDictStrObject from a JSON string +success_response_dict_str_object_instance = SuccessResponseDictStrObject.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseDictStrObject.to_json()) + +# convert the object into a dict +success_response_dict_str_object_dict = success_response_dict_str_object_instance.to_dict() +# create an instance of SuccessResponseDictStrObject from a dict +success_response_dict_str_object_from_dict = SuccessResponseDictStrObject.from_dict(success_response_dict_str_object_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseDictStrStr.md b/sdks/python/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..7d941ea --- /dev/null +++ b/sdks/python/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,31 @@ +# SuccessResponseDictStrStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Dict[str, str]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseDictStrStr from a JSON string +success_response_dict_str_str_instance = SuccessResponseDictStrStr.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseDictStrStr.to_json()) + +# convert the object into a dict +success_response_dict_str_str_dict = success_response_dict_str_str_instance.to_dict() +# create an instance of SuccessResponseDictStrStr from a dict +success_response_dict_str_str_from_dict = SuccessResponseDictStrStr.from_dict(success_response_dict_str_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/python/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..fd08c41 --- /dev/null +++ b/sdks/python/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,31 @@ +# SuccessResponseDictStrUnionIntStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Dict[str, DataValue]**](DataValue.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseDictStrUnionIntStr from a JSON string +success_response_dict_str_union_int_str_instance = SuccessResponseDictStrUnionIntStr.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseDictStrUnionIntStr.to_json()) + +# convert the object into a dict +success_response_dict_str_union_int_str_dict = success_response_dict_str_union_int_str_instance.to_dict() +# create an instance of SuccessResponseDictStrUnionIntStr from a dict +success_response_dict_str_union_int_str_from_dict = SuccessResponseDictStrUnionIntStr.from_dict(success_response_dict_str_union_int_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/python/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..886adc8 --- /dev/null +++ b/sdks/python/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,31 @@ +# SuccessResponseImpactAnalysisResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseImpactAnalysisResponse from a JSON string +success_response_impact_analysis_response_instance = SuccessResponseImpactAnalysisResponse.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseImpactAnalysisResponse.to_json()) + +# convert the object into a dict +success_response_impact_analysis_response_dict = success_response_impact_analysis_response_instance.to_dict() +# create an instance of SuccessResponseImpactAnalysisResponse from a dict +success_response_impact_analysis_response_from_dict = SuccessResponseImpactAnalysisResponse.from_dict(success_response_impact_analysis_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseListACLOut.md b/sdks/python/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..c077874 --- /dev/null +++ b/sdks/python/docs/SuccessResponseListACLOut.md @@ -0,0 +1,31 @@ +# SuccessResponseListACLOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ACLOut]**](ACLOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseListACLOut from a JSON string +success_response_list_acl_out_instance = SuccessResponseListACLOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseListACLOut.to_json()) + +# convert the object into a dict +success_response_list_acl_out_dict = success_response_list_acl_out_instance.to_dict() +# create an instance of SuccessResponseListACLOut from a dict +success_response_list_acl_out_from_dict = SuccessResponseListACLOut.from_dict(success_response_list_acl_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseListAuditRecordOut.md b/sdks/python/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..2374b31 --- /dev/null +++ b/sdks/python/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,31 @@ +# SuccessResponseListAuditRecordOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[AuditRecordOut]**](AuditRecordOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseListAuditRecordOut from a JSON string +success_response_list_audit_record_out_instance = SuccessResponseListAuditRecordOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseListAuditRecordOut.to_json()) + +# convert the object into a dict +success_response_list_audit_record_out_dict = success_response_list_audit_record_out_instance.to_dict() +# create an instance of SuccessResponseListAuditRecordOut from a dict +success_response_list_audit_record_out_from_dict = SuccessResponseListAuditRecordOut.from_dict(success_response_list_audit_record_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseListDictStrStr.md b/sdks/python/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..025aa60 --- /dev/null +++ b/sdks/python/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,31 @@ +# SuccessResponseListDictStrStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **List[Dict[str, str]]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseListDictStrStr from a JSON string +success_response_list_dict_str_str_instance = SuccessResponseListDictStrStr.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseListDictStrStr.to_json()) + +# convert the object into a dict +success_response_list_dict_str_str_dict = success_response_list_dict_str_str_instance.to_dict() +# create an instance of SuccessResponseListDictStrStr from a dict +success_response_list_dict_str_str_from_dict = SuccessResponseListDictStrStr.from_dict(success_response_list_dict_str_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseListPermissionOut.md b/sdks/python/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..f018f70 --- /dev/null +++ b/sdks/python/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,31 @@ +# SuccessResponseListPermissionOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[PermissionOut]**](PermissionOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseListPermissionOut from a JSON string +success_response_list_permission_out_instance = SuccessResponseListPermissionOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseListPermissionOut.to_json()) + +# convert the object into a dict +success_response_list_permission_out_dict = success_response_list_permission_out_instance.to_dict() +# create an instance of SuccessResponseListPermissionOut from a dict +success_response_list_permission_out_from_dict = SuccessResponseListPermissionOut.from_dict(success_response_list_permission_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseListPolicyOut.md b/sdks/python/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..2011e6a --- /dev/null +++ b/sdks/python/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,31 @@ +# SuccessResponseListPolicyOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[PolicyOut]**](PolicyOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseListPolicyOut from a JSON string +success_response_list_policy_out_instance = SuccessResponseListPolicyOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseListPolicyOut.to_json()) + +# convert the object into a dict +success_response_list_policy_out_dict = success_response_list_policy_out_instance.to_dict() +# create an instance of SuccessResponseListPolicyOut from a dict +success_response_list_policy_out_from_dict = SuccessResponseListPolicyOut.from_dict(success_response_list_policy_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseListRoleOut.md b/sdks/python/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..e520620 --- /dev/null +++ b/sdks/python/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,31 @@ +# SuccessResponseListRoleOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[RoleOut]**](RoleOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseListRoleOut from a JSON string +success_response_list_role_out_instance = SuccessResponseListRoleOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseListRoleOut.to_json()) + +# convert the object into a dict +success_response_list_role_out_dict = success_response_list_role_out_instance.to_dict() +# create an instance of SuccessResponseListRoleOut from a dict +success_response_list_role_out_from_dict = SuccessResponseListRoleOut.from_dict(success_response_list_role_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponsePermissionOut.md b/sdks/python/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..a41ae57 --- /dev/null +++ b/sdks/python/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,31 @@ +# SuccessResponsePermissionOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**PermissionOut**](PermissionOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponsePermissionOut from a JSON string +success_response_permission_out_instance = SuccessResponsePermissionOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponsePermissionOut.to_json()) + +# convert the object into a dict +success_response_permission_out_dict = success_response_permission_out_instance.to_dict() +# create an instance of SuccessResponsePermissionOut from a dict +success_response_permission_out_from_dict = SuccessResponsePermissionOut.from_dict(success_response_permission_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponsePolicyOut.md b/sdks/python/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..0a6484a --- /dev/null +++ b/sdks/python/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,31 @@ +# SuccessResponsePolicyOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**PolicyOut**](PolicyOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponsePolicyOut from a JSON string +success_response_policy_out_instance = SuccessResponsePolicyOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponsePolicyOut.to_json()) + +# convert the object into a dict +success_response_policy_out_dict = success_response_policy_out_instance.to_dict() +# create an instance of SuccessResponsePolicyOut from a dict +success_response_policy_out_from_dict = SuccessResponsePolicyOut.from_dict(success_response_policy_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponsePolicySimulationResponse.md b/sdks/python/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..5952617 --- /dev/null +++ b/sdks/python/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,31 @@ +# SuccessResponsePolicySimulationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponsePolicySimulationResponse from a JSON string +success_response_policy_simulation_response_instance = SuccessResponsePolicySimulationResponse.from_json(json) +# print the JSON string representation of the object +print(SuccessResponsePolicySimulationResponse.to_json()) + +# convert the object into a dict +success_response_policy_simulation_response_dict = success_response_policy_simulation_response_instance.to_dict() +# create an instance of SuccessResponsePolicySimulationResponse from a dict +success_response_policy_simulation_response_from_dict = SuccessResponsePolicySimulationResponse.from_dict(success_response_policy_simulation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseRelationshipOut.md b/sdks/python/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..0a8ae5f --- /dev/null +++ b/sdks/python/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,31 @@ +# SuccessResponseRelationshipOut + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RelationshipOut**](RelationshipOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseRelationshipOut from a JSON string +success_response_relationship_out_instance = SuccessResponseRelationshipOut.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseRelationshipOut.to_json()) + +# convert the object into a dict +success_response_relationship_out_dict = success_response_relationship_out_instance.to_dict() +# create an instance of SuccessResponseRelationshipOut from a dict +success_response_relationship_out_from_dict = SuccessResponseRelationshipOut.from_dict(success_response_relationship_out_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/SuccessResponseSimulationResponse.md b/sdks/python/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..d1ca30b --- /dev/null +++ b/sdks/python/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,31 @@ +# SuccessResponseSimulationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**SimulationResponse**](SimulationResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Any**](Any.md) | | [optional] + +## Example + +```python +from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SuccessResponseSimulationResponse from a JSON string +success_response_simulation_response_instance = SuccessResponseSimulationResponse.from_json(json) +# print the JSON string representation of the object +print(SuccessResponseSimulationResponse.to_json()) + +# convert the object into a dict +success_response_simulation_response_dict = success_response_simulation_response_instance.to_dict() +# create an instance of SuccessResponseSimulationResponse from a dict +success_response_simulation_response_from_dict = SuccessResponseSimulationResponse.from_dict(success_response_simulation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/docs/ValidationError.md b/sdks/python/docs/ValidationError.md new file mode 100644 index 0000000..afa5999 --- /dev/null +++ b/sdks/python/docs/ValidationError.md @@ -0,0 +1,33 @@ +# ValidationError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loc** | [**List[LocationInner]**](LocationInner.md) | | +**msg** | **str** | | +**type** | **str** | | +**input** | **object** | | [optional] +**ctx** | **object** | | [optional] + +## Example + +```python +from keynetra_client.models.validation_error import ValidationError + +# TODO update the JSON string below +json = "{}" +# create an instance of ValidationError from a JSON string +validation_error_instance = ValidationError.from_json(json) +# print the JSON string representation of the object +print(ValidationError.to_json()) + +# convert the object into a dict +validation_error_dict = validation_error_instance.to_dict() +# create an instance of ValidationError from a dict +validation_error_from_dict = ValidationError.from_dict(validation_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/python/git_push.sh b/sdks/python/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/python/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/python/keynetra_client/__init__.py b/sdks/python/keynetra_client/__init__.py new file mode 100644 index 0000000..fa62e5c --- /dev/null +++ b/sdks/python/keynetra_client/__init__.py @@ -0,0 +1,3 @@ +from .client import KeyNetraClient + +__all__ = ["KeyNetraClient"] diff --git a/sdks/python/keynetra_client/api/__init__.py b/sdks/python/keynetra_client/api/__init__.py new file mode 100644 index 0000000..43de602 --- /dev/null +++ b/sdks/python/keynetra_client/api/__init__.py @@ -0,0 +1,10 @@ +# flake8: noqa + +# import apis into api package +from keynetra_client.api.access_api import AccessApi +from keynetra_client.api.auth_api import AuthApi +from keynetra_client.api.dev_api import DevApi +from keynetra_client.api.health_api import HealthApi +from keynetra_client.api.management_api import ManagementApi +from keynetra_client.api.playground_api import PlaygroundApi + diff --git a/sdks/python/keynetra_client/api/access_api.py b/sdks/python/keynetra_client/api/access_api.py new file mode 100644 index 0000000..44acb8c --- /dev/null +++ b/sdks/python/keynetra_client/api/access_api.py @@ -0,0 +1,900 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictStr +from typing import Optional +from keynetra_client.models.access_request import AccessRequest +from keynetra_client.models.batch_access_request import BatchAccessRequest +from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse +from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse +from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse + +from keynetra_client.api_client import ApiClient, RequestSerialized +from keynetra_client.api_response import ApiResponse +from keynetra_client.rest import RESTResponseType + + +class AccessApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def check_access_batch_check_access_batch_post( + self, + batch_access_request: BatchAccessRequest, + policy_set: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseBatchAccessResponse: + """Check Access Batch + + + :param batch_access_request: (required) + :type batch_access_request: BatchAccessRequest + :param policy_set: + :type policy_set: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_access_batch_check_access_batch_post_serialize( + batch_access_request=batch_access_request, + policy_set=policy_set, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseBatchAccessResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def check_access_batch_check_access_batch_post_with_http_info( + self, + batch_access_request: BatchAccessRequest, + policy_set: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseBatchAccessResponse]: + """Check Access Batch + + + :param batch_access_request: (required) + :type batch_access_request: BatchAccessRequest + :param policy_set: + :type policy_set: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_access_batch_check_access_batch_post_serialize( + batch_access_request=batch_access_request, + policy_set=policy_set, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseBatchAccessResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def check_access_batch_check_access_batch_post_without_preload_content( + self, + batch_access_request: BatchAccessRequest, + policy_set: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check Access Batch + + + :param batch_access_request: (required) + :type batch_access_request: BatchAccessRequest + :param policy_set: + :type policy_set: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_access_batch_check_access_batch_post_serialize( + batch_access_request=batch_access_request, + policy_set=policy_set, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseBatchAccessResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _check_access_batch_check_access_batch_post_serialize( + self, + batch_access_request, + policy_set, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if policy_set is not None: + + _query_params.append(('policy_set', policy_set)) + + # process the header parameters + # process the form parameters + # process the body parameter + if batch_access_request is not None: + _body_params = batch_access_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/check-access-batch', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def check_access_check_access_post( + self, + access_request: AccessRequest, + policy_set: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseAccessDecisionResponse: + """Check Access + + + :param access_request: (required) + :type access_request: AccessRequest + :param policy_set: + :type policy_set: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_access_check_access_post_serialize( + access_request=access_request, + policy_set=policy_set, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAccessDecisionResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def check_access_check_access_post_with_http_info( + self, + access_request: AccessRequest, + policy_set: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseAccessDecisionResponse]: + """Check Access + + + :param access_request: (required) + :type access_request: AccessRequest + :param policy_set: + :type policy_set: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_access_check_access_post_serialize( + access_request=access_request, + policy_set=policy_set, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAccessDecisionResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def check_access_check_access_post_without_preload_content( + self, + access_request: AccessRequest, + policy_set: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check Access + + + :param access_request: (required) + :type access_request: AccessRequest + :param policy_set: + :type policy_set: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_access_check_access_post_serialize( + access_request=access_request, + policy_set=policy_set, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAccessDecisionResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _check_access_check_access_post_serialize( + self, + access_request, + policy_set, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if policy_set is not None: + + _query_params.append(('policy_set', policy_set)) + + # process the header parameters + # process the form parameters + # process the body parameter + if access_request is not None: + _body_params = access_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/check-access', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def simulate_simulate_post( + self, + access_request: AccessRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseSimulationResponse: + """Simulate + + + :param access_request: (required) + :type access_request: AccessRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._simulate_simulate_post_serialize( + access_request=access_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseSimulationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def simulate_simulate_post_with_http_info( + self, + access_request: AccessRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseSimulationResponse]: + """Simulate + + + :param access_request: (required) + :type access_request: AccessRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._simulate_simulate_post_serialize( + access_request=access_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseSimulationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def simulate_simulate_post_without_preload_content( + self, + access_request: AccessRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Simulate + + + :param access_request: (required) + :type access_request: AccessRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._simulate_simulate_post_serialize( + access_request=access_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseSimulationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _simulate_simulate_post_serialize( + self, + access_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if access_request is not None: + _body_params = access_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/simulate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/sdks/python/keynetra_client/api/auth_api.py b/sdks/python/keynetra_client/api/auth_api.py new file mode 100644 index 0000000..f95f564 --- /dev/null +++ b/sdks/python/keynetra_client/api/auth_api.py @@ -0,0 +1,582 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from keynetra_client.models.admin_login_request import AdminLoginRequest +from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse + +from keynetra_client.api_client import ApiClient, RequestSerialized +from keynetra_client.api_response import ApiResponse +from keynetra_client.rest import RESTResponseType + + +class AuthApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_login_admin_login_post( + self, + admin_login_request: AdminLoginRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseAdminLoginResponse: + """Admin Login + + + :param admin_login_request: (required) + :type admin_login_request: AdminLoginRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_login_admin_login_post_serialize( + admin_login_request=admin_login_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAdminLoginResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_login_admin_login_post_with_http_info( + self, + admin_login_request: AdminLoginRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseAdminLoginResponse]: + """Admin Login + + + :param admin_login_request: (required) + :type admin_login_request: AdminLoginRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_login_admin_login_post_serialize( + admin_login_request=admin_login_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAdminLoginResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_login_admin_login_post_without_preload_content( + self, + admin_login_request: AdminLoginRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Admin Login + + + :param admin_login_request: (required) + :type admin_login_request: AdminLoginRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_login_admin_login_post_serialize( + admin_login_request=admin_login_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAdminLoginResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_login_admin_login_post_serialize( + self, + admin_login_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if admin_login_request is not None: + _body_params = admin_login_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/admin/login', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_login_admin_login_post_0( + self, + admin_login_request: AdminLoginRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseAdminLoginResponse: + """Admin Login + + + :param admin_login_request: (required) + :type admin_login_request: AdminLoginRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_login_admin_login_post_0_serialize( + admin_login_request=admin_login_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAdminLoginResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_login_admin_login_post_0_with_http_info( + self, + admin_login_request: AdminLoginRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseAdminLoginResponse]: + """Admin Login + + + :param admin_login_request: (required) + :type admin_login_request: AdminLoginRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_login_admin_login_post_0_serialize( + admin_login_request=admin_login_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAdminLoginResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_login_admin_login_post_0_without_preload_content( + self, + admin_login_request: AdminLoginRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Admin Login + + + :param admin_login_request: (required) + :type admin_login_request: AdminLoginRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_login_admin_login_post_0_serialize( + admin_login_request=admin_login_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAdminLoginResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_login_admin_login_post_0_serialize( + self, + admin_login_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if admin_login_request is not None: + _body_params = admin_login_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/admin/login', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/sdks/python/keynetra_client/api/dev_api.py b/sdks/python/keynetra_client/api/dev_api.py new file mode 100644 index 0000000..8ef9bd2 --- /dev/null +++ b/sdks/python/keynetra_client/api/dev_api.py @@ -0,0 +1,542 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool +from typing import Optional +from typing_extensions import Annotated +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject + +from keynetra_client.api_client import ApiClient, RequestSerialized +from keynetra_client.api_response import ApiResponse +from keynetra_client.rest import RESTResponseType + + +class DevApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_sample_data_dev_sample_data_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrObject: + """Get Sample Data + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sample_data_dev_sample_data_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_sample_data_dev_sample_data_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrObject]: + """Get Sample Data + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sample_data_dev_sample_data_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_sample_data_dev_sample_data_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Sample Data + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sample_data_dev_sample_data_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_sample_data_dev_sample_data_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/dev/sample-data', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def seed_sample_data_dev_sample_data_seed_post( + self, + reset: Annotated[Optional[StrictBool], Field(description="Clear the sample dataset before reseeding it.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrObject: + """Seed Sample Data + + + :param reset: Clear the sample dataset before reseeding it. + :type reset: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._seed_sample_data_dev_sample_data_seed_post_serialize( + reset=reset, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def seed_sample_data_dev_sample_data_seed_post_with_http_info( + self, + reset: Annotated[Optional[StrictBool], Field(description="Clear the sample dataset before reseeding it.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrObject]: + """Seed Sample Data + + + :param reset: Clear the sample dataset before reseeding it. + :type reset: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._seed_sample_data_dev_sample_data_seed_post_serialize( + reset=reset, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def seed_sample_data_dev_sample_data_seed_post_without_preload_content( + self, + reset: Annotated[Optional[StrictBool], Field(description="Clear the sample dataset before reseeding it.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Seed Sample Data + + + :param reset: Clear the sample dataset before reseeding it. + :type reset: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._seed_sample_data_dev_sample_data_seed_post_serialize( + reset=reset, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _seed_sample_data_dev_sample_data_seed_post_serialize( + self, + reset, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if reset is not None: + + _query_params.append(('reset', reset)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/dev/sample-data/seed', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/sdks/python/keynetra_client/api/health_api.py b/sdks/python/keynetra_client/api/health_api.py new file mode 100644 index 0000000..b95cbc6 --- /dev/null +++ b/sdks/python/keynetra_client/api/health_api.py @@ -0,0 +1,762 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr + +from keynetra_client.api_client import ApiClient, RequestSerialized +from keynetra_client.api_response import ApiResponse +from keynetra_client.rest import RESTResponseType + + +class HealthApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def health_health_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrStr: + """Health + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._health_health_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def health_health_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrStr]: + """Health + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._health_health_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def health_health_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Health + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._health_health_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _health_health_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/health', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def liveness_health_live_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrStr: + """Liveness + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._liveness_health_live_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def liveness_health_live_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrStr]: + """Liveness + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._liveness_health_live_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def liveness_health_live_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Liveness + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._liveness_health_live_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _liveness_health_live_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/health/live', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def readiness_health_ready_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrObject: + """Readiness + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._readiness_health_ready_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def readiness_health_ready_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrObject]: + """Readiness + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._readiness_health_ready_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def readiness_health_ready_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Readiness + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._readiness_health_ready_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrObject", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _readiness_health_ready_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/health/ready', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/sdks/python/keynetra_client/api/management_api.py b/sdks/python/keynetra_client/api/management_api.py new file mode 100644 index 0000000..ac4bf3c --- /dev/null +++ b/sdks/python/keynetra_client/api/management_api.py @@ -0,0 +1,7865 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import StrictInt, StrictStr +from typing import Optional +from keynetra_client.models.acl_create import ACLCreate +from keynetra_client.models.auth_model_create import AuthModelCreate +from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest +from keynetra_client.models.permission_create import PermissionCreate +from keynetra_client.models.permission_out import PermissionOut +from keynetra_client.models.permission_update import PermissionUpdate +from keynetra_client.models.policy_create import PolicyCreate +from keynetra_client.models.policy_simulation_request import PolicySimulationRequest +from keynetra_client.models.relationship_create import RelationshipCreate +from keynetra_client.models.role_create import RoleCreate +from keynetra_client.models.role_out import RoleOut +from keynetra_client.models.role_update import RoleUpdate +from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut +from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr +from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr +from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse +from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut +from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut +from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr +from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut +from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut +from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut +from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut +from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse +from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut + +from keynetra_client.api_client import ApiClient, RequestSerialized +from keynetra_client.api_response import ApiResponse +from keynetra_client.rest import RESTResponseType + + +class ManagementApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def add_permission_to_role_roles_role_id_permissions_permission_id_post( + self, + role_id: StrictInt, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponsePermissionOut: + """Add Permission To Role + + + :param role_id: (required) + :type role_id: int + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( + role_id=role_id, + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info( + self, + role_id: StrictInt, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponsePermissionOut]: + """Add Permission To Role + + + :param role_id: (required) + :type role_id: int + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( + role_id=role_id, + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def add_permission_to_role_roles_role_id_permissions_permission_id_post_without_preload_content( + self, + role_id: StrictInt, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add Permission To Role + + + :param role_id: (required) + :type role_id: int + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( + role_id=role_id, + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( + self, + role_id, + permission_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if role_id is not None: + _path_params['role_id'] = role_id + if permission_id is not None: + _path_params['permission_id'] = permission_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/roles/{role_id}/permissions/{permission_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_acl_entry_acl_post( + self, + acl_create: ACLCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseACLOut: + """Create Acl Entry + + + :param acl_create: (required) + :type acl_create: ACLCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_acl_entry_acl_post_serialize( + acl_create=acl_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseACLOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_acl_entry_acl_post_with_http_info( + self, + acl_create: ACLCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseACLOut]: + """Create Acl Entry + + + :param acl_create: (required) + :type acl_create: ACLCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_acl_entry_acl_post_serialize( + acl_create=acl_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseACLOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_acl_entry_acl_post_without_preload_content( + self, + acl_create: ACLCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Acl Entry + + + :param acl_create: (required) + :type acl_create: ACLCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_acl_entry_acl_post_serialize( + acl_create=acl_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseACLOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_acl_entry_acl_post_serialize( + self, + acl_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if acl_create is not None: + _body_params = acl_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/acl', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_auth_model_auth_model_post( + self, + auth_model_create: AuthModelCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseAuthModelOut: + """Create Auth Model + + + :param auth_model_create: (required) + :type auth_model_create: AuthModelCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_auth_model_auth_model_post_serialize( + auth_model_create=auth_model_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseAuthModelOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_auth_model_auth_model_post_with_http_info( + self, + auth_model_create: AuthModelCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseAuthModelOut]: + """Create Auth Model + + + :param auth_model_create: (required) + :type auth_model_create: AuthModelCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_auth_model_auth_model_post_serialize( + auth_model_create=auth_model_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseAuthModelOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_auth_model_auth_model_post_without_preload_content( + self, + auth_model_create: AuthModelCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Auth Model + + + :param auth_model_create: (required) + :type auth_model_create: AuthModelCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_auth_model_auth_model_post_serialize( + auth_model_create=auth_model_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseAuthModelOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_auth_model_auth_model_post_serialize( + self, + auth_model_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if auth_model_create is not None: + _body_params = auth_model_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth-model', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_permission_permissions_post( + self, + permission_create: PermissionCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PermissionOut: + """Create Permission + + + :param permission_create: (required) + :type permission_create: PermissionCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_permission_permissions_post_serialize( + permission_create=permission_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_permission_permissions_post_with_http_info( + self, + permission_create: PermissionCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PermissionOut]: + """Create Permission + + + :param permission_create: (required) + :type permission_create: PermissionCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_permission_permissions_post_serialize( + permission_create=permission_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_permission_permissions_post_without_preload_content( + self, + permission_create: PermissionCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Permission + + + :param permission_create: (required) + :type permission_create: PermissionCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_permission_permissions_post_serialize( + permission_create=permission_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_permission_permissions_post_serialize( + self, + permission_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if permission_create is not None: + _body_params = permission_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/permissions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_policy_from_dsl_policies_dsl_post( + self, + dsl: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponsePolicyOut: + """Create Policy From Dsl + + + :param dsl: (required) + :type dsl: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_policy_from_dsl_policies_dsl_post_serialize( + dsl=dsl, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_policy_from_dsl_policies_dsl_post_with_http_info( + self, + dsl: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponsePolicyOut]: + """Create Policy From Dsl + + + :param dsl: (required) + :type dsl: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_policy_from_dsl_policies_dsl_post_serialize( + dsl=dsl, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_policy_from_dsl_policies_dsl_post_without_preload_content( + self, + dsl: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Policy From Dsl + + + :param dsl: (required) + :type dsl: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_policy_from_dsl_policies_dsl_post_serialize( + dsl=dsl, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_policy_from_dsl_policies_dsl_post_serialize( + self, + dsl, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if dsl is not None: + + _query_params.append(('dsl', dsl)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/policies/dsl', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_policy_policies_post( + self, + policy_create: PolicyCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponsePolicyOut: + """Create Policy + + + :param policy_create: (required) + :type policy_create: PolicyCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_policy_policies_post_serialize( + policy_create=policy_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_policy_policies_post_with_http_info( + self, + policy_create: PolicyCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponsePolicyOut]: + """Create Policy + + + :param policy_create: (required) + :type policy_create: PolicyCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_policy_policies_post_serialize( + policy_create=policy_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_policy_policies_post_without_preload_content( + self, + policy_create: PolicyCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Policy + + + :param policy_create: (required) + :type policy_create: PolicyCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_policy_policies_post_serialize( + policy_create=policy_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_policy_policies_post_serialize( + self, + policy_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if policy_create is not None: + _body_params = policy_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/policies', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_relationship_relationships_post( + self, + relationship_create: RelationshipCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseRelationshipOut: + """Create Relationship + + + :param relationship_create: (required) + :type relationship_create: RelationshipCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_relationship_relationships_post_serialize( + relationship_create=relationship_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseRelationshipOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_relationship_relationships_post_with_http_info( + self, + relationship_create: RelationshipCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseRelationshipOut]: + """Create Relationship + + + :param relationship_create: (required) + :type relationship_create: RelationshipCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_relationship_relationships_post_serialize( + relationship_create=relationship_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseRelationshipOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_relationship_relationships_post_without_preload_content( + self, + relationship_create: RelationshipCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Relationship + + + :param relationship_create: (required) + :type relationship_create: RelationshipCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_relationship_relationships_post_serialize( + relationship_create=relationship_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SuccessResponseRelationshipOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_relationship_relationships_post_serialize( + self, + relationship_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if relationship_create is not None: + _body_params = relationship_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/relationships', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_role_roles_post( + self, + role_create: RoleCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RoleOut: + """Create Role + + + :param role_create: (required) + :type role_create: RoleCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_role_roles_post_serialize( + role_create=role_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_role_roles_post_with_http_info( + self, + role_create: RoleCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[RoleOut]: + """Create Role + + + :param role_create: (required) + :type role_create: RoleCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_role_roles_post_serialize( + role_create=role_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_role_roles_post_without_preload_content( + self, + role_create: RoleCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Role + + + :param role_create: (required) + :type role_create: RoleCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_role_roles_post_serialize( + role_create=role_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_role_roles_post_serialize( + self, + role_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if role_create is not None: + _body_params = role_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_acl_entry_acl_acl_id_delete( + self, + acl_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrInt: + """Delete Acl Entry + + + :param acl_id: (required) + :type acl_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_acl_entry_acl_acl_id_delete_serialize( + acl_id=acl_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_acl_entry_acl_acl_id_delete_with_http_info( + self, + acl_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrInt]: + """Delete Acl Entry + + + :param acl_id: (required) + :type acl_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_acl_entry_acl_acl_id_delete_serialize( + acl_id=acl_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_acl_entry_acl_acl_id_delete_without_preload_content( + self, + acl_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Acl Entry + + + :param acl_id: (required) + :type acl_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_acl_entry_acl_acl_id_delete_serialize( + acl_id=acl_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_acl_entry_acl_acl_id_delete_serialize( + self, + acl_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if acl_id is not None: + _path_params['acl_id'] = acl_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/acl/{acl_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_permission_permissions_permission_id_delete( + self, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrInt: + """Delete Permission + + + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_permission_permissions_permission_id_delete_serialize( + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_permission_permissions_permission_id_delete_with_http_info( + self, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrInt]: + """Delete Permission + + + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_permission_permissions_permission_id_delete_serialize( + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_permission_permissions_permission_id_delete_without_preload_content( + self, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Permission + + + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_permission_permissions_permission_id_delete_serialize( + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_permission_permissions_permission_id_delete_serialize( + self, + permission_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if permission_id is not None: + _path_params['permission_id'] = permission_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/permissions/{permission_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_policy_policies_policy_key_delete( + self, + policy_key: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrStr: + """Delete Policy + + + :param policy_key: (required) + :type policy_key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_policy_policies_policy_key_delete_serialize( + policy_key=policy_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_policy_policies_policy_key_delete_with_http_info( + self, + policy_key: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrStr]: + """Delete Policy + + + :param policy_key: (required) + :type policy_key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_policy_policies_policy_key_delete_serialize( + policy_key=policy_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_policy_policies_policy_key_delete_without_preload_content( + self, + policy_key: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Policy + + + :param policy_key: (required) + :type policy_key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_policy_policies_policy_key_delete_serialize( + policy_key=policy_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_policy_policies_policy_key_delete_serialize( + self, + policy_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_key is not None: + _path_params['policy_key'] = policy_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/policies/{policy_key}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_role_roles_role_id_delete( + self, + role_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrInt: + """Delete Role + + + :param role_id: (required) + :type role_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_role_roles_role_id_delete_serialize( + role_id=role_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_role_roles_role_id_delete_with_http_info( + self, + role_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrInt]: + """Delete Role + + + :param role_id: (required) + :type role_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_role_roles_role_id_delete_serialize( + role_id=role_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_role_roles_role_id_delete_without_preload_content( + self, + role_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Role + + + :param role_id: (required) + :type role_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_role_roles_role_id_delete_serialize( + role_id=role_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_role_roles_role_id_delete_serialize( + self, + role_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if role_id is not None: + _path_params['role_id'] = role_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/roles/{role_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_auth_model_auth_model_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseAuthModelOut: + """Get Auth Model + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_auth_model_auth_model_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAuthModelOut", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_auth_model_auth_model_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseAuthModelOut]: + """Get Auth Model + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_auth_model_auth_model_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAuthModelOut", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_auth_model_auth_model_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Auth Model + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_auth_model_auth_model_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseAuthModelOut", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_auth_model_auth_model_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth-model', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def impact_analysis_impact_analysis_post( + self, + impact_analysis_request: ImpactAnalysisRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseImpactAnalysisResponse: + """Impact Analysis + + + :param impact_analysis_request: (required) + :type impact_analysis_request: ImpactAnalysisRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._impact_analysis_impact_analysis_post_serialize( + impact_analysis_request=impact_analysis_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseImpactAnalysisResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def impact_analysis_impact_analysis_post_with_http_info( + self, + impact_analysis_request: ImpactAnalysisRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseImpactAnalysisResponse]: + """Impact Analysis + + + :param impact_analysis_request: (required) + :type impact_analysis_request: ImpactAnalysisRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._impact_analysis_impact_analysis_post_serialize( + impact_analysis_request=impact_analysis_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseImpactAnalysisResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def impact_analysis_impact_analysis_post_without_preload_content( + self, + impact_analysis_request: ImpactAnalysisRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Impact Analysis + + + :param impact_analysis_request: (required) + :type impact_analysis_request: ImpactAnalysisRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._impact_analysis_impact_analysis_post_serialize( + impact_analysis_request=impact_analysis_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseImpactAnalysisResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _impact_analysis_impact_analysis_post_serialize( + self, + impact_analysis_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if impact_analysis_request is not None: + _body_params = impact_analysis_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/impact-analysis', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_acl_entries_acl_resource_type_resource_id_get( + self, + resource_type: StrictStr, + resource_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListACLOut: + """List Acl Entries + + + :param resource_type: (required) + :type resource_type: str + :param resource_id: (required) + :type resource_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_acl_entries_acl_resource_type_resource_id_get_serialize( + resource_type=resource_type, + resource_id=resource_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListACLOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_acl_entries_acl_resource_type_resource_id_get_with_http_info( + self, + resource_type: StrictStr, + resource_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListACLOut]: + """List Acl Entries + + + :param resource_type: (required) + :type resource_type: str + :param resource_id: (required) + :type resource_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_acl_entries_acl_resource_type_resource_id_get_serialize( + resource_type=resource_type, + resource_id=resource_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListACLOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_acl_entries_acl_resource_type_resource_id_get_without_preload_content( + self, + resource_type: StrictStr, + resource_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Acl Entries + + + :param resource_type: (required) + :type resource_type: str + :param resource_id: (required) + :type resource_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_acl_entries_acl_resource_type_resource_id_get_serialize( + resource_type=resource_type, + resource_id=resource_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListACLOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_acl_entries_acl_resource_type_resource_id_get_serialize( + self, + resource_type, + resource_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if resource_type is not None: + _path_params['resource_type'] = resource_type + if resource_id is not None: + _path_params['resource_id'] = resource_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/acl/{resource_type}/{resource_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_audit_logs_audit_get( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + user_id: Optional[StrictStr] = None, + resource_id: Optional[StrictStr] = None, + decision: Optional[StrictStr] = None, + start_time: Optional[datetime] = None, + end_time: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListAuditRecordOut: + """List Audit Logs + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param user_id: + :type user_id: str + :param resource_id: + :type resource_id: str + :param decision: + :type decision: str + :param start_time: + :type start_time: datetime + :param end_time: + :type end_time: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_audit_logs_audit_get_serialize( + limit=limit, + cursor=cursor, + user_id=user_id, + resource_id=resource_id, + decision=decision, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListAuditRecordOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_audit_logs_audit_get_with_http_info( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + user_id: Optional[StrictStr] = None, + resource_id: Optional[StrictStr] = None, + decision: Optional[StrictStr] = None, + start_time: Optional[datetime] = None, + end_time: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListAuditRecordOut]: + """List Audit Logs + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param user_id: + :type user_id: str + :param resource_id: + :type resource_id: str + :param decision: + :type decision: str + :param start_time: + :type start_time: datetime + :param end_time: + :type end_time: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_audit_logs_audit_get_serialize( + limit=limit, + cursor=cursor, + user_id=user_id, + resource_id=resource_id, + decision=decision, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListAuditRecordOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_audit_logs_audit_get_without_preload_content( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + user_id: Optional[StrictStr] = None, + resource_id: Optional[StrictStr] = None, + decision: Optional[StrictStr] = None, + start_time: Optional[datetime] = None, + end_time: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Audit Logs + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param user_id: + :type user_id: str + :param resource_id: + :type resource_id: str + :param decision: + :type decision: str + :param start_time: + :type start_time: datetime + :param end_time: + :type end_time: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_audit_logs_audit_get_serialize( + limit=limit, + cursor=cursor, + user_id=user_id, + resource_id=resource_id, + decision=decision, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListAuditRecordOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_audit_logs_audit_get_serialize( + self, + limit, + cursor, + user_id, + resource_id, + decision, + start_time, + end_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + if user_id is not None: + + _query_params.append(('user_id', user_id)) + + if resource_id is not None: + + _query_params.append(('resource_id', resource_id)) + + if decision is not None: + + _query_params.append(('decision', decision)) + + if start_time is not None: + if isinstance(start_time, datetime): + _query_params.append( + ( + 'start_time', + start_time.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('start_time', start_time)) + + if end_time is not None: + if isinstance(end_time, datetime): + _query_params.append( + ( + 'end_time', + end_time.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('end_time', end_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/audit', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_permission_roles_permissions_permission_id_roles_get( + self, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListRoleOut: + """List Permission Roles + + + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_permission_roles_permissions_permission_id_roles_get_serialize( + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListRoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_permission_roles_permissions_permission_id_roles_get_with_http_info( + self, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListRoleOut]: + """List Permission Roles + + + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_permission_roles_permissions_permission_id_roles_get_serialize( + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListRoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_permission_roles_permissions_permission_id_roles_get_without_preload_content( + self, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Permission Roles + + + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_permission_roles_permissions_permission_id_roles_get_serialize( + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListRoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_permission_roles_permissions_permission_id_roles_get_serialize( + self, + permission_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if permission_id is not None: + _path_params['permission_id'] = permission_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/permissions/{permission_id}/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_permissions_permissions_get( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListPermissionOut: + """List Permissions + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_permissions_permissions_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_permissions_permissions_get_with_http_info( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListPermissionOut]: + """List Permissions + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_permissions_permissions_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_permissions_permissions_get_without_preload_content( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Permissions + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_permissions_permissions_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_permissions_permissions_get_serialize( + self, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/permissions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_policies_policies_get( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListPolicyOut: + """List Policies + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_policies_policies_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_policies_policies_get_with_http_info( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListPolicyOut]: + """List Policies + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_policies_policies_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_policies_policies_get_without_preload_content( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Policies + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_policies_policies_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_policies_policies_get_serialize( + self, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/policies', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_relationships_relationships_get( + self, + subject_type: StrictStr, + subject_id: StrictStr, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListDictStrStr: + """List Relationships + + + :param subject_type: (required) + :type subject_type: str + :param subject_id: (required) + :type subject_id: str + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_relationships_relationships_get_serialize( + subject_type=subject_type, + subject_id=subject_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListDictStrStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_relationships_relationships_get_with_http_info( + self, + subject_type: StrictStr, + subject_id: StrictStr, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListDictStrStr]: + """List Relationships + + + :param subject_type: (required) + :type subject_type: str + :param subject_id: (required) + :type subject_id: str + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_relationships_relationships_get_serialize( + subject_type=subject_type, + subject_id=subject_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListDictStrStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_relationships_relationships_get_without_preload_content( + self, + subject_type: StrictStr, + subject_id: StrictStr, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Relationships + + + :param subject_type: (required) + :type subject_type: str + :param subject_id: (required) + :type subject_id: str + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_relationships_relationships_get_serialize( + subject_type=subject_type, + subject_id=subject_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListDictStrStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_relationships_relationships_get_serialize( + self, + subject_type, + subject_id, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if subject_type is not None: + + _query_params.append(('subject_type', subject_type)) + + if subject_id is not None: + + _query_params.append(('subject_id', subject_id)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/relationships', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_role_permissions_roles_role_id_permissions_get( + self, + role_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListPermissionOut: + """List Role Permissions + + + :param role_id: (required) + :type role_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_role_permissions_roles_role_id_permissions_get_serialize( + role_id=role_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_role_permissions_roles_role_id_permissions_get_with_http_info( + self, + role_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListPermissionOut]: + """List Role Permissions + + + :param role_id: (required) + :type role_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_role_permissions_roles_role_id_permissions_get_serialize( + role_id=role_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_role_permissions_roles_role_id_permissions_get_without_preload_content( + self, + role_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Role Permissions + + + :param role_id: (required) + :type role_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_role_permissions_roles_role_id_permissions_get_serialize( + role_id=role_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListPermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_role_permissions_roles_role_id_permissions_get_serialize( + self, + role_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if role_id is not None: + _path_params['role_id'] = role_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/roles/{role_id}/permissions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_roles_roles_get( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseListRoleOut: + """List Roles + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_roles_roles_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListRoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_roles_roles_get_with_http_info( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseListRoleOut]: + """List Roles + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_roles_roles_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListRoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_roles_roles_get_without_preload_content( + self, + limit: Optional[StrictInt] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Roles + + + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_roles_roles_get_serialize( + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseListRoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_roles_roles_get_serialize( + self, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def remove_permission_from_role_roles_role_id_permissions_permission_id_delete( + self, + role_id: StrictInt, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrInt: + """Remove Permission From Role + + + :param role_id: (required) + :type role_id: int + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( + role_id=role_id, + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info( + self, + role_id: StrictInt, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrInt]: + """Remove Permission From Role + + + :param role_id: (required) + :type role_id: int + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( + role_id=role_id, + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def remove_permission_from_role_roles_role_id_permissions_permission_id_delete_without_preload_content( + self, + role_id: StrictInt, + permission_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove Permission From Role + + + :param role_id: (required) + :type role_id: int + :param permission_id: (required) + :type permission_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( + role_id=role_id, + permission_id=permission_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrInt", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( + self, + role_id, + permission_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if role_id is not None: + _path_params['role_id'] = role_id + if permission_id is not None: + _path_params['permission_id'] = permission_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/roles/{role_id}/permissions/{permission_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def rollback_policy_policies_policy_key_rollback_version_post( + self, + policy_key: StrictStr, + version: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrUnionIntStr: + """Rollback Policy + + + :param policy_key: (required) + :type policy_key: str + :param version: (required) + :type version: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._rollback_policy_policies_policy_key_rollback_version_post_serialize( + policy_key=policy_key, + version=version, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrUnionIntStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def rollback_policy_policies_policy_key_rollback_version_post_with_http_info( + self, + policy_key: StrictStr, + version: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrUnionIntStr]: + """Rollback Policy + + + :param policy_key: (required) + :type policy_key: str + :param version: (required) + :type version: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._rollback_policy_policies_policy_key_rollback_version_post_serialize( + policy_key=policy_key, + version=version, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrUnionIntStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def rollback_policy_policies_policy_key_rollback_version_post_without_preload_content( + self, + policy_key: StrictStr, + version: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Rollback Policy + + + :param policy_key: (required) + :type policy_key: str + :param version: (required) + :type version: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._rollback_policy_policies_policy_key_rollback_version_post_serialize( + policy_key=policy_key, + version=version, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrUnionIntStr", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _rollback_policy_policies_policy_key_rollback_version_post_serialize( + self, + policy_key, + version, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_key is not None: + _path_params['policy_key'] = policy_key + if version is not None: + _path_params['version'] = version + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/policies/{policy_key}/rollback/{version}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def simulate_policy_simulate_policy_post( + self, + policy_simulation_request: PolicySimulationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponsePolicySimulationResponse: + """Simulate Policy + + + :param policy_simulation_request: (required) + :type policy_simulation_request: PolicySimulationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._simulate_policy_simulate_policy_post_serialize( + policy_simulation_request=policy_simulation_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponsePolicySimulationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def simulate_policy_simulate_policy_post_with_http_info( + self, + policy_simulation_request: PolicySimulationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponsePolicySimulationResponse]: + """Simulate Policy + + + :param policy_simulation_request: (required) + :type policy_simulation_request: PolicySimulationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._simulate_policy_simulate_policy_post_serialize( + policy_simulation_request=policy_simulation_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponsePolicySimulationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def simulate_policy_simulate_policy_post_without_preload_content( + self, + policy_simulation_request: PolicySimulationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Simulate Policy + + + :param policy_simulation_request: (required) + :type policy_simulation_request: PolicySimulationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._simulate_policy_simulate_policy_post_serialize( + policy_simulation_request=policy_simulation_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponsePolicySimulationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _simulate_policy_simulate_policy_post_serialize( + self, + policy_simulation_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if policy_simulation_request is not None: + _body_params = policy_simulation_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/simulate-policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_permission_permissions_permission_id_put( + self, + permission_id: StrictInt, + permission_update: PermissionUpdate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PermissionOut: + """Update Permission + + + :param permission_id: (required) + :type permission_id: int + :param permission_update: (required) + :type permission_update: PermissionUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_permission_permissions_permission_id_put_serialize( + permission_id=permission_id, + permission_update=permission_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_permission_permissions_permission_id_put_with_http_info( + self, + permission_id: StrictInt, + permission_update: PermissionUpdate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PermissionOut]: + """Update Permission + + + :param permission_id: (required) + :type permission_id: int + :param permission_update: (required) + :type permission_update: PermissionUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_permission_permissions_permission_id_put_serialize( + permission_id=permission_id, + permission_update=permission_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_permission_permissions_permission_id_put_without_preload_content( + self, + permission_id: StrictInt, + permission_update: PermissionUpdate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Permission + + + :param permission_id: (required) + :type permission_id: int + :param permission_update: (required) + :type permission_update: PermissionUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_permission_permissions_permission_id_put_serialize( + permission_id=permission_id, + permission_update=permission_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PermissionOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_permission_permissions_permission_id_put_serialize( + self, + permission_id, + permission_update, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if permission_id is not None: + _path_params['permission_id'] = permission_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if permission_update is not None: + _body_params = permission_update + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/permissions/{permission_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_policy_policies_policy_key_put( + self, + policy_key: StrictStr, + policy_create: PolicyCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponsePolicyOut: + """Update Policy + + + :param policy_key: (required) + :type policy_key: str + :param policy_create: (required) + :type policy_create: PolicyCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_policy_policies_policy_key_put_serialize( + policy_key=policy_key, + policy_create=policy_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_policy_policies_policy_key_put_with_http_info( + self, + policy_key: StrictStr, + policy_create: PolicyCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponsePolicyOut]: + """Update Policy + + + :param policy_key: (required) + :type policy_key: str + :param policy_create: (required) + :type policy_create: PolicyCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_policy_policies_policy_key_put_serialize( + policy_key=policy_key, + policy_create=policy_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_policy_policies_policy_key_put_without_preload_content( + self, + policy_key: StrictStr, + policy_create: PolicyCreate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Policy + + + :param policy_key: (required) + :type policy_key: str + :param policy_create: (required) + :type policy_create: PolicyCreate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_policy_policies_policy_key_put_serialize( + policy_key=policy_key, + policy_create=policy_create, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponsePolicyOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_policy_policies_policy_key_put_serialize( + self, + policy_key, + policy_create, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_key is not None: + _path_params['policy_key'] = policy_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if policy_create is not None: + _body_params = policy_create + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/policies/{policy_key}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_role_roles_role_id_put( + self, + role_id: StrictInt, + role_update: RoleUpdate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RoleOut: + """Update Role + + + :param role_id: (required) + :type role_id: int + :param role_update: (required) + :type role_update: RoleUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_role_roles_role_id_put_serialize( + role_id=role_id, + role_update=role_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_role_roles_role_id_put_with_http_info( + self, + role_id: StrictInt, + role_update: RoleUpdate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[RoleOut]: + """Update Role + + + :param role_id: (required) + :type role_id: int + :param role_update: (required) + :type role_update: RoleUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_role_roles_role_id_put_serialize( + role_id=role_id, + role_update=role_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_role_roles_role_id_put_without_preload_content( + self, + role_id: StrictInt, + role_update: RoleUpdate, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Role + + + :param role_id: (required) + :type role_id: int + :param role_update: (required) + :type role_update: RoleUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_role_roles_role_id_put_serialize( + role_id=role_id, + role_update=role_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RoleOut", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_role_roles_role_id_put_serialize( + self, + role_id, + role_update, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if role_id is not None: + _path_params['role_id'] = role_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if role_update is not None: + _body_params = role_update + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/roles/{role_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/sdks/python/keynetra_client/api/playground_api.py b/sdks/python/keynetra_client/api/playground_api.py new file mode 100644 index 0000000..f568a5d --- /dev/null +++ b/sdks/python/keynetra_client/api/playground_api.py @@ -0,0 +1,311 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest +from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny + +from keynetra_client.api_client import ApiClient, RequestSerialized +from keynetra_client.api_response import ApiResponse +from keynetra_client.rest import RESTResponseType + + +class PlaygroundApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def evaluate_playground_evaluate_post( + self, + playground_evaluate_request: PlaygroundEvaluateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessResponseDictStrAny: + """Evaluate + + + :param playground_evaluate_request: (required) + :type playground_evaluate_request: PlaygroundEvaluateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._evaluate_playground_evaluate_post_serialize( + playground_evaluate_request=playground_evaluate_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrAny", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def evaluate_playground_evaluate_post_with_http_info( + self, + playground_evaluate_request: PlaygroundEvaluateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessResponseDictStrAny]: + """Evaluate + + + :param playground_evaluate_request: (required) + :type playground_evaluate_request: PlaygroundEvaluateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._evaluate_playground_evaluate_post_serialize( + playground_evaluate_request=playground_evaluate_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrAny", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def evaluate_playground_evaluate_post_without_preload_content( + self, + playground_evaluate_request: PlaygroundEvaluateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Evaluate + + + :param playground_evaluate_request: (required) + :type playground_evaluate_request: PlaygroundEvaluateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._evaluate_playground_evaluate_post_serialize( + playground_evaluate_request=playground_evaluate_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessResponseDictStrAny", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _evaluate_playground_evaluate_post_serialize( + self, + playground_evaluate_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if playground_evaluate_request is not None: + _body_params = playground_evaluate_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKeyHeader', + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/playground/evaluate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/sdks/python/keynetra_client/api_client.py b/sdks/python/keynetra_client/api_client.py new file mode 100644 index 0000000..0682630 --- /dev/null +++ b/sdks/python/keynetra_client/api_client.py @@ -0,0 +1,808 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + + +import datetime +from dateutil.parser import parse +from enum import Enum +import decimal +import json +import mimetypes +import os +import re +import tempfile +import uuid + +from urllib.parse import quote +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr + +from keynetra_client.configuration import Configuration +from keynetra_client.api_response import ApiResponse, T as ApiResponseT +import keynetra_client.models +from keynetra_client import rest +from keynetra_client.exceptions import ( + ApiValueError, + ApiException, + BadRequestException, + UnauthorizedException, + ForbiddenException, + NotFoundException, + ServiceException +) + +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + +class ApiClient: + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, str, int) + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, + 'UUID': uuid.UUID, + 'object': object, + } + _pool = None + + def __init__( + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None + ) -> None: + # use default configuration if none is provided + if configuration is None: + configuration = Configuration.get_default() + self.configuration = configuration + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/0.1.0/python' + self.client_side_validation = configuration.client_side_validation + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + pass + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + + _default = None + + @classmethod + def get_default(cls): + """Return new instance of ApiClient. + + This method returns newly created, based on default constructor, + object of ApiClient class or returns a copy of default + ApiClient. + + :return: The ApiClient object. + """ + if cls._default is None: + cls._default = ApiClient() + return cls._default + + @classmethod + def set_default(cls, default): + """Set default instance of ApiClient. + + It stores default ApiClient. + + :param default: object of ApiClient. + """ + cls._default = default + + def param_serialize( + self, + method, + resource_path, + path_params=None, + query_params=None, + header_params=None, + body=None, + post_params=None, + files=None, auth_settings=None, + collection_formats=None, + _host=None, + _request_auth=None + ) -> RequestSerialized: + + """Builds the HTTP request params needed by the request. + :param method: Method to call. + :param resource_path: Path to method endpoint. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :return: tuple of form (path, http_method, query_params, header_params, + body, post_params, files) + """ + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict( + self.parameters_to_tuples(header_params,collection_formats) + ) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) + if files: + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth( + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auth=_request_auth + ) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None or self.configuration.ignore_operation_servers: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) + url += "?" + url_query + + return method, url, header_params, body, post_params + + + def call_api( + self, + method, + url, + header_params=None, + body=None, + post_params=None, + _request_timeout=None + ) -> rest.RESTResponse: + """Makes the HTTP request (synchronous) + :param method: Method to call. + :param url: Path to method endpoint. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param _request_timeout: timeout setting for this request. + :return: RESTResponse + """ + + try: + # perform request and return response + response_data = self.rest_client.request( + method, url, + headers=header_params, + body=body, post_params=post_params, + _request_timeout=_request_timeout + ) + + except ApiException as e: + raise e + + return response_data + + def response_deserialize( + self, + response_data: rest.RESTResponse, + response_types_map: Optional[Dict[str, ApiResponseT]]=None + ) -> ApiResponse[ApiResponseT]: + """Deserializes response into an object. + :param response_data: RESTResponse object to be deserialized. + :param response_types_map: dict of response types. + :return: ApiResponse + """ + + msg = "RESTResponse.read() must be called before passing it to response_deserialize()" + assert response_data.data is not None, msg + + response_type = response_types_map.get(str(response_data.status), None) + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) + + # deserialize response data + response_text = None + return_data = None + try: + if response_type in ("bytearray", "bytes"): + return_data = response_data.data + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + elif response_type is not None: + match = None + content_type = response_data.headers.get('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type, content_type) + finally: + if not 200 <= response_data.status <= 299: + raise ApiException.from_response( + http_resp=response_data, + body=response_text, + data=return_data, + ) + + return ApiResponse( + status_code = response_data.status, + data = return_data, + headers = response_data.headers, + raw_data = response_data.data + ) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is decimal.Decimal return string representation. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, uuid.UUID): + return str(obj) + elif isinstance(obj, list): + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] + elif isinstance(obj, tuple): + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) + + elif isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ + + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + + return { + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() + } + + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + :param content_type: content type of response. + + :return: deserialized object. + """ + + # fetch data from response object + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): + data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if isinstance(klass, str): + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" + sub_kls = m.group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(keynetra_client.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass is object: + return self.__deserialize_object(data) + elif klass is datetime.date: + return self.__deserialize_date(data) + elif klass is datetime.datetime: + return self.__deserialize_datetime(data) + elif klass is decimal.Decimal: + return decimal.Decimal(data) + elif klass is uuid.UUID: + return uuid.UUID(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) + else: + return self.__deserialize_model(data, klass) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: URL query string (e.g. a=Hello%20World&b=123) + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if isinstance(v, bool): + v = str(v).lower() + if isinstance(v, (int, float)): + v = str(v) + if isinstance(v, dict): + v = json.dumps(v) + + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, quote(str(value))) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(quote(str(value)) for value in v)) + ) + else: + new_params.append((k, quote(str(v)))) + + return "&".join(["=".join(map(str, item)) for item in new_params]) + + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue + else: + raise ValueError("Unsupported file value") + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) + return params + + def select_header_accept(self, accepts: List[str]) -> Optional[str]: + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None + + for accept in accepts: + if re.search('json', accept, re.IGNORECASE): + return accept + + return accepts[0] + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None + + for content_type in content_types: + if re.search('json', content_type, re.IGNORECASE): + return content_type + + return content_types[0] + + def update_params_for_auth( + self, + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auth=None + ) -> None: + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param request_auth: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auth: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + request_auth + ) + else: + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + auth_setting + ) + + def _apply_auth_params( + self, + headers, + queries, + resource_path, + method, + body, + auth_setting + ) -> None: + """Updates the request parameters based on a single auth_setting + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param auth_setting: auth settings for the endpoint + """ + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + handle file downloading + save response body into a tmp file and return the instance + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.headers.get("Content-Disposition") + if content_disposition: + m = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ) + assert m is not None, "Unexpected 'content-disposition' header value" + filename = os.path.basename(m.group(1)) # Strip any directory traversal + if filename in ("", ".", ".."): # fall back to tmp filename + filename = os.path.basename(path) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_enum(self, data, klass): + """Deserializes primitive type to enum. + + :param data: primitive type. + :param klass: class literal. + :return: enum value. + """ + try: + return klass(data) + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + return klass.from_dict(data) diff --git a/sdks/python/keynetra_client/api_response.py b/sdks/python/keynetra_client/api_response.py new file mode 100644 index 0000000..9bc7c11 --- /dev/null +++ b/sdks/python/keynetra_client/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/sdks/python/keynetra_client/client.py b/sdks/python/keynetra_client/client.py new file mode 100644 index 0000000..2d99b22 --- /dev/null +++ b/sdks/python/keynetra_client/client.py @@ -0,0 +1,25 @@ +from __future__ import annotations + +from keynetra_client.api_client import ApiClient +from keynetra_client.configuration import Configuration +from keynetra_client.api.access_api import AccessApi +from keynetra_client.api.auth_api import AuthApi +from keynetra_client.api.dev_api import DevApi +from keynetra_client.api.health_api import HealthApi +from keynetra_client.api.management_api import ManagementApi +from keynetra_client.api.playground_api import PlaygroundApi + + +class KeyNetraClient: + def __init__(self, base_url: str, api_key: str) -> None: + configuration = Configuration(host=base_url) + configuration.api_key["APIKeyHeader"] = api_key + configuration.access_token = api_key + self.api_client = ApiClient(configuration=configuration) + + self.access = AccessApi(api_client=self.api_client) + self.auth = AuthApi(api_client=self.api_client) + self.dev = DevApi(api_client=self.api_client) + self.health = HealthApi(api_client=self.api_client) + self.management = ManagementApi(api_client=self.api_client) + self.playground = PlaygroundApi(api_client=self.api_client) diff --git a/sdks/python/keynetra_client/configuration.py b/sdks/python/keynetra_client/configuration.py new file mode 100644 index 0000000..8293aef --- /dev/null +++ b/sdks/python/keynetra_client/configuration.py @@ -0,0 +1,634 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import copy +import http.client as httplib +import logging +from logging import FileHandler +import multiprocessing +import sys +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union +from typing_extensions import NotRequired, Self + +import urllib3 + + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +ServerVariablesT = Dict[str, str] + +GenericAuthSetting = TypedDict( + "GenericAuthSetting", + { + "type": str, + "in": str, + "key": str, + "value": str, + }, +) + + +OAuth2AuthSetting = TypedDict( + "OAuth2AuthSetting", + { + "type": Literal["oauth2"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +APIKeyAuthSetting = TypedDict( + "APIKeyAuthSetting", + { + "type": Literal["api_key"], + "in": str, + "key": str, + "value": Optional[str], + }, +) + + +BasicAuthSetting = TypedDict( + "BasicAuthSetting", + { + "type": Literal["basic"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": Optional[str], + }, +) + + +BearerFormatAuthSetting = TypedDict( + "BearerFormatAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "format": Literal["JWT"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +BearerAuthSetting = TypedDict( + "BearerAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +HTTPSignatureAuthSetting = TypedDict( + "HTTPSignatureAuthSetting", + { + "type": Literal["http-signature"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": None, + }, +) + + +AuthSettings = TypedDict( + "AuthSettings", + { + "HTTPBearer": BearerAuthSetting, + "APIKeyHeader": APIKeyAuthSetting, + }, + total=False, +) + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] + + +class Configuration: + """This class contains various settings of the API client. + + :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum + values before. + :param verify_ssl: bool - Set this to false to skip verifying SSL certificate + when calling API from https server. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. + :param retries: int | urllib3.util.retry.Retry - Retry configuration. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. + :param assert_hostname: Set this to True/False to enable/disable SSL hostname verification. + :param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server. + :param connection_pool_maxsize: Connection pool max size. None in the constructor is coerced to 100 for async and cpu_count * 5 for sync. + :param proxy: Proxy URL. + :param proxy_headers: Proxy headers. + :param safe_chars_for_path_param: Safe characters for path parameter encoding. + :param client_side_validation: Enable client-side validation. Default True. + :param socket_options: Options to pass down to the underlying urllib3 socket. + :param datetime_format: Datetime format string for serialization. + :param date_format: Date format string for serialization. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + +conf = keynetra_client.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} +) + + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 + """ + + _default: ClassVar[Optional[Self]] = None + + def __init__( + self, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, + retries: Optional[Union[int, Any]] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, + verify_ssl: bool=True, + assert_hostname: Optional[bool]=None, + tls_server_name: Optional[str]=None, + connection_pool_maxsize: Optional[int]=None, + proxy: Optional[str]=None, + proxy_headers: Optional[Any]=None, + safe_chars_for_path_param: str='', + client_side_validation: bool=True, + socket_options: Optional[Any]=None, + datetime_format: str="%Y-%m-%dT%H:%M:%S.%f%z", + date_format: str="%Y-%m-%d", + *, + debug: Optional[bool] = None, + ) -> None: + """Constructor + """ + self._base_path = "http://localhost" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.access_token = access_token + """Access token + """ + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("keynetra_client") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler: Optional[FileHandler] = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + if debug is not None: + self.debug = debug + else: + self.__debug = False + """Debug switch + """ + + self.verify_ssl = verify_ssl + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ + self.cert_file = cert_file + """client certificate file + """ + self.key_file = key_file + """client key file + """ + self.assert_hostname = assert_hostname + """Set this to True/False to enable/disable SSL hostname verification. + """ + self.tls_server_name = tls_server_name + """SSL/TLS Server Name Indication (SNI) + Set this to the SNI value expected by the server. + """ + + self.connection_pool_maxsize = connection_pool_maxsize if connection_pool_maxsize is not None else multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. None in the constructor is coerced to cpu_count * 5. + """ + + self.proxy = proxy + """Proxy URL + """ + self.proxy_headers = proxy_headers + """Proxy headers + """ + self.safe_chars_for_path_param = safe_chars_for_path_param + """Safe chars for path_param + """ + self.retries = retries + """Retry configuration + """ + # Enable client side validation + self.client_side_validation = client_side_validation + + self.socket_options = socket_options + """Options to pass down to the underlying urllib3 socket + """ + + self.datetime_format = datetime_format + """datetime format + """ + + self.date_format = date_format + """date format + """ + + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name: str, value: Any) -> None: + object.__setattr__(self, name, value) + + @classmethod + def set_default(cls, default: Optional[Self]) -> None: + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = default + + @classmethod + def get_default_copy(cls) -> Self: + """Deprecated. Please use `get_default` instead. + + Deprecated. Please use `get_default` instead. + + :return: The configuration object. + """ + return cls.get_default() + + @classmethod + def get_default(cls) -> Self: + """Return the default configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration. + + :return: The configuration object. + """ + if cls._default is None: + cls._default = cls() + return cls._default + + @property + def logger_file(self) -> Optional[str]: + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value: Optional[str]) -> None: + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in self.logger.items(): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self) -> bool: + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value: bool) -> None: + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in self.logger.items(): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in self.logger.items(): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self) -> str: + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value: str) -> None: + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + return None + + def get_basic_auth_token(self) -> Optional[str]: + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self)-> AuthSettings: + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth: AuthSettings = {} + if self.access_token is not None: + auth['HTTPBearer'] = { + 'type': 'bearer', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + if 'APIKeyHeader' in self.api_key: + auth['APIKeyHeader'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'X-API-Key', + 'value': self.get_api_key_with_prefix( + 'APIKeyHeader', + ), + } + return auth + + def to_debug_report(self) -> str: + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 0.1.1\n"\ + "SDK Package Version: 0.1.0".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self) -> List[HostSetting]: + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "", + 'description': "No description provided", + } + ] + + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, + ) -> str: + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and variable['enum_values'] \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self) -> str: + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value: str) -> None: + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/sdks/python/keynetra_client/exceptions.py b/sdks/python/keynetra_client/exceptions.py new file mode 100644 index 0000000..7c5d402 --- /dev/null +++ b/sdks/python/keynetra_client/exceptions.py @@ -0,0 +1,218 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from typing import Any, Optional +from typing_extensions import Self + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__( + self, + status=None, + reason=None, + http_resp=None, + *, + body: Optional[str] = None, + data: Optional[Any] = None, + ) -> None: + self.status = status + self.reason = reason + self.body = body + self.data = data + self.headers = None + + if http_resp: + if self.status is None: + self.status = http_resp.status + if self.reason is None: + self.reason = http_resp.reason + if self.body is None: + try: + self.body = http_resp.data.decode('utf-8') + except Exception: + pass + self.headers = http_resp.headers + + @classmethod + def from_response( + cls, + *, + http_resp, + body: Optional[str], + data: Optional[Any], + ) -> Self: + if http_resp.status == 400: + raise BadRequestException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 401: + raise UnauthorizedException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 403: + raise ForbiddenException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 404: + raise NotFoundException(http_resp=http_resp, body=body, data=data) + + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + + if 500 <= http_resp.status <= 599: + raise ServiceException(http_resp=http_resp, body=body, data=data) + raise ApiException(http_resp=http_resp, body=body, data=data) + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + if self.data: + error_message += "HTTP response data: {0}\n".format(self.data) + + return error_message + + +class BadRequestException(ApiException): + pass + + +class NotFoundException(ApiException): + pass + + +class UnauthorizedException(ApiException): + pass + + +class ForbiddenException(ApiException): + pass + + +class ServiceException(ApiException): + pass + + +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, int): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/sdks/python/keynetra_client/models/__init__.py b/sdks/python/keynetra_client/models/__init__.py new file mode 100644 index 0000000..fdca018 --- /dev/null +++ b/sdks/python/keynetra_client/models/__init__.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +# flake8: noqa +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +# import models into model package +from keynetra_client.models.acl_create import ACLCreate +from keynetra_client.models.acl_out import ACLOut +from keynetra_client.models.access_decision_response import AccessDecisionResponse +from keynetra_client.models.access_request import AccessRequest +from keynetra_client.models.admin_login_request import AdminLoginRequest +from keynetra_client.models.admin_login_response import AdminLoginResponse +from keynetra_client.models.audit_record_out import AuditRecordOut +from keynetra_client.models.auth_model_create import AuthModelCreate +from keynetra_client.models.auth_model_out import AuthModelOut +from keynetra_client.models.batch_access_item import BatchAccessItem +from keynetra_client.models.batch_access_request import BatchAccessRequest +from keynetra_client.models.batch_access_response import BatchAccessResponse +from keynetra_client.models.batch_access_result import BatchAccessResult +from keynetra_client.models.data_value import DataValue +from keynetra_client.models.http_validation_error import HTTPValidationError +from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest +from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse +from keynetra_client.models.location_inner import LocationInner +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.permission_create import PermissionCreate +from keynetra_client.models.permission_out import PermissionOut +from keynetra_client.models.permission_update import PermissionUpdate +from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest +from keynetra_client.models.playground_input import PlaygroundInput +from keynetra_client.models.playground_policy import PlaygroundPolicy +from keynetra_client.models.policy_create import PolicyCreate +from keynetra_client.models.policy_out import PolicyOut +from keynetra_client.models.policy_simulation_input import PolicySimulationInput +from keynetra_client.models.policy_simulation_request import PolicySimulationRequest +from keynetra_client.models.policy_simulation_response import PolicySimulationResponse +from keynetra_client.models.relationship_create import RelationshipCreate +from keynetra_client.models.relationship_out import RelationshipOut +from keynetra_client.models.role_create import RoleCreate +from keynetra_client.models.role_out import RoleOut +from keynetra_client.models.role_update import RoleUpdate +from keynetra_client.models.simulation_response import SimulationResponse +from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut +from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse +from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse +from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut +from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse +from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr +from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr +from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse +from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut +from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut +from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr +from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut +from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut +from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut +from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut +from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse +from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut +from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse +from keynetra_client.models.validation_error import ValidationError + diff --git a/sdks/python/keynetra_client/models/access_decision_response.py b/sdks/python/keynetra_client/models/access_decision_response.py new file mode 100644 index 0000000..61cf5e9 --- /dev/null +++ b/sdks/python/keynetra_client/models/access_decision_response.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AccessDecisionResponse(BaseModel): + """ + AccessDecisionResponse + """ # noqa: E501 + allowed: StrictBool + decision: StrictStr + matched_policies: Optional[List[StrictStr]] = None + reason: Optional[StrictStr] = None + policy_id: Optional[StrictStr] = None + explain_trace: Optional[List[Dict[str, Any]]] = None + revision: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["allowed", "decision", "matched_policies", "reason", "policy_id", "explain_trace", "revision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AccessDecisionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if reason (nullable) is None + # and model_fields_set contains the field + if self.reason is None and "reason" in self.model_fields_set: + _dict['reason'] = None + + # set to None if policy_id (nullable) is None + # and model_fields_set contains the field + if self.policy_id is None and "policy_id" in self.model_fields_set: + _dict['policy_id'] = None + + # set to None if revision (nullable) is None + # and model_fields_set contains the field + if self.revision is None and "revision" in self.model_fields_set: + _dict['revision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AccessDecisionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed"), + "decision": obj.get("decision"), + "matched_policies": obj.get("matched_policies"), + "reason": obj.get("reason"), + "policy_id": obj.get("policy_id"), + "explain_trace": obj.get("explain_trace"), + "revision": obj.get("revision") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/access_request.py b/sdks/python/keynetra_client/models/access_request.py new file mode 100644 index 0000000..b1665f6 --- /dev/null +++ b/sdks/python/keynetra_client/models/access_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AccessRequest(BaseModel): + """ + Explicit authorization request passed through the API boundary. + """ # noqa: E501 + user: Optional[Dict[str, Any]] = None + action: StrictStr + resource: Optional[Dict[str, Any]] = None + context: Optional[Dict[str, Any]] = None + consistency: Optional[StrictStr] = 'eventual' + revision: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["user", "action", "resource", "context", "consistency", "revision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AccessRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if revision (nullable) is None + # and model_fields_set contains the field + if self.revision is None and "revision" in self.model_fields_set: + _dict['revision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AccessRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "action": obj.get("action"), + "resource": obj.get("resource"), + "context": obj.get("context"), + "consistency": obj.get("consistency") if obj.get("consistency") is not None else 'eventual', + "revision": obj.get("revision") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/acl_create.py b/sdks/python/keynetra_client/models/acl_create.py new file mode 100644 index 0000000..ff51de9 --- /dev/null +++ b/sdks/python/keynetra_client/models/acl_create.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ACLCreate(BaseModel): + """ + ACLCreate + """ # noqa: E501 + subject_type: StrictStr + subject_id: StrictStr + resource_type: StrictStr + resource_id: StrictStr + action: StrictStr + effect: StrictStr + __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "resource_type", "resource_id", "action", "effect"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ACLCreate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ACLCreate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subject_type": obj.get("subject_type"), + "subject_id": obj.get("subject_id"), + "resource_type": obj.get("resource_type"), + "resource_id": obj.get("resource_id"), + "action": obj.get("action"), + "effect": obj.get("effect") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/acl_out.py b/sdks/python/keynetra_client/models/acl_out.py new file mode 100644 index 0000000..43b616d --- /dev/null +++ b/sdks/python/keynetra_client/models/acl_out.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ACLOut(BaseModel): + """ + ACLOut + """ # noqa: E501 + subject_type: StrictStr + subject_id: StrictStr + resource_type: StrictStr + resource_id: StrictStr + action: StrictStr + effect: StrictStr + id: StrictInt + tenant_id: StrictInt + created_at: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "resource_type", "resource_id", "action", "effect", "id", "tenant_id", "created_at"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ACLOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['created_at'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ACLOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subject_type": obj.get("subject_type"), + "subject_id": obj.get("subject_id"), + "resource_type": obj.get("resource_type"), + "resource_id": obj.get("resource_id"), + "action": obj.get("action"), + "effect": obj.get("effect"), + "id": obj.get("id"), + "tenant_id": obj.get("tenant_id"), + "created_at": obj.get("created_at") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/admin_login_request.py b/sdks/python/keynetra_client/models/admin_login_request.py new file mode 100644 index 0000000..c3b9227 --- /dev/null +++ b/sdks/python/keynetra_client/models/admin_login_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AdminLoginRequest(BaseModel): + """ + AdminLoginRequest + """ # noqa: E501 + username: StrictStr + password: StrictStr + __properties: ClassVar[List[str]] = ["username", "password"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminLoginRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminLoginRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "username": obj.get("username"), + "password": obj.get("password") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/admin_login_response.py b/sdks/python/keynetra_client/models/admin_login_response.py new file mode 100644 index 0000000..da00449 --- /dev/null +++ b/sdks/python/keynetra_client/models/admin_login_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AdminLoginResponse(BaseModel): + """ + AdminLoginResponse + """ # noqa: E501 + access_token: StrictStr + token_type: Optional[StrictStr] = 'bearer' + expires_in: StrictInt + role: Optional[StrictStr] = 'admin' + tenant_key: StrictStr + __properties: ClassVar[List[str]] = ["access_token", "token_type", "expires_in", "role", "tenant_key"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminLoginResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminLoginResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "access_token": obj.get("access_token"), + "token_type": obj.get("token_type") if obj.get("token_type") is not None else 'bearer', + "expires_in": obj.get("expires_in"), + "role": obj.get("role") if obj.get("role") is not None else 'admin', + "tenant_key": obj.get("tenant_key") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/audit_record_out.py b/sdks/python/keynetra_client/models/audit_record_out.py new file mode 100644 index 0000000..2d6235d --- /dev/null +++ b/sdks/python/keynetra_client/models/audit_record_out.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AuditRecordOut(BaseModel): + """ + AuditRecordOut + """ # noqa: E501 + id: StrictInt + principal_type: StrictStr + principal_id: StrictStr + correlation_id: Optional[StrictStr] = None + user: Dict[str, Any] + action: StrictStr + resource: Dict[str, Any] + decision: StrictStr + matched_policies: List[Any] + reason: Optional[StrictStr] = None + evaluated_rules: List[Any] + failed_conditions: List[Any] + created_at: datetime + __properties: ClassVar[List[str]] = ["id", "principal_type", "principal_id", "correlation_id", "user", "action", "resource", "decision", "matched_policies", "reason", "evaluated_rules", "failed_conditions", "created_at"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuditRecordOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if correlation_id (nullable) is None + # and model_fields_set contains the field + if self.correlation_id is None and "correlation_id" in self.model_fields_set: + _dict['correlation_id'] = None + + # set to None if reason (nullable) is None + # and model_fields_set contains the field + if self.reason is None and "reason" in self.model_fields_set: + _dict['reason'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuditRecordOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "principal_type": obj.get("principal_type"), + "principal_id": obj.get("principal_id"), + "correlation_id": obj.get("correlation_id"), + "user": obj.get("user"), + "action": obj.get("action"), + "resource": obj.get("resource"), + "decision": obj.get("decision"), + "matched_policies": obj.get("matched_policies"), + "reason": obj.get("reason"), + "evaluated_rules": obj.get("evaluated_rules"), + "failed_conditions": obj.get("failed_conditions"), + "created_at": obj.get("created_at") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/auth_model_create.py b/sdks/python/keynetra_client/models/auth_model_create.py new file mode 100644 index 0000000..2efd0bc --- /dev/null +++ b/sdks/python/keynetra_client/models/auth_model_create.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AuthModelCreate(BaseModel): + """ + AuthModelCreate + """ # noqa: E501 + var_schema: StrictStr = Field(alias="schema") + __properties: ClassVar[List[str]] = ["schema"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuthModelCreate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuthModelCreate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "schema": obj.get("schema") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/auth_model_out.py b/sdks/python/keynetra_client/models/auth_model_out.py new file mode 100644 index 0000000..744895e --- /dev/null +++ b/sdks/python/keynetra_client/models/auth_model_out.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AuthModelOut(BaseModel): + """ + AuthModelOut + """ # noqa: E501 + id: StrictInt + tenant_id: StrictInt + var_schema: StrictStr = Field(alias="schema") + parsed: Dict[str, Any] + compiled: Dict[str, Any] + __properties: ClassVar[List[str]] = ["id", "tenant_id", "schema", "parsed", "compiled"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuthModelOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuthModelOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "tenant_id": obj.get("tenant_id"), + "schema": obj.get("schema"), + "parsed": obj.get("parsed"), + "compiled": obj.get("compiled") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/batch_access_item.py b/sdks/python/keynetra_client/models/batch_access_item.py new file mode 100644 index 0000000..2892c5a --- /dev/null +++ b/sdks/python/keynetra_client/models/batch_access_item.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class BatchAccessItem(BaseModel): + """ + BatchAccessItem + """ # noqa: E501 + action: StrictStr + resource: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["action", "resource"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BatchAccessItem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BatchAccessItem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action"), + "resource": obj.get("resource") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/batch_access_request.py b/sdks/python/keynetra_client/models/batch_access_request.py new file mode 100644 index 0000000..e62a91d --- /dev/null +++ b/sdks/python/keynetra_client/models/batch_access_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.batch_access_item import BatchAccessItem +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class BatchAccessRequest(BaseModel): + """ + BatchAccessRequest + """ # noqa: E501 + user: Optional[Dict[str, Any]] = None + items: List[BatchAccessItem] + consistency: Optional[StrictStr] = 'eventual' + revision: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["user", "items", "consistency", "revision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BatchAccessRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # set to None if revision (nullable) is None + # and model_fields_set contains the field + if self.revision is None and "revision" in self.model_fields_set: + _dict['revision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BatchAccessRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "items": [BatchAccessItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "consistency": obj.get("consistency") if obj.get("consistency") is not None else 'eventual', + "revision": obj.get("revision") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/batch_access_response.py b/sdks/python/keynetra_client/models/batch_access_response.py new file mode 100644 index 0000000..05e139a --- /dev/null +++ b/sdks/python/keynetra_client/models/batch_access_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.batch_access_result import BatchAccessResult +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class BatchAccessResponse(BaseModel): + """ + BatchAccessResponse + """ # noqa: E501 + results: List[BatchAccessResult] + revision: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["results", "revision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BatchAccessResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + # set to None if revision (nullable) is None + # and model_fields_set contains the field + if self.revision is None and "revision" in self.model_fields_set: + _dict['revision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BatchAccessResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": [BatchAccessResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "revision": obj.get("revision") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/batch_access_result.py b/sdks/python/keynetra_client/models/batch_access_result.py new file mode 100644 index 0000000..e4db158 --- /dev/null +++ b/sdks/python/keynetra_client/models/batch_access_result.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class BatchAccessResult(BaseModel): + """ + BatchAccessResult + """ # noqa: E501 + action: StrictStr + allowed: StrictBool + revision: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["action", "allowed", "revision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BatchAccessResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if revision (nullable) is None + # and model_fields_set contains the field + if self.revision is None and "revision" in self.model_fields_set: + _dict['revision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BatchAccessResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action"), + "allowed": obj.get("allowed"), + "revision": obj.get("revision") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/data_value.py b/sdks/python/keynetra_client/models/data_value.py new file mode 100644 index 0000000..34c72ae --- /dev/null +++ b/sdks/python/keynetra_client/models/data_value.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +DATAVALUE_ANY_OF_SCHEMAS = ["int", "str"] + +class DataValue(BaseModel): + """ + DataValue + """ + + # data type: int + anyof_schema_1_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_2_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[int, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "int", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = DataValue.model_construct() + error_messages = [] + # validate data type: int + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in DataValue with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into int + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into DataValue with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], int, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/sdks/python/keynetra_client/models/http_validation_error.py b/sdks/python/keynetra_client/models/http_validation_error.py new file mode 100644 index 0000000..da62bb5 --- /dev/null +++ b/sdks/python/keynetra_client/models/http_validation_error.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.validation_error import ValidationError +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class HTTPValidationError(BaseModel): + """ + HTTPValidationError + """ # noqa: E501 + detail: Optional[List[ValidationError]] = None + __properties: ClassVar[List[str]] = ["detail"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of HTTPValidationError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in detail (list) + _items = [] + if self.detail: + for _item_detail in self.detail: + if _item_detail: + _items.append(_item_detail.to_dict()) + _dict['detail'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of HTTPValidationError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "detail": [ValidationError.from_dict(_item) for _item in obj["detail"]] if obj.get("detail") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/impact_analysis_request.py b/sdks/python/keynetra_client/models/impact_analysis_request.py new file mode 100644 index 0000000..8100e39 --- /dev/null +++ b/sdks/python/keynetra_client/models/impact_analysis_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ImpactAnalysisRequest(BaseModel): + """ + ImpactAnalysisRequest + """ # noqa: E501 + policy_change: StrictStr + __properties: ClassVar[List[str]] = ["policy_change"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImpactAnalysisRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImpactAnalysisRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy_change": obj.get("policy_change") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/impact_analysis_response.py b/sdks/python/keynetra_client/models/impact_analysis_response.py new file mode 100644 index 0000000..8793f5b --- /dev/null +++ b/sdks/python/keynetra_client/models/impact_analysis_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ImpactAnalysisResponse(BaseModel): + """ + ImpactAnalysisResponse + """ # noqa: E501 + gained_access: Optional[List[StrictInt]] = None + lost_access: Optional[List[StrictInt]] = None + __properties: ClassVar[List[str]] = ["gained_access", "lost_access"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImpactAnalysisResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImpactAnalysisResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "gained_access": obj.get("gained_access"), + "lost_access": obj.get("lost_access") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/location_inner.py b/sdks/python/keynetra_client/models/location_inner.py new file mode 100644 index 0000000..2e11cfb --- /dev/null +++ b/sdks/python/keynetra_client/models/location_inner.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +LOCATIONINNER_ANY_OF_SCHEMAS = ["int", "str"] + +class LocationInner(BaseModel): + """ + LocationInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[int, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "int", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = LocationInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in LocationInner with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into LocationInner with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], int, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/sdks/python/keynetra_client/models/meta_body.py b/sdks/python/keynetra_client/models/meta_body.py new file mode 100644 index 0000000..1588df3 --- /dev/null +++ b/sdks/python/keynetra_client/models/meta_body.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class MetaBody(BaseModel): + """ + MetaBody + """ # noqa: E501 + request_id: Optional[StrictStr] = None + limit: Optional[StrictInt] = None + next_cursor: Optional[StrictStr] = None + extra: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["request_id", "limit", "next_cursor", "extra"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MetaBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if request_id (nullable) is None + # and model_fields_set contains the field + if self.request_id is None and "request_id" in self.model_fields_set: + _dict['request_id'] = None + + # set to None if limit (nullable) is None + # and model_fields_set contains the field + if self.limit is None and "limit" in self.model_fields_set: + _dict['limit'] = None + + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['next_cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MetaBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "request_id": obj.get("request_id"), + "limit": obj.get("limit"), + "next_cursor": obj.get("next_cursor"), + "extra": obj.get("extra") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/permission_create.py b/sdks/python/keynetra_client/models/permission_create.py new file mode 100644 index 0000000..3e1c09d --- /dev/null +++ b/sdks/python/keynetra_client/models/permission_create.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PermissionCreate(BaseModel): + """ + PermissionCreate + """ # noqa: E501 + action: StrictStr + __properties: ClassVar[List[str]] = ["action"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PermissionCreate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PermissionCreate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/permission_out.py b/sdks/python/keynetra_client/models/permission_out.py new file mode 100644 index 0000000..284c2a7 --- /dev/null +++ b/sdks/python/keynetra_client/models/permission_out.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PermissionOut(BaseModel): + """ + PermissionOut + """ # noqa: E501 + id: StrictInt + action: StrictStr + __properties: ClassVar[List[str]] = ["id", "action"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PermissionOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PermissionOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "action": obj.get("action") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/permission_update.py b/sdks/python/keynetra_client/models/permission_update.py new file mode 100644 index 0000000..bc4e23c --- /dev/null +++ b/sdks/python/keynetra_client/models/permission_update.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PermissionUpdate(BaseModel): + """ + PermissionUpdate + """ # noqa: E501 + action: StrictStr + __properties: ClassVar[List[str]] = ["action"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PermissionUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PermissionUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/playground_evaluate_request.py b/sdks/python/keynetra_client/models/playground_evaluate_request.py new file mode 100644 index 0000000..c15a4a2 --- /dev/null +++ b/sdks/python/keynetra_client/models/playground_evaluate_request.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from keynetra_client.models.playground_input import PlaygroundInput +from keynetra_client.models.playground_policy import PlaygroundPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PlaygroundEvaluateRequest(BaseModel): + """ + PlaygroundEvaluateRequest + """ # noqa: E501 + policies: List[PlaygroundPolicy] + input: PlaygroundInput + __properties: ClassVar[List[str]] = ["policies", "input"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlaygroundEvaluateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in policies (list) + _items = [] + if self.policies: + for _item_policies in self.policies: + if _item_policies: + _items.append(_item_policies.to_dict()) + _dict['policies'] = _items + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlaygroundEvaluateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policies": [PlaygroundPolicy.from_dict(_item) for _item in obj["policies"]] if obj.get("policies") is not None else None, + "input": PlaygroundInput.from_dict(obj["input"]) if obj.get("input") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/playground_input.py b/sdks/python/keynetra_client/models/playground_input.py new file mode 100644 index 0000000..5eb9ea7 --- /dev/null +++ b/sdks/python/keynetra_client/models/playground_input.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PlaygroundInput(BaseModel): + """ + PlaygroundInput + """ # noqa: E501 + user: Optional[Dict[str, Any]] = None + resource: Optional[Dict[str, Any]] = None + action: Optional[StrictStr] = '' + context: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["user", "resource", "action", "context"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlaygroundInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlaygroundInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "resource": obj.get("resource"), + "action": obj.get("action") if obj.get("action") is not None else '', + "context": obj.get("context") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/playground_policy.py b/sdks/python/keynetra_client/models/playground_policy.py new file mode 100644 index 0000000..8ec3f8b --- /dev/null +++ b/sdks/python/keynetra_client/models/playground_policy.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PlaygroundPolicy(BaseModel): + """ + PlaygroundPolicy + """ # noqa: E501 + action: StrictStr + effect: Optional[StrictStr] = 'allow' + priority: Optional[StrictInt] = 100 + policy_id: Optional[StrictStr] = None + conditions: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["action", "effect", "priority", "policy_id", "conditions"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlaygroundPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if policy_id (nullable) is None + # and model_fields_set contains the field + if self.policy_id is None and "policy_id" in self.model_fields_set: + _dict['policy_id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlaygroundPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action"), + "effect": obj.get("effect") if obj.get("effect") is not None else 'allow', + "priority": obj.get("priority") if obj.get("priority") is not None else 100, + "policy_id": obj.get("policy_id"), + "conditions": obj.get("conditions") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/policy_create.py b/sdks/python/keynetra_client/models/policy_create.py new file mode 100644 index 0000000..f9977ba --- /dev/null +++ b/sdks/python/keynetra_client/models/policy_create.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PolicyCreate(BaseModel): + """ + PolicyCreate + """ # noqa: E501 + action: StrictStr + effect: Optional[StrictStr] = 'allow' + priority: Optional[StrictInt] = 100 + state: Optional[StrictStr] = 'active' + conditions: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["action", "effect", "priority", "state", "conditions"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyCreate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyCreate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action"), + "effect": obj.get("effect") if obj.get("effect") is not None else 'allow', + "priority": obj.get("priority") if obj.get("priority") is not None else 100, + "state": obj.get("state") if obj.get("state") is not None else 'active', + "conditions": obj.get("conditions") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/policy_out.py b/sdks/python/keynetra_client/models/policy_out.py new file mode 100644 index 0000000..929f271 --- /dev/null +++ b/sdks/python/keynetra_client/models/policy_out.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PolicyOut(BaseModel): + """ + PolicyOut + """ # noqa: E501 + id: StrictInt + action: StrictStr + effect: StrictStr + priority: StrictInt + state: Optional[StrictStr] = 'active' + conditions: Dict[str, Any] + __properties: ClassVar[List[str]] = ["id", "action", "effect", "priority", "state", "conditions"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "action": obj.get("action"), + "effect": obj.get("effect"), + "priority": obj.get("priority"), + "state": obj.get("state") if obj.get("state") is not None else 'active', + "conditions": obj.get("conditions") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/policy_simulation_input.py b/sdks/python/keynetra_client/models/policy_simulation_input.py new file mode 100644 index 0000000..b639b6e --- /dev/null +++ b/sdks/python/keynetra_client/models/policy_simulation_input.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PolicySimulationInput(BaseModel): + """ + PolicySimulationInput + """ # noqa: E501 + policy_change: Optional[StrictStr] = None + relationship_change: Optional[Dict[str, Any]] = None + role_change: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["policy_change", "relationship_change", "role_change"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicySimulationInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if policy_change (nullable) is None + # and model_fields_set contains the field + if self.policy_change is None and "policy_change" in self.model_fields_set: + _dict['policy_change'] = None + + # set to None if relationship_change (nullable) is None + # and model_fields_set contains the field + if self.relationship_change is None and "relationship_change" in self.model_fields_set: + _dict['relationship_change'] = None + + # set to None if role_change (nullable) is None + # and model_fields_set contains the field + if self.role_change is None and "role_change" in self.model_fields_set: + _dict['role_change'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicySimulationInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy_change": obj.get("policy_change"), + "relationship_change": obj.get("relationship_change"), + "role_change": obj.get("role_change") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/policy_simulation_request.py b/sdks/python/keynetra_client/models/policy_simulation_request.py new file mode 100644 index 0000000..e82cc43 --- /dev/null +++ b/sdks/python/keynetra_client/models/policy_simulation_request.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.policy_simulation_input import PolicySimulationInput +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PolicySimulationRequest(BaseModel): + """ + PolicySimulationRequest + """ # noqa: E501 + simulate: Optional[PolicySimulationInput] = None + request: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["simulate", "request"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicySimulationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of simulate + if self.simulate: + _dict['simulate'] = self.simulate.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicySimulationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "simulate": PolicySimulationInput.from_dict(obj["simulate"]) if obj.get("simulate") is not None else None, + "request": obj.get("request") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/policy_simulation_response.py b/sdks/python/keynetra_client/models/policy_simulation_response.py new file mode 100644 index 0000000..2239052 --- /dev/null +++ b/sdks/python/keynetra_client/models/policy_simulation_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PolicySimulationResponse(BaseModel): + """ + PolicySimulationResponse + """ # noqa: E501 + decision_before: Dict[str, Any] + decision_after: Dict[str, Any] + __properties: ClassVar[List[str]] = ["decision_before", "decision_after"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicySimulationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicySimulationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "decision_before": obj.get("decision_before"), + "decision_after": obj.get("decision_after") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/relationship_create.py b/sdks/python/keynetra_client/models/relationship_create.py new file mode 100644 index 0000000..7b63e61 --- /dev/null +++ b/sdks/python/keynetra_client/models/relationship_create.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class RelationshipCreate(BaseModel): + """ + RelationshipCreate + """ # noqa: E501 + subject_type: StrictStr + subject_id: StrictStr + relation: StrictStr + object_type: StrictStr + object_id: StrictStr + __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "relation", "object_type", "object_id"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RelationshipCreate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RelationshipCreate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subject_type": obj.get("subject_type"), + "subject_id": obj.get("subject_id"), + "relation": obj.get("relation"), + "object_type": obj.get("object_type"), + "object_id": obj.get("object_id") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/relationship_out.py b/sdks/python/keynetra_client/models/relationship_out.py new file mode 100644 index 0000000..fe24520 --- /dev/null +++ b/sdks/python/keynetra_client/models/relationship_out.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class RelationshipOut(BaseModel): + """ + RelationshipOut + """ # noqa: E501 + subject_type: StrictStr + subject_id: StrictStr + relation: StrictStr + object_type: StrictStr + object_id: StrictStr + id: StrictInt + __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "relation", "object_type", "object_id", "id"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RelationshipOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RelationshipOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subject_type": obj.get("subject_type"), + "subject_id": obj.get("subject_id"), + "relation": obj.get("relation"), + "object_type": obj.get("object_type"), + "object_id": obj.get("object_id"), + "id": obj.get("id") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/role_create.py b/sdks/python/keynetra_client/models/role_create.py new file mode 100644 index 0000000..1062d37 --- /dev/null +++ b/sdks/python/keynetra_client/models/role_create.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class RoleCreate(BaseModel): + """ + RoleCreate + """ # noqa: E501 + name: StrictStr + __properties: ClassVar[List[str]] = ["name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RoleCreate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RoleCreate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/role_out.py b/sdks/python/keynetra_client/models/role_out.py new file mode 100644 index 0000000..9abaaa1 --- /dev/null +++ b/sdks/python/keynetra_client/models/role_out.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class RoleOut(BaseModel): + """ + RoleOut + """ # noqa: E501 + id: StrictInt + name: StrictStr + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RoleOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RoleOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/role_update.py b/sdks/python/keynetra_client/models/role_update.py new file mode 100644 index 0000000..2ee8740 --- /dev/null +++ b/sdks/python/keynetra_client/models/role_update.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class RoleUpdate(BaseModel): + """ + RoleUpdate + """ # noqa: E501 + name: StrictStr + __properties: ClassVar[List[str]] = ["name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RoleUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RoleUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/simulation_response.py b/sdks/python/keynetra_client/models/simulation_response.py new file mode 100644 index 0000000..00e3925 --- /dev/null +++ b/sdks/python/keynetra_client/models/simulation_response.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SimulationResponse(BaseModel): + """ + SimulationResponse + """ # noqa: E501 + decision: StrictStr + matched_policies: List[StrictStr] + reason: Optional[StrictStr] = None + policy_id: Optional[StrictStr] = None + explain_trace: Optional[List[Dict[str, Any]]] = None + failed_conditions: Optional[List[StrictStr]] = None + revision: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["decision", "matched_policies", "reason", "policy_id", "explain_trace", "failed_conditions", "revision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SimulationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if reason (nullable) is None + # and model_fields_set contains the field + if self.reason is None and "reason" in self.model_fields_set: + _dict['reason'] = None + + # set to None if policy_id (nullable) is None + # and model_fields_set contains the field + if self.policy_id is None and "policy_id" in self.model_fields_set: + _dict['policy_id'] = None + + # set to None if revision (nullable) is None + # and model_fields_set contains the field + if self.revision is None and "revision" in self.model_fields_set: + _dict['revision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SimulationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "decision": obj.get("decision"), + "matched_policies": obj.get("matched_policies"), + "reason": obj.get("reason"), + "policy_id": obj.get("policy_id"), + "explain_trace": obj.get("explain_trace"), + "failed_conditions": obj.get("failed_conditions"), + "revision": obj.get("revision") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_access_decision_response.py b/sdks/python/keynetra_client/models/success_response_access_decision_response.py new file mode 100644 index 0000000..272a2ab --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_access_decision_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.access_decision_response import AccessDecisionResponse +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseAccessDecisionResponse(BaseModel): + """ + SuccessResponseAccessDecisionResponse + """ # noqa: E501 + data: AccessDecisionResponse + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseAccessDecisionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseAccessDecisionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": AccessDecisionResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_acl_out.py b/sdks/python/keynetra_client/models/success_response_acl_out.py new file mode 100644 index 0000000..f62d077 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_acl_out.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.acl_out import ACLOut +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseACLOut(BaseModel): + """ + SuccessResponseACLOut + """ # noqa: E501 + data: ACLOut + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseACLOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseACLOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": ACLOut.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_admin_login_response.py b/sdks/python/keynetra_client/models/success_response_admin_login_response.py new file mode 100644 index 0000000..0b28b92 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_admin_login_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.admin_login_response import AdminLoginResponse +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseAdminLoginResponse(BaseModel): + """ + SuccessResponseAdminLoginResponse + """ # noqa: E501 + data: AdminLoginResponse + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseAdminLoginResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseAdminLoginResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": AdminLoginResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_auth_model_out.py b/sdks/python/keynetra_client/models/success_response_auth_model_out.py new file mode 100644 index 0000000..0be219e --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_auth_model_out.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.auth_model_out import AuthModelOut +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseAuthModelOut(BaseModel): + """ + SuccessResponseAuthModelOut + """ # noqa: E501 + data: AuthModelOut + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseAuthModelOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseAuthModelOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": AuthModelOut.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_batch_access_response.py b/sdks/python/keynetra_client/models/success_response_batch_access_response.py new file mode 100644 index 0000000..87e0be3 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_batch_access_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.batch_access_response import BatchAccessResponse +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseBatchAccessResponse(BaseModel): + """ + SuccessResponseBatchAccessResponse + """ # noqa: E501 + data: BatchAccessResponse + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseBatchAccessResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseBatchAccessResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": BatchAccessResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_any.py b/sdks/python/keynetra_client/models/success_response_dict_str_any.py new file mode 100644 index 0000000..dfad540 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_dict_str_any.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseDictStrAny(BaseModel): + """ + SuccessResponseDictStrAny + """ # noqa: E501 + data: Dict[str, Any] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrAny from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrAny from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": obj.get("data"), + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_int.py b/sdks/python/keynetra_client/models/success_response_dict_str_int.py new file mode 100644 index 0000000..fe17804 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_dict_str_int.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseDictStrInt(BaseModel): + """ + SuccessResponseDictStrInt + """ # noqa: E501 + data: Dict[str, StrictInt] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrInt from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrInt from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": obj.get("data"), + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_object.py b/sdks/python/keynetra_client/models/success_response_dict_str_object.py new file mode 100644 index 0000000..5d7b6bf --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_dict_str_object.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseDictStrObject(BaseModel): + """ + SuccessResponseDictStrObject + """ # noqa: E501 + data: Dict[str, Any] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrObject from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrObject from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": obj.get("data"), + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_str.py b/sdks/python/keynetra_client/models/success_response_dict_str_str.py new file mode 100644 index 0000000..eb110ec --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_dict_str_str.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseDictStrStr(BaseModel): + """ + SuccessResponseDictStrStr + """ # noqa: E501 + data: Dict[str, StrictStr] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": obj.get("data"), + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py b/sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py new file mode 100644 index 0000000..72b2e0d --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.data_value import DataValue +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseDictStrUnionIntStr(BaseModel): + """ + SuccessResponseDictStrUnionIntStr + """ # noqa: E501 + data: Dict[str, DataValue] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrUnionIntStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in data (dict) + _field_dict = {} + if self.data: + for _key_data in self.data: + if self.data[_key_data]: + _field_dict[_key_data] = self.data[_key_data].to_dict() + _dict['data'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseDictStrUnionIntStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": dict( + (_k, DataValue.from_dict(_v)) + for _k, _v in obj["data"].items() + ) + if obj.get("data") is not None + else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_impact_analysis_response.py b/sdks/python/keynetra_client/models/success_response_impact_analysis_response.py new file mode 100644 index 0000000..892dc40 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_impact_analysis_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseImpactAnalysisResponse(BaseModel): + """ + SuccessResponseImpactAnalysisResponse + """ # noqa: E501 + data: ImpactAnalysisResponse + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseImpactAnalysisResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseImpactAnalysisResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": ImpactAnalysisResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_list_acl_out.py b/sdks/python/keynetra_client/models/success_response_list_acl_out.py new file mode 100644 index 0000000..69b8e20 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_list_acl_out.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.acl_out import ACLOut +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseListACLOut(BaseModel): + """ + SuccessResponseListACLOut + """ # noqa: E501 + data: List[ACLOut] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseListACLOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseListACLOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [ACLOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_list_audit_record_out.py b/sdks/python/keynetra_client/models/success_response_list_audit_record_out.py new file mode 100644 index 0000000..0cd7a5a --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_list_audit_record_out.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.audit_record_out import AuditRecordOut +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseListAuditRecordOut(BaseModel): + """ + SuccessResponseListAuditRecordOut + """ # noqa: E501 + data: List[AuditRecordOut] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseListAuditRecordOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseListAuditRecordOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [AuditRecordOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_list_dict_str_str.py b/sdks/python/keynetra_client/models/success_response_list_dict_str_str.py new file mode 100644 index 0000000..6be6d92 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_list_dict_str_str.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseListDictStrStr(BaseModel): + """ + SuccessResponseListDictStrStr + """ # noqa: E501 + data: List[Dict[str, StrictStr]] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseListDictStrStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseListDictStrStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": obj.get("data"), + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_list_permission_out.py b/sdks/python/keynetra_client/models/success_response_list_permission_out.py new file mode 100644 index 0000000..4e23303 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_list_permission_out.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.permission_out import PermissionOut +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseListPermissionOut(BaseModel): + """ + SuccessResponseListPermissionOut + """ # noqa: E501 + data: List[PermissionOut] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseListPermissionOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseListPermissionOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [PermissionOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_list_policy_out.py b/sdks/python/keynetra_client/models/success_response_list_policy_out.py new file mode 100644 index 0000000..58509f3 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_list_policy_out.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.policy_out import PolicyOut +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseListPolicyOut(BaseModel): + """ + SuccessResponseListPolicyOut + """ # noqa: E501 + data: List[PolicyOut] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseListPolicyOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseListPolicyOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [PolicyOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_list_role_out.py b/sdks/python/keynetra_client/models/success_response_list_role_out.py new file mode 100644 index 0000000..e81f417 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_list_role_out.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.role_out import RoleOut +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseListRoleOut(BaseModel): + """ + SuccessResponseListRoleOut + """ # noqa: E501 + data: List[RoleOut] + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseListRoleOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseListRoleOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [RoleOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_permission_out.py b/sdks/python/keynetra_client/models/success_response_permission_out.py new file mode 100644 index 0000000..37db5db --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_permission_out.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.permission_out import PermissionOut +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponsePermissionOut(BaseModel): + """ + SuccessResponsePermissionOut + """ # noqa: E501 + data: PermissionOut + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponsePermissionOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponsePermissionOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": PermissionOut.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_policy_out.py b/sdks/python/keynetra_client/models/success_response_policy_out.py new file mode 100644 index 0000000..2999da6 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_policy_out.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.policy_out import PolicyOut +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponsePolicyOut(BaseModel): + """ + SuccessResponsePolicyOut + """ # noqa: E501 + data: PolicyOut + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponsePolicyOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponsePolicyOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": PolicyOut.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_policy_simulation_response.py b/sdks/python/keynetra_client/models/success_response_policy_simulation_response.py new file mode 100644 index 0000000..abf82bb --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_policy_simulation_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.policy_simulation_response import PolicySimulationResponse +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponsePolicySimulationResponse(BaseModel): + """ + SuccessResponsePolicySimulationResponse + """ # noqa: E501 + data: PolicySimulationResponse + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponsePolicySimulationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponsePolicySimulationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": PolicySimulationResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_relationship_out.py b/sdks/python/keynetra_client/models/success_response_relationship_out.py new file mode 100644 index 0000000..ecb9b51 --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_relationship_out.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.relationship_out import RelationshipOut +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseRelationshipOut(BaseModel): + """ + SuccessResponseRelationshipOut + """ # noqa: E501 + data: RelationshipOut + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseRelationshipOut from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseRelationshipOut from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": RelationshipOut.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/success_response_simulation_response.py b/sdks/python/keynetra_client/models/success_response_simulation_response.py new file mode 100644 index 0000000..922ea1d --- /dev/null +++ b/sdks/python/keynetra_client/models/success_response_simulation_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.meta_body import MetaBody +from keynetra_client.models.simulation_response import SimulationResponse +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class SuccessResponseSimulationResponse(BaseModel): + """ + SuccessResponseSimulationResponse + """ # noqa: E501 + data: SimulationResponse + meta: Optional[MetaBody] = None + error: Optional[Any] = None + __properties: ClassVar[List[str]] = ["data", "meta", "error"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SuccessResponseSimulationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SuccessResponseSimulationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": SimulationResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, + "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/sdks/python/keynetra_client/models/validation_error.py b/sdks/python/keynetra_client/models/validation_error.py new file mode 100644 index 0000000..7acf445 --- /dev/null +++ b/sdks/python/keynetra_client/models/validation_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from keynetra_client.models.location_inner import LocationInner +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ValidationError(BaseModel): + """ + ValidationError + """ # noqa: E501 + loc: List[LocationInner] + msg: StrictStr + type: StrictStr + input: Optional[Any] = None + ctx: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["loc", "msg", "type", "input", "ctx"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ValidationError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in loc (list) + _items = [] + if self.loc: + for _item_loc in self.loc: + if _item_loc: + _items.append(_item_loc.to_dict()) + _dict['loc'] = _items + # set to None if input (nullable) is None + # and model_fields_set contains the field + if self.input is None and "input" in self.model_fields_set: + _dict['input'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ValidationError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "loc": [LocationInner.from_dict(_item) for _item in obj["loc"]] if obj.get("loc") is not None else None, + "msg": obj.get("msg"), + "type": obj.get("type"), + "input": obj.get("input"), + "ctx": obj.get("ctx") + }) + return _obj + + diff --git a/sdks/python/keynetra_client/py.typed b/sdks/python/keynetra_client/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/sdks/python/keynetra_client/rest.py b/sdks/python/keynetra_client/rest.py new file mode 100644 index 0000000..c1db3d1 --- /dev/null +++ b/sdks/python/keynetra_client/rest.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import json +import re +import ssl + +import urllib3 + +from keynetra_client.exceptions import ApiException, ApiValueError + +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} +RESTResponseType = urllib3.HTTPResponse + + +def is_socks_proxy_url(url): + if url is None: + return False + split_section = url.split("://") + if len(split_section) < 2: + return False + else: + return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES + + +class RESTResponse(io.IOBase): + + def __init__(self, resp) -> None: + self.response = resp + self.status = resp.status + self.reason = resp.reason + self.data = None + + def read(self): + if self.data is None: + self.data = self.response.data + return self.data + + @property + def headers(self): + """Returns a dictionary of response headers.""" + return self.response.headers + + def getheaders(self): + """Returns a dictionary of the response headers; use ``headers`` instead.""" + return self.response.headers + + def getheader(self, name, default=None): + """Returns a given response header; use ``headers.get()`` instead.""" + return self.response.headers.get(name, default) + + +class RESTClientObject: + + def __init__(self, configuration) -> None: + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + pool_args = { + "cert_reqs": cert_reqs, + "ca_certs": configuration.ssl_ca_cert, + "cert_file": configuration.cert_file, + "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, + } + if configuration.assert_hostname is not None: + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) + + if configuration.retries is not None: + pool_args['retries'] = configuration.retries + + if configuration.tls_server_name: + pool_args['server_hostname'] = configuration.tls_server_name + + + if configuration.socket_options is not None: + pool_args['socket_options'] = configuration.socket_options + + if configuration.connection_pool_maxsize is not None: + pool_args['maxsize'] = configuration.connection_pool_maxsize + + # https pool manager + self.pool_manager: urllib3.PoolManager + + if configuration.proxy: + if is_socks_proxy_url(configuration.proxy): + from urllib3.contrib.socks import SOCKSProxyManager + pool_args["proxy_url"] = configuration.proxy + pool_args["headers"] = configuration.proxy_headers + self.pool_manager = SOCKSProxyManager(**pool_args) + else: + pool_args["proxy_url"] = configuration.proxy + pool_args["proxy_headers"] = configuration.proxy_headers + self.pool_manager = urllib3.ProxyManager(**pool_args) + else: + self.pool_manager = urllib3.PoolManager(**pool_args) + + def request( + self, + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): + """Perform requests. + + :param method: http request method + :param url: http request url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): + timeout = urllib3.Timeout(total=_request_timeout) + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): + timeout = urllib3.Timeout( + connect=_request_timeout[0], + read=_request_timeout[1] + ) + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + + # no content type provided or payload is json + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, + url, + body=request_body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'application/x-www-form-urlencoded': + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=False, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=True, + timeout=timeout, + headers=headers, + preload_content=False + ) + # Pass a `string` parameter directly in the body to support + # other content types than JSON when `body` argument is + # provided in serialized form. + elif isinstance(body, str) or isinstance(body, bytes): + r = self.pool_manager.request( + method, + url, + body=body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): + request_body = "true" if body else "false" + r = self.pool_manager.request( + method, + url, + body=request_body, + preload_content=False, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request( + method, + url, + fields={}, + timeout=timeout, + headers=headers, + preload_content=False + ) + except urllib3.exceptions.SSLError as e: + msg = "\n".join([type(e).__name__, str(e)]) + raise ApiException(status=0, reason=msg) + + return RESTResponse(r) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml new file mode 100644 index 0000000..9ecbc6e --- /dev/null +++ b/sdks/python/pyproject.toml @@ -0,0 +1,21 @@ +[build-system] +requires = ["setuptools>=68", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "keynetra-client" +version = "0.1.0" +description = "Official Python SDK for the KeyNetra authorization platform." +readme = "README.md" +requires-python = ">=3.11" +license = { text = "Apache-2.0" } +authors = [{ name = "KeyNetra Engineering", email = "business.keynetra@gmail.com" }] +dependencies = ["urllib3>=2"] + +[project.urls] +Homepage = "https://github.com/keynetra/keynetra-sdks" +Repository = "https://github.com/keynetra/keynetra-sdks" +Issues = "https://github.com/keynetra/keynetra-sdks/issues" + +[tool.setuptools.packages.find] +include = ["keynetra_client*"] diff --git a/sdks/python/requirements.txt b/sdks/python/requirements.txt new file mode 100644 index 0000000..9e2d67a --- /dev/null +++ b/sdks/python/requirements.txt @@ -0,0 +1,4 @@ +urllib3 >= 2.1.0, < 3.0.0 +python_dateutil >= 2.8.2 +pydantic >= 2.11 +typing-extensions >= 4.7.1 diff --git a/sdks/python/setup.cfg b/sdks/python/setup.cfg new file mode 100644 index 0000000..11433ee --- /dev/null +++ b/sdks/python/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length=99 diff --git a/sdks/python/setup.py b/sdks/python/setup.py new file mode 100644 index 0000000..d771fe4 --- /dev/null +++ b/sdks/python/setup.py @@ -0,0 +1,47 @@ +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from setuptools import setup, find_packages # noqa: H301 + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools +NAME = "keynetra-client" +VERSION = "0.1.0" +PYTHON_REQUIRES = ">= 3.9" +REQUIRES = [ + "urllib3 >= 2.1.0, < 3.0.0", + "python-dateutil >= 2.8.2", + "pydantic >= 2.11", + "typing-extensions >= 4.7.1", +] + +setup( + name=NAME, + version=VERSION, + description="KeyNetra", + author="OpenAPI Generator community", + author_email="team@openapitools.org", + url="https://github.com/keynetra/keynetra-sdks", + keywords=["OpenAPI", "OpenAPI-Generator", "KeyNetra"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description_content_type='text/markdown', + long_description="""\ + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + """, # noqa: E501 + package_data={"keynetra_client": ["py.typed"]}, +) diff --git a/sdks/python/test-requirements.txt b/sdks/python/test-requirements.txt new file mode 100644 index 0000000..e98555c --- /dev/null +++ b/sdks/python/test-requirements.txt @@ -0,0 +1,6 @@ +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5 diff --git a/sdks/python/test/__init__.py b/sdks/python/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sdks/python/test/test_access_api.py b/sdks/python/test/test_access_api.py new file mode 100644 index 0000000..08cb031 --- /dev/null +++ b/sdks/python/test/test_access_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.api.access_api import AccessApi + + +class TestAccessApi(unittest.TestCase): + """AccessApi unit test stubs""" + + def setUp(self) -> None: + self.api = AccessApi() + + def tearDown(self) -> None: + pass + + def test_check_access_batch_check_access_batch_post(self) -> None: + """Test case for check_access_batch_check_access_batch_post + + Check Access Batch + """ + pass + + def test_check_access_check_access_post(self) -> None: + """Test case for check_access_check_access_post + + Check Access + """ + pass + + def test_simulate_simulate_post(self) -> None: + """Test case for simulate_simulate_post + + Simulate + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_access_decision_response.py b/sdks/python/test/test_access_decision_response.py new file mode 100644 index 0000000..49ee9ab --- /dev/null +++ b/sdks/python/test/test_access_decision_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.access_decision_response import AccessDecisionResponse + +class TestAccessDecisionResponse(unittest.TestCase): + """AccessDecisionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccessDecisionResponse: + """Test AccessDecisionResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AccessDecisionResponse` + """ + model = AccessDecisionResponse() + if include_optional: + return AccessDecisionResponse( + allowed = True, + decision = '', + matched_policies = [ + '' + ], + reason = '', + policy_id = '', + explain_trace = [ + { } + ], + revision = 56 + ) + else: + return AccessDecisionResponse( + allowed = True, + decision = '', + ) + """ + + def testAccessDecisionResponse(self): + """Test AccessDecisionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_access_request.py b/sdks/python/test/test_access_request.py new file mode 100644 index 0000000..8efd47c --- /dev/null +++ b/sdks/python/test/test_access_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.access_request import AccessRequest + +class TestAccessRequest(unittest.TestCase): + """AccessRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccessRequest: + """Test AccessRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AccessRequest` + """ + model = AccessRequest() + if include_optional: + return AccessRequest( + user = { }, + action = '', + resource = { }, + context = { }, + consistency = 'eventual', + revision = 56 + ) + else: + return AccessRequest( + action = '', + ) + """ + + def testAccessRequest(self): + """Test AccessRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_acl_create.py b/sdks/python/test/test_acl_create.py new file mode 100644 index 0000000..4bb60d7 --- /dev/null +++ b/sdks/python/test/test_acl_create.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.acl_create import ACLCreate + +class TestACLCreate(unittest.TestCase): + """ACLCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ACLCreate: + """Test ACLCreate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ACLCreate` + """ + model = ACLCreate() + if include_optional: + return ACLCreate( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '' + ) + else: + return ACLCreate( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + ) + """ + + def testACLCreate(self): + """Test ACLCreate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_acl_out.py b/sdks/python/test/test_acl_out.py new file mode 100644 index 0000000..cc2ec3b --- /dev/null +++ b/sdks/python/test/test_acl_out.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.acl_out import ACLOut + +class TestACLOut(unittest.TestCase): + """ACLOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ACLOut: + """Test ACLOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ACLOut` + """ + model = ACLOut() + if include_optional: + return ACLOut( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + id = 56, + tenant_id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return ACLOut( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + id = 56, + tenant_id = 56, + ) + """ + + def testACLOut(self): + """Test ACLOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_admin_login_request.py b/sdks/python/test/test_admin_login_request.py new file mode 100644 index 0000000..b399821 --- /dev/null +++ b/sdks/python/test/test_admin_login_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.admin_login_request import AdminLoginRequest + +class TestAdminLoginRequest(unittest.TestCase): + """AdminLoginRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminLoginRequest: + """Test AdminLoginRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdminLoginRequest` + """ + model = AdminLoginRequest() + if include_optional: + return AdminLoginRequest( + username = '', + password = '' + ) + else: + return AdminLoginRequest( + username = '', + password = '', + ) + """ + + def testAdminLoginRequest(self): + """Test AdminLoginRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_admin_login_response.py b/sdks/python/test/test_admin_login_response.py new file mode 100644 index 0000000..1dea2ce --- /dev/null +++ b/sdks/python/test/test_admin_login_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.admin_login_response import AdminLoginResponse + +class TestAdminLoginResponse(unittest.TestCase): + """AdminLoginResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminLoginResponse: + """Test AdminLoginResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdminLoginResponse` + """ + model = AdminLoginResponse() + if include_optional: + return AdminLoginResponse( + access_token = '', + token_type = 'bearer', + expires_in = 56, + role = 'admin', + tenant_key = '' + ) + else: + return AdminLoginResponse( + access_token = '', + expires_in = 56, + tenant_key = '', + ) + """ + + def testAdminLoginResponse(self): + """Test AdminLoginResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_audit_record_out.py b/sdks/python/test/test_audit_record_out.py new file mode 100644 index 0000000..586a501 --- /dev/null +++ b/sdks/python/test/test_audit_record_out.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.audit_record_out import AuditRecordOut + +class TestAuditRecordOut(unittest.TestCase): + """AuditRecordOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditRecordOut: + """Test AuditRecordOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AuditRecordOut` + """ + model = AuditRecordOut() + if include_optional: + return AuditRecordOut( + id = 56, + principal_type = '', + principal_id = '', + correlation_id = '', + user = { }, + action = '', + resource = { }, + decision = '', + matched_policies = [ + null + ], + reason = '', + evaluated_rules = [ + null + ], + failed_conditions = [ + null + ], + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return AuditRecordOut( + id = 56, + principal_type = '', + principal_id = '', + user = { }, + action = '', + resource = { }, + decision = '', + matched_policies = [ + null + ], + evaluated_rules = [ + null + ], + failed_conditions = [ + null + ], + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + """ + + def testAuditRecordOut(self): + """Test AuditRecordOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_auth_api.py b/sdks/python/test/test_auth_api.py new file mode 100644 index 0000000..2bf51bb --- /dev/null +++ b/sdks/python/test/test_auth_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.api.auth_api import AuthApi + + +class TestAuthApi(unittest.TestCase): + """AuthApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuthApi() + + def tearDown(self) -> None: + pass + + def test_admin_login_admin_login_post(self) -> None: + """Test case for admin_login_admin_login_post + + Admin Login + """ + pass + + def test_admin_login_admin_login_post_0(self) -> None: + """Test case for admin_login_admin_login_post_0 + + Admin Login + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_auth_model_create.py b/sdks/python/test/test_auth_model_create.py new file mode 100644 index 0000000..b806225 --- /dev/null +++ b/sdks/python/test/test_auth_model_create.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.auth_model_create import AuthModelCreate + +class TestAuthModelCreate(unittest.TestCase): + """AuthModelCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuthModelCreate: + """Test AuthModelCreate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AuthModelCreate` + """ + model = AuthModelCreate() + if include_optional: + return AuthModelCreate( + var_schema = '' + ) + else: + return AuthModelCreate( + var_schema = '', + ) + """ + + def testAuthModelCreate(self): + """Test AuthModelCreate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_auth_model_out.py b/sdks/python/test/test_auth_model_out.py new file mode 100644 index 0000000..36efe0f --- /dev/null +++ b/sdks/python/test/test_auth_model_out.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.auth_model_out import AuthModelOut + +class TestAuthModelOut(unittest.TestCase): + """AuthModelOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuthModelOut: + """Test AuthModelOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AuthModelOut` + """ + model = AuthModelOut() + if include_optional: + return AuthModelOut( + id = 56, + tenant_id = 56, + var_schema = '', + parsed = { }, + compiled = { } + ) + else: + return AuthModelOut( + id = 56, + tenant_id = 56, + var_schema = '', + parsed = { }, + compiled = { }, + ) + """ + + def testAuthModelOut(self): + """Test AuthModelOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_batch_access_item.py b/sdks/python/test/test_batch_access_item.py new file mode 100644 index 0000000..eb471f9 --- /dev/null +++ b/sdks/python/test/test_batch_access_item.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.batch_access_item import BatchAccessItem + +class TestBatchAccessItem(unittest.TestCase): + """BatchAccessItem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BatchAccessItem: + """Test BatchAccessItem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BatchAccessItem` + """ + model = BatchAccessItem() + if include_optional: + return BatchAccessItem( + action = '', + resource = { } + ) + else: + return BatchAccessItem( + action = '', + ) + """ + + def testBatchAccessItem(self): + """Test BatchAccessItem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_batch_access_request.py b/sdks/python/test/test_batch_access_request.py new file mode 100644 index 0000000..c3ea1eb --- /dev/null +++ b/sdks/python/test/test_batch_access_request.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.batch_access_request import BatchAccessRequest + +class TestBatchAccessRequest(unittest.TestCase): + """BatchAccessRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BatchAccessRequest: + """Test BatchAccessRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BatchAccessRequest` + """ + model = BatchAccessRequest() + if include_optional: + return BatchAccessRequest( + user = { }, + items = [ + keynetra_client.models.batch_access_item.BatchAccessItem( + action = '', + resource = { }, ) + ], + consistency = 'eventual', + revision = 56 + ) + else: + return BatchAccessRequest( + items = [ + keynetra_client.models.batch_access_item.BatchAccessItem( + action = '', + resource = { }, ) + ], + ) + """ + + def testBatchAccessRequest(self): + """Test BatchAccessRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_batch_access_response.py b/sdks/python/test/test_batch_access_response.py new file mode 100644 index 0000000..28a3df9 --- /dev/null +++ b/sdks/python/test/test_batch_access_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.batch_access_response import BatchAccessResponse + +class TestBatchAccessResponse(unittest.TestCase): + """BatchAccessResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BatchAccessResponse: + """Test BatchAccessResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BatchAccessResponse` + """ + model = BatchAccessResponse() + if include_optional: + return BatchAccessResponse( + results = [ + keynetra_client.models.batch_access_result.BatchAccessResult( + action = '', + allowed = True, + revision = 56, ) + ], + revision = 56 + ) + else: + return BatchAccessResponse( + results = [ + keynetra_client.models.batch_access_result.BatchAccessResult( + action = '', + allowed = True, + revision = 56, ) + ], + ) + """ + + def testBatchAccessResponse(self): + """Test BatchAccessResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_batch_access_result.py b/sdks/python/test/test_batch_access_result.py new file mode 100644 index 0000000..dfb77fc --- /dev/null +++ b/sdks/python/test/test_batch_access_result.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.batch_access_result import BatchAccessResult + +class TestBatchAccessResult(unittest.TestCase): + """BatchAccessResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BatchAccessResult: + """Test BatchAccessResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BatchAccessResult` + """ + model = BatchAccessResult() + if include_optional: + return BatchAccessResult( + action = '', + allowed = True, + revision = 56 + ) + else: + return BatchAccessResult( + action = '', + allowed = True, + ) + """ + + def testBatchAccessResult(self): + """Test BatchAccessResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_data_value.py b/sdks/python/test/test_data_value.py new file mode 100644 index 0000000..c227add --- /dev/null +++ b/sdks/python/test/test_data_value.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.data_value import DataValue + +class TestDataValue(unittest.TestCase): + """DataValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataValue: + """Test DataValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DataValue` + """ + model = DataValue() + if include_optional: + return DataValue( + ) + else: + return DataValue( + ) + """ + + def testDataValue(self): + """Test DataValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_dev_api.py b/sdks/python/test/test_dev_api.py new file mode 100644 index 0000000..3e3de24 --- /dev/null +++ b/sdks/python/test/test_dev_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.api.dev_api import DevApi + + +class TestDevApi(unittest.TestCase): + """DevApi unit test stubs""" + + def setUp(self) -> None: + self.api = DevApi() + + def tearDown(self) -> None: + pass + + def test_get_sample_data_dev_sample_data_get(self) -> None: + """Test case for get_sample_data_dev_sample_data_get + + Get Sample Data + """ + pass + + def test_seed_sample_data_dev_sample_data_seed_post(self) -> None: + """Test case for seed_sample_data_dev_sample_data_seed_post + + Seed Sample Data + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_health_api.py b/sdks/python/test/test_health_api.py new file mode 100644 index 0000000..3e0ce60 --- /dev/null +++ b/sdks/python/test/test_health_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.api.health_api import HealthApi + + +class TestHealthApi(unittest.TestCase): + """HealthApi unit test stubs""" + + def setUp(self) -> None: + self.api = HealthApi() + + def tearDown(self) -> None: + pass + + def test_health_health_get(self) -> None: + """Test case for health_health_get + + Health + """ + pass + + def test_liveness_health_live_get(self) -> None: + """Test case for liveness_health_live_get + + Liveness + """ + pass + + def test_readiness_health_ready_get(self) -> None: + """Test case for readiness_health_ready_get + + Readiness + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_http_validation_error.py b/sdks/python/test/test_http_validation_error.py new file mode 100644 index 0000000..b827a72 --- /dev/null +++ b/sdks/python/test/test_http_validation_error.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.http_validation_error import HTTPValidationError + +class TestHTTPValidationError(unittest.TestCase): + """HTTPValidationError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HTTPValidationError: + """Test HTTPValidationError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `HTTPValidationError` + """ + model = HTTPValidationError() + if include_optional: + return HTTPValidationError( + detail = [ + keynetra_client.models.validation_error.ValidationError( + loc = [ + null + ], + msg = '', + type = '', + input = null, + ctx = keynetra_client.models.context.Context(), ) + ] + ) + else: + return HTTPValidationError( + ) + """ + + def testHTTPValidationError(self): + """Test HTTPValidationError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_impact_analysis_request.py b/sdks/python/test/test_impact_analysis_request.py new file mode 100644 index 0000000..f4534ea --- /dev/null +++ b/sdks/python/test/test_impact_analysis_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest + +class TestImpactAnalysisRequest(unittest.TestCase): + """ImpactAnalysisRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImpactAnalysisRequest: + """Test ImpactAnalysisRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImpactAnalysisRequest` + """ + model = ImpactAnalysisRequest() + if include_optional: + return ImpactAnalysisRequest( + policy_change = '' + ) + else: + return ImpactAnalysisRequest( + policy_change = '', + ) + """ + + def testImpactAnalysisRequest(self): + """Test ImpactAnalysisRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_impact_analysis_response.py b/sdks/python/test/test_impact_analysis_response.py new file mode 100644 index 0000000..a97f457 --- /dev/null +++ b/sdks/python/test/test_impact_analysis_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse + +class TestImpactAnalysisResponse(unittest.TestCase): + """ImpactAnalysisResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImpactAnalysisResponse: + """Test ImpactAnalysisResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImpactAnalysisResponse` + """ + model = ImpactAnalysisResponse() + if include_optional: + return ImpactAnalysisResponse( + gained_access = [ + 56 + ], + lost_access = [ + 56 + ] + ) + else: + return ImpactAnalysisResponse( + ) + """ + + def testImpactAnalysisResponse(self): + """Test ImpactAnalysisResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_location_inner.py b/sdks/python/test/test_location_inner.py new file mode 100644 index 0000000..4567a8e --- /dev/null +++ b/sdks/python/test/test_location_inner.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.location_inner import LocationInner + +class TestLocationInner(unittest.TestCase): + """LocationInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LocationInner: + """Test LocationInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LocationInner` + """ + model = LocationInner() + if include_optional: + return LocationInner( + ) + else: + return LocationInner( + ) + """ + + def testLocationInner(self): + """Test LocationInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_management_api.py b/sdks/python/test/test_management_api.py new file mode 100644 index 0000000..4dabfd6 --- /dev/null +++ b/sdks/python/test/test_management_api.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.api.management_api import ManagementApi + + +class TestManagementApi(unittest.TestCase): + """ManagementApi unit test stubs""" + + def setUp(self) -> None: + self.api = ManagementApi() + + def tearDown(self) -> None: + pass + + def test_add_permission_to_role_roles_role_id_permissions_permission_id_post(self) -> None: + """Test case for add_permission_to_role_roles_role_id_permissions_permission_id_post + + Add Permission To Role + """ + pass + + def test_create_acl_entry_acl_post(self) -> None: + """Test case for create_acl_entry_acl_post + + Create Acl Entry + """ + pass + + def test_create_auth_model_auth_model_post(self) -> None: + """Test case for create_auth_model_auth_model_post + + Create Auth Model + """ + pass + + def test_create_permission_permissions_post(self) -> None: + """Test case for create_permission_permissions_post + + Create Permission + """ + pass + + def test_create_policy_from_dsl_policies_dsl_post(self) -> None: + """Test case for create_policy_from_dsl_policies_dsl_post + + Create Policy From Dsl + """ + pass + + def test_create_policy_policies_post(self) -> None: + """Test case for create_policy_policies_post + + Create Policy + """ + pass + + def test_create_relationship_relationships_post(self) -> None: + """Test case for create_relationship_relationships_post + + Create Relationship + """ + pass + + def test_create_role_roles_post(self) -> None: + """Test case for create_role_roles_post + + Create Role + """ + pass + + def test_delete_acl_entry_acl_acl_id_delete(self) -> None: + """Test case for delete_acl_entry_acl_acl_id_delete + + Delete Acl Entry + """ + pass + + def test_delete_permission_permissions_permission_id_delete(self) -> None: + """Test case for delete_permission_permissions_permission_id_delete + + Delete Permission + """ + pass + + def test_delete_policy_policies_policy_key_delete(self) -> None: + """Test case for delete_policy_policies_policy_key_delete + + Delete Policy + """ + pass + + def test_delete_role_roles_role_id_delete(self) -> None: + """Test case for delete_role_roles_role_id_delete + + Delete Role + """ + pass + + def test_get_auth_model_auth_model_get(self) -> None: + """Test case for get_auth_model_auth_model_get + + Get Auth Model + """ + pass + + def test_impact_analysis_impact_analysis_post(self) -> None: + """Test case for impact_analysis_impact_analysis_post + + Impact Analysis + """ + pass + + def test_list_acl_entries_acl_resource_type_resource_id_get(self) -> None: + """Test case for list_acl_entries_acl_resource_type_resource_id_get + + List Acl Entries + """ + pass + + def test_list_audit_logs_audit_get(self) -> None: + """Test case for list_audit_logs_audit_get + + List Audit Logs + """ + pass + + def test_list_permission_roles_permissions_permission_id_roles_get(self) -> None: + """Test case for list_permission_roles_permissions_permission_id_roles_get + + List Permission Roles + """ + pass + + def test_list_permissions_permissions_get(self) -> None: + """Test case for list_permissions_permissions_get + + List Permissions + """ + pass + + def test_list_policies_policies_get(self) -> None: + """Test case for list_policies_policies_get + + List Policies + """ + pass + + def test_list_relationships_relationships_get(self) -> None: + """Test case for list_relationships_relationships_get + + List Relationships + """ + pass + + def test_list_role_permissions_roles_role_id_permissions_get(self) -> None: + """Test case for list_role_permissions_roles_role_id_permissions_get + + List Role Permissions + """ + pass + + def test_list_roles_roles_get(self) -> None: + """Test case for list_roles_roles_get + + List Roles + """ + pass + + def test_remove_permission_from_role_roles_role_id_permissions_permission_id_delete(self) -> None: + """Test case for remove_permission_from_role_roles_role_id_permissions_permission_id_delete + + Remove Permission From Role + """ + pass + + def test_rollback_policy_policies_policy_key_rollback_version_post(self) -> None: + """Test case for rollback_policy_policies_policy_key_rollback_version_post + + Rollback Policy + """ + pass + + def test_simulate_policy_simulate_policy_post(self) -> None: + """Test case for simulate_policy_simulate_policy_post + + Simulate Policy + """ + pass + + def test_update_permission_permissions_permission_id_put(self) -> None: + """Test case for update_permission_permissions_permission_id_put + + Update Permission + """ + pass + + def test_update_policy_policies_policy_key_put(self) -> None: + """Test case for update_policy_policies_policy_key_put + + Update Policy + """ + pass + + def test_update_role_roles_role_id_put(self) -> None: + """Test case for update_role_roles_role_id_put + + Update Role + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_meta_body.py b/sdks/python/test/test_meta_body.py new file mode 100644 index 0000000..2015c94 --- /dev/null +++ b/sdks/python/test/test_meta_body.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.meta_body import MetaBody + +class TestMetaBody(unittest.TestCase): + """MetaBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetaBody: + """Test MetaBody + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MetaBody` + """ + model = MetaBody() + if include_optional: + return MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { } + ) + else: + return MetaBody( + ) + """ + + def testMetaBody(self): + """Test MetaBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_permission_create.py b/sdks/python/test/test_permission_create.py new file mode 100644 index 0000000..c25e7d2 --- /dev/null +++ b/sdks/python/test/test_permission_create.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.permission_create import PermissionCreate + +class TestPermissionCreate(unittest.TestCase): + """PermissionCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PermissionCreate: + """Test PermissionCreate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PermissionCreate` + """ + model = PermissionCreate() + if include_optional: + return PermissionCreate( + action = '' + ) + else: + return PermissionCreate( + action = '', + ) + """ + + def testPermissionCreate(self): + """Test PermissionCreate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_permission_out.py b/sdks/python/test/test_permission_out.py new file mode 100644 index 0000000..3b3faec --- /dev/null +++ b/sdks/python/test/test_permission_out.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.permission_out import PermissionOut + +class TestPermissionOut(unittest.TestCase): + """PermissionOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PermissionOut: + """Test PermissionOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PermissionOut` + """ + model = PermissionOut() + if include_optional: + return PermissionOut( + id = 56, + action = '' + ) + else: + return PermissionOut( + id = 56, + action = '', + ) + """ + + def testPermissionOut(self): + """Test PermissionOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_permission_update.py b/sdks/python/test/test_permission_update.py new file mode 100644 index 0000000..ce78dd7 --- /dev/null +++ b/sdks/python/test/test_permission_update.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.permission_update import PermissionUpdate + +class TestPermissionUpdate(unittest.TestCase): + """PermissionUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PermissionUpdate: + """Test PermissionUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PermissionUpdate` + """ + model = PermissionUpdate() + if include_optional: + return PermissionUpdate( + action = '' + ) + else: + return PermissionUpdate( + action = '', + ) + """ + + def testPermissionUpdate(self): + """Test PermissionUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_playground_api.py b/sdks/python/test/test_playground_api.py new file mode 100644 index 0000000..8df5557 --- /dev/null +++ b/sdks/python/test/test_playground_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.api.playground_api import PlaygroundApi + + +class TestPlaygroundApi(unittest.TestCase): + """PlaygroundApi unit test stubs""" + + def setUp(self) -> None: + self.api = PlaygroundApi() + + def tearDown(self) -> None: + pass + + def test_evaluate_playground_evaluate_post(self) -> None: + """Test case for evaluate_playground_evaluate_post + + Evaluate + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_playground_evaluate_request.py b/sdks/python/test/test_playground_evaluate_request.py new file mode 100644 index 0000000..78f3c3b --- /dev/null +++ b/sdks/python/test/test_playground_evaluate_request.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest + +class TestPlaygroundEvaluateRequest(unittest.TestCase): + """PlaygroundEvaluateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlaygroundEvaluateRequest: + """Test PlaygroundEvaluateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PlaygroundEvaluateRequest` + """ + model = PlaygroundEvaluateRequest() + if include_optional: + return PlaygroundEvaluateRequest( + policies = [ + keynetra_client.models.playground_policy.PlaygroundPolicy( + action = '', + effect = 'allow', + priority = 56, + policy_id = '', + conditions = { }, ) + ], + input = keynetra_client.models.playground_input.PlaygroundInput( + user = { }, + resource = { }, + action = '', + context = { }, ) + ) + else: + return PlaygroundEvaluateRequest( + policies = [ + keynetra_client.models.playground_policy.PlaygroundPolicy( + action = '', + effect = 'allow', + priority = 56, + policy_id = '', + conditions = { }, ) + ], + input = keynetra_client.models.playground_input.PlaygroundInput( + user = { }, + resource = { }, + action = '', + context = { }, ), + ) + """ + + def testPlaygroundEvaluateRequest(self): + """Test PlaygroundEvaluateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_playground_input.py b/sdks/python/test/test_playground_input.py new file mode 100644 index 0000000..5b35648 --- /dev/null +++ b/sdks/python/test/test_playground_input.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.playground_input import PlaygroundInput + +class TestPlaygroundInput(unittest.TestCase): + """PlaygroundInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlaygroundInput: + """Test PlaygroundInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PlaygroundInput` + """ + model = PlaygroundInput() + if include_optional: + return PlaygroundInput( + user = { }, + resource = { }, + action = '', + context = { } + ) + else: + return PlaygroundInput( + ) + """ + + def testPlaygroundInput(self): + """Test PlaygroundInput""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_playground_policy.py b/sdks/python/test/test_playground_policy.py new file mode 100644 index 0000000..e3926bd --- /dev/null +++ b/sdks/python/test/test_playground_policy.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.playground_policy import PlaygroundPolicy + +class TestPlaygroundPolicy(unittest.TestCase): + """PlaygroundPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlaygroundPolicy: + """Test PlaygroundPolicy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PlaygroundPolicy` + """ + model = PlaygroundPolicy() + if include_optional: + return PlaygroundPolicy( + action = '', + effect = 'allow', + priority = 56, + policy_id = '', + conditions = { } + ) + else: + return PlaygroundPolicy( + action = '', + ) + """ + + def testPlaygroundPolicy(self): + """Test PlaygroundPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_policy_create.py b/sdks/python/test/test_policy_create.py new file mode 100644 index 0000000..c8da5d4 --- /dev/null +++ b/sdks/python/test/test_policy_create.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.policy_create import PolicyCreate + +class TestPolicyCreate(unittest.TestCase): + """PolicyCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyCreate: + """Test PolicyCreate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PolicyCreate` + """ + model = PolicyCreate() + if include_optional: + return PolicyCreate( + action = '', + effect = 'allow', + priority = 56, + state = 'active', + conditions = { } + ) + else: + return PolicyCreate( + action = '', + ) + """ + + def testPolicyCreate(self): + """Test PolicyCreate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_policy_out.py b/sdks/python/test/test_policy_out.py new file mode 100644 index 0000000..b21f468 --- /dev/null +++ b/sdks/python/test/test_policy_out.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.policy_out import PolicyOut + +class TestPolicyOut(unittest.TestCase): + """PolicyOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyOut: + """Test PolicyOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PolicyOut` + """ + model = PolicyOut() + if include_optional: + return PolicyOut( + id = 56, + action = '', + effect = '', + priority = 56, + state = 'active', + conditions = { } + ) + else: + return PolicyOut( + id = 56, + action = '', + effect = '', + priority = 56, + conditions = { }, + ) + """ + + def testPolicyOut(self): + """Test PolicyOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_policy_simulation_input.py b/sdks/python/test/test_policy_simulation_input.py new file mode 100644 index 0000000..1f4c003 --- /dev/null +++ b/sdks/python/test/test_policy_simulation_input.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.policy_simulation_input import PolicySimulationInput + +class TestPolicySimulationInput(unittest.TestCase): + """PolicySimulationInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicySimulationInput: + """Test PolicySimulationInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PolicySimulationInput` + """ + model = PolicySimulationInput() + if include_optional: + return PolicySimulationInput( + policy_change = '', + relationship_change = { }, + role_change = { } + ) + else: + return PolicySimulationInput( + ) + """ + + def testPolicySimulationInput(self): + """Test PolicySimulationInput""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_policy_simulation_request.py b/sdks/python/test/test_policy_simulation_request.py new file mode 100644 index 0000000..20b2844 --- /dev/null +++ b/sdks/python/test/test_policy_simulation_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.policy_simulation_request import PolicySimulationRequest + +class TestPolicySimulationRequest(unittest.TestCase): + """PolicySimulationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicySimulationRequest: + """Test PolicySimulationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PolicySimulationRequest` + """ + model = PolicySimulationRequest() + if include_optional: + return PolicySimulationRequest( + simulate = keynetra_client.models.policy_simulation_input.PolicySimulationInput( + policy_change = '', + relationship_change = { }, + role_change = { }, ), + request = { } + ) + else: + return PolicySimulationRequest( + ) + """ + + def testPolicySimulationRequest(self): + """Test PolicySimulationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_policy_simulation_response.py b/sdks/python/test/test_policy_simulation_response.py new file mode 100644 index 0000000..c1a53c8 --- /dev/null +++ b/sdks/python/test/test_policy_simulation_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.policy_simulation_response import PolicySimulationResponse + +class TestPolicySimulationResponse(unittest.TestCase): + """PolicySimulationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicySimulationResponse: + """Test PolicySimulationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PolicySimulationResponse` + """ + model = PolicySimulationResponse() + if include_optional: + return PolicySimulationResponse( + decision_before = { }, + decision_after = { } + ) + else: + return PolicySimulationResponse( + decision_before = { }, + decision_after = { }, + ) + """ + + def testPolicySimulationResponse(self): + """Test PolicySimulationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_relationship_create.py b/sdks/python/test/test_relationship_create.py new file mode 100644 index 0000000..e8f4b7d --- /dev/null +++ b/sdks/python/test/test_relationship_create.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.relationship_create import RelationshipCreate + +class TestRelationshipCreate(unittest.TestCase): + """RelationshipCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RelationshipCreate: + """Test RelationshipCreate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RelationshipCreate` + """ + model = RelationshipCreate() + if include_optional: + return RelationshipCreate( + subject_type = '', + subject_id = '', + relation = '', + object_type = '', + object_id = '' + ) + else: + return RelationshipCreate( + subject_type = '', + subject_id = '', + relation = '', + object_type = '', + object_id = '', + ) + """ + + def testRelationshipCreate(self): + """Test RelationshipCreate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_relationship_out.py b/sdks/python/test/test_relationship_out.py new file mode 100644 index 0000000..1111c50 --- /dev/null +++ b/sdks/python/test/test_relationship_out.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.relationship_out import RelationshipOut + +class TestRelationshipOut(unittest.TestCase): + """RelationshipOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RelationshipOut: + """Test RelationshipOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RelationshipOut` + """ + model = RelationshipOut() + if include_optional: + return RelationshipOut( + subject_type = '', + subject_id = '', + relation = '', + object_type = '', + object_id = '', + id = 56 + ) + else: + return RelationshipOut( + subject_type = '', + subject_id = '', + relation = '', + object_type = '', + object_id = '', + id = 56, + ) + """ + + def testRelationshipOut(self): + """Test RelationshipOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_role_create.py b/sdks/python/test/test_role_create.py new file mode 100644 index 0000000..987e9d0 --- /dev/null +++ b/sdks/python/test/test_role_create.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.role_create import RoleCreate + +class TestRoleCreate(unittest.TestCase): + """RoleCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RoleCreate: + """Test RoleCreate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RoleCreate` + """ + model = RoleCreate() + if include_optional: + return RoleCreate( + name = '' + ) + else: + return RoleCreate( + name = '', + ) + """ + + def testRoleCreate(self): + """Test RoleCreate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_role_out.py b/sdks/python/test/test_role_out.py new file mode 100644 index 0000000..0b226db --- /dev/null +++ b/sdks/python/test/test_role_out.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.role_out import RoleOut + +class TestRoleOut(unittest.TestCase): + """RoleOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RoleOut: + """Test RoleOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RoleOut` + """ + model = RoleOut() + if include_optional: + return RoleOut( + id = 56, + name = '' + ) + else: + return RoleOut( + id = 56, + name = '', + ) + """ + + def testRoleOut(self): + """Test RoleOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_role_update.py b/sdks/python/test/test_role_update.py new file mode 100644 index 0000000..71e7551 --- /dev/null +++ b/sdks/python/test/test_role_update.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.role_update import RoleUpdate + +class TestRoleUpdate(unittest.TestCase): + """RoleUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RoleUpdate: + """Test RoleUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RoleUpdate` + """ + model = RoleUpdate() + if include_optional: + return RoleUpdate( + name = '' + ) + else: + return RoleUpdate( + name = '', + ) + """ + + def testRoleUpdate(self): + """Test RoleUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_simulation_response.py b/sdks/python/test/test_simulation_response.py new file mode 100644 index 0000000..cbf8968 --- /dev/null +++ b/sdks/python/test/test_simulation_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.simulation_response import SimulationResponse + +class TestSimulationResponse(unittest.TestCase): + """SimulationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SimulationResponse: + """Test SimulationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SimulationResponse` + """ + model = SimulationResponse() + if include_optional: + return SimulationResponse( + decision = '', + matched_policies = [ + '' + ], + reason = '', + policy_id = '', + explain_trace = [ + { } + ], + failed_conditions = [ + '' + ], + revision = 56 + ) + else: + return SimulationResponse( + decision = '', + matched_policies = [ + '' + ], + ) + """ + + def testSimulationResponse(self): + """Test SimulationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_access_decision_response.py b/sdks/python/test/test_success_response_access_decision_response.py new file mode 100644 index 0000000..8150dd1 --- /dev/null +++ b/sdks/python/test/test_success_response_access_decision_response.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse + +class TestSuccessResponseAccessDecisionResponse(unittest.TestCase): + """SuccessResponseAccessDecisionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseAccessDecisionResponse: + """Test SuccessResponseAccessDecisionResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseAccessDecisionResponse` + """ + model = SuccessResponseAccessDecisionResponse() + if include_optional: + return SuccessResponseAccessDecisionResponse( + data = keynetra_client.models.access_decision_response.AccessDecisionResponse( + allowed = True, + decision = '', + matched_policies = [ + '' + ], + reason = '', + policy_id = '', + explain_trace = [ + { } + ], + revision = 56, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseAccessDecisionResponse( + data = keynetra_client.models.access_decision_response.AccessDecisionResponse( + allowed = True, + decision = '', + matched_policies = [ + '' + ], + reason = '', + policy_id = '', + explain_trace = [ + { } + ], + revision = 56, ), + ) + """ + + def testSuccessResponseAccessDecisionResponse(self): + """Test SuccessResponseAccessDecisionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_acl_out.py b/sdks/python/test/test_success_response_acl_out.py new file mode 100644 index 0000000..6fd1b87 --- /dev/null +++ b/sdks/python/test/test_success_response_acl_out.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut + +class TestSuccessResponseACLOut(unittest.TestCase): + """SuccessResponseACLOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseACLOut: + """Test SuccessResponseACLOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseACLOut` + """ + model = SuccessResponseACLOut() + if include_optional: + return SuccessResponseACLOut( + data = keynetra_client.models.acl_out.ACLOut( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + id = 56, + tenant_id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseACLOut( + data = keynetra_client.models.acl_out.ACLOut( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + id = 56, + tenant_id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + ) + """ + + def testSuccessResponseACLOut(self): + """Test SuccessResponseACLOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_admin_login_response.py b/sdks/python/test/test_success_response_admin_login_response.py new file mode 100644 index 0000000..9a9f695 --- /dev/null +++ b/sdks/python/test/test_success_response_admin_login_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse + +class TestSuccessResponseAdminLoginResponse(unittest.TestCase): + """SuccessResponseAdminLoginResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseAdminLoginResponse: + """Test SuccessResponseAdminLoginResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseAdminLoginResponse` + """ + model = SuccessResponseAdminLoginResponse() + if include_optional: + return SuccessResponseAdminLoginResponse( + data = keynetra_client.models.admin_login_response.AdminLoginResponse( + access_token = '', + token_type = 'bearer', + expires_in = 56, + role = 'admin', + tenant_key = '', ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseAdminLoginResponse( + data = keynetra_client.models.admin_login_response.AdminLoginResponse( + access_token = '', + token_type = 'bearer', + expires_in = 56, + role = 'admin', + tenant_key = '', ), + ) + """ + + def testSuccessResponseAdminLoginResponse(self): + """Test SuccessResponseAdminLoginResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_auth_model_out.py b/sdks/python/test/test_success_response_auth_model_out.py new file mode 100644 index 0000000..527bfb8 --- /dev/null +++ b/sdks/python/test/test_success_response_auth_model_out.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut + +class TestSuccessResponseAuthModelOut(unittest.TestCase): + """SuccessResponseAuthModelOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseAuthModelOut: + """Test SuccessResponseAuthModelOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseAuthModelOut` + """ + model = SuccessResponseAuthModelOut() + if include_optional: + return SuccessResponseAuthModelOut( + data = keynetra_client.models.auth_model_out.AuthModelOut( + id = 56, + tenant_id = 56, + schema = '', + parsed = { }, + compiled = { }, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseAuthModelOut( + data = keynetra_client.models.auth_model_out.AuthModelOut( + id = 56, + tenant_id = 56, + schema = '', + parsed = { }, + compiled = { }, ), + ) + """ + + def testSuccessResponseAuthModelOut(self): + """Test SuccessResponseAuthModelOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_batch_access_response.py b/sdks/python/test/test_success_response_batch_access_response.py new file mode 100644 index 0000000..99ab9e7 --- /dev/null +++ b/sdks/python/test/test_success_response_batch_access_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse + +class TestSuccessResponseBatchAccessResponse(unittest.TestCase): + """SuccessResponseBatchAccessResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseBatchAccessResponse: + """Test SuccessResponseBatchAccessResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseBatchAccessResponse` + """ + model = SuccessResponseBatchAccessResponse() + if include_optional: + return SuccessResponseBatchAccessResponse( + data = keynetra_client.models.batch_access_response.BatchAccessResponse( + results = [ + keynetra_client.models.batch_access_result.BatchAccessResult( + action = '', + allowed = True, + revision = 56, ) + ], + revision = 56, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseBatchAccessResponse( + data = keynetra_client.models.batch_access_response.BatchAccessResponse( + results = [ + keynetra_client.models.batch_access_result.BatchAccessResult( + action = '', + allowed = True, + revision = 56, ) + ], + revision = 56, ), + ) + """ + + def testSuccessResponseBatchAccessResponse(self): + """Test SuccessResponseBatchAccessResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_any.py b/sdks/python/test/test_success_response_dict_str_any.py new file mode 100644 index 0000000..78249f4 --- /dev/null +++ b/sdks/python/test/test_success_response_dict_str_any.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny + +class TestSuccessResponseDictStrAny(unittest.TestCase): + """SuccessResponseDictStrAny unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseDictStrAny: + """Test SuccessResponseDictStrAny + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseDictStrAny` + """ + model = SuccessResponseDictStrAny() + if include_optional: + return SuccessResponseDictStrAny( + data = { }, + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseDictStrAny( + data = { }, + ) + """ + + def testSuccessResponseDictStrAny(self): + """Test SuccessResponseDictStrAny""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_int.py b/sdks/python/test/test_success_response_dict_str_int.py new file mode 100644 index 0000000..8aaa279 --- /dev/null +++ b/sdks/python/test/test_success_response_dict_str_int.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt + +class TestSuccessResponseDictStrInt(unittest.TestCase): + """SuccessResponseDictStrInt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseDictStrInt: + """Test SuccessResponseDictStrInt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseDictStrInt` + """ + model = SuccessResponseDictStrInt() + if include_optional: + return SuccessResponseDictStrInt( + data = { + 'key' : 56 + }, + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseDictStrInt( + data = { + 'key' : 56 + }, + ) + """ + + def testSuccessResponseDictStrInt(self): + """Test SuccessResponseDictStrInt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_object.py b/sdks/python/test/test_success_response_dict_str_object.py new file mode 100644 index 0000000..f99f78d --- /dev/null +++ b/sdks/python/test/test_success_response_dict_str_object.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject + +class TestSuccessResponseDictStrObject(unittest.TestCase): + """SuccessResponseDictStrObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseDictStrObject: + """Test SuccessResponseDictStrObject + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseDictStrObject` + """ + model = SuccessResponseDictStrObject() + if include_optional: + return SuccessResponseDictStrObject( + data = { }, + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseDictStrObject( + data = { }, + ) + """ + + def testSuccessResponseDictStrObject(self): + """Test SuccessResponseDictStrObject""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_str.py b/sdks/python/test/test_success_response_dict_str_str.py new file mode 100644 index 0000000..fda7bf4 --- /dev/null +++ b/sdks/python/test/test_success_response_dict_str_str.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr + +class TestSuccessResponseDictStrStr(unittest.TestCase): + """SuccessResponseDictStrStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseDictStrStr: + """Test SuccessResponseDictStrStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseDictStrStr` + """ + model = SuccessResponseDictStrStr() + if include_optional: + return SuccessResponseDictStrStr( + data = { + 'key' : '' + }, + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseDictStrStr( + data = { + 'key' : '' + }, + ) + """ + + def testSuccessResponseDictStrStr(self): + """Test SuccessResponseDictStrStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_union_int_str.py b/sdks/python/test/test_success_response_dict_str_union_int_str.py new file mode 100644 index 0000000..78ee68c --- /dev/null +++ b/sdks/python/test/test_success_response_dict_str_union_int_str.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr + +class TestSuccessResponseDictStrUnionIntStr(unittest.TestCase): + """SuccessResponseDictStrUnionIntStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseDictStrUnionIntStr: + """Test SuccessResponseDictStrUnionIntStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseDictStrUnionIntStr` + """ + model = SuccessResponseDictStrUnionIntStr() + if include_optional: + return SuccessResponseDictStrUnionIntStr( + data = { + 'key' : null + }, + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseDictStrUnionIntStr( + data = { + 'key' : null + }, + ) + """ + + def testSuccessResponseDictStrUnionIntStr(self): + """Test SuccessResponseDictStrUnionIntStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_impact_analysis_response.py b/sdks/python/test/test_success_response_impact_analysis_response.py new file mode 100644 index 0000000..5e5e67d --- /dev/null +++ b/sdks/python/test/test_success_response_impact_analysis_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse + +class TestSuccessResponseImpactAnalysisResponse(unittest.TestCase): + """SuccessResponseImpactAnalysisResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseImpactAnalysisResponse: + """Test SuccessResponseImpactAnalysisResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseImpactAnalysisResponse` + """ + model = SuccessResponseImpactAnalysisResponse() + if include_optional: + return SuccessResponseImpactAnalysisResponse( + data = keynetra_client.models.impact_analysis_response.ImpactAnalysisResponse( + gained_access = [ + 56 + ], + lost_access = [ + 56 + ], ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseImpactAnalysisResponse( + data = keynetra_client.models.impact_analysis_response.ImpactAnalysisResponse( + gained_access = [ + 56 + ], + lost_access = [ + 56 + ], ), + ) + """ + + def testSuccessResponseImpactAnalysisResponse(self): + """Test SuccessResponseImpactAnalysisResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_list_acl_out.py b/sdks/python/test/test_success_response_list_acl_out.py new file mode 100644 index 0000000..0d5e49e --- /dev/null +++ b/sdks/python/test/test_success_response_list_acl_out.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut + +class TestSuccessResponseListACLOut(unittest.TestCase): + """SuccessResponseListACLOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseListACLOut: + """Test SuccessResponseListACLOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseListACLOut` + """ + model = SuccessResponseListACLOut() + if include_optional: + return SuccessResponseListACLOut( + data = [ + keynetra_client.models.acl_out.ACLOut( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + id = 56, + tenant_id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseListACLOut( + data = [ + keynetra_client.models.acl_out.ACLOut( + subject_type = '', + subject_id = '', + resource_type = '', + resource_id = '', + action = '', + effect = '', + id = 56, + tenant_id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + ) + """ + + def testSuccessResponseListACLOut(self): + """Test SuccessResponseListACLOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_list_audit_record_out.py b/sdks/python/test/test_success_response_list_audit_record_out.py new file mode 100644 index 0000000..6f33bd5 --- /dev/null +++ b/sdks/python/test/test_success_response_list_audit_record_out.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut + +class TestSuccessResponseListAuditRecordOut(unittest.TestCase): + """SuccessResponseListAuditRecordOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseListAuditRecordOut: + """Test SuccessResponseListAuditRecordOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseListAuditRecordOut` + """ + model = SuccessResponseListAuditRecordOut() + if include_optional: + return SuccessResponseListAuditRecordOut( + data = [ + keynetra_client.models.audit_record_out.AuditRecordOut( + id = 56, + principal_type = '', + principal_id = '', + correlation_id = '', + user = { }, + action = '', + resource = { }, + decision = '', + matched_policies = [ + null + ], + reason = '', + evaluated_rules = [ + null + ], + failed_conditions = [ + null + ], + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseListAuditRecordOut( + data = [ + keynetra_client.models.audit_record_out.AuditRecordOut( + id = 56, + principal_type = '', + principal_id = '', + correlation_id = '', + user = { }, + action = '', + resource = { }, + decision = '', + matched_policies = [ + null + ], + reason = '', + evaluated_rules = [ + null + ], + failed_conditions = [ + null + ], + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + ) + """ + + def testSuccessResponseListAuditRecordOut(self): + """Test SuccessResponseListAuditRecordOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_list_dict_str_str.py b/sdks/python/test/test_success_response_list_dict_str_str.py new file mode 100644 index 0000000..f401e54 --- /dev/null +++ b/sdks/python/test/test_success_response_list_dict_str_str.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr + +class TestSuccessResponseListDictStrStr(unittest.TestCase): + """SuccessResponseListDictStrStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseListDictStrStr: + """Test SuccessResponseListDictStrStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseListDictStrStr` + """ + model = SuccessResponseListDictStrStr() + if include_optional: + return SuccessResponseListDictStrStr( + data = [ + { + 'key' : '' + } + ], + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseListDictStrStr( + data = [ + { + 'key' : '' + } + ], + ) + """ + + def testSuccessResponseListDictStrStr(self): + """Test SuccessResponseListDictStrStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_list_permission_out.py b/sdks/python/test/test_success_response_list_permission_out.py new file mode 100644 index 0000000..29ae7ec --- /dev/null +++ b/sdks/python/test/test_success_response_list_permission_out.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut + +class TestSuccessResponseListPermissionOut(unittest.TestCase): + """SuccessResponseListPermissionOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseListPermissionOut: + """Test SuccessResponseListPermissionOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseListPermissionOut` + """ + model = SuccessResponseListPermissionOut() + if include_optional: + return SuccessResponseListPermissionOut( + data = [ + keynetra_client.models.permission_out.PermissionOut( + id = 56, + action = '', ) + ], + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseListPermissionOut( + data = [ + keynetra_client.models.permission_out.PermissionOut( + id = 56, + action = '', ) + ], + ) + """ + + def testSuccessResponseListPermissionOut(self): + """Test SuccessResponseListPermissionOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_list_policy_out.py b/sdks/python/test/test_success_response_list_policy_out.py new file mode 100644 index 0000000..ed43b00 --- /dev/null +++ b/sdks/python/test/test_success_response_list_policy_out.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut + +class TestSuccessResponseListPolicyOut(unittest.TestCase): + """SuccessResponseListPolicyOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseListPolicyOut: + """Test SuccessResponseListPolicyOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseListPolicyOut` + """ + model = SuccessResponseListPolicyOut() + if include_optional: + return SuccessResponseListPolicyOut( + data = [ + keynetra_client.models.policy_out.PolicyOut( + id = 56, + action = '', + effect = '', + priority = 56, + state = 'active', + conditions = { }, ) + ], + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseListPolicyOut( + data = [ + keynetra_client.models.policy_out.PolicyOut( + id = 56, + action = '', + effect = '', + priority = 56, + state = 'active', + conditions = { }, ) + ], + ) + """ + + def testSuccessResponseListPolicyOut(self): + """Test SuccessResponseListPolicyOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_list_role_out.py b/sdks/python/test/test_success_response_list_role_out.py new file mode 100644 index 0000000..14f4ca2 --- /dev/null +++ b/sdks/python/test/test_success_response_list_role_out.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut + +class TestSuccessResponseListRoleOut(unittest.TestCase): + """SuccessResponseListRoleOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseListRoleOut: + """Test SuccessResponseListRoleOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseListRoleOut` + """ + model = SuccessResponseListRoleOut() + if include_optional: + return SuccessResponseListRoleOut( + data = [ + keynetra_client.models.role_out.RoleOut( + id = 56, + name = '', ) + ], + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseListRoleOut( + data = [ + keynetra_client.models.role_out.RoleOut( + id = 56, + name = '', ) + ], + ) + """ + + def testSuccessResponseListRoleOut(self): + """Test SuccessResponseListRoleOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_permission_out.py b/sdks/python/test/test_success_response_permission_out.py new file mode 100644 index 0000000..14110d3 --- /dev/null +++ b/sdks/python/test/test_success_response_permission_out.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut + +class TestSuccessResponsePermissionOut(unittest.TestCase): + """SuccessResponsePermissionOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponsePermissionOut: + """Test SuccessResponsePermissionOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponsePermissionOut` + """ + model = SuccessResponsePermissionOut() + if include_optional: + return SuccessResponsePermissionOut( + data = keynetra_client.models.permission_out.PermissionOut( + id = 56, + action = '', ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponsePermissionOut( + data = keynetra_client.models.permission_out.PermissionOut( + id = 56, + action = '', ), + ) + """ + + def testSuccessResponsePermissionOut(self): + """Test SuccessResponsePermissionOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_policy_out.py b/sdks/python/test/test_success_response_policy_out.py new file mode 100644 index 0000000..2e02358 --- /dev/null +++ b/sdks/python/test/test_success_response_policy_out.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut + +class TestSuccessResponsePolicyOut(unittest.TestCase): + """SuccessResponsePolicyOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponsePolicyOut: + """Test SuccessResponsePolicyOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponsePolicyOut` + """ + model = SuccessResponsePolicyOut() + if include_optional: + return SuccessResponsePolicyOut( + data = keynetra_client.models.policy_out.PolicyOut( + id = 56, + action = '', + effect = '', + priority = 56, + state = 'active', + conditions = { }, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponsePolicyOut( + data = keynetra_client.models.policy_out.PolicyOut( + id = 56, + action = '', + effect = '', + priority = 56, + state = 'active', + conditions = { }, ), + ) + """ + + def testSuccessResponsePolicyOut(self): + """Test SuccessResponsePolicyOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_policy_simulation_response.py b/sdks/python/test/test_success_response_policy_simulation_response.py new file mode 100644 index 0000000..2e53b36 --- /dev/null +++ b/sdks/python/test/test_success_response_policy_simulation_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse + +class TestSuccessResponsePolicySimulationResponse(unittest.TestCase): + """SuccessResponsePolicySimulationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponsePolicySimulationResponse: + """Test SuccessResponsePolicySimulationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponsePolicySimulationResponse` + """ + model = SuccessResponsePolicySimulationResponse() + if include_optional: + return SuccessResponsePolicySimulationResponse( + data = keynetra_client.models.policy_simulation_response.PolicySimulationResponse( + decision_before = { }, + decision_after = { }, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponsePolicySimulationResponse( + data = keynetra_client.models.policy_simulation_response.PolicySimulationResponse( + decision_before = { }, + decision_after = { }, ), + ) + """ + + def testSuccessResponsePolicySimulationResponse(self): + """Test SuccessResponsePolicySimulationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_relationship_out.py b/sdks/python/test/test_success_response_relationship_out.py new file mode 100644 index 0000000..fc84dfe --- /dev/null +++ b/sdks/python/test/test_success_response_relationship_out.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut + +class TestSuccessResponseRelationshipOut(unittest.TestCase): + """SuccessResponseRelationshipOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseRelationshipOut: + """Test SuccessResponseRelationshipOut + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseRelationshipOut` + """ + model = SuccessResponseRelationshipOut() + if include_optional: + return SuccessResponseRelationshipOut( + data = keynetra_client.models.relationship_out.RelationshipOut( + subject_type = '', + subject_id = '', + relation = '', + object_type = '', + object_id = '', + id = 56, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseRelationshipOut( + data = keynetra_client.models.relationship_out.RelationshipOut( + subject_type = '', + subject_id = '', + relation = '', + object_type = '', + object_id = '', + id = 56, ), + ) + """ + + def testSuccessResponseRelationshipOut(self): + """Test SuccessResponseRelationshipOut""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_success_response_simulation_response.py b/sdks/python/test/test_success_response_simulation_response.py new file mode 100644 index 0000000..ca5d4ed --- /dev/null +++ b/sdks/python/test/test_success_response_simulation_response.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse + +class TestSuccessResponseSimulationResponse(unittest.TestCase): + """SuccessResponseSimulationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SuccessResponseSimulationResponse: + """Test SuccessResponseSimulationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SuccessResponseSimulationResponse` + """ + model = SuccessResponseSimulationResponse() + if include_optional: + return SuccessResponseSimulationResponse( + data = keynetra_client.models.simulation_response.SimulationResponse( + decision = '', + matched_policies = [ + '' + ], + reason = '', + policy_id = '', + explain_trace = [ + { } + ], + failed_conditions = [ + '' + ], + revision = 56, ), + meta = keynetra_client.models.meta_body.MetaBody( + request_id = '', + limit = 56, + next_cursor = '', + extra = { }, ), + error = None + ) + else: + return SuccessResponseSimulationResponse( + data = keynetra_client.models.simulation_response.SimulationResponse( + decision = '', + matched_policies = [ + '' + ], + reason = '', + policy_id = '', + explain_trace = [ + { } + ], + failed_conditions = [ + '' + ], + revision = 56, ), + ) + """ + + def testSuccessResponseSimulationResponse(self): + """Test SuccessResponseSimulationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/test/test_validation_error.py b/sdks/python/test/test_validation_error.py new file mode 100644 index 0000000..f5c62e0 --- /dev/null +++ b/sdks/python/test/test_validation_error.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + KeyNetra + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from keynetra_client.models.validation_error import ValidationError + +class TestValidationError(unittest.TestCase): + """ValidationError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ValidationError: + """Test ValidationError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ValidationError` + """ + model = ValidationError() + if include_optional: + return ValidationError( + loc = [ + null + ], + msg = '', + type = '', + input = None, + ctx = keynetra_client.models.context.Context() + ) + else: + return ValidationError( + loc = [ + null + ], + msg = '', + type = '', + ) + """ + + def testValidationError(self): + """Test ValidationError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini new file mode 100644 index 0000000..a3a103e --- /dev/null +++ b/sdks/python/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + pytest --cov=keynetra_client diff --git a/sdks/ruby/.gitignore b/sdks/ruby/.gitignore new file mode 100644 index 0000000..05a17cb --- /dev/null +++ b/sdks/ruby/.gitignore @@ -0,0 +1,39 @@ +# Generated by: https://openapi-generator.tech +# + +*.gem +*.rbc +/.config +/coverage/ +/InstalledFiles +/pkg/ +/spec/reports/ +/spec/examples.txt +/test/tmp/ +/test/version_tmp/ +/tmp/ + +## Specific to RubyMotion: +.dat* +.repl_history +build/ + +## Documentation cache and generated files: +/.yardoc/ +/_yardoc/ +/doc/ +/rdoc/ + +## Environment normalization: +/.bundle/ +/vendor/bundle +/lib/bundler/man/ + +# for a library or gem, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# Gemfile.lock +# .ruby-version +# .ruby-gemset + +# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: +.rvmrc diff --git a/sdks/ruby/.gitlab-ci.yml b/sdks/ruby/.gitlab-ci.yml new file mode 100644 index 0000000..3a253c4 --- /dev/null +++ b/sdks/ruby/.gitlab-ci.yml @@ -0,0 +1,26 @@ +.ruby: &ruby + variables: + LANG: "C.UTF-8" + before_script: + - ruby -v + - bundle config set --local deployment true + - bundle install -j $(nproc) + parallel: + matrix: + - RUBY_VERSION: ['2.7', '3.0', '3.1'] + image: "ruby:$RUBY_VERSION" + cache: + paths: + - vendor/ruby + key: 'ruby-$RUBY_VERSION' + +gem: + extends: .ruby + script: + - bundle exec rspec + - bundle exec rake build + - bundle exec rake install + artifacts: + paths: + - pkg/*.gem + diff --git a/sdks/ruby/.rspec b/sdks/ruby/.rspec new file mode 100644 index 0000000..83e16f8 --- /dev/null +++ b/sdks/ruby/.rspec @@ -0,0 +1,2 @@ +--color +--require spec_helper diff --git a/sdks/ruby/.rubocop.yml b/sdks/ruby/.rubocop.yml new file mode 100644 index 0000000..d32b2b1 --- /dev/null +++ b/sdks/ruby/.rubocop.yml @@ -0,0 +1,148 @@ +# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) +# Automatically generated by OpenAPI Generator (https://openapi-generator.tech) +AllCops: + TargetRubyVersion: 2.4 + # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop + # to ignore them, so only the ones explicitly set in this file are enabled. + DisabledByDefault: true + Exclude: + - '**/templates/**/*' + - '**/vendor/**/*' + - 'actionpack/lib/action_dispatch/journey/parser.rb' + +# Prefer &&/|| over and/or. +Style/AndOr: + Enabled: true + +# Align `when` with `case`. +Layout/CaseIndentation: + Enabled: true + +# Align comments with method definitions. +Layout/CommentIndentation: + Enabled: true + +Layout/ElseAlignment: + Enabled: true + +Layout/EmptyLineAfterMagicComment: + Enabled: true + +# In a regular class definition, no empty lines around the body. +Layout/EmptyLinesAroundClassBody: + Enabled: true + +# In a regular method definition, no empty lines around the body. +Layout/EmptyLinesAroundMethodBody: + Enabled: true + +# In a regular module definition, no empty lines around the body. +Layout/EmptyLinesAroundModuleBody: + Enabled: true + +Layout/FirstArgumentIndentation: + Enabled: true + +# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. +Style/HashSyntax: + Enabled: false + +# Method definitions after `private` or `protected` isolated calls need one +# extra level of indentation. +Layout/IndentationConsistency: + Enabled: true + EnforcedStyle: indented_internal_methods + +# Two spaces, no tabs (for indentation). +Layout/IndentationWidth: + Enabled: true + +Layout/LeadingCommentSpace: + Enabled: true + +Layout/SpaceAfterColon: + Enabled: true + +Layout/SpaceAfterComma: + Enabled: true + +Layout/SpaceAroundEqualsInParameterDefault: + Enabled: true + +Layout/SpaceAroundKeyword: + Enabled: true + +Layout/SpaceAroundOperators: + Enabled: true + +Layout/SpaceBeforeComma: + Enabled: true + +Layout/SpaceBeforeFirstArg: + Enabled: true + +Style/DefWithParentheses: + Enabled: true + +# Defining a method with parameters needs parentheses. +Style/MethodDefParentheses: + Enabled: true + +Style/FrozenStringLiteralComment: + Enabled: false + EnforcedStyle: always + +# Use `foo {}` not `foo{}`. +Layout/SpaceBeforeBlockBraces: + Enabled: true + +# Use `foo { bar }` not `foo {bar}`. +Layout/SpaceInsideBlockBraces: + Enabled: true + +# Use `{ a: 1 }` not `{a:1}`. +Layout/SpaceInsideHashLiteralBraces: + Enabled: true + +Layout/SpaceInsideParens: + Enabled: true + +# Check quotes usage according to lint rule below. +#Style/StringLiterals: +# Enabled: true +# EnforcedStyle: single_quotes + +# Detect hard tabs, no hard tabs. +Layout/IndentationStyle: + Enabled: true + +# Blank lines should not have any spaces. +Layout/TrailingEmptyLines: + Enabled: true + +# No trailing whitespace. +Layout/TrailingWhitespace: + Enabled: false + +# Use quotes for string literals when they are enough. +Style/RedundantPercentQ: + Enabled: true + +# Align `end` with the matching keyword or starting expression except for +# assignments, where it should be aligned with the LHS. +Layout/EndAlignment: + Enabled: true + EnforcedStyleAlignWith: variable + AutoCorrect: true + +# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. +Lint/RequireParentheses: + Enabled: true + +Style/RedundantReturn: + Enabled: true + AllowMultipleReturnValues: true + +Style/Semicolon: + Enabled: true + AllowAsExpressionSeparator: true diff --git a/sdks/ruby/.travis.yml b/sdks/ruby/.travis.yml new file mode 100644 index 0000000..bc0c48f --- /dev/null +++ b/sdks/ruby/.travis.yml @@ -0,0 +1,11 @@ +language: ruby +cache: bundler +rvm: + - 2.7 + - 3.0 + - 3.1 +script: + - bundle install --path vendor/bundle + - bundle exec rspec + - gem build keynetra-client.gemspec + - gem install ./keynetra-client-0.1.0.gem diff --git a/sdks/ruby/Gemfile b/sdks/ruby/Gemfile new file mode 100644 index 0000000..c2e3127 --- /dev/null +++ b/sdks/ruby/Gemfile @@ -0,0 +1,9 @@ +source 'https://rubygems.org' + +gemspec + +group :development, :test do + gem 'rake', '~> 13.0.1' + gem 'pry-byebug' + gem 'rubocop', '~> 0.66.0' +end diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md new file mode 100644 index 0000000..0586d10 --- /dev/null +++ b/sdks/ruby/README.md @@ -0,0 +1,48 @@ +# keynetra-client + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official Ruby SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Ruby applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +gem install keynetra-client +``` + +## ๐Ÿš€ Quick Start + +```ruby +require 'keynetra-client' + +client = KeyNetra::KeyNetraClient.new( + "http://localhost:8080", + "YOUR_API_KEY" +) + +# Perform an access check +decision = client.access_api.check_access(...) +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/ruby/Rakefile b/sdks/ruby/Rakefile new file mode 100644 index 0000000..c72ca30 --- /dev/null +++ b/sdks/ruby/Rakefile @@ -0,0 +1,10 @@ +require "bundler/gem_tasks" + +begin + require 'rspec/core/rake_task' + + RSpec::Core::RakeTask.new(:spec) + task default: :spec +rescue LoadError + # no rspec available +end diff --git a/sdks/ruby/docs/ACLCreate.md b/sdks/ruby/docs/ACLCreate.md new file mode 100644 index 0000000..3522958 --- /dev/null +++ b/sdks/ruby/docs/ACLCreate.md @@ -0,0 +1,28 @@ +# KeyNetra::ACLCreate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **subject_type** | **String** | | | +| **subject_id** | **String** | | | +| **resource_type** | **String** | | | +| **resource_id** | **String** | | | +| **action** | **String** | | | +| **effect** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::ACLCreate.new( + subject_type: null, + subject_id: null, + resource_type: null, + resource_id: null, + action: null, + effect: null +) +``` + diff --git a/sdks/ruby/docs/ACLOut.md b/sdks/ruby/docs/ACLOut.md new file mode 100644 index 0000000..b65e9bd --- /dev/null +++ b/sdks/ruby/docs/ACLOut.md @@ -0,0 +1,34 @@ +# KeyNetra::ACLOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **subject_type** | **String** | | | +| **subject_id** | **String** | | | +| **resource_type** | **String** | | | +| **resource_id** | **String** | | | +| **action** | **String** | | | +| **effect** | **String** | | | +| **id** | **Integer** | | | +| **tenant_id** | **Integer** | | | +| **created_at** | **Time** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::ACLOut.new( + subject_type: null, + subject_id: null, + resource_type: null, + resource_id: null, + action: null, + effect: null, + id: null, + tenant_id: null, + created_at: null +) +``` + diff --git a/sdks/ruby/docs/AccessApi.md b/sdks/ruby/docs/AccessApi.md new file mode 100644 index 0000000..232393c --- /dev/null +++ b/sdks/ruby/docs/AccessApi.md @@ -0,0 +1,234 @@ +# KeyNetra::AccessApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**check_access_batch_check_access_batch_post**](AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch | +| [**check_access_check_access_post**](AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access | +| [**simulate_simulate_post**](AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate | + + +## check_access_batch_check_access_batch_post + +> check_access_batch_check_access_batch_post(batch_access_request, opts) + +Check Access Batch + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::AccessApi.new +batch_access_request = KeyNetra::BatchAccessRequest.new({items: [KeyNetra::BatchAccessItem.new({action: 'action_example'})]}) # BatchAccessRequest | +opts = { + policy_set: 'policy_set_example' # String | +} + +begin + # Check Access Batch + result = api_instance.check_access_batch_check_access_batch_post(batch_access_request, opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling AccessApi->check_access_batch_check_access_batch_post: #{e}" +end +``` + +#### Using the check_access_batch_check_access_batch_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> check_access_batch_check_access_batch_post_with_http_info(batch_access_request, opts) + +```ruby +begin + # Check Access Batch + data, status_code, headers = api_instance.check_access_batch_check_access_batch_post_with_http_info(batch_access_request, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling AccessApi->check_access_batch_check_access_batch_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **batch_access_request** | [**BatchAccessRequest**](BatchAccessRequest.md) | | | +| **policy_set** | **String** | | [optional][default to 'active'] | + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## check_access_check_access_post + +> check_access_check_access_post(access_request, opts) + +Check Access + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::AccessApi.new +access_request = KeyNetra::AccessRequest.new({action: 'action_example'}) # AccessRequest | +opts = { + policy_set: 'policy_set_example' # String | +} + +begin + # Check Access + result = api_instance.check_access_check_access_post(access_request, opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling AccessApi->check_access_check_access_post: #{e}" +end +``` + +#### Using the check_access_check_access_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> check_access_check_access_post_with_http_info(access_request, opts) + +```ruby +begin + # Check Access + data, status_code, headers = api_instance.check_access_check_access_post_with_http_info(access_request, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling AccessApi->check_access_check_access_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **access_request** | [**AccessRequest**](AccessRequest.md) | | | +| **policy_set** | **String** | | [optional][default to 'active'] | + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## simulate_simulate_post + +> simulate_simulate_post(access_request) + +Simulate + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::AccessApi.new +access_request = KeyNetra::AccessRequest.new({action: 'action_example'}) # AccessRequest | + +begin + # Simulate + result = api_instance.simulate_simulate_post(access_request) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling AccessApi->simulate_simulate_post: #{e}" +end +``` + +#### Using the simulate_simulate_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> simulate_simulate_post_with_http_info(access_request) + +```ruby +begin + # Simulate + data, status_code, headers = api_instance.simulate_simulate_post_with_http_info(access_request) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling AccessApi->simulate_simulate_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **access_request** | [**AccessRequest**](AccessRequest.md) | | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/sdks/ruby/docs/AccessDecisionResponse.md b/sdks/ruby/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..fdf6e64 --- /dev/null +++ b/sdks/ruby/docs/AccessDecisionResponse.md @@ -0,0 +1,30 @@ +# KeyNetra::AccessDecisionResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **allowed** | **Boolean** | | | +| **decision** | **String** | | | +| **matched_policies** | **Array<String>** | | [optional] | +| **reason** | **String** | | [optional] | +| **policy_id** | **String** | | [optional] | +| **explain_trace** | **Array<Hash<String, Object>>** | | [optional] | +| **revision** | **Integer** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AccessDecisionResponse.new( + allowed: null, + decision: null, + matched_policies: null, + reason: null, + policy_id: null, + explain_trace: null, + revision: null +) +``` + diff --git a/sdks/ruby/docs/AccessRequest.md b/sdks/ruby/docs/AccessRequest.md new file mode 100644 index 0000000..1446490 --- /dev/null +++ b/sdks/ruby/docs/AccessRequest.md @@ -0,0 +1,28 @@ +# KeyNetra::AccessRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **user** | **Hash<String, Object>** | | [optional] | +| **action** | **String** | | | +| **resource** | **Hash<String, Object>** | | [optional] | +| **context** | **Hash<String, Object>** | | [optional] | +| **consistency** | **String** | | [optional][default to 'eventual'] | +| **revision** | **Integer** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AccessRequest.new( + user: null, + action: null, + resource: null, + context: null, + consistency: null, + revision: null +) +``` + diff --git a/sdks/ruby/docs/AdminLoginRequest.md b/sdks/ruby/docs/AdminLoginRequest.md new file mode 100644 index 0000000..e419487 --- /dev/null +++ b/sdks/ruby/docs/AdminLoginRequest.md @@ -0,0 +1,20 @@ +# KeyNetra::AdminLoginRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **username** | **String** | | | +| **password** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AdminLoginRequest.new( + username: null, + password: null +) +``` + diff --git a/sdks/ruby/docs/AdminLoginResponse.md b/sdks/ruby/docs/AdminLoginResponse.md new file mode 100644 index 0000000..069e3f1 --- /dev/null +++ b/sdks/ruby/docs/AdminLoginResponse.md @@ -0,0 +1,26 @@ +# KeyNetra::AdminLoginResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **access_token** | **String** | | | +| **token_type** | **String** | | [optional][default to 'bearer'] | +| **expires_in** | **Integer** | | | +| **role** | **String** | | [optional][default to 'admin'] | +| **tenant_key** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AdminLoginResponse.new( + access_token: null, + token_type: null, + expires_in: null, + role: null, + tenant_key: null +) +``` + diff --git a/sdks/ruby/docs/AuditRecordOut.md b/sdks/ruby/docs/AuditRecordOut.md new file mode 100644 index 0000000..5c97928 --- /dev/null +++ b/sdks/ruby/docs/AuditRecordOut.md @@ -0,0 +1,42 @@ +# KeyNetra::AuditRecordOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **Integer** | | | +| **principal_type** | **String** | | | +| **principal_id** | **String** | | | +| **correlation_id** | **String** | | [optional] | +| **user** | **Hash<String, Object>** | | | +| **action** | **String** | | | +| **resource** | **Hash<String, Object>** | | | +| **decision** | **String** | | | +| **matched_policies** | **Array<Object>** | | | +| **reason** | **String** | | [optional] | +| **evaluated_rules** | **Array<Object>** | | | +| **failed_conditions** | **Array<Object>** | | | +| **created_at** | **Time** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AuditRecordOut.new( + id: null, + principal_type: null, + principal_id: null, + correlation_id: null, + user: null, + action: null, + resource: null, + decision: null, + matched_policies: null, + reason: null, + evaluated_rules: null, + failed_conditions: null, + created_at: null +) +``` + diff --git a/sdks/ruby/docs/AuthApi.md b/sdks/ruby/docs/AuthApi.md new file mode 100644 index 0000000..e15d66c --- /dev/null +++ b/sdks/ruby/docs/AuthApi.md @@ -0,0 +1,133 @@ +# KeyNetra::AuthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**admin_login_admin_login_post**](AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login | +| [**admin_login_admin_login_post_0**](AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login | + + +## admin_login_admin_login_post + +> admin_login_admin_login_post(admin_login_request) + +Admin Login + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::AuthApi.new +admin_login_request = KeyNetra::AdminLoginRequest.new({username: 'username_example', password: 'password_example'}) # AdminLoginRequest | + +begin + # Admin Login + result = api_instance.admin_login_admin_login_post(admin_login_request) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling AuthApi->admin_login_admin_login_post: #{e}" +end +``` + +#### Using the admin_login_admin_login_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> admin_login_admin_login_post_with_http_info(admin_login_request) + +```ruby +begin + # Admin Login + data, status_code, headers = api_instance.admin_login_admin_login_post_with_http_info(admin_login_request) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling AuthApi->admin_login_admin_login_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## admin_login_admin_login_post_0 + +> admin_login_admin_login_post_0(admin_login_request) + +Admin Login + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::AuthApi.new +admin_login_request = KeyNetra::AdminLoginRequest.new({username: 'username_example', password: 'password_example'}) # AdminLoginRequest | + +begin + # Admin Login + result = api_instance.admin_login_admin_login_post_0(admin_login_request) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling AuthApi->admin_login_admin_login_post_0: #{e}" +end +``` + +#### Using the admin_login_admin_login_post_0_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> admin_login_admin_login_post_0_with_http_info(admin_login_request) + +```ruby +begin + # Admin Login + data, status_code, headers = api_instance.admin_login_admin_login_post_0_with_http_info(admin_login_request) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling AuthApi->admin_login_admin_login_post_0_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/sdks/ruby/docs/AuthModelCreate.md b/sdks/ruby/docs/AuthModelCreate.md new file mode 100644 index 0000000..c367641 --- /dev/null +++ b/sdks/ruby/docs/AuthModelCreate.md @@ -0,0 +1,18 @@ +# KeyNetra::AuthModelCreate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **schema** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AuthModelCreate.new( + schema: null +) +``` + diff --git a/sdks/ruby/docs/AuthModelOut.md b/sdks/ruby/docs/AuthModelOut.md new file mode 100644 index 0000000..681478f --- /dev/null +++ b/sdks/ruby/docs/AuthModelOut.md @@ -0,0 +1,26 @@ +# KeyNetra::AuthModelOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **Integer** | | | +| **tenant_id** | **Integer** | | | +| **schema** | **String** | | | +| **parsed** | **Hash<String, Object>** | | | +| **compiled** | **Hash<String, Object>** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::AuthModelOut.new( + id: null, + tenant_id: null, + schema: null, + parsed: null, + compiled: null +) +``` + diff --git a/sdks/ruby/docs/BatchAccessItem.md b/sdks/ruby/docs/BatchAccessItem.md new file mode 100644 index 0000000..d267b6e --- /dev/null +++ b/sdks/ruby/docs/BatchAccessItem.md @@ -0,0 +1,20 @@ +# KeyNetra::BatchAccessItem + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | **String** | | | +| **resource** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::BatchAccessItem.new( + action: null, + resource: null +) +``` + diff --git a/sdks/ruby/docs/BatchAccessRequest.md b/sdks/ruby/docs/BatchAccessRequest.md new file mode 100644 index 0000000..b75c429 --- /dev/null +++ b/sdks/ruby/docs/BatchAccessRequest.md @@ -0,0 +1,24 @@ +# KeyNetra::BatchAccessRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **user** | **Hash<String, Object>** | | [optional] | +| **items** | [**Array<BatchAccessItem>**](BatchAccessItem.md) | | | +| **consistency** | **String** | | [optional][default to 'eventual'] | +| **revision** | **Integer** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::BatchAccessRequest.new( + user: null, + items: null, + consistency: null, + revision: null +) +``` + diff --git a/sdks/ruby/docs/BatchAccessResponse.md b/sdks/ruby/docs/BatchAccessResponse.md new file mode 100644 index 0000000..0b92c94 --- /dev/null +++ b/sdks/ruby/docs/BatchAccessResponse.md @@ -0,0 +1,20 @@ +# KeyNetra::BatchAccessResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **results** | [**Array<BatchAccessResult>**](BatchAccessResult.md) | | | +| **revision** | **Integer** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::BatchAccessResponse.new( + results: null, + revision: null +) +``` + diff --git a/sdks/ruby/docs/BatchAccessResult.md b/sdks/ruby/docs/BatchAccessResult.md new file mode 100644 index 0000000..bdad92e --- /dev/null +++ b/sdks/ruby/docs/BatchAccessResult.md @@ -0,0 +1,22 @@ +# KeyNetra::BatchAccessResult + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | **String** | | | +| **allowed** | **Boolean** | | | +| **revision** | **Integer** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::BatchAccessResult.new( + action: null, + allowed: null, + revision: null +) +``` + diff --git a/sdks/ruby/docs/DataValue.md b/sdks/ruby/docs/DataValue.md new file mode 100644 index 0000000..8db738c --- /dev/null +++ b/sdks/ruby/docs/DataValue.md @@ -0,0 +1,15 @@ +# KeyNetra::DataValue + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::DataValue.new() +``` + diff --git a/sdks/ruby/docs/DevApi.md b/sdks/ruby/docs/DevApi.md new file mode 100644 index 0000000..b2fa6a5 --- /dev/null +++ b/sdks/ruby/docs/DevApi.md @@ -0,0 +1,132 @@ +# KeyNetra::DevApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**get_sample_data_dev_sample_data_get**](DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data | +| [**seed_sample_data_dev_sample_data_seed_post**](DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data | + + +## get_sample_data_dev_sample_data_get + +> get_sample_data_dev_sample_data_get + +Get Sample Data + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::DevApi.new + +begin + # Get Sample Data + result = api_instance.get_sample_data_dev_sample_data_get + p result +rescue KeyNetra::ApiError => e + puts "Error when calling DevApi->get_sample_data_dev_sample_data_get: #{e}" +end +``` + +#### Using the get_sample_data_dev_sample_data_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_sample_data_dev_sample_data_get_with_http_info + +```ruby +begin + # Get Sample Data + data, status_code, headers = api_instance.get_sample_data_dev_sample_data_get_with_http_info + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling DevApi->get_sample_data_dev_sample_data_get_with_http_info: #{e}" +end +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## seed_sample_data_dev_sample_data_seed_post + +> seed_sample_data_dev_sample_data_seed_post(opts) + +Seed Sample Data + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::DevApi.new +opts = { + reset: true # Boolean | Clear the sample dataset before reseeding it. +} + +begin + # Seed Sample Data + result = api_instance.seed_sample_data_dev_sample_data_seed_post(opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling DevApi->seed_sample_data_dev_sample_data_seed_post: #{e}" +end +``` + +#### Using the seed_sample_data_dev_sample_data_seed_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> seed_sample_data_dev_sample_data_seed_post_with_http_info(opts) + +```ruby +begin + # Seed Sample Data + data, status_code, headers = api_instance.seed_sample_data_dev_sample_data_seed_post_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling DevApi->seed_sample_data_dev_sample_data_seed_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **reset** | **Boolean** | Clear the sample dataset before reseeding it. | [optional][default to false] | + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/sdks/ruby/docs/HTTPValidationError.md b/sdks/ruby/docs/HTTPValidationError.md new file mode 100644 index 0000000..baecb8f --- /dev/null +++ b/sdks/ruby/docs/HTTPValidationError.md @@ -0,0 +1,18 @@ +# KeyNetra::HTTPValidationError + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **detail** | [**Array<ValidationError>**](ValidationError.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::HTTPValidationError.new( + detail: null +) +``` + diff --git a/sdks/ruby/docs/HealthApi.md b/sdks/ruby/docs/HealthApi.md new file mode 100644 index 0000000..6fc98a1 --- /dev/null +++ b/sdks/ruby/docs/HealthApi.md @@ -0,0 +1,187 @@ +# KeyNetra::HealthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**health_health_get**](HealthApi.md#health_health_get) | **GET** /health | Health | +| [**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness | +| [**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness | + + +## health_health_get + +> health_health_get + +Health + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::HealthApi.new + +begin + # Health + result = api_instance.health_health_get + p result +rescue KeyNetra::ApiError => e + puts "Error when calling HealthApi->health_health_get: #{e}" +end +``` + +#### Using the health_health_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> health_health_get_with_http_info + +```ruby +begin + # Health + data, status_code, headers = api_instance.health_health_get_with_http_info + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling HealthApi->health_health_get_with_http_info: #{e}" +end +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## liveness_health_live_get + +> liveness_health_live_get + +Liveness + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::HealthApi.new + +begin + # Liveness + result = api_instance.liveness_health_live_get + p result +rescue KeyNetra::ApiError => e + puts "Error when calling HealthApi->liveness_health_live_get: #{e}" +end +``` + +#### Using the liveness_health_live_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> liveness_health_live_get_with_http_info + +```ruby +begin + # Liveness + data, status_code, headers = api_instance.liveness_health_live_get_with_http_info + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling HealthApi->liveness_health_live_get_with_http_info: #{e}" +end +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## readiness_health_ready_get + +> readiness_health_ready_get + +Readiness + +### Examples + +```ruby +require 'time' +require 'keynetra-client' + +api_instance = KeyNetra::HealthApi.new + +begin + # Readiness + result = api_instance.readiness_health_ready_get + p result +rescue KeyNetra::ApiError => e + puts "Error when calling HealthApi->readiness_health_ready_get: #{e}" +end +``` + +#### Using the readiness_health_ready_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> readiness_health_ready_get_with_http_info + +```ruby +begin + # Readiness + data, status_code, headers = api_instance.readiness_health_ready_get_with_http_info + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling HealthApi->readiness_health_ready_get_with_http_info: #{e}" +end +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/sdks/ruby/docs/ImpactAnalysisRequest.md b/sdks/ruby/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..e6f1f5d --- /dev/null +++ b/sdks/ruby/docs/ImpactAnalysisRequest.md @@ -0,0 +1,18 @@ +# KeyNetra::ImpactAnalysisRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_change** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::ImpactAnalysisRequest.new( + policy_change: null +) +``` + diff --git a/sdks/ruby/docs/ImpactAnalysisResponse.md b/sdks/ruby/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..d2fa0e2 --- /dev/null +++ b/sdks/ruby/docs/ImpactAnalysisResponse.md @@ -0,0 +1,20 @@ +# KeyNetra::ImpactAnalysisResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **gained_access** | **Array<Integer>** | | [optional] | +| **lost_access** | **Array<Integer>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::ImpactAnalysisResponse.new( + gained_access: null, + lost_access: null +) +``` + diff --git a/sdks/ruby/docs/LocationInner.md b/sdks/ruby/docs/LocationInner.md new file mode 100644 index 0000000..7fe9deb --- /dev/null +++ b/sdks/ruby/docs/LocationInner.md @@ -0,0 +1,15 @@ +# KeyNetra::LocationInner + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::LocationInner.new() +``` + diff --git a/sdks/ruby/docs/ManagementApi.md b/sdks/ruby/docs/ManagementApi.md new file mode 100644 index 0000000..11128de --- /dev/null +++ b/sdks/ruby/docs/ManagementApi.md @@ -0,0 +1,2096 @@ +# KeyNetra::ManagementApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**add_permission_to_role_roles_role_id_permissions_permission_id_post**](ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| [**create_acl_entry_acl_post**](ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry | +| [**create_auth_model_auth_model_post**](ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model | +| [**create_permission_permissions_post**](ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission | +| [**create_policy_from_dsl_policies_dsl_post**](ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl | +| [**create_policy_policies_post**](ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy | +| [**create_relationship_relationships_post**](ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship | +| [**create_role_roles_post**](ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role | +| [**delete_acl_entry_acl_acl_id_delete**](ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| [**delete_permission_permissions_permission_id_delete**](ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| [**delete_policy_policies_policy_key_delete**](ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy | +| [**delete_role_roles_role_id_delete**](ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role | +| [**get_auth_model_auth_model_get**](ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model | +| [**impact_analysis_impact_analysis_post**](ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis | +| [**list_acl_entries_acl_resource_type_resource_id_get**](ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| [**list_audit_logs_audit_get**](ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs | +| [**list_permission_roles_permissions_permission_id_roles_get**](ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| [**list_permissions_permissions_get**](ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions | +| [**list_policies_policies_get**](ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies | +| [**list_relationships_relationships_get**](ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships | +| [**list_role_permissions_roles_role_id_permissions_get**](ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| [**list_roles_roles_get**](ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles | +| [**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| [**rollback_policy_policies_policy_key_rollback_version_post**](ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| [**simulate_policy_simulate_policy_post**](ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy | +| [**update_permission_permissions_permission_id_put**](ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission | +| [**update_policy_policies_policy_key_put**](ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy | +| [**update_role_roles_role_id_put**](ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role | + + +## add_permission_to_role_roles_role_id_permissions_permission_id_post + +> add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) + +Add Permission To Role + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +role_id = 56 # Integer | +permission_id = 56 # Integer | + +begin + # Add Permission To Role + result = api_instance.add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post: #{e}" +end +``` + +#### Using the add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info(role_id, permission_id) + +```ruby +begin + # Add Permission To Role + data, status_code, headers = api_instance.add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info(role_id, permission_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **role_id** | **Integer** | | | +| **permission_id** | **Integer** | | | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## create_acl_entry_acl_post + +> create_acl_entry_acl_post(acl_create) + +Create Acl Entry + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +acl_create = KeyNetra::ACLCreate.new({subject_type: 'subject_type_example', subject_id: 'subject_id_example', resource_type: 'resource_type_example', resource_id: 'resource_id_example', action: 'action_example', effect: 'effect_example'}) # ACLCreate | + +begin + # Create Acl Entry + result = api_instance.create_acl_entry_acl_post(acl_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_acl_entry_acl_post: #{e}" +end +``` + +#### Using the create_acl_entry_acl_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_acl_entry_acl_post_with_http_info(acl_create) + +```ruby +begin + # Create Acl Entry + data, status_code, headers = api_instance.create_acl_entry_acl_post_with_http_info(acl_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_acl_entry_acl_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **acl_create** | [**ACLCreate**](ACLCreate.md) | | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## create_auth_model_auth_model_post + +> create_auth_model_auth_model_post(auth_model_create) + +Create Auth Model + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +auth_model_create = KeyNetra::AuthModelCreate.new({schema: 'schema_example'}) # AuthModelCreate | + +begin + # Create Auth Model + result = api_instance.create_auth_model_auth_model_post(auth_model_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_auth_model_auth_model_post: #{e}" +end +``` + +#### Using the create_auth_model_auth_model_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_auth_model_auth_model_post_with_http_info(auth_model_create) + +```ruby +begin + # Create Auth Model + data, status_code, headers = api_instance.create_auth_model_auth_model_post_with_http_info(auth_model_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_auth_model_auth_model_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **auth_model_create** | [**AuthModelCreate**](AuthModelCreate.md) | | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## create_permission_permissions_post + +> create_permission_permissions_post(permission_create) + +Create Permission + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +permission_create = KeyNetra::PermissionCreate.new({action: 'action_example'}) # PermissionCreate | + +begin + # Create Permission + result = api_instance.create_permission_permissions_post(permission_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_permission_permissions_post: #{e}" +end +``` + +#### Using the create_permission_permissions_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_permission_permissions_post_with_http_info(permission_create) + +```ruby +begin + # Create Permission + data, status_code, headers = api_instance.create_permission_permissions_post_with_http_info(permission_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_permission_permissions_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **permission_create** | [**PermissionCreate**](PermissionCreate.md) | | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## create_policy_from_dsl_policies_dsl_post + +> create_policy_from_dsl_policies_dsl_post(dsl) + +Create Policy From Dsl + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +dsl = 'dsl_example' # String | + +begin + # Create Policy From Dsl + result = api_instance.create_policy_from_dsl_policies_dsl_post(dsl) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_policy_from_dsl_policies_dsl_post: #{e}" +end +``` + +#### Using the create_policy_from_dsl_policies_dsl_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_policy_from_dsl_policies_dsl_post_with_http_info(dsl) + +```ruby +begin + # Create Policy From Dsl + data, status_code, headers = api_instance.create_policy_from_dsl_policies_dsl_post_with_http_info(dsl) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_policy_from_dsl_policies_dsl_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **dsl** | **String** | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## create_policy_policies_post + +> create_policy_policies_post(policy_create) + +Create Policy + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +policy_create = KeyNetra::PolicyCreate.new({action: 'action_example'}) # PolicyCreate | + +begin + # Create Policy + result = api_instance.create_policy_policies_post(policy_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_policy_policies_post: #{e}" +end +``` + +#### Using the create_policy_policies_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_policy_policies_post_with_http_info(policy_create) + +```ruby +begin + # Create Policy + data, status_code, headers = api_instance.create_policy_policies_post_with_http_info(policy_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_policy_policies_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_create** | [**PolicyCreate**](PolicyCreate.md) | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## create_relationship_relationships_post + +> create_relationship_relationships_post(relationship_create) + +Create Relationship + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +relationship_create = KeyNetra::RelationshipCreate.new({subject_type: 'subject_type_example', subject_id: 'subject_id_example', relation: 'relation_example', object_type: 'object_type_example', object_id: 'object_id_example'}) # RelationshipCreate | + +begin + # Create Relationship + result = api_instance.create_relationship_relationships_post(relationship_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_relationship_relationships_post: #{e}" +end +``` + +#### Using the create_relationship_relationships_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_relationship_relationships_post_with_http_info(relationship_create) + +```ruby +begin + # Create Relationship + data, status_code, headers = api_instance.create_relationship_relationships_post_with_http_info(relationship_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_relationship_relationships_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **relationship_create** | [**RelationshipCreate**](RelationshipCreate.md) | | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## create_role_roles_post + +> create_role_roles_post(role_create) + +Create Role + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +role_create = KeyNetra::RoleCreate.new({name: 'name_example'}) # RoleCreate | + +begin + # Create Role + result = api_instance.create_role_roles_post(role_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_role_roles_post: #{e}" +end +``` + +#### Using the create_role_roles_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> create_role_roles_post_with_http_info(role_create) + +```ruby +begin + # Create Role + data, status_code, headers = api_instance.create_role_roles_post_with_http_info(role_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->create_role_roles_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **role_create** | [**RoleCreate**](RoleCreate.md) | | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## delete_acl_entry_acl_acl_id_delete + +> delete_acl_entry_acl_acl_id_delete(acl_id) + +Delete Acl Entry + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +acl_id = 56 # Integer | + +begin + # Delete Acl Entry + result = api_instance.delete_acl_entry_acl_acl_id_delete(acl_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_acl_entry_acl_acl_id_delete: #{e}" +end +``` + +#### Using the delete_acl_entry_acl_acl_id_delete_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> delete_acl_entry_acl_acl_id_delete_with_http_info(acl_id) + +```ruby +begin + # Delete Acl Entry + data, status_code, headers = api_instance.delete_acl_entry_acl_acl_id_delete_with_http_info(acl_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_acl_entry_acl_acl_id_delete_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **acl_id** | **Integer** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## delete_permission_permissions_permission_id_delete + +> delete_permission_permissions_permission_id_delete(permission_id) + +Delete Permission + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +permission_id = 56 # Integer | + +begin + # Delete Permission + result = api_instance.delete_permission_permissions_permission_id_delete(permission_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_permission_permissions_permission_id_delete: #{e}" +end +``` + +#### Using the delete_permission_permissions_permission_id_delete_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> delete_permission_permissions_permission_id_delete_with_http_info(permission_id) + +```ruby +begin + # Delete Permission + data, status_code, headers = api_instance.delete_permission_permissions_permission_id_delete_with_http_info(permission_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_permission_permissions_permission_id_delete_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **permission_id** | **Integer** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## delete_policy_policies_policy_key_delete + +> delete_policy_policies_policy_key_delete(policy_key) + +Delete Policy + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +policy_key = 'policy_key_example' # String | + +begin + # Delete Policy + result = api_instance.delete_policy_policies_policy_key_delete(policy_key) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_policy_policies_policy_key_delete: #{e}" +end +``` + +#### Using the delete_policy_policies_policy_key_delete_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> delete_policy_policies_policy_key_delete_with_http_info(policy_key) + +```ruby +begin + # Delete Policy + data, status_code, headers = api_instance.delete_policy_policies_policy_key_delete_with_http_info(policy_key) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_policy_policies_policy_key_delete_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_key** | **String** | | | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## delete_role_roles_role_id_delete + +> delete_role_roles_role_id_delete(role_id) + +Delete Role + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +role_id = 56 # Integer | + +begin + # Delete Role + result = api_instance.delete_role_roles_role_id_delete(role_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_role_roles_role_id_delete: #{e}" +end +``` + +#### Using the delete_role_roles_role_id_delete_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> delete_role_roles_role_id_delete_with_http_info(role_id) + +```ruby +begin + # Delete Role + data, status_code, headers = api_instance.delete_role_roles_role_id_delete_with_http_info(role_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->delete_role_roles_role_id_delete_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **role_id** | **Integer** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_auth_model_auth_model_get + +> get_auth_model_auth_model_get + +Get Auth Model + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new + +begin + # Get Auth Model + result = api_instance.get_auth_model_auth_model_get + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->get_auth_model_auth_model_get: #{e}" +end +``` + +#### Using the get_auth_model_auth_model_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_auth_model_auth_model_get_with_http_info + +```ruby +begin + # Get Auth Model + data, status_code, headers = api_instance.get_auth_model_auth_model_get_with_http_info + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->get_auth_model_auth_model_get_with_http_info: #{e}" +end +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## impact_analysis_impact_analysis_post + +> impact_analysis_impact_analysis_post(impact_analysis_request) + +Impact Analysis + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +impact_analysis_request = KeyNetra::ImpactAnalysisRequest.new({policy_change: 'policy_change_example'}) # ImpactAnalysisRequest | + +begin + # Impact Analysis + result = api_instance.impact_analysis_impact_analysis_post(impact_analysis_request) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->impact_analysis_impact_analysis_post: #{e}" +end +``` + +#### Using the impact_analysis_impact_analysis_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> impact_analysis_impact_analysis_post_with_http_info(impact_analysis_request) + +```ruby +begin + # Impact Analysis + data, status_code, headers = api_instance.impact_analysis_impact_analysis_post_with_http_info(impact_analysis_request) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->impact_analysis_impact_analysis_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **impact_analysis_request** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## list_acl_entries_acl_resource_type_resource_id_get + +> list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) + +List Acl Entries + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +resource_type = 'resource_type_example' # String | +resource_id = 'resource_id_example' # String | + +begin + # List Acl Entries + result = api_instance.list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_acl_entries_acl_resource_type_resource_id_get: #{e}" +end +``` + +#### Using the list_acl_entries_acl_resource_type_resource_id_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_acl_entries_acl_resource_type_resource_id_get_with_http_info(resource_type, resource_id) + +```ruby +begin + # List Acl Entries + data, status_code, headers = api_instance.list_acl_entries_acl_resource_type_resource_id_get_with_http_info(resource_type, resource_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_acl_entries_acl_resource_type_resource_id_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **resource_type** | **String** | | | +| **resource_id** | **String** | | | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_audit_logs_audit_get + +> list_audit_logs_audit_get(opts) + +List Audit Logs + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +opts = { + limit: 56, # Integer | + cursor: 'cursor_example', # String | + user_id: 'user_id_example', # String | + resource_id: 'resource_id_example', # String | + decision: 'decision_example', # String | + start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | + end_time: Time.parse('2013-10-20T19:20:30+01:00') # Time | +} + +begin + # List Audit Logs + result = api_instance.list_audit_logs_audit_get(opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_audit_logs_audit_get: #{e}" +end +``` + +#### Using the list_audit_logs_audit_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_audit_logs_audit_get_with_http_info(opts) + +```ruby +begin + # List Audit Logs + data, status_code, headers = api_instance.list_audit_logs_audit_get_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_audit_logs_audit_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **limit** | **Integer** | | [optional][default to 50] | +| **cursor** | **String** | | [optional] | +| **user_id** | **String** | | [optional] | +| **resource_id** | **String** | | [optional] | +| **decision** | **String** | | [optional] | +| **start_time** | **Time** | | [optional] | +| **end_time** | **Time** | | [optional] | + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_permission_roles_permissions_permission_id_roles_get + +> list_permission_roles_permissions_permission_id_roles_get(permission_id) + +List Permission Roles + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +permission_id = 56 # Integer | + +begin + # List Permission Roles + result = api_instance.list_permission_roles_permissions_permission_id_roles_get(permission_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_permission_roles_permissions_permission_id_roles_get: #{e}" +end +``` + +#### Using the list_permission_roles_permissions_permission_id_roles_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_permission_roles_permissions_permission_id_roles_get_with_http_info(permission_id) + +```ruby +begin + # List Permission Roles + data, status_code, headers = api_instance.list_permission_roles_permissions_permission_id_roles_get_with_http_info(permission_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_permission_roles_permissions_permission_id_roles_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **permission_id** | **Integer** | | | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_permissions_permissions_get + +> list_permissions_permissions_get(opts) + +List Permissions + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +opts = { + limit: 56, # Integer | + cursor: 'cursor_example' # String | +} + +begin + # List Permissions + result = api_instance.list_permissions_permissions_get(opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_permissions_permissions_get: #{e}" +end +``` + +#### Using the list_permissions_permissions_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_permissions_permissions_get_with_http_info(opts) + +```ruby +begin + # List Permissions + data, status_code, headers = api_instance.list_permissions_permissions_get_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_permissions_permissions_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **limit** | **Integer** | | [optional][default to 50] | +| **cursor** | **String** | | [optional] | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_policies_policies_get + +> list_policies_policies_get(opts) + +List Policies + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +opts = { + limit: 56, # Integer | + cursor: 'cursor_example' # String | +} + +begin + # List Policies + result = api_instance.list_policies_policies_get(opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_policies_policies_get: #{e}" +end +``` + +#### Using the list_policies_policies_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_policies_policies_get_with_http_info(opts) + +```ruby +begin + # List Policies + data, status_code, headers = api_instance.list_policies_policies_get_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_policies_policies_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **limit** | **Integer** | | [optional][default to 50] | +| **cursor** | **String** | | [optional] | + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_relationships_relationships_get + +> list_relationships_relationships_get(subject_type, subject_id, opts) + +List Relationships + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +subject_type = 'subject_type_example' # String | +subject_id = 'subject_id_example' # String | +opts = { + limit: 56, # Integer | + cursor: 'cursor_example' # String | +} + +begin + # List Relationships + result = api_instance.list_relationships_relationships_get(subject_type, subject_id, opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_relationships_relationships_get: #{e}" +end +``` + +#### Using the list_relationships_relationships_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_relationships_relationships_get_with_http_info(subject_type, subject_id, opts) + +```ruby +begin + # List Relationships + data, status_code, headers = api_instance.list_relationships_relationships_get_with_http_info(subject_type, subject_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_relationships_relationships_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **subject_type** | **String** | | | +| **subject_id** | **String** | | | +| **limit** | **Integer** | | [optional][default to 50] | +| **cursor** | **String** | | [optional] | + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_role_permissions_roles_role_id_permissions_get + +> list_role_permissions_roles_role_id_permissions_get(role_id) + +List Role Permissions + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +role_id = 56 # Integer | + +begin + # List Role Permissions + result = api_instance.list_role_permissions_roles_role_id_permissions_get(role_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_role_permissions_roles_role_id_permissions_get: #{e}" +end +``` + +#### Using the list_role_permissions_roles_role_id_permissions_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_role_permissions_roles_role_id_permissions_get_with_http_info(role_id) + +```ruby +begin + # List Role Permissions + data, status_code, headers = api_instance.list_role_permissions_roles_role_id_permissions_get_with_http_info(role_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_role_permissions_roles_role_id_permissions_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **role_id** | **Integer** | | | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## list_roles_roles_get + +> list_roles_roles_get(opts) + +List Roles + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +opts = { + limit: 56, # Integer | + cursor: 'cursor_example' # String | +} + +begin + # List Roles + result = api_instance.list_roles_roles_get(opts) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_roles_roles_get: #{e}" +end +``` + +#### Using the list_roles_roles_get_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_roles_roles_get_with_http_info(opts) + +```ruby +begin + # List Roles + data, status_code, headers = api_instance.list_roles_roles_get_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->list_roles_roles_get_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **limit** | **Integer** | | [optional][default to 50] | +| **cursor** | **String** | | [optional] | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## remove_permission_from_role_roles_role_id_permissions_permission_id_delete + +> remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) + +Remove Permission From Role + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +role_id = 56 # Integer | +permission_id = 56 # Integer | + +begin + # Remove Permission From Role + result = api_instance.remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete: #{e}" +end +``` + +#### Using the remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info(role_id, permission_id) + +```ruby +begin + # Remove Permission From Role + data, status_code, headers = api_instance.remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info(role_id, permission_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **role_id** | **Integer** | | | +| **permission_id** | **Integer** | | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## rollback_policy_policies_policy_key_rollback_version_post + +> rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) + +Rollback Policy + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +policy_key = 'policy_key_example' # String | +version = 56 # Integer | + +begin + # Rollback Policy + result = api_instance.rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->rollback_policy_policies_policy_key_rollback_version_post: #{e}" +end +``` + +#### Using the rollback_policy_policies_policy_key_rollback_version_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> rollback_policy_policies_policy_key_rollback_version_post_with_http_info(policy_key, version) + +```ruby +begin + # Rollback Policy + data, status_code, headers = api_instance.rollback_policy_policies_policy_key_rollback_version_post_with_http_info(policy_key, version) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->rollback_policy_policies_policy_key_rollback_version_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_key** | **String** | | | +| **version** | **Integer** | | | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## simulate_policy_simulate_policy_post + +> simulate_policy_simulate_policy_post(policy_simulation_request) + +Simulate Policy + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +policy_simulation_request = KeyNetra::PolicySimulationRequest.new # PolicySimulationRequest | + +begin + # Simulate Policy + result = api_instance.simulate_policy_simulate_policy_post(policy_simulation_request) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->simulate_policy_simulate_policy_post: #{e}" +end +``` + +#### Using the simulate_policy_simulate_policy_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> simulate_policy_simulate_policy_post_with_http_info(policy_simulation_request) + +```ruby +begin + # Simulate Policy + data, status_code, headers = api_instance.simulate_policy_simulate_policy_post_with_http_info(policy_simulation_request) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->simulate_policy_simulate_policy_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_simulation_request** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## update_permission_permissions_permission_id_put + +> update_permission_permissions_permission_id_put(permission_id, permission_update) + +Update Permission + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +permission_id = 56 # Integer | +permission_update = KeyNetra::PermissionUpdate.new({action: 'action_example'}) # PermissionUpdate | + +begin + # Update Permission + result = api_instance.update_permission_permissions_permission_id_put(permission_id, permission_update) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->update_permission_permissions_permission_id_put: #{e}" +end +``` + +#### Using the update_permission_permissions_permission_id_put_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> update_permission_permissions_permission_id_put_with_http_info(permission_id, permission_update) + +```ruby +begin + # Update Permission + data, status_code, headers = api_instance.update_permission_permissions_permission_id_put_with_http_info(permission_id, permission_update) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->update_permission_permissions_permission_id_put_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **permission_id** | **Integer** | | | +| **permission_update** | [**PermissionUpdate**](PermissionUpdate.md) | | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## update_policy_policies_policy_key_put + +> update_policy_policies_policy_key_put(policy_key, policy_create) + +Update Policy + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +policy_key = 'policy_key_example' # String | +policy_create = KeyNetra::PolicyCreate.new({action: 'action_example'}) # PolicyCreate | + +begin + # Update Policy + result = api_instance.update_policy_policies_policy_key_put(policy_key, policy_create) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->update_policy_policies_policy_key_put: #{e}" +end +``` + +#### Using the update_policy_policies_policy_key_put_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> update_policy_policies_policy_key_put_with_http_info(policy_key, policy_create) + +```ruby +begin + # Update Policy + data, status_code, headers = api_instance.update_policy_policies_policy_key_put_with_http_info(policy_key, policy_create) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->update_policy_policies_policy_key_put_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_key** | **String** | | | +| **policy_create** | [**PolicyCreate**](PolicyCreate.md) | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## update_role_roles_role_id_put + +> update_role_roles_role_id_put(role_id, role_update) + +Update Role + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::ManagementApi.new +role_id = 56 # Integer | +role_update = KeyNetra::RoleUpdate.new({name: 'name_example'}) # RoleUpdate | + +begin + # Update Role + result = api_instance.update_role_roles_role_id_put(role_id, role_update) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->update_role_roles_role_id_put: #{e}" +end +``` + +#### Using the update_role_roles_role_id_put_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> update_role_roles_role_id_put_with_http_info(role_id, role_update) + +```ruby +begin + # Update Role + data, status_code, headers = api_instance.update_role_roles_role_id_put_with_http_info(role_id, role_update) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling ManagementApi->update_role_roles_role_id_put_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **role_id** | **Integer** | | | +| **role_update** | [**RoleUpdate**](RoleUpdate.md) | | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/sdks/ruby/docs/MetaBody.md b/sdks/ruby/docs/MetaBody.md new file mode 100644 index 0000000..cb3ac2c --- /dev/null +++ b/sdks/ruby/docs/MetaBody.md @@ -0,0 +1,24 @@ +# KeyNetra::MetaBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **request_id** | **String** | | [optional] | +| **limit** | **Integer** | | [optional] | +| **next_cursor** | **String** | | [optional] | +| **extra** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::MetaBody.new( + request_id: null, + limit: null, + next_cursor: null, + extra: null +) +``` + diff --git a/sdks/ruby/docs/PermissionCreate.md b/sdks/ruby/docs/PermissionCreate.md new file mode 100644 index 0000000..f507cb8 --- /dev/null +++ b/sdks/ruby/docs/PermissionCreate.md @@ -0,0 +1,18 @@ +# KeyNetra::PermissionCreate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PermissionCreate.new( + action: null +) +``` + diff --git a/sdks/ruby/docs/PermissionOut.md b/sdks/ruby/docs/PermissionOut.md new file mode 100644 index 0000000..eea1ede --- /dev/null +++ b/sdks/ruby/docs/PermissionOut.md @@ -0,0 +1,20 @@ +# KeyNetra::PermissionOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **Integer** | | | +| **action** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PermissionOut.new( + id: null, + action: null +) +``` + diff --git a/sdks/ruby/docs/PermissionUpdate.md b/sdks/ruby/docs/PermissionUpdate.md new file mode 100644 index 0000000..78fca42 --- /dev/null +++ b/sdks/ruby/docs/PermissionUpdate.md @@ -0,0 +1,18 @@ +# KeyNetra::PermissionUpdate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PermissionUpdate.new( + action: null +) +``` + diff --git a/sdks/ruby/docs/PlaygroundApi.md b/sdks/ruby/docs/PlaygroundApi.md new file mode 100644 index 0000000..af73ee1 --- /dev/null +++ b/sdks/ruby/docs/PlaygroundApi.md @@ -0,0 +1,80 @@ +# KeyNetra::PlaygroundApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------ | ------------ | ----------- | +| [**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate | + + +## evaluate_playground_evaluate_post + +> evaluate_playground_evaluate_post(playground_evaluate_request) + +Evaluate + +### Examples + +```ruby +require 'time' +require 'keynetra-client' +# setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' +end + +api_instance = KeyNetra::PlaygroundApi.new +playground_evaluate_request = KeyNetra::PlaygroundEvaluateRequest.new({policies: [KeyNetra::PlaygroundPolicy.new({action: 'action_example'})], input: KeyNetra::PlaygroundInput.new}) # PlaygroundEvaluateRequest | + +begin + # Evaluate + result = api_instance.evaluate_playground_evaluate_post(playground_evaluate_request) + p result +rescue KeyNetra::ApiError => e + puts "Error when calling PlaygroundApi->evaluate_playground_evaluate_post: #{e}" +end +``` + +#### Using the evaluate_playground_evaluate_post_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> evaluate_playground_evaluate_post_with_http_info(playground_evaluate_request) + +```ruby +begin + # Evaluate + data, status_code, headers = api_instance.evaluate_playground_evaluate_post_with_http_info(playground_evaluate_request) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue KeyNetra::ApiError => e + puts "Error when calling PlaygroundApi->evaluate_playground_evaluate_post_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/sdks/ruby/docs/PlaygroundEvaluateRequest.md b/sdks/ruby/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..5c2c593 --- /dev/null +++ b/sdks/ruby/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,20 @@ +# KeyNetra::PlaygroundEvaluateRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policies** | [**Array<PlaygroundPolicy>**](PlaygroundPolicy.md) | | | +| **input** | [**PlaygroundInput**](PlaygroundInput.md) | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PlaygroundEvaluateRequest.new( + policies: null, + input: null +) +``` + diff --git a/sdks/ruby/docs/PlaygroundInput.md b/sdks/ruby/docs/PlaygroundInput.md new file mode 100644 index 0000000..d6e70eb --- /dev/null +++ b/sdks/ruby/docs/PlaygroundInput.md @@ -0,0 +1,24 @@ +# KeyNetra::PlaygroundInput + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **user** | **Hash<String, Object>** | | [optional] | +| **resource** | **Hash<String, Object>** | | [optional] | +| **action** | **String** | | [optional][default to ''] | +| **context** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PlaygroundInput.new( + user: null, + resource: null, + action: null, + context: null +) +``` + diff --git a/sdks/ruby/docs/PlaygroundPolicy.md b/sdks/ruby/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..5711e25 --- /dev/null +++ b/sdks/ruby/docs/PlaygroundPolicy.md @@ -0,0 +1,26 @@ +# KeyNetra::PlaygroundPolicy + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | **String** | | | +| **effect** | **String** | | [optional][default to 'allow'] | +| **priority** | **Integer** | | [optional][default to 100] | +| **policy_id** | **String** | | [optional] | +| **conditions** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PlaygroundPolicy.new( + action: null, + effect: null, + priority: null, + policy_id: null, + conditions: null +) +``` + diff --git a/sdks/ruby/docs/PolicyCreate.md b/sdks/ruby/docs/PolicyCreate.md new file mode 100644 index 0000000..4ac2732 --- /dev/null +++ b/sdks/ruby/docs/PolicyCreate.md @@ -0,0 +1,26 @@ +# KeyNetra::PolicyCreate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | **String** | | | +| **effect** | **String** | | [optional][default to 'allow'] | +| **priority** | **Integer** | | [optional][default to 100] | +| **state** | **String** | | [optional][default to 'active'] | +| **conditions** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PolicyCreate.new( + action: null, + effect: null, + priority: null, + state: null, + conditions: null +) +``` + diff --git a/sdks/ruby/docs/PolicyOut.md b/sdks/ruby/docs/PolicyOut.md new file mode 100644 index 0000000..f4e030c --- /dev/null +++ b/sdks/ruby/docs/PolicyOut.md @@ -0,0 +1,28 @@ +# KeyNetra::PolicyOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **Integer** | | | +| **action** | **String** | | | +| **effect** | **String** | | | +| **priority** | **Integer** | | | +| **state** | **String** | | [optional][default to 'active'] | +| **conditions** | **Hash<String, Object>** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PolicyOut.new( + id: null, + action: null, + effect: null, + priority: null, + state: null, + conditions: null +) +``` + diff --git a/sdks/ruby/docs/PolicySimulationInput.md b/sdks/ruby/docs/PolicySimulationInput.md new file mode 100644 index 0000000..7ec8332 --- /dev/null +++ b/sdks/ruby/docs/PolicySimulationInput.md @@ -0,0 +1,22 @@ +# KeyNetra::PolicySimulationInput + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **policy_change** | **String** | | [optional] | +| **relationship_change** | **Hash<String, Object>** | | [optional] | +| **role_change** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PolicySimulationInput.new( + policy_change: null, + relationship_change: null, + role_change: null +) +``` + diff --git a/sdks/ruby/docs/PolicySimulationRequest.md b/sdks/ruby/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..2497472 --- /dev/null +++ b/sdks/ruby/docs/PolicySimulationRequest.md @@ -0,0 +1,20 @@ +# KeyNetra::PolicySimulationRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] | +| **request** | **Hash<String, Object>** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PolicySimulationRequest.new( + simulate: null, + request: null +) +``` + diff --git a/sdks/ruby/docs/PolicySimulationResponse.md b/sdks/ruby/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..26a20d8 --- /dev/null +++ b/sdks/ruby/docs/PolicySimulationResponse.md @@ -0,0 +1,20 @@ +# KeyNetra::PolicySimulationResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **decision_before** | **Hash<String, Object>** | | | +| **decision_after** | **Hash<String, Object>** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::PolicySimulationResponse.new( + decision_before: null, + decision_after: null +) +``` + diff --git a/sdks/ruby/docs/RelationshipCreate.md b/sdks/ruby/docs/RelationshipCreate.md new file mode 100644 index 0000000..57b3b0e --- /dev/null +++ b/sdks/ruby/docs/RelationshipCreate.md @@ -0,0 +1,26 @@ +# KeyNetra::RelationshipCreate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **subject_type** | **String** | | | +| **subject_id** | **String** | | | +| **relation** | **String** | | | +| **object_type** | **String** | | | +| **object_id** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::RelationshipCreate.new( + subject_type: null, + subject_id: null, + relation: null, + object_type: null, + object_id: null +) +``` + diff --git a/sdks/ruby/docs/RelationshipOut.md b/sdks/ruby/docs/RelationshipOut.md new file mode 100644 index 0000000..4b1fd0e --- /dev/null +++ b/sdks/ruby/docs/RelationshipOut.md @@ -0,0 +1,28 @@ +# KeyNetra::RelationshipOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **subject_type** | **String** | | | +| **subject_id** | **String** | | | +| **relation** | **String** | | | +| **object_type** | **String** | | | +| **object_id** | **String** | | | +| **id** | **Integer** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::RelationshipOut.new( + subject_type: null, + subject_id: null, + relation: null, + object_type: null, + object_id: null, + id: null +) +``` + diff --git a/sdks/ruby/docs/RoleCreate.md b/sdks/ruby/docs/RoleCreate.md new file mode 100644 index 0000000..46d3027 --- /dev/null +++ b/sdks/ruby/docs/RoleCreate.md @@ -0,0 +1,18 @@ +# KeyNetra::RoleCreate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::RoleCreate.new( + name: null +) +``` + diff --git a/sdks/ruby/docs/RoleOut.md b/sdks/ruby/docs/RoleOut.md new file mode 100644 index 0000000..cc4e718 --- /dev/null +++ b/sdks/ruby/docs/RoleOut.md @@ -0,0 +1,20 @@ +# KeyNetra::RoleOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **Integer** | | | +| **name** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::RoleOut.new( + id: null, + name: null +) +``` + diff --git a/sdks/ruby/docs/RoleUpdate.md b/sdks/ruby/docs/RoleUpdate.md new file mode 100644 index 0000000..75bea3b --- /dev/null +++ b/sdks/ruby/docs/RoleUpdate.md @@ -0,0 +1,18 @@ +# KeyNetra::RoleUpdate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::RoleUpdate.new( + name: null +) +``` + diff --git a/sdks/ruby/docs/SimulationResponse.md b/sdks/ruby/docs/SimulationResponse.md new file mode 100644 index 0000000..25f7941 --- /dev/null +++ b/sdks/ruby/docs/SimulationResponse.md @@ -0,0 +1,30 @@ +# KeyNetra::SimulationResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **decision** | **String** | | | +| **matched_policies** | **Array<String>** | | | +| **reason** | **String** | | [optional] | +| **policy_id** | **String** | | [optional] | +| **explain_trace** | **Array<Hash<String, Object>>** | | [optional] | +| **failed_conditions** | **Array<String>** | | [optional] | +| **revision** | **Integer** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SimulationResponse.new( + decision: null, + matched_policies: null, + reason: null, + policy_id: null, + explain_trace: null, + failed_conditions: null, + revision: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseACLOut.md b/sdks/ruby/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..7a2bb8a --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseACLOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseACLOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**ACLOut**](ACLOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseACLOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md b/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..2e18013 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseAccessDecisionResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseAccessDecisionResponse.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md b/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..46352da --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseAdminLoginResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseAdminLoginResponse.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseAuthModelOut.md b/sdks/ruby/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..0eaf077 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseAuthModelOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**AuthModelOut**](AuthModelOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseAuthModelOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md b/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..0f1db33 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseBatchAccessResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseBatchAccessResponse.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseDictStrAny.md b/sdks/ruby/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..90be27b --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseDictStrAny + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | **Hash<String, Object>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseDictStrAny.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseDictStrInt.md b/sdks/ruby/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..6e36ef0 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseDictStrInt + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | **Hash<String, Integer>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseDictStrInt.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseDictStrObject.md b/sdks/ruby/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..84a7e91 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseDictStrObject + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | **Hash<String, Object>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseDictStrObject.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseDictStrStr.md b/sdks/ruby/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..5ee45df --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseDictStrStr + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | **Hash<String, String>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseDictStrStr.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..8328113 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseDictStrUnionIntStr + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Hash<String, DataValue>**](DataValue.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseDictStrUnionIntStr.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..4e03b35 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseImpactAnalysisResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseImpactAnalysisResponse.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseListACLOut.md b/sdks/ruby/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..553be55 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseListACLOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseListACLOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Array<ACLOut>**](ACLOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseListACLOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md b/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..367a83e --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseListAuditRecordOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Array<AuditRecordOut>**](AuditRecordOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseListAuditRecordOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseListDictStrStr.md b/sdks/ruby/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..a688388 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseListDictStrStr + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | **Array<Hash<String, String>>** | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseListDictStrStr.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseListPermissionOut.md b/sdks/ruby/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..5f458dc --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseListPermissionOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Array<PermissionOut>**](PermissionOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseListPermissionOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseListPolicyOut.md b/sdks/ruby/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..d7b014c --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseListPolicyOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Array<PolicyOut>**](PolicyOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseListPolicyOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseListRoleOut.md b/sdks/ruby/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..fe9926f --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseListRoleOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Array<RoleOut>**](RoleOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseListRoleOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponsePermissionOut.md b/sdks/ruby/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..43a8c0b --- /dev/null +++ b/sdks/ruby/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponsePermissionOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**PermissionOut**](PermissionOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponsePermissionOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponsePolicyOut.md b/sdks/ruby/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..0782b34 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponsePolicyOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**PolicyOut**](PolicyOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponsePolicyOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md b/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..0333182 --- /dev/null +++ b/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponsePolicySimulationResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponsePolicySimulationResponse.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseRelationshipOut.md b/sdks/ruby/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..f87b89f --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseRelationshipOut + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**RelationshipOut**](RelationshipOut.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseRelationshipOut.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/SuccessResponseSimulationResponse.md b/sdks/ruby/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..1cdc7ef --- /dev/null +++ b/sdks/ruby/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,22 @@ +# KeyNetra::SuccessResponseSimulationResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**SimulationResponse**](SimulationResponse.md) | | | +| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | +| **error** | [**Null**](Null.md) | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::SuccessResponseSimulationResponse.new( + data: null, + meta: null, + error: null +) +``` + diff --git a/sdks/ruby/docs/ValidationError.md b/sdks/ruby/docs/ValidationError.md new file mode 100644 index 0000000..851d26a --- /dev/null +++ b/sdks/ruby/docs/ValidationError.md @@ -0,0 +1,26 @@ +# KeyNetra::ValidationError + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **loc** | [**Array<LocationInner>**](LocationInner.md) | | | +| **msg** | **String** | | | +| **type** | **String** | | | +| **input** | **Object** | | [optional] | +| **ctx** | **Object** | | [optional] | + +## Example + +```ruby +require 'keynetra-client' + +instance = KeyNetra::ValidationError.new( + loc: null, + msg: null, + type: null, + input: null, + ctx: null +) +``` + diff --git a/sdks/ruby/git_push.sh b/sdks/ruby/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/ruby/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/ruby/keynetra-client.gemspec b/sdks/ruby/keynetra-client.gemspec new file mode 100644 index 0000000..e8a9156 --- /dev/null +++ b/sdks/ruby/keynetra-client.gemspec @@ -0,0 +1,39 @@ +# -*- encoding: utf-8 -*- + +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +$:.push File.expand_path("../lib", __FILE__) +require "keynetra-client/version" + +Gem::Specification.new do |s| + s.name = "keynetra-client" + s.version = KeyNetra::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ["KeyNetra Engineering"] + s.email = ["business.keynetra@gmail.com"] + s.homepage = "https://github.com/keynetra/keynetra-sdks" + s.summary = "KeyNetra Ruby Gem" + s.description = "Official Ruby SDK for the KeyNetra authorization platform." + s.license = "Apache-2.0" + s.required_ruby_version = ">= 2.7" + s.metadata = {} + + s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' + + s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' + + s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } + s.test_files = `find spec/*`.split("\n") + s.executables = [] + s.require_paths = ["lib"] +end diff --git a/sdks/ruby/spec/api/access_api_spec.rb b/sdks/ruby/spec/api/access_api_spec.rb new file mode 100644 index 0000000..4370d63 --- /dev/null +++ b/sdks/ruby/spec/api/access_api_spec.rb @@ -0,0 +1,70 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for KeyNetra::AccessApi +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe 'AccessApi' do + before do + # run before each test + @api_instance = KeyNetra::AccessApi.new + end + + after do + # run after each test + end + + describe 'test an instance of AccessApi' do + it 'should create an instance of AccessApi' do + expect(@api_instance).to be_instance_of(KeyNetra::AccessApi) + end + end + + # unit tests for check_access_batch_check_access_batch_post + # Check Access Batch + # @param batch_access_request + # @param [Hash] opts the optional parameters + # @option opts [String] :policy_set + # @return [SuccessResponseBatchAccessResponse] + describe 'check_access_batch_check_access_batch_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for check_access_check_access_post + # Check Access + # @param access_request + # @param [Hash] opts the optional parameters + # @option opts [String] :policy_set + # @return [SuccessResponseAccessDecisionResponse] + describe 'check_access_check_access_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for simulate_simulate_post + # Simulate + # @param access_request + # @param [Hash] opts the optional parameters + # @return [SuccessResponseSimulationResponse] + describe 'simulate_simulate_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/api/auth_api_spec.rb b/sdks/ruby/spec/api/auth_api_spec.rb new file mode 100644 index 0000000..74f32bd --- /dev/null +++ b/sdks/ruby/spec/api/auth_api_spec.rb @@ -0,0 +1,57 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for KeyNetra::AuthApi +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe 'AuthApi' do + before do + # run before each test + @api_instance = KeyNetra::AuthApi.new + end + + after do + # run after each test + end + + describe 'test an instance of AuthApi' do + it 'should create an instance of AuthApi' do + expect(@api_instance).to be_instance_of(KeyNetra::AuthApi) + end + end + + # unit tests for admin_login_admin_login_post + # Admin Login + # @param admin_login_request + # @param [Hash] opts the optional parameters + # @return [SuccessResponseAdminLoginResponse] + describe 'admin_login_admin_login_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for admin_login_admin_login_post_0 + # Admin Login + # @param admin_login_request + # @param [Hash] opts the optional parameters + # @return [SuccessResponseAdminLoginResponse] + describe 'admin_login_admin_login_post_0 test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/api/dev_api_spec.rb b/sdks/ruby/spec/api/dev_api_spec.rb new file mode 100644 index 0000000..40b701d --- /dev/null +++ b/sdks/ruby/spec/api/dev_api_spec.rb @@ -0,0 +1,56 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for KeyNetra::DevApi +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe 'DevApi' do + before do + # run before each test + @api_instance = KeyNetra::DevApi.new + end + + after do + # run after each test + end + + describe 'test an instance of DevApi' do + it 'should create an instance of DevApi' do + expect(@api_instance).to be_instance_of(KeyNetra::DevApi) + end + end + + # unit tests for get_sample_data_dev_sample_data_get + # Get Sample Data + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrObject] + describe 'get_sample_data_dev_sample_data_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for seed_sample_data_dev_sample_data_seed_post + # Seed Sample Data + # @param [Hash] opts the optional parameters + # @option opts [Boolean] :reset Clear the sample dataset before reseeding it. + # @return [SuccessResponseDictStrObject] + describe 'seed_sample_data_dev_sample_data_seed_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/api/health_api_spec.rb b/sdks/ruby/spec/api/health_api_spec.rb new file mode 100644 index 0000000..6b02cdd --- /dev/null +++ b/sdks/ruby/spec/api/health_api_spec.rb @@ -0,0 +1,65 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for KeyNetra::HealthApi +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe 'HealthApi' do + before do + # run before each test + @api_instance = KeyNetra::HealthApi.new + end + + after do + # run after each test + end + + describe 'test an instance of HealthApi' do + it 'should create an instance of HealthApi' do + expect(@api_instance).to be_instance_of(KeyNetra::HealthApi) + end + end + + # unit tests for health_health_get + # Health + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrStr] + describe 'health_health_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for liveness_health_live_get + # Liveness + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrStr] + describe 'liveness_health_live_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for readiness_health_ready_get + # Readiness + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrObject] + describe 'readiness_health_ready_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/api/management_api_spec.rb b/sdks/ruby/spec/api/management_api_spec.rb new file mode 100644 index 0000000..2c76876 --- /dev/null +++ b/sdks/ruby/spec/api/management_api_spec.rb @@ -0,0 +1,361 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for KeyNetra::ManagementApi +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe 'ManagementApi' do + before do + # run before each test + @api_instance = KeyNetra::ManagementApi.new + end + + after do + # run after each test + end + + describe 'test an instance of ManagementApi' do + it 'should create an instance of ManagementApi' do + expect(@api_instance).to be_instance_of(KeyNetra::ManagementApi) + end + end + + # unit tests for add_permission_to_role_roles_role_id_permissions_permission_id_post + # Add Permission To Role + # @param role_id + # @param permission_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponsePermissionOut] + describe 'add_permission_to_role_roles_role_id_permissions_permission_id_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_acl_entry_acl_post + # Create Acl Entry + # @param acl_create + # @param [Hash] opts the optional parameters + # @return [SuccessResponseACLOut] + describe 'create_acl_entry_acl_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_auth_model_auth_model_post + # Create Auth Model + # @param auth_model_create + # @param [Hash] opts the optional parameters + # @return [SuccessResponseAuthModelOut] + describe 'create_auth_model_auth_model_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_permission_permissions_post + # Create Permission + # @param permission_create + # @param [Hash] opts the optional parameters + # @return [PermissionOut] + describe 'create_permission_permissions_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_policy_from_dsl_policies_dsl_post + # Create Policy From Dsl + # @param dsl + # @param [Hash] opts the optional parameters + # @return [SuccessResponsePolicyOut] + describe 'create_policy_from_dsl_policies_dsl_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_policy_policies_post + # Create Policy + # @param policy_create + # @param [Hash] opts the optional parameters + # @return [SuccessResponsePolicyOut] + describe 'create_policy_policies_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_relationship_relationships_post + # Create Relationship + # @param relationship_create + # @param [Hash] opts the optional parameters + # @return [SuccessResponseRelationshipOut] + describe 'create_relationship_relationships_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_role_roles_post + # Create Role + # @param role_create + # @param [Hash] opts the optional parameters + # @return [RoleOut] + describe 'create_role_roles_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_acl_entry_acl_acl_id_delete + # Delete Acl Entry + # @param acl_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrInt] + describe 'delete_acl_entry_acl_acl_id_delete test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_permission_permissions_permission_id_delete + # Delete Permission + # @param permission_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrInt] + describe 'delete_permission_permissions_permission_id_delete test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_policy_policies_policy_key_delete + # Delete Policy + # @param policy_key + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrStr] + describe 'delete_policy_policies_policy_key_delete test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_role_roles_role_id_delete + # Delete Role + # @param role_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrInt] + describe 'delete_role_roles_role_id_delete test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_auth_model_auth_model_get + # Get Auth Model + # @param [Hash] opts the optional parameters + # @return [SuccessResponseAuthModelOut] + describe 'get_auth_model_auth_model_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for impact_analysis_impact_analysis_post + # Impact Analysis + # @param impact_analysis_request + # @param [Hash] opts the optional parameters + # @return [SuccessResponseImpactAnalysisResponse] + describe 'impact_analysis_impact_analysis_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_acl_entries_acl_resource_type_resource_id_get + # List Acl Entries + # @param resource_type + # @param resource_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseListACLOut] + describe 'list_acl_entries_acl_resource_type_resource_id_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_audit_logs_audit_get + # List Audit Logs + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit + # @option opts [String] :cursor + # @option opts [String] :user_id + # @option opts [String] :resource_id + # @option opts [String] :decision + # @option opts [Time] :start_time + # @option opts [Time] :end_time + # @return [SuccessResponseListAuditRecordOut] + describe 'list_audit_logs_audit_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_permission_roles_permissions_permission_id_roles_get + # List Permission Roles + # @param permission_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseListRoleOut] + describe 'list_permission_roles_permissions_permission_id_roles_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_permissions_permissions_get + # List Permissions + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit + # @option opts [String] :cursor + # @return [SuccessResponseListPermissionOut] + describe 'list_permissions_permissions_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_policies_policies_get + # List Policies + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit + # @option opts [String] :cursor + # @return [SuccessResponseListPolicyOut] + describe 'list_policies_policies_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_relationships_relationships_get + # List Relationships + # @param subject_type + # @param subject_id + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit + # @option opts [String] :cursor + # @return [SuccessResponseListDictStrStr] + describe 'list_relationships_relationships_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_role_permissions_roles_role_id_permissions_get + # List Role Permissions + # @param role_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseListPermissionOut] + describe 'list_role_permissions_roles_role_id_permissions_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for list_roles_roles_get + # List Roles + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit + # @option opts [String] :cursor + # @return [SuccessResponseListRoleOut] + describe 'list_roles_roles_get test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for remove_permission_from_role_roles_role_id_permissions_permission_id_delete + # Remove Permission From Role + # @param role_id + # @param permission_id + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrInt] + describe 'remove_permission_from_role_roles_role_id_permissions_permission_id_delete test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for rollback_policy_policies_policy_key_rollback_version_post + # Rollback Policy + # @param policy_key + # @param version + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrUnionIntStr] + describe 'rollback_policy_policies_policy_key_rollback_version_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for simulate_policy_simulate_policy_post + # Simulate Policy + # @param policy_simulation_request + # @param [Hash] opts the optional parameters + # @return [SuccessResponsePolicySimulationResponse] + describe 'simulate_policy_simulate_policy_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_permission_permissions_permission_id_put + # Update Permission + # @param permission_id + # @param permission_update + # @param [Hash] opts the optional parameters + # @return [PermissionOut] + describe 'update_permission_permissions_permission_id_put test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_policy_policies_policy_key_put + # Update Policy + # @param policy_key + # @param policy_create + # @param [Hash] opts the optional parameters + # @return [SuccessResponsePolicyOut] + describe 'update_policy_policies_policy_key_put test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_role_roles_role_id_put + # Update Role + # @param role_id + # @param role_update + # @param [Hash] opts the optional parameters + # @return [RoleOut] + describe 'update_role_roles_role_id_put test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/api/playground_api_spec.rb b/sdks/ruby/spec/api/playground_api_spec.rb new file mode 100644 index 0000000..ba33714 --- /dev/null +++ b/sdks/ruby/spec/api/playground_api_spec.rb @@ -0,0 +1,46 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for KeyNetra::PlaygroundApi +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe 'PlaygroundApi' do + before do + # run before each test + @api_instance = KeyNetra::PlaygroundApi.new + end + + after do + # run after each test + end + + describe 'test an instance of PlaygroundApi' do + it 'should create an instance of PlaygroundApi' do + expect(@api_instance).to be_instance_of(KeyNetra::PlaygroundApi) + end + end + + # unit tests for evaluate_playground_evaluate_post + # Evaluate + # @param playground_evaluate_request + # @param [Hash] opts the optional parameters + # @return [SuccessResponseDictStrAny] + describe 'evaluate_playground_evaluate_post test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/access_decision_response_spec.rb b/sdks/ruby/spec/models/access_decision_response_spec.rb new file mode 100644 index 0000000..fb8012a --- /dev/null +++ b/sdks/ruby/spec/models/access_decision_response_spec.rb @@ -0,0 +1,72 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AccessDecisionResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AccessDecisionResponse do + #let(:instance) { KeyNetra::AccessDecisionResponse.new } + + describe 'test an instance of AccessDecisionResponse' do + it 'should create an instance of AccessDecisionResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AccessDecisionResponse) + end + end + + describe 'test attribute "allowed"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "decision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "matched_policies"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "reason"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "policy_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "explain_trace"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "revision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/access_request_spec.rb b/sdks/ruby/spec/models/access_request_spec.rb new file mode 100644 index 0000000..38c4a2e --- /dev/null +++ b/sdks/ruby/spec/models/access_request_spec.rb @@ -0,0 +1,66 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AccessRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AccessRequest do + #let(:instance) { KeyNetra::AccessRequest.new } + + describe 'test an instance of AccessRequest' do + it 'should create an instance of AccessRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AccessRequest) + end + end + + describe 'test attribute "user"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "context"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "consistency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "revision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/acl_create_spec.rb b/sdks/ruby/spec/models/acl_create_spec.rb new file mode 100644 index 0000000..ca33987 --- /dev/null +++ b/sdks/ruby/spec/models/acl_create_spec.rb @@ -0,0 +1,66 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::ACLCreate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::ACLCreate do + #let(:instance) { KeyNetra::ACLCreate.new } + + describe 'test an instance of ACLCreate' do + it 'should create an instance of ACLCreate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::ACLCreate) + end + end + + describe 'test attribute "subject_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subject_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "effect"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/acl_out_spec.rb b/sdks/ruby/spec/models/acl_out_spec.rb new file mode 100644 index 0000000..4d2e0b6 --- /dev/null +++ b/sdks/ruby/spec/models/acl_out_spec.rb @@ -0,0 +1,84 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::ACLOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::ACLOut do + #let(:instance) { KeyNetra::ACLOut.new } + + describe 'test an instance of ACLOut' do + it 'should create an instance of ACLOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::ACLOut) + end + end + + describe 'test attribute "subject_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subject_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "effect"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/admin_login_request_spec.rb b/sdks/ruby/spec/models/admin_login_request_spec.rb new file mode 100644 index 0000000..fe12ee3 --- /dev/null +++ b/sdks/ruby/spec/models/admin_login_request_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AdminLoginRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AdminLoginRequest do + #let(:instance) { KeyNetra::AdminLoginRequest.new } + + describe 'test an instance of AdminLoginRequest' do + it 'should create an instance of AdminLoginRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AdminLoginRequest) + end + end + + describe 'test attribute "username"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "password"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/admin_login_response_spec.rb b/sdks/ruby/spec/models/admin_login_response_spec.rb new file mode 100644 index 0000000..924a3bc --- /dev/null +++ b/sdks/ruby/spec/models/admin_login_response_spec.rb @@ -0,0 +1,60 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AdminLoginResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AdminLoginResponse do + #let(:instance) { KeyNetra::AdminLoginResponse.new } + + describe 'test an instance of AdminLoginResponse' do + it 'should create an instance of AdminLoginResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AdminLoginResponse) + end + end + + describe 'test attribute "access_token"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "token_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "expires_in"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "role"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_key"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/audit_record_out_spec.rb b/sdks/ruby/spec/models/audit_record_out_spec.rb new file mode 100644 index 0000000..5417049 --- /dev/null +++ b/sdks/ruby/spec/models/audit_record_out_spec.rb @@ -0,0 +1,108 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AuditRecordOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AuditRecordOut do + #let(:instance) { KeyNetra::AuditRecordOut.new } + + describe 'test an instance of AuditRecordOut' do + it 'should create an instance of AuditRecordOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AuditRecordOut) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "principal_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "principal_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "correlation_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "decision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "matched_policies"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "reason"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "evaluated_rules"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "failed_conditions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/auth_model_create_spec.rb b/sdks/ruby/spec/models/auth_model_create_spec.rb new file mode 100644 index 0000000..7cb65fd --- /dev/null +++ b/sdks/ruby/spec/models/auth_model_create_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AuthModelCreate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AuthModelCreate do + #let(:instance) { KeyNetra::AuthModelCreate.new } + + describe 'test an instance of AuthModelCreate' do + it 'should create an instance of AuthModelCreate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AuthModelCreate) + end + end + + describe 'test attribute "schema"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/auth_model_out_spec.rb b/sdks/ruby/spec/models/auth_model_out_spec.rb new file mode 100644 index 0000000..a2af8cf --- /dev/null +++ b/sdks/ruby/spec/models/auth_model_out_spec.rb @@ -0,0 +1,60 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::AuthModelOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::AuthModelOut do + #let(:instance) { KeyNetra::AuthModelOut.new } + + describe 'test an instance of AuthModelOut' do + it 'should create an instance of AuthModelOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::AuthModelOut) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "schema"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "parsed"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "compiled"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/batch_access_item_spec.rb b/sdks/ruby/spec/models/batch_access_item_spec.rb new file mode 100644 index 0000000..4f4e414 --- /dev/null +++ b/sdks/ruby/spec/models/batch_access_item_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::BatchAccessItem +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::BatchAccessItem do + #let(:instance) { KeyNetra::BatchAccessItem.new } + + describe 'test an instance of BatchAccessItem' do + it 'should create an instance of BatchAccessItem' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::BatchAccessItem) + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/batch_access_request_spec.rb b/sdks/ruby/spec/models/batch_access_request_spec.rb new file mode 100644 index 0000000..68c6fd4 --- /dev/null +++ b/sdks/ruby/spec/models/batch_access_request_spec.rb @@ -0,0 +1,54 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::BatchAccessRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::BatchAccessRequest do + #let(:instance) { KeyNetra::BatchAccessRequest.new } + + describe 'test an instance of BatchAccessRequest' do + it 'should create an instance of BatchAccessRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::BatchAccessRequest) + end + end + + describe 'test attribute "user"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "items"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "consistency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "revision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/batch_access_response_spec.rb b/sdks/ruby/spec/models/batch_access_response_spec.rb new file mode 100644 index 0000000..6b44a6f --- /dev/null +++ b/sdks/ruby/spec/models/batch_access_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::BatchAccessResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::BatchAccessResponse do + #let(:instance) { KeyNetra::BatchAccessResponse.new } + + describe 'test an instance of BatchAccessResponse' do + it 'should create an instance of BatchAccessResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::BatchAccessResponse) + end + end + + describe 'test attribute "results"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "revision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/batch_access_result_spec.rb b/sdks/ruby/spec/models/batch_access_result_spec.rb new file mode 100644 index 0000000..cfed9f7 --- /dev/null +++ b/sdks/ruby/spec/models/batch_access_result_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::BatchAccessResult +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::BatchAccessResult do + #let(:instance) { KeyNetra::BatchAccessResult.new } + + describe 'test an instance of BatchAccessResult' do + it 'should create an instance of BatchAccessResult' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::BatchAccessResult) + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "allowed"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "revision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/data_value_spec.rb b/sdks/ruby/spec/models/data_value_spec.rb new file mode 100644 index 0000000..c1f3ab9 --- /dev/null +++ b/sdks/ruby/spec/models/data_value_spec.rb @@ -0,0 +1,21 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::DataValue +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::DataValue do +end diff --git a/sdks/ruby/spec/models/http_validation_error_spec.rb b/sdks/ruby/spec/models/http_validation_error_spec.rb new file mode 100644 index 0000000..95004ab --- /dev/null +++ b/sdks/ruby/spec/models/http_validation_error_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::HTTPValidationError +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::HTTPValidationError do + #let(:instance) { KeyNetra::HTTPValidationError.new } + + describe 'test an instance of HTTPValidationError' do + it 'should create an instance of HTTPValidationError' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::HTTPValidationError) + end + end + + describe 'test attribute "detail"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/impact_analysis_request_spec.rb b/sdks/ruby/spec/models/impact_analysis_request_spec.rb new file mode 100644 index 0000000..56e0a63 --- /dev/null +++ b/sdks/ruby/spec/models/impact_analysis_request_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::ImpactAnalysisRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::ImpactAnalysisRequest do + #let(:instance) { KeyNetra::ImpactAnalysisRequest.new } + + describe 'test an instance of ImpactAnalysisRequest' do + it 'should create an instance of ImpactAnalysisRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::ImpactAnalysisRequest) + end + end + + describe 'test attribute "policy_change"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/impact_analysis_response_spec.rb b/sdks/ruby/spec/models/impact_analysis_response_spec.rb new file mode 100644 index 0000000..73cff20 --- /dev/null +++ b/sdks/ruby/spec/models/impact_analysis_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::ImpactAnalysisResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::ImpactAnalysisResponse do + #let(:instance) { KeyNetra::ImpactAnalysisResponse.new } + + describe 'test an instance of ImpactAnalysisResponse' do + it 'should create an instance of ImpactAnalysisResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::ImpactAnalysisResponse) + end + end + + describe 'test attribute "gained_access"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "lost_access"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/location_inner_spec.rb b/sdks/ruby/spec/models/location_inner_spec.rb new file mode 100644 index 0000000..8c164eb --- /dev/null +++ b/sdks/ruby/spec/models/location_inner_spec.rb @@ -0,0 +1,21 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::LocationInner +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::LocationInner do +end diff --git a/sdks/ruby/spec/models/meta_body_spec.rb b/sdks/ruby/spec/models/meta_body_spec.rb new file mode 100644 index 0000000..329a2ee --- /dev/null +++ b/sdks/ruby/spec/models/meta_body_spec.rb @@ -0,0 +1,54 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::MetaBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::MetaBody do + #let(:instance) { KeyNetra::MetaBody.new } + + describe 'test an instance of MetaBody' do + it 'should create an instance of MetaBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::MetaBody) + end + end + + describe 'test attribute "request_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "limit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "next_cursor"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "extra"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/permission_create_spec.rb b/sdks/ruby/spec/models/permission_create_spec.rb new file mode 100644 index 0000000..5e585ce --- /dev/null +++ b/sdks/ruby/spec/models/permission_create_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PermissionCreate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PermissionCreate do + #let(:instance) { KeyNetra::PermissionCreate.new } + + describe 'test an instance of PermissionCreate' do + it 'should create an instance of PermissionCreate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PermissionCreate) + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/permission_out_spec.rb b/sdks/ruby/spec/models/permission_out_spec.rb new file mode 100644 index 0000000..390e9a1 --- /dev/null +++ b/sdks/ruby/spec/models/permission_out_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PermissionOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PermissionOut do + #let(:instance) { KeyNetra::PermissionOut.new } + + describe 'test an instance of PermissionOut' do + it 'should create an instance of PermissionOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PermissionOut) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/permission_update_spec.rb b/sdks/ruby/spec/models/permission_update_spec.rb new file mode 100644 index 0000000..a26bad4 --- /dev/null +++ b/sdks/ruby/spec/models/permission_update_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PermissionUpdate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PermissionUpdate do + #let(:instance) { KeyNetra::PermissionUpdate.new } + + describe 'test an instance of PermissionUpdate' do + it 'should create an instance of PermissionUpdate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PermissionUpdate) + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/playground_evaluate_request_spec.rb b/sdks/ruby/spec/models/playground_evaluate_request_spec.rb new file mode 100644 index 0000000..0e25f78 --- /dev/null +++ b/sdks/ruby/spec/models/playground_evaluate_request_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PlaygroundEvaluateRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PlaygroundEvaluateRequest do + #let(:instance) { KeyNetra::PlaygroundEvaluateRequest.new } + + describe 'test an instance of PlaygroundEvaluateRequest' do + it 'should create an instance of PlaygroundEvaluateRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PlaygroundEvaluateRequest) + end + end + + describe 'test attribute "policies"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "input"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/playground_input_spec.rb b/sdks/ruby/spec/models/playground_input_spec.rb new file mode 100644 index 0000000..52df863 --- /dev/null +++ b/sdks/ruby/spec/models/playground_input_spec.rb @@ -0,0 +1,54 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PlaygroundInput +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PlaygroundInput do + #let(:instance) { KeyNetra::PlaygroundInput.new } + + describe 'test an instance of PlaygroundInput' do + it 'should create an instance of PlaygroundInput' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PlaygroundInput) + end + end + + describe 'test attribute "user"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "resource"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "context"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/playground_policy_spec.rb b/sdks/ruby/spec/models/playground_policy_spec.rb new file mode 100644 index 0000000..bcb59d3 --- /dev/null +++ b/sdks/ruby/spec/models/playground_policy_spec.rb @@ -0,0 +1,60 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PlaygroundPolicy +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PlaygroundPolicy do + #let(:instance) { KeyNetra::PlaygroundPolicy.new } + + describe 'test an instance of PlaygroundPolicy' do + it 'should create an instance of PlaygroundPolicy' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PlaygroundPolicy) + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "effect"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "policy_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "conditions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/policy_create_spec.rb b/sdks/ruby/spec/models/policy_create_spec.rb new file mode 100644 index 0000000..8558579 --- /dev/null +++ b/sdks/ruby/spec/models/policy_create_spec.rb @@ -0,0 +1,60 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PolicyCreate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PolicyCreate do + #let(:instance) { KeyNetra::PolicyCreate.new } + + describe 'test an instance of PolicyCreate' do + it 'should create an instance of PolicyCreate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PolicyCreate) + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "effect"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "state"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "conditions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/policy_out_spec.rb b/sdks/ruby/spec/models/policy_out_spec.rb new file mode 100644 index 0000000..760bc84 --- /dev/null +++ b/sdks/ruby/spec/models/policy_out_spec.rb @@ -0,0 +1,66 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PolicyOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PolicyOut do + #let(:instance) { KeyNetra::PolicyOut.new } + + describe 'test an instance of PolicyOut' do + it 'should create an instance of PolicyOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PolicyOut) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "action"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "effect"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "state"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "conditions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/policy_simulation_input_spec.rb b/sdks/ruby/spec/models/policy_simulation_input_spec.rb new file mode 100644 index 0000000..ea8fb12 --- /dev/null +++ b/sdks/ruby/spec/models/policy_simulation_input_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PolicySimulationInput +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PolicySimulationInput do + #let(:instance) { KeyNetra::PolicySimulationInput.new } + + describe 'test an instance of PolicySimulationInput' do + it 'should create an instance of PolicySimulationInput' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PolicySimulationInput) + end + end + + describe 'test attribute "policy_change"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "relationship_change"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "role_change"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/policy_simulation_request_spec.rb b/sdks/ruby/spec/models/policy_simulation_request_spec.rb new file mode 100644 index 0000000..e980411 --- /dev/null +++ b/sdks/ruby/spec/models/policy_simulation_request_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PolicySimulationRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PolicySimulationRequest do + #let(:instance) { KeyNetra::PolicySimulationRequest.new } + + describe 'test an instance of PolicySimulationRequest' do + it 'should create an instance of PolicySimulationRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PolicySimulationRequest) + end + end + + describe 'test attribute "simulate"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "request"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/policy_simulation_response_spec.rb b/sdks/ruby/spec/models/policy_simulation_response_spec.rb new file mode 100644 index 0000000..49b599d --- /dev/null +++ b/sdks/ruby/spec/models/policy_simulation_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::PolicySimulationResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::PolicySimulationResponse do + #let(:instance) { KeyNetra::PolicySimulationResponse.new } + + describe 'test an instance of PolicySimulationResponse' do + it 'should create an instance of PolicySimulationResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::PolicySimulationResponse) + end + end + + describe 'test attribute "decision_before"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "decision_after"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/relationship_create_spec.rb b/sdks/ruby/spec/models/relationship_create_spec.rb new file mode 100644 index 0000000..e4c09b6 --- /dev/null +++ b/sdks/ruby/spec/models/relationship_create_spec.rb @@ -0,0 +1,60 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::RelationshipCreate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::RelationshipCreate do + #let(:instance) { KeyNetra::RelationshipCreate.new } + + describe 'test an instance of RelationshipCreate' do + it 'should create an instance of RelationshipCreate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::RelationshipCreate) + end + end + + describe 'test attribute "subject_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subject_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "relation"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "object_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "object_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/relationship_out_spec.rb b/sdks/ruby/spec/models/relationship_out_spec.rb new file mode 100644 index 0000000..a5c7436 --- /dev/null +++ b/sdks/ruby/spec/models/relationship_out_spec.rb @@ -0,0 +1,66 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::RelationshipOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::RelationshipOut do + #let(:instance) { KeyNetra::RelationshipOut.new } + + describe 'test an instance of RelationshipOut' do + it 'should create an instance of RelationshipOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::RelationshipOut) + end + end + + describe 'test attribute "subject_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subject_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "relation"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "object_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "object_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/role_create_spec.rb b/sdks/ruby/spec/models/role_create_spec.rb new file mode 100644 index 0000000..54ac429 --- /dev/null +++ b/sdks/ruby/spec/models/role_create_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::RoleCreate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::RoleCreate do + #let(:instance) { KeyNetra::RoleCreate.new } + + describe 'test an instance of RoleCreate' do + it 'should create an instance of RoleCreate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::RoleCreate) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/role_out_spec.rb b/sdks/ruby/spec/models/role_out_spec.rb new file mode 100644 index 0000000..62fad22 --- /dev/null +++ b/sdks/ruby/spec/models/role_out_spec.rb @@ -0,0 +1,42 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::RoleOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::RoleOut do + #let(:instance) { KeyNetra::RoleOut.new } + + describe 'test an instance of RoleOut' do + it 'should create an instance of RoleOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::RoleOut) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/role_update_spec.rb b/sdks/ruby/spec/models/role_update_spec.rb new file mode 100644 index 0000000..9410524 --- /dev/null +++ b/sdks/ruby/spec/models/role_update_spec.rb @@ -0,0 +1,36 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::RoleUpdate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::RoleUpdate do + #let(:instance) { KeyNetra::RoleUpdate.new } + + describe 'test an instance of RoleUpdate' do + it 'should create an instance of RoleUpdate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::RoleUpdate) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/simulation_response_spec.rb b/sdks/ruby/spec/models/simulation_response_spec.rb new file mode 100644 index 0000000..9f29287 --- /dev/null +++ b/sdks/ruby/spec/models/simulation_response_spec.rb @@ -0,0 +1,72 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SimulationResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SimulationResponse do + #let(:instance) { KeyNetra::SimulationResponse.new } + + describe 'test an instance of SimulationResponse' do + it 'should create an instance of SimulationResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SimulationResponse) + end + end + + describe 'test attribute "decision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "matched_policies"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "reason"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "policy_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "explain_trace"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "failed_conditions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "revision"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_access_decision_response_spec.rb b/sdks/ruby/spec/models/success_response_access_decision_response_spec.rb new file mode 100644 index 0000000..8896d9f --- /dev/null +++ b/sdks/ruby/spec/models/success_response_access_decision_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseAccessDecisionResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseAccessDecisionResponse do + #let(:instance) { KeyNetra::SuccessResponseAccessDecisionResponse.new } + + describe 'test an instance of SuccessResponseAccessDecisionResponse' do + it 'should create an instance of SuccessResponseAccessDecisionResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseAccessDecisionResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_acl_out_spec.rb b/sdks/ruby/spec/models/success_response_acl_out_spec.rb new file mode 100644 index 0000000..b89bf33 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_acl_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseACLOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseACLOut do + #let(:instance) { KeyNetra::SuccessResponseACLOut.new } + + describe 'test an instance of SuccessResponseACLOut' do + it 'should create an instance of SuccessResponseACLOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseACLOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_admin_login_response_spec.rb b/sdks/ruby/spec/models/success_response_admin_login_response_spec.rb new file mode 100644 index 0000000..f363618 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_admin_login_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseAdminLoginResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseAdminLoginResponse do + #let(:instance) { KeyNetra::SuccessResponseAdminLoginResponse.new } + + describe 'test an instance of SuccessResponseAdminLoginResponse' do + it 'should create an instance of SuccessResponseAdminLoginResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseAdminLoginResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_auth_model_out_spec.rb b/sdks/ruby/spec/models/success_response_auth_model_out_spec.rb new file mode 100644 index 0000000..84c21a4 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_auth_model_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseAuthModelOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseAuthModelOut do + #let(:instance) { KeyNetra::SuccessResponseAuthModelOut.new } + + describe 'test an instance of SuccessResponseAuthModelOut' do + it 'should create an instance of SuccessResponseAuthModelOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseAuthModelOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_batch_access_response_spec.rb b/sdks/ruby/spec/models/success_response_batch_access_response_spec.rb new file mode 100644 index 0000000..555b125 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_batch_access_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseBatchAccessResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseBatchAccessResponse do + #let(:instance) { KeyNetra::SuccessResponseBatchAccessResponse.new } + + describe 'test an instance of SuccessResponseBatchAccessResponse' do + it 'should create an instance of SuccessResponseBatchAccessResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseBatchAccessResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_dict_str_any_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_any_spec.rb new file mode 100644 index 0000000..874f2ed --- /dev/null +++ b/sdks/ruby/spec/models/success_response_dict_str_any_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseDictStrAny +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseDictStrAny do + #let(:instance) { KeyNetra::SuccessResponseDictStrAny.new } + + describe 'test an instance of SuccessResponseDictStrAny' do + it 'should create an instance of SuccessResponseDictStrAny' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrAny) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_dict_str_int_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_int_spec.rb new file mode 100644 index 0000000..574e9d5 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_dict_str_int_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseDictStrInt +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseDictStrInt do + #let(:instance) { KeyNetra::SuccessResponseDictStrInt.new } + + describe 'test an instance of SuccessResponseDictStrInt' do + it 'should create an instance of SuccessResponseDictStrInt' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrInt) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_dict_str_object_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_object_spec.rb new file mode 100644 index 0000000..7f0f885 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_dict_str_object_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseDictStrObject +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseDictStrObject do + #let(:instance) { KeyNetra::SuccessResponseDictStrObject.new } + + describe 'test an instance of SuccessResponseDictStrObject' do + it 'should create an instance of SuccessResponseDictStrObject' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrObject) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_dict_str_str_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_str_spec.rb new file mode 100644 index 0000000..3adcbdb --- /dev/null +++ b/sdks/ruby/spec/models/success_response_dict_str_str_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseDictStrStr +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseDictStrStr do + #let(:instance) { KeyNetra::SuccessResponseDictStrStr.new } + + describe 'test an instance of SuccessResponseDictStrStr' do + it 'should create an instance of SuccessResponseDictStrStr' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrStr) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb new file mode 100644 index 0000000..411a995 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseDictStrUnionIntStr +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseDictStrUnionIntStr do + #let(:instance) { KeyNetra::SuccessResponseDictStrUnionIntStr.new } + + describe 'test an instance of SuccessResponseDictStrUnionIntStr' do + it 'should create an instance of SuccessResponseDictStrUnionIntStr' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrUnionIntStr) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb b/sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb new file mode 100644 index 0000000..7404ed3 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseImpactAnalysisResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseImpactAnalysisResponse do + #let(:instance) { KeyNetra::SuccessResponseImpactAnalysisResponse.new } + + describe 'test an instance of SuccessResponseImpactAnalysisResponse' do + it 'should create an instance of SuccessResponseImpactAnalysisResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseImpactAnalysisResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_list_acl_out_spec.rb b/sdks/ruby/spec/models/success_response_list_acl_out_spec.rb new file mode 100644 index 0000000..2518bb1 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_list_acl_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseListACLOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseListACLOut do + #let(:instance) { KeyNetra::SuccessResponseListACLOut.new } + + describe 'test an instance of SuccessResponseListACLOut' do + it 'should create an instance of SuccessResponseListACLOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListACLOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb b/sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb new file mode 100644 index 0000000..56b46bc --- /dev/null +++ b/sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseListAuditRecordOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseListAuditRecordOut do + #let(:instance) { KeyNetra::SuccessResponseListAuditRecordOut.new } + + describe 'test an instance of SuccessResponseListAuditRecordOut' do + it 'should create an instance of SuccessResponseListAuditRecordOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListAuditRecordOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb b/sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb new file mode 100644 index 0000000..af40178 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseListDictStrStr +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseListDictStrStr do + #let(:instance) { KeyNetra::SuccessResponseListDictStrStr.new } + + describe 'test an instance of SuccessResponseListDictStrStr' do + it 'should create an instance of SuccessResponseListDictStrStr' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListDictStrStr) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_list_permission_out_spec.rb b/sdks/ruby/spec/models/success_response_list_permission_out_spec.rb new file mode 100644 index 0000000..ce4d0ba --- /dev/null +++ b/sdks/ruby/spec/models/success_response_list_permission_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseListPermissionOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseListPermissionOut do + #let(:instance) { KeyNetra::SuccessResponseListPermissionOut.new } + + describe 'test an instance of SuccessResponseListPermissionOut' do + it 'should create an instance of SuccessResponseListPermissionOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListPermissionOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_list_policy_out_spec.rb b/sdks/ruby/spec/models/success_response_list_policy_out_spec.rb new file mode 100644 index 0000000..69cdb68 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_list_policy_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseListPolicyOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseListPolicyOut do + #let(:instance) { KeyNetra::SuccessResponseListPolicyOut.new } + + describe 'test an instance of SuccessResponseListPolicyOut' do + it 'should create an instance of SuccessResponseListPolicyOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListPolicyOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_list_role_out_spec.rb b/sdks/ruby/spec/models/success_response_list_role_out_spec.rb new file mode 100644 index 0000000..8ddb108 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_list_role_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseListRoleOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseListRoleOut do + #let(:instance) { KeyNetra::SuccessResponseListRoleOut.new } + + describe 'test an instance of SuccessResponseListRoleOut' do + it 'should create an instance of SuccessResponseListRoleOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListRoleOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_permission_out_spec.rb b/sdks/ruby/spec/models/success_response_permission_out_spec.rb new file mode 100644 index 0000000..cd75a30 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_permission_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponsePermissionOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponsePermissionOut do + #let(:instance) { KeyNetra::SuccessResponsePermissionOut.new } + + describe 'test an instance of SuccessResponsePermissionOut' do + it 'should create an instance of SuccessResponsePermissionOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponsePermissionOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_policy_out_spec.rb b/sdks/ruby/spec/models/success_response_policy_out_spec.rb new file mode 100644 index 0000000..9abc26d --- /dev/null +++ b/sdks/ruby/spec/models/success_response_policy_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponsePolicyOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponsePolicyOut do + #let(:instance) { KeyNetra::SuccessResponsePolicyOut.new } + + describe 'test an instance of SuccessResponsePolicyOut' do + it 'should create an instance of SuccessResponsePolicyOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponsePolicyOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb b/sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb new file mode 100644 index 0000000..e70c517 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponsePolicySimulationResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponsePolicySimulationResponse do + #let(:instance) { KeyNetra::SuccessResponsePolicySimulationResponse.new } + + describe 'test an instance of SuccessResponsePolicySimulationResponse' do + it 'should create an instance of SuccessResponsePolicySimulationResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponsePolicySimulationResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_relationship_out_spec.rb b/sdks/ruby/spec/models/success_response_relationship_out_spec.rb new file mode 100644 index 0000000..66e9b8c --- /dev/null +++ b/sdks/ruby/spec/models/success_response_relationship_out_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseRelationshipOut +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseRelationshipOut do + #let(:instance) { KeyNetra::SuccessResponseRelationshipOut.new } + + describe 'test an instance of SuccessResponseRelationshipOut' do + it 'should create an instance of SuccessResponseRelationshipOut' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseRelationshipOut) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/success_response_simulation_response_spec.rb b/sdks/ruby/spec/models/success_response_simulation_response_spec.rb new file mode 100644 index 0000000..64b88c4 --- /dev/null +++ b/sdks/ruby/spec/models/success_response_simulation_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::SuccessResponseSimulationResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::SuccessResponseSimulationResponse do + #let(:instance) { KeyNetra::SuccessResponseSimulationResponse.new } + + describe 'test an instance of SuccessResponseSimulationResponse' do + it 'should create an instance of SuccessResponseSimulationResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::SuccessResponseSimulationResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/models/validation_error_spec.rb b/sdks/ruby/spec/models/validation_error_spec.rb new file mode 100644 index 0000000..50dc0c5 --- /dev/null +++ b/sdks/ruby/spec/models/validation_error_spec.rb @@ -0,0 +1,60 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for KeyNetra::ValidationError +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe KeyNetra::ValidationError do + #let(:instance) { KeyNetra::ValidationError.new } + + describe 'test an instance of ValidationError' do + it 'should create an instance of ValidationError' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(KeyNetra::ValidationError) + end + end + + describe 'test attribute "loc"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "msg"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "input"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ctx"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/sdks/ruby/spec/spec_helper.rb b/sdks/ruby/spec/spec_helper.rb new file mode 100644 index 0000000..149ff47 --- /dev/null +++ b/sdks/ruby/spec/spec_helper.rb @@ -0,0 +1,111 @@ +=begin +#KeyNetra + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.1.1 + +Generated by: https://openapi-generator.tech +Generator version: 7.21.0 + +=end + +# load the gem +require 'keynetra-client' + +# The following was generated by the `rspec --init` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +# The `.rspec` file also contains a few flags that are not defaults but that +# users commonly want. +# +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # These two settings work together to allow you to limit a spec run + # to individual examples or groups you care about by tagging them with + # `:focus` metadata. When nothing is tagged with `:focus`, all examples + # get run. + config.filter_run :focus + config.run_all_when_everything_filtered = true + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # This setting enables warnings. It's recommended, but in some cases may + # be too noisy due to issues in dependencies. + config.warnings = true + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = 'doc' + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/sdks/rust/.gitignore b/sdks/rust/.gitignore new file mode 100644 index 0000000..6aa1064 --- /dev/null +++ b/sdks/rust/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/sdks/rust/.travis.yml b/sdks/rust/.travis.yml new file mode 100644 index 0000000..22761ba --- /dev/null +++ b/sdks/rust/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml new file mode 100644 index 0000000..6784c09 --- /dev/null +++ b/sdks/rust/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "keynetra-client" +version = "0.1.0" +authors = ["OpenAPI Generator team and contributors"] +description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" +# Override this license by providing a License Object in the OpenAPI. +license = "Unlicense" +edition = "2021" + +[dependencies] +serde = { version = "^1.0", features = ["derive"] } +serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] } +serde_json = "^1.0" +serde_repr = "^0.1" +url = "^2.5" +reqwest = { version = "^0.13", default-features = false, features = ["json", "multipart", "query", "form"] } + +[features] +default = ["native-tls"] +native-tls = ["reqwest/native-tls"] +rustls = ["reqwest/rustls"] diff --git a/sdks/rust/README.md b/sdks/rust/README.md new file mode 100644 index 0000000..76492a7 --- /dev/null +++ b/sdks/rust/README.md @@ -0,0 +1,50 @@ +# keynetra-client + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official Rust SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Rust applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +cargo add keynetra-client +``` + +## ๐Ÿš€ Quick Start + +```rust +use keynetra_client::keynetra_client::KeyNetraClient; + +let client = KeyNetraClient::new( + "http://localhost:8080", + "YOUR_API_KEY" +); + +// Perform an access check +let decision = client.access() + .check_access(...) + .await?; +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/rust/docs/AccessApi.md b/sdks/rust/docs/AccessApi.md new file mode 100644 index 0000000..8abc809 --- /dev/null +++ b/sdks/rust/docs/AccessApi.md @@ -0,0 +1,97 @@ +# \AccessApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**check_access_batch_check_access_batch_post**](AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch +[**check_access_check_access_post**](AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access +[**simulate_simulate_post**](AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate + + + +## check_access_batch_check_access_batch_post + +> models::SuccessResponseBatchAccessResponse check_access_batch_check_access_batch_post(batch_access_request, policy_set) +Check Access Batch + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**batch_access_request** | [**BatchAccessRequest**](BatchAccessRequest.md) | | [required] | +**policy_set** | Option<**String**> | | |[default to active] + +### Return type + +[**models::SuccessResponseBatchAccessResponse**](SuccessResponse_BatchAccessResponse_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## check_access_check_access_post + +> models::SuccessResponseAccessDecisionResponse check_access_check_access_post(access_request, policy_set) +Check Access + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**access_request** | [**AccessRequest**](AccessRequest.md) | | [required] | +**policy_set** | Option<**String**> | | |[default to active] + +### Return type + +[**models::SuccessResponseAccessDecisionResponse**](SuccessResponse_AccessDecisionResponse_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## simulate_simulate_post + +> models::SuccessResponseSimulationResponse simulate_simulate_post(access_request) +Simulate + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**access_request** | [**AccessRequest**](AccessRequest.md) | | [required] | + +### Return type + +[**models::SuccessResponseSimulationResponse**](SuccessResponse_SimulationResponse_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/docs/AccessDecisionResponse.md b/sdks/rust/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..7e59c32 --- /dev/null +++ b/sdks/rust/docs/AccessDecisionResponse.md @@ -0,0 +1,17 @@ +# AccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **bool** | | +**decision** | **String** | | +**matched_policies** | Option<**Vec**> | | [optional] +**reason** | Option<**String**> | | [optional] +**policy_id** | Option<**String**> | | [optional] +**explain_trace** | Option<**Vec>**> | | [optional] +**revision** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AccessRequest.md b/sdks/rust/docs/AccessRequest.md new file mode 100644 index 0000000..99c40ab --- /dev/null +++ b/sdks/rust/docs/AccessRequest.md @@ -0,0 +1,16 @@ +# AccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | Option<**std::collections::HashMap**> | | [optional] +**action** | **String** | | +**resource** | Option<**std::collections::HashMap**> | | [optional] +**context** | Option<**std::collections::HashMap**> | | [optional] +**consistency** | Option<**String**> | | [optional][default to eventual] +**revision** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AclCreate.md b/sdks/rust/docs/AclCreate.md new file mode 100644 index 0000000..854befe --- /dev/null +++ b/sdks/rust/docs/AclCreate.md @@ -0,0 +1,16 @@ +# AclCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject_type** | **String** | | +**subject_id** | **String** | | +**resource_type** | **String** | | +**resource_id** | **String** | | +**action** | **String** | | +**effect** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AclOut.md b/sdks/rust/docs/AclOut.md new file mode 100644 index 0000000..01c9828 --- /dev/null +++ b/sdks/rust/docs/AclOut.md @@ -0,0 +1,19 @@ +# AclOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject_type** | **String** | | +**subject_id** | **String** | | +**resource_type** | **String** | | +**resource_id** | **String** | | +**action** | **String** | | +**effect** | **String** | | +**id** | **i32** | | +**tenant_id** | **i32** | | +**created_at** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AdminLoginRequest.md b/sdks/rust/docs/AdminLoginRequest.md new file mode 100644 index 0000000..7bac3c6 --- /dev/null +++ b/sdks/rust/docs/AdminLoginRequest.md @@ -0,0 +1,12 @@ +# AdminLoginRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **String** | | +**password** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AdminLoginResponse.md b/sdks/rust/docs/AdminLoginResponse.md new file mode 100644 index 0000000..0060be6 --- /dev/null +++ b/sdks/rust/docs/AdminLoginResponse.md @@ -0,0 +1,15 @@ +# AdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **String** | | +**token_type** | Option<**String**> | | [optional][default to bearer] +**expires_in** | **i32** | | +**role** | Option<**String**> | | [optional][default to admin] +**tenant_key** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AuditRecordOut.md b/sdks/rust/docs/AuditRecordOut.md new file mode 100644 index 0000000..02b8517 --- /dev/null +++ b/sdks/rust/docs/AuditRecordOut.md @@ -0,0 +1,23 @@ +# AuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**principal_type** | **String** | | +**principal_id** | **String** | | +**correlation_id** | Option<**String**> | | [optional] +**user** | **std::collections::HashMap** | | +**action** | **String** | | +**resource** | **std::collections::HashMap** | | +**decision** | **String** | | +**matched_policies** | **Vec** | | +**reason** | Option<**String**> | | [optional] +**evaluated_rules** | **Vec** | | +**failed_conditions** | **Vec** | | +**created_at** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AuthApi.md b/sdks/rust/docs/AuthApi.md new file mode 100644 index 0000000..34d7e85 --- /dev/null +++ b/sdks/rust/docs/AuthApi.md @@ -0,0 +1,66 @@ +# \AuthApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_login_admin_login_post**](AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login +[**admin_login_admin_login_post_0**](AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login + + + +## admin_login_admin_login_post + +> models::SuccessResponseAdminLoginResponse admin_login_admin_login_post(admin_login_request) +Admin Login + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | [required] | + +### Return type + +[**models::SuccessResponseAdminLoginResponse**](SuccessResponse_AdminLoginResponse_.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## admin_login_admin_login_post_0 + +> models::SuccessResponseAdminLoginResponse admin_login_admin_login_post_0(admin_login_request) +Admin Login + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | [required] | + +### Return type + +[**models::SuccessResponseAdminLoginResponse**](SuccessResponse_AdminLoginResponse_.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/docs/AuthModelCreate.md b/sdks/rust/docs/AuthModelCreate.md new file mode 100644 index 0000000..3ee310f --- /dev/null +++ b/sdks/rust/docs/AuthModelCreate.md @@ -0,0 +1,11 @@ +# AuthModelCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**schema** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/AuthModelOut.md b/sdks/rust/docs/AuthModelOut.md new file mode 100644 index 0000000..92ab439 --- /dev/null +++ b/sdks/rust/docs/AuthModelOut.md @@ -0,0 +1,15 @@ +# AuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**tenant_id** | **i32** | | +**schema** | **String** | | +**parsed** | **std::collections::HashMap** | | +**compiled** | **std::collections::HashMap** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/BatchAccessItem.md b/sdks/rust/docs/BatchAccessItem.md new file mode 100644 index 0000000..d735eb3 --- /dev/null +++ b/sdks/rust/docs/BatchAccessItem.md @@ -0,0 +1,12 @@ +# BatchAccessItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**resource** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/BatchAccessRequest.md b/sdks/rust/docs/BatchAccessRequest.md new file mode 100644 index 0000000..3e2071a --- /dev/null +++ b/sdks/rust/docs/BatchAccessRequest.md @@ -0,0 +1,14 @@ +# BatchAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | Option<**std::collections::HashMap**> | | [optional] +**items** | [**Vec**](BatchAccessItem.md) | | +**consistency** | Option<**String**> | | [optional][default to eventual] +**revision** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/BatchAccessResponse.md b/sdks/rust/docs/BatchAccessResponse.md new file mode 100644 index 0000000..4ccad20 --- /dev/null +++ b/sdks/rust/docs/BatchAccessResponse.md @@ -0,0 +1,12 @@ +# BatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**Vec**](BatchAccessResult.md) | | +**revision** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/BatchAccessResult.md b/sdks/rust/docs/BatchAccessResult.md new file mode 100644 index 0000000..0bbe31f --- /dev/null +++ b/sdks/rust/docs/BatchAccessResult.md @@ -0,0 +1,13 @@ +# BatchAccessResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**allowed** | **bool** | | +**revision** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/DataValue.md b/sdks/rust/docs/DataValue.md new file mode 100644 index 0000000..7642193 --- /dev/null +++ b/sdks/rust/docs/DataValue.md @@ -0,0 +1,10 @@ +# DataValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/DevApi.md b/sdks/rust/docs/DevApi.md new file mode 100644 index 0000000..6663ef2 --- /dev/null +++ b/sdks/rust/docs/DevApi.md @@ -0,0 +1,63 @@ +# \DevApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_sample_data_dev_sample_data_get**](DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data +[**seed_sample_data_dev_sample_data_seed_post**](DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data + + + +## get_sample_data_dev_sample_data_get + +> models::SuccessResponseDictStrObject get_sample_data_dev_sample_data_get() +Get Sample Data + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::SuccessResponseDictStrObject**](SuccessResponse_dict_str__object__.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## seed_sample_data_dev_sample_data_seed_post + +> models::SuccessResponseDictStrObject seed_sample_data_dev_sample_data_seed_post(reset) +Seed Sample Data + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**reset** | Option<**bool**> | Clear the sample dataset before reseeding it. | |[default to false] + +### Return type + +[**models::SuccessResponseDictStrObject**](SuccessResponse_dict_str__object__.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/docs/HealthApi.md b/sdks/rust/docs/HealthApi.md new file mode 100644 index 0000000..e9adab6 --- /dev/null +++ b/sdks/rust/docs/HealthApi.md @@ -0,0 +1,86 @@ +# \HealthApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**health_health_get**](HealthApi.md#health_health_get) | **GET** /health | Health +[**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness +[**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness + + + +## health_health_get + +> models::SuccessResponseDictStrStr health_health_get() +Health + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::SuccessResponseDictStrStr**](SuccessResponse_dict_str__str__.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## liveness_health_live_get + +> models::SuccessResponseDictStrStr liveness_health_live_get() +Liveness + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::SuccessResponseDictStrStr**](SuccessResponse_dict_str__str__.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## readiness_health_ready_get + +> models::SuccessResponseDictStrObject readiness_health_ready_get() +Readiness + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::SuccessResponseDictStrObject**](SuccessResponse_dict_str__object__.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/docs/HttpValidationError.md b/sdks/rust/docs/HttpValidationError.md new file mode 100644 index 0000000..d111ad5 --- /dev/null +++ b/sdks/rust/docs/HttpValidationError.md @@ -0,0 +1,11 @@ +# HttpValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**detail** | Option<[**Vec**](ValidationError.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/ImpactAnalysisRequest.md b/sdks/rust/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..cdba02a --- /dev/null +++ b/sdks/rust/docs/ImpactAnalysisRequest.md @@ -0,0 +1,11 @@ +# ImpactAnalysisRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy_change** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/ImpactAnalysisResponse.md b/sdks/rust/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..021babc --- /dev/null +++ b/sdks/rust/docs/ImpactAnalysisResponse.md @@ -0,0 +1,12 @@ +# ImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gained_access** | Option<**Vec**> | | [optional] +**lost_access** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/LocationInner.md b/sdks/rust/docs/LocationInner.md new file mode 100644 index 0000000..c5db6f0 --- /dev/null +++ b/sdks/rust/docs/LocationInner.md @@ -0,0 +1,10 @@ +# LocationInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/ManagementApi.md b/sdks/rust/docs/ManagementApi.md new file mode 100644 index 0000000..ac25d82 --- /dev/null +++ b/sdks/rust/docs/ManagementApi.md @@ -0,0 +1,836 @@ +# \ManagementApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_permission_to_role_roles_role_id_permissions_permission_id_post**](ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +[**create_acl_entry_acl_post**](ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry +[**create_auth_model_auth_model_post**](ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model +[**create_permission_permissions_post**](ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission +[**create_policy_from_dsl_policies_dsl_post**](ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl +[**create_policy_policies_post**](ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy +[**create_relationship_relationships_post**](ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship +[**create_role_roles_post**](ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role +[**delete_acl_entry_acl_acl_id_delete**](ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +[**delete_permission_permissions_permission_id_delete**](ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission +[**delete_policy_policies_policy_key_delete**](ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy +[**delete_role_roles_role_id_delete**](ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role +[**get_auth_model_auth_model_get**](ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model +[**impact_analysis_impact_analysis_post**](ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis +[**list_acl_entries_acl_resource_type_resource_id_get**](ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +[**list_audit_logs_audit_get**](ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs +[**list_permission_roles_permissions_permission_id_roles_get**](ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles +[**list_permissions_permissions_get**](ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions +[**list_policies_policies_get**](ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies +[**list_relationships_relationships_get**](ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships +[**list_role_permissions_roles_role_id_permissions_get**](ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions +[**list_roles_roles_get**](ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles +[**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +[**rollback_policy_policies_policy_key_rollback_version_post**](ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +[**simulate_policy_simulate_policy_post**](ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy +[**update_permission_permissions_permission_id_put**](ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission +[**update_policy_policies_policy_key_put**](ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy +[**update_role_roles_role_id_put**](ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role + + + +## add_permission_to_role_roles_role_id_permissions_permission_id_post + +> models::SuccessResponsePermissionOut add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) +Add Permission To Role + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role_id** | **i32** | | [required] | +**permission_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponsePermissionOut**](SuccessResponse_PermissionOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_acl_entry_acl_post + +> models::SuccessResponseAclOut create_acl_entry_acl_post(acl_create) +Create Acl Entry + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**acl_create** | [**AclCreate**](AclCreate.md) | | [required] | + +### Return type + +[**models::SuccessResponseAclOut**](SuccessResponse_ACLOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_auth_model_auth_model_post + +> models::SuccessResponseAuthModelOut create_auth_model_auth_model_post(auth_model_create) +Create Auth Model + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**auth_model_create** | [**AuthModelCreate**](AuthModelCreate.md) | | [required] | + +### Return type + +[**models::SuccessResponseAuthModelOut**](SuccessResponse_AuthModelOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_permission_permissions_post + +> models::PermissionOut create_permission_permissions_post(permission_create) +Create Permission + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**permission_create** | [**PermissionCreate**](PermissionCreate.md) | | [required] | + +### Return type + +[**models::PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_policy_from_dsl_policies_dsl_post + +> models::SuccessResponsePolicyOut create_policy_from_dsl_policies_dsl_post(dsl) +Create Policy From Dsl + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**dsl** | **String** | | [required] | + +### Return type + +[**models::SuccessResponsePolicyOut**](SuccessResponse_PolicyOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_policy_policies_post + +> models::SuccessResponsePolicyOut create_policy_policies_post(policy_create) +Create Policy + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**policy_create** | [**PolicyCreate**](PolicyCreate.md) | | [required] | + +### Return type + +[**models::SuccessResponsePolicyOut**](SuccessResponse_PolicyOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_relationship_relationships_post + +> models::SuccessResponseRelationshipOut create_relationship_relationships_post(relationship_create) +Create Relationship + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**relationship_create** | [**RelationshipCreate**](RelationshipCreate.md) | | [required] | + +### Return type + +[**models::SuccessResponseRelationshipOut**](SuccessResponse_RelationshipOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_role_roles_post + +> models::RoleOut create_role_roles_post(role_create) +Create Role + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role_create** | [**RoleCreate**](RoleCreate.md) | | [required] | + +### Return type + +[**models::RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_acl_entry_acl_acl_id_delete + +> models::SuccessResponseDictStrInt delete_acl_entry_acl_acl_id_delete(acl_id) +Delete Acl Entry + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**acl_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_permission_permissions_permission_id_delete + +> models::SuccessResponseDictStrInt delete_permission_permissions_permission_id_delete(permission_id) +Delete Permission + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**permission_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_policy_policies_policy_key_delete + +> models::SuccessResponseDictStrStr delete_policy_policies_policy_key_delete(policy_key) +Delete Policy + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**policy_key** | **String** | | [required] | + +### Return type + +[**models::SuccessResponseDictStrStr**](SuccessResponse_dict_str__str__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_role_roles_role_id_delete + +> models::SuccessResponseDictStrInt delete_role_roles_role_id_delete(role_id) +Delete Role + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_auth_model_auth_model_get + +> models::SuccessResponseAuthModelOut get_auth_model_auth_model_get() +Get Auth Model + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::SuccessResponseAuthModelOut**](SuccessResponse_AuthModelOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## impact_analysis_impact_analysis_post + +> models::SuccessResponseImpactAnalysisResponse impact_analysis_impact_analysis_post(impact_analysis_request) +Impact Analysis + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**impact_analysis_request** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | [required] | + +### Return type + +[**models::SuccessResponseImpactAnalysisResponse**](SuccessResponse_ImpactAnalysisResponse_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_acl_entries_acl_resource_type_resource_id_get + +> models::SuccessResponseListAclOut list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) +List Acl Entries + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**resource_type** | **String** | | [required] | +**resource_id** | **String** | | [required] | + +### Return type + +[**models::SuccessResponseListAclOut**](SuccessResponse_list_ACLOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_audit_logs_audit_get + +> models::SuccessResponseListAuditRecordOut list_audit_logs_audit_get(limit, cursor, user_id, resource_id, decision, start_time, end_time) +List Audit Logs + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**limit** | Option<**i32**> | | |[default to 50] +**cursor** | Option<**String**> | | | +**user_id** | Option<**String**> | | | +**resource_id** | Option<**String**> | | | +**decision** | Option<**String**> | | | +**start_time** | Option<**String**> | | | +**end_time** | Option<**String**> | | | + +### Return type + +[**models::SuccessResponseListAuditRecordOut**](SuccessResponse_list_AuditRecordOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_permission_roles_permissions_permission_id_roles_get + +> models::SuccessResponseListRoleOut list_permission_roles_permissions_permission_id_roles_get(permission_id) +List Permission Roles + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**permission_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseListRoleOut**](SuccessResponse_list_RoleOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_permissions_permissions_get + +> models::SuccessResponseListPermissionOut list_permissions_permissions_get(limit, cursor) +List Permissions + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**limit** | Option<**i32**> | | |[default to 50] +**cursor** | Option<**String**> | | | + +### Return type + +[**models::SuccessResponseListPermissionOut**](SuccessResponse_list_PermissionOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_policies_policies_get + +> models::SuccessResponseListPolicyOut list_policies_policies_get(limit, cursor) +List Policies + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**limit** | Option<**i32**> | | |[default to 50] +**cursor** | Option<**String**> | | | + +### Return type + +[**models::SuccessResponseListPolicyOut**](SuccessResponse_list_PolicyOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_relationships_relationships_get + +> models::SuccessResponseListDictStrStr list_relationships_relationships_get(subject_type, subject_id, limit, cursor) +List Relationships + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**subject_type** | **String** | | [required] | +**subject_id** | **String** | | [required] | +**limit** | Option<**i32**> | | |[default to 50] +**cursor** | Option<**String**> | | | + +### Return type + +[**models::SuccessResponseListDictStrStr**](SuccessResponse_list_dict_str__str___.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_role_permissions_roles_role_id_permissions_get + +> models::SuccessResponseListPermissionOut list_role_permissions_roles_role_id_permissions_get(role_id) +List Role Permissions + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseListPermissionOut**](SuccessResponse_list_PermissionOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_roles_roles_get + +> models::SuccessResponseListRoleOut list_roles_roles_get(limit, cursor) +List Roles + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**limit** | Option<**i32**> | | |[default to 50] +**cursor** | Option<**String**> | | | + +### Return type + +[**models::SuccessResponseListRoleOut**](SuccessResponse_list_RoleOut__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## remove_permission_from_role_roles_role_id_permissions_permission_id_delete + +> models::SuccessResponseDictStrInt remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) +Remove Permission From Role + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role_id** | **i32** | | [required] | +**permission_id** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## rollback_policy_policies_policy_key_rollback_version_post + +> models::SuccessResponseDictStrUnionIntStr rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) +Rollback Policy + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**policy_key** | **String** | | [required] | +**version** | **i32** | | [required] | + +### Return type + +[**models::SuccessResponseDictStrUnionIntStr**](SuccessResponse_dict_str__Union_int__str___.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## simulate_policy_simulate_policy_post + +> models::SuccessResponsePolicySimulationResponse simulate_policy_simulate_policy_post(policy_simulation_request) +Simulate Policy + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**policy_simulation_request** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | [required] | + +### Return type + +[**models::SuccessResponsePolicySimulationResponse**](SuccessResponse_PolicySimulationResponse_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_permission_permissions_permission_id_put + +> models::PermissionOut update_permission_permissions_permission_id_put(permission_id, permission_update) +Update Permission + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**permission_id** | **i32** | | [required] | +**permission_update** | [**PermissionUpdate**](PermissionUpdate.md) | | [required] | + +### Return type + +[**models::PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_policy_policies_policy_key_put + +> models::SuccessResponsePolicyOut update_policy_policies_policy_key_put(policy_key, policy_create) +Update Policy + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**policy_key** | **String** | | [required] | +**policy_create** | [**PolicyCreate**](PolicyCreate.md) | | [required] | + +### Return type + +[**models::SuccessResponsePolicyOut**](SuccessResponse_PolicyOut_.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_role_roles_role_id_put + +> models::RoleOut update_role_roles_role_id_put(role_id, role_update) +Update Role + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**role_id** | **i32** | | [required] | +**role_update** | [**RoleUpdate**](RoleUpdate.md) | | [required] | + +### Return type + +[**models::RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/docs/MetaBody.md b/sdks/rust/docs/MetaBody.md new file mode 100644 index 0000000..5a070b5 --- /dev/null +++ b/sdks/rust/docs/MetaBody.md @@ -0,0 +1,14 @@ +# MetaBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | Option<**String**> | | [optional] +**limit** | Option<**i32**> | | [optional] +**next_cursor** | Option<**String**> | | [optional] +**extra** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PermissionCreate.md b/sdks/rust/docs/PermissionCreate.md new file mode 100644 index 0000000..dd17cc0 --- /dev/null +++ b/sdks/rust/docs/PermissionCreate.md @@ -0,0 +1,11 @@ +# PermissionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PermissionOut.md b/sdks/rust/docs/PermissionOut.md new file mode 100644 index 0000000..a5f91d3 --- /dev/null +++ b/sdks/rust/docs/PermissionOut.md @@ -0,0 +1,12 @@ +# PermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PermissionUpdate.md b/sdks/rust/docs/PermissionUpdate.md new file mode 100644 index 0000000..e83f18c --- /dev/null +++ b/sdks/rust/docs/PermissionUpdate.md @@ -0,0 +1,11 @@ +# PermissionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PlaygroundApi.md b/sdks/rust/docs/PlaygroundApi.md new file mode 100644 index 0000000..5c39be0 --- /dev/null +++ b/sdks/rust/docs/PlaygroundApi.md @@ -0,0 +1,37 @@ +# \PlaygroundApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate + + + +## evaluate_playground_evaluate_post + +> models::SuccessResponseDictStrAny evaluate_playground_evaluate_post(playground_evaluate_request) +Evaluate + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | [required] | + +### Return type + +[**models::SuccessResponseDictStrAny**](SuccessResponse_dict_str__Any__.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/docs/PlaygroundEvaluateRequest.md b/sdks/rust/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..3351ff3 --- /dev/null +++ b/sdks/rust/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,12 @@ +# PlaygroundEvaluateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**Vec**](PlaygroundPolicy.md) | | +**input** | [**models::PlaygroundInput**](PlaygroundInput.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PlaygroundInput.md b/sdks/rust/docs/PlaygroundInput.md new file mode 100644 index 0000000..f0f97ca --- /dev/null +++ b/sdks/rust/docs/PlaygroundInput.md @@ -0,0 +1,14 @@ +# PlaygroundInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | Option<**std::collections::HashMap**> | | [optional] +**resource** | Option<**std::collections::HashMap**> | | [optional] +**action** | Option<**String**> | | [optional][default to ] +**context** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PlaygroundPolicy.md b/sdks/rust/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..635743c --- /dev/null +++ b/sdks/rust/docs/PlaygroundPolicy.md @@ -0,0 +1,15 @@ +# PlaygroundPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**effect** | Option<**String**> | | [optional][default to allow] +**priority** | Option<**i32**> | | [optional][default to 100] +**policy_id** | Option<**String**> | | [optional] +**conditions** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PolicyCreate.md b/sdks/rust/docs/PolicyCreate.md new file mode 100644 index 0000000..0605206 --- /dev/null +++ b/sdks/rust/docs/PolicyCreate.md @@ -0,0 +1,15 @@ +# PolicyCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**effect** | Option<**String**> | | [optional][default to allow] +**priority** | Option<**i32**> | | [optional][default to 100] +**state** | Option<**String**> | | [optional][default to active] +**conditions** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PolicyOut.md b/sdks/rust/docs/PolicyOut.md new file mode 100644 index 0000000..148b60b --- /dev/null +++ b/sdks/rust/docs/PolicyOut.md @@ -0,0 +1,16 @@ +# PolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**action** | **String** | | +**effect** | **String** | | +**priority** | **i32** | | +**state** | Option<**String**> | | [optional][default to active] +**conditions** | **std::collections::HashMap** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PolicySimulationInput.md b/sdks/rust/docs/PolicySimulationInput.md new file mode 100644 index 0000000..a10d289 --- /dev/null +++ b/sdks/rust/docs/PolicySimulationInput.md @@ -0,0 +1,13 @@ +# PolicySimulationInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy_change** | Option<**String**> | | [optional] +**relationship_change** | Option<**std::collections::HashMap**> | | [optional] +**role_change** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PolicySimulationRequest.md b/sdks/rust/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..3c904b4 --- /dev/null +++ b/sdks/rust/docs/PolicySimulationRequest.md @@ -0,0 +1,12 @@ +# PolicySimulationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**simulate** | Option<[**models::PolicySimulationInput**](PolicySimulationInput.md)> | | [optional] +**request** | Option<**std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/PolicySimulationResponse.md b/sdks/rust/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..4f1384e --- /dev/null +++ b/sdks/rust/docs/PolicySimulationResponse.md @@ -0,0 +1,12 @@ +# PolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decision_before** | **std::collections::HashMap** | | +**decision_after** | **std::collections::HashMap** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/RelationshipCreate.md b/sdks/rust/docs/RelationshipCreate.md new file mode 100644 index 0000000..1de9dfd --- /dev/null +++ b/sdks/rust/docs/RelationshipCreate.md @@ -0,0 +1,15 @@ +# RelationshipCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject_type** | **String** | | +**subject_id** | **String** | | +**relation** | **String** | | +**object_type** | **String** | | +**object_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/RelationshipOut.md b/sdks/rust/docs/RelationshipOut.md new file mode 100644 index 0000000..bd8d884 --- /dev/null +++ b/sdks/rust/docs/RelationshipOut.md @@ -0,0 +1,16 @@ +# RelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject_type** | **String** | | +**subject_id** | **String** | | +**relation** | **String** | | +**object_type** | **String** | | +**object_id** | **String** | | +**id** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/RoleCreate.md b/sdks/rust/docs/RoleCreate.md new file mode 100644 index 0000000..4eb1eab --- /dev/null +++ b/sdks/rust/docs/RoleCreate.md @@ -0,0 +1,11 @@ +# RoleCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/RoleOut.md b/sdks/rust/docs/RoleOut.md new file mode 100644 index 0000000..c3ef727 --- /dev/null +++ b/sdks/rust/docs/RoleOut.md @@ -0,0 +1,12 @@ +# RoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **i32** | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/RoleUpdate.md b/sdks/rust/docs/RoleUpdate.md new file mode 100644 index 0000000..8e78b41 --- /dev/null +++ b/sdks/rust/docs/RoleUpdate.md @@ -0,0 +1,11 @@ +# RoleUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SimulationResponse.md b/sdks/rust/docs/SimulationResponse.md new file mode 100644 index 0000000..639a5a0 --- /dev/null +++ b/sdks/rust/docs/SimulationResponse.md @@ -0,0 +1,17 @@ +# SimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decision** | **String** | | +**matched_policies** | **Vec** | | +**reason** | Option<**String**> | | [optional] +**policy_id** | Option<**String**> | | [optional] +**explain_trace** | Option<**Vec>**> | | [optional] +**failed_conditions** | Option<**Vec**> | | [optional] +**revision** | Option<**i32**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md b/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..4cae6ac --- /dev/null +++ b/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,13 @@ +# SuccessResponseAccessDecisionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::AccessDecisionResponse**](AccessDecisionResponse.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseAclOut.md b/sdks/rust/docs/SuccessResponseAclOut.md new file mode 100644 index 0000000..90bf87b --- /dev/null +++ b/sdks/rust/docs/SuccessResponseAclOut.md @@ -0,0 +1,13 @@ +# SuccessResponseAclOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::AclOut**](ACLOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseAdminLoginResponse.md b/sdks/rust/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..296f4e2 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,13 @@ +# SuccessResponseAdminLoginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::AdminLoginResponse**](AdminLoginResponse.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseAuthModelOut.md b/sdks/rust/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..daf256f --- /dev/null +++ b/sdks/rust/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,13 @@ +# SuccessResponseAuthModelOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::AuthModelOut**](AuthModelOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseBatchAccessResponse.md b/sdks/rust/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..3ba6d3a --- /dev/null +++ b/sdks/rust/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,13 @@ +# SuccessResponseBatchAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::BatchAccessResponse**](BatchAccessResponse.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseDictStrAny.md b/sdks/rust/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..a9d2cbd --- /dev/null +++ b/sdks/rust/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,13 @@ +# SuccessResponseDictStrAny + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **std::collections::HashMap** | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseDictStrInt.md b/sdks/rust/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..fb7405a --- /dev/null +++ b/sdks/rust/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,13 @@ +# SuccessResponseDictStrInt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **std::collections::HashMap** | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseDictStrObject.md b/sdks/rust/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..a48b810 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,13 @@ +# SuccessResponseDictStrObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **std::collections::HashMap** | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseDictStrStr.md b/sdks/rust/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..24d19f5 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,13 @@ +# SuccessResponseDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **std::collections::HashMap** | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..591c32e --- /dev/null +++ b/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,13 @@ +# SuccessResponseDictStrUnionIntStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**std::collections::HashMap**](DataValue.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..39741a2 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,13 @@ +# SuccessResponseImpactAnalysisResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseListAclOut.md b/sdks/rust/docs/SuccessResponseListAclOut.md new file mode 100644 index 0000000..b1265d6 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseListAclOut.md @@ -0,0 +1,13 @@ +# SuccessResponseListAclOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Vec**](ACLOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseListAuditRecordOut.md b/sdks/rust/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..54ead90 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,13 @@ +# SuccessResponseListAuditRecordOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Vec**](AuditRecordOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseListDictStrStr.md b/sdks/rust/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..2ef43ef --- /dev/null +++ b/sdks/rust/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,13 @@ +# SuccessResponseListDictStrStr + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Vec>** | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseListPermissionOut.md b/sdks/rust/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..832a685 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,13 @@ +# SuccessResponseListPermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Vec**](PermissionOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseListPolicyOut.md b/sdks/rust/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..bd06ca3 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,13 @@ +# SuccessResponseListPolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Vec**](PolicyOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseListRoleOut.md b/sdks/rust/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..24bd705 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,13 @@ +# SuccessResponseListRoleOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Vec**](RoleOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponsePermissionOut.md b/sdks/rust/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..d9b61c0 --- /dev/null +++ b/sdks/rust/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,13 @@ +# SuccessResponsePermissionOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::PermissionOut**](PermissionOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponsePolicyOut.md b/sdks/rust/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..fb99493 --- /dev/null +++ b/sdks/rust/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,13 @@ +# SuccessResponsePolicyOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::PolicyOut**](PolicyOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md b/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..c939470 --- /dev/null +++ b/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,13 @@ +# SuccessResponsePolicySimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::PolicySimulationResponse**](PolicySimulationResponse.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseRelationshipOut.md b/sdks/rust/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..91494f3 --- /dev/null +++ b/sdks/rust/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,13 @@ +# SuccessResponseRelationshipOut + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::RelationshipOut**](RelationshipOut.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/SuccessResponseSimulationResponse.md b/sdks/rust/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..242ea3e --- /dev/null +++ b/sdks/rust/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,13 @@ +# SuccessResponseSimulationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**models::SimulationResponse**](SimulationResponse.md) | | +**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] +**error** | Option<[**models::Null**](Null.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/docs/ValidationError.md b/sdks/rust/docs/ValidationError.md new file mode 100644 index 0000000..d7d06bd --- /dev/null +++ b/sdks/rust/docs/ValidationError.md @@ -0,0 +1,15 @@ +# ValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loc** | [**Vec**](LocationInner.md) | | +**msg** | **String** | | +**r#type** | **String** | | +**input** | Option<**serde_json::Value**> | | [optional] +**ctx** | Option<**serde_json::Value**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/rust/git_push.sh b/sdks/rust/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/rust/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/swift/.gitignore b/sdks/swift/.gitignore new file mode 100644 index 0000000..316a845 --- /dev/null +++ b/sdks/swift/.gitignore @@ -0,0 +1,100 @@ +# Created by https://www.toptal.com/developers/gitignore/api/xcode,swift +# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,swift + +### Swift ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +# Package.resolved +# *.xcodeproj +# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata +# hence it is not needed unless you have added a package configuration file to your project +# .swiftpm + +.build/ + +# CocoaPods +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# Pods/ +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# Accio dependency management +Dependencies/ +.accio/ + +# fastlane +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots/**/*.png +fastlane/test_output + +# Code Injection +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +### Xcode ### + +## Xcode 8 and earlier + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno +**/xcshareddata/WorkspaceSettings.xcsettings + +# End of https://www.toptal.com/developers/gitignore/api/xcode,swift diff --git a/sdks/swift/.swiftformat b/sdks/swift/.swiftformat new file mode 100644 index 0000000..9300725 --- /dev/null +++ b/sdks/swift/.swiftformat @@ -0,0 +1,45 @@ +# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/ +# +# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md +# +# file options + +# uncomment below to exclude files, folders +#--exclude path/to/test1.swift,Snapshots,Build + +# format options + +--allman false +--binarygrouping 4,8 +--commas always +--comments indent +--decimalgrouping 3,6 +--elseposition same-line +--empty void +--exponentcase lowercase +--exponentgrouping disabled +--fractiongrouping disabled +--header ignore +--hexgrouping 4,8 +--hexliteralcase uppercase +--ifdef indent +--indent 4 +--indentcase false +--importgrouping testable-bottom +--linebreaks lf +--maxwidth none +--octalgrouping 4,8 +--operatorfunc spaced +--patternlet hoist +--ranges spaced +--self remove +--semicolons inline +--stripunusedargs always +--swiftversion 5.4 +--trimwhitespace always +--wraparguments preserve +--wrapcollections preserve + +# rules + +--enable isEmpty diff --git a/sdks/swift/Cartfile b/sdks/swift/Cartfile new file mode 100644 index 0000000..92bac17 --- /dev/null +++ b/sdks/swift/Cartfile @@ -0,0 +1 @@ +github "Flight-School/AnyCodable" ~> 0.6 diff --git a/sdks/swift/KeyNetraClient.podspec b/sdks/swift/KeyNetraClient.podspec new file mode 100644 index 0000000..461e946 --- /dev/null +++ b/sdks/swift/KeyNetraClient.podspec @@ -0,0 +1,16 @@ +Pod::Spec.new do |s| + s.name = 'KeyNetraClient' + s.ios.deployment_target = '11.0' + s.osx.deployment_target = '10.13' + s.tvos.deployment_target = '11.0' + s.watchos.deployment_target = '4.0' + s.version = '0.1.1' + s.source = https://github.com/keynetra/keynetra-sdks + s.authors = 'KeyNetra Engineering' + s.license = Apache-2.0 + s.homepage = 'https://keynetra.com' + s.summary = 'Official Swift SDK for the KeyNetra authorization platform.' + s.description = 'KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control.' + s.source_files = 'KeyNetraClient/Classes/**/*.swift' + s.dependency 'AnyCodable-FlightSchool', '~> 0.6' +end diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift new file mode 100644 index 0000000..7c975bb --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift @@ -0,0 +1,121 @@ +// APIHelper.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIHelper { + public static func rejectNil(_ source: [String: Any?]) -> [String: Any]? { + let destination = source.reduce(into: [String: Any]()) { result, item in + if let value = item.value { + result[item.key] = value + } + } + + if destination.isEmpty { + return nil + } + return destination + } + + public static func rejectNilHeaders(_ source: [String: Any?]) -> [String: String] { + return source.reduce(into: [String: String]()) { result, item in + if let collection = item.value as? [Any?] { + result[item.key] = collection + .compactMap { value in convertAnyToString(value) } + .joined(separator: ",") + } else if let value: Any = item.value { + result[item.key] = convertAnyToString(value) + } + } + } + + public static func convertBoolToString(_ source: [String: Any]?) -> [String: Any]? { + guard let source = source else { + return nil + } + + return source.reduce(into: [String: Any]()) { result, item in + switch item.value { + case let x as Bool: + result[item.key] = x.description + default: + result[item.key] = item.value + } + } + } + + public static func convertAnyToString(_ value: Any?) -> String? { + guard let value = value else { return nil } + if let value = value as? any RawRepresentable { + return "\(value.rawValue)" + } else { + return "\(value)" + } + } + + public static func mapValueToPathItem(_ source: Any) -> Any { + if let collection = source as? [Any?] { + return collection + .compactMap { value in convertAnyToString(value) } + .joined(separator: ",") + } else if let value = source as? any RawRepresentable { + return "\(value.rawValue)" + } + return source + } + + /// maps all values from source to query parameters + /// + /// explode attribute is respected: collection values might be either joined or split up into separate key value pairs + public static func mapValuesToQueryItems(_ source: [String: (wrappedValue: Any?, isExplode: Bool)]) -> [URLQueryItem]? { + let destination = source.filter { $0.value.wrappedValue != nil }.reduce(into: [URLQueryItem]()) { result, item in + if let collection = item.value.wrappedValue as? [Any?] { + + let collectionValues: [String] = collection.compactMap { value in convertAnyToString(value) } + + if !item.value.isExplode { + result.append(URLQueryItem(name: item.key, value: collectionValues.joined(separator: ","))) + } else { + collectionValues + .forEach { value in + result.append(URLQueryItem(name: item.key, value: value)) + } + } + + } else if let value = item.value.wrappedValue { + result.append(URLQueryItem(name: item.key, value: convertAnyToString(value))) + } + } + + if destination.isEmpty { + return nil + } + return destination.sorted { $0.name < $1.name } + } + + /// maps all values from source to query parameters + /// + /// collection values are always exploded + public static func mapValuesToQueryItems(_ source: [String: Any?]) -> [URLQueryItem]? { + let destination = source.filter { $0.value != nil }.reduce(into: [URLQueryItem]()) { result, item in + if let collection = item.value as? [Any?] { + collection + .compactMap { value in convertAnyToString(value) } + .forEach { value in + result.append(URLQueryItem(name: item.key, value: value)) + } + + } else if let value = item.value { + result.append(URLQueryItem(name: item.key, value: convertAnyToString(value))) + } + } + + if destination.isEmpty { + return nil + } + return destination.sorted { $0.name < $1.name } + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift new file mode 100644 index 0000000..343e47d --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift @@ -0,0 +1,68 @@ +// APIs.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif +open class KeyNetraClientAPI { + public static var basePath = "http://localhost" + public static var customHeaders: [String: String] = [:] + public static var credential: URLCredential? + public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory() + public static var apiResponseQueue: DispatchQueue = .main +} + +open class RequestBuilder { + var credential: URLCredential? + var headers: [String: String] + public let parameters: [String: Any]? + public let method: String + public let URLString: String + public let requestTask: RequestTask = RequestTask() + public let requiresAuthentication: Bool + + /// Optional block to obtain a reference to the request's progress instance when available. + public var onProgressReady: ((Progress) -> Void)? + + required public init(method: String, URLString: String, parameters: [String: Any]?, headers: [String: String] = [:], requiresAuthentication: Bool) { + self.method = method + self.URLString = URLString + self.parameters = parameters + self.headers = headers + self.requiresAuthentication = requiresAuthentication + + addHeaders(KeyNetraClientAPI.customHeaders) + addCredential() + } + + open func addHeaders(_ aHeaders: [String: String]) { + for (header, value) in aHeaders { + headers[header] = value + } + } + + @discardableResult + open func execute(_ apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, _ completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) -> RequestTask { + return requestTask + } + + public func addHeader(name: String, value: String) -> Self { + if !value.isEmpty { + headers[name] = value + } + return self + } + + open func addCredential() { + credential = KeyNetraClientAPI.credential + } +} + +public protocol RequestBuilderFactory { + func getNonDecodableBuilder() -> RequestBuilder.Type + func getBuilder() -> RequestBuilder.Type +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift new file mode 100644 index 0000000..2f04c4e --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift @@ -0,0 +1,171 @@ +// +// AccessAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +open class AccessAPI { + + /** + Check Access Batch + + - parameter batchAccessRequest: (body) + - parameter policySet: (query) (optional, default to "active") + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func checkAccessBatchCheckAccessBatchPost(batchAccessRequest: BatchAccessRequest, policySet: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseBatchAccessResponse?, _ error: Error?) -> Void)) -> RequestTask { + return checkAccessBatchCheckAccessBatchPostWithRequestBuilder(batchAccessRequest: batchAccessRequest, policySet: policySet).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Check Access Batch + - POST /check-access-batch + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter batchAccessRequest: (body) + - parameter policySet: (query) (optional, default to "active") + - returns: RequestBuilder + */ + open class func checkAccessBatchCheckAccessBatchPostWithRequestBuilder(batchAccessRequest: BatchAccessRequest, policySet: String? = nil) -> RequestBuilder { + let localVariablePath = "/check-access-batch" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: batchAccessRequest) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "policy_set": (wrappedValue: policySet?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Check Access + + - parameter accessRequest: (body) + - parameter policySet: (query) (optional, default to "active") + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func checkAccessCheckAccessPost(accessRequest: AccessRequest, policySet: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAccessDecisionResponse?, _ error: Error?) -> Void)) -> RequestTask { + return checkAccessCheckAccessPostWithRequestBuilder(accessRequest: accessRequest, policySet: policySet).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Check Access + - POST /check-access + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter accessRequest: (body) + - parameter policySet: (query) (optional, default to "active") + - returns: RequestBuilder + */ + open class func checkAccessCheckAccessPostWithRequestBuilder(accessRequest: AccessRequest, policySet: String? = nil) -> RequestBuilder { + let localVariablePath = "/check-access" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: accessRequest) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "policy_set": (wrappedValue: policySet?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Simulate + + - parameter accessRequest: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func simulateSimulatePost(accessRequest: AccessRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseSimulationResponse?, _ error: Error?) -> Void)) -> RequestTask { + return simulateSimulatePostWithRequestBuilder(accessRequest: accessRequest).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Simulate + - POST /simulate + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter accessRequest: (body) + - returns: RequestBuilder + */ + open class func simulateSimulatePostWithRequestBuilder(accessRequest: AccessRequest) -> RequestBuilder { + let localVariablePath = "/simulate" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: accessRequest) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift new file mode 100644 index 0000000..6d808f3 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift @@ -0,0 +1,100 @@ +// +// AuthAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +open class AuthAPI { + + /** + Admin Login + + - parameter adminLoginRequest: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func adminLoginAdminLoginPost(adminLoginRequest: AdminLoginRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void)) -> RequestTask { + return adminLoginAdminLoginPostWithRequestBuilder(adminLoginRequest: adminLoginRequest).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Admin Login + - POST /admin/login + - parameter adminLoginRequest: (body) + - returns: RequestBuilder + */ + open class func adminLoginAdminLoginPostWithRequestBuilder(adminLoginRequest: AdminLoginRequest) -> RequestBuilder { + let localVariablePath = "/admin/login" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: adminLoginRequest) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } + + /** + Admin Login + + - parameter adminLoginRequest: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func adminLoginAdminLoginPost_0(adminLoginRequest: AdminLoginRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void)) -> RequestTask { + return adminLoginAdminLoginPost_0WithRequestBuilder(adminLoginRequest: adminLoginRequest).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Admin Login + - POST /admin/login + - parameter adminLoginRequest: (body) + - returns: RequestBuilder + */ + open class func adminLoginAdminLoginPost_0WithRequestBuilder(adminLoginRequest: AdminLoginRequest) -> RequestBuilder { + let localVariablePath = "/admin/login" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: adminLoginRequest) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift new file mode 100644 index 0000000..4e861c0 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift @@ -0,0 +1,101 @@ +// +// DevAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +open class DevAPI { + + /** + Get Sample Data + + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func getSampleDataDevSampleDataGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void)) -> RequestTask { + return getSampleDataDevSampleDataGetWithRequestBuilder().execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Get Sample Data + - GET /dev/sample-data + - returns: RequestBuilder + */ + open class func getSampleDataDevSampleDataGetWithRequestBuilder() -> RequestBuilder { + let localVariablePath = "/dev/sample-data" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } + + /** + Seed Sample Data + + - parameter reset: (query) Clear the sample dataset before reseeding it. (optional, default to false) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func seedSampleDataDevSampleDataSeedPost(reset: Bool? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void)) -> RequestTask { + return seedSampleDataDevSampleDataSeedPostWithRequestBuilder(reset: reset).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Seed Sample Data + - POST /dev/sample-data/seed + - parameter reset: (query) Clear the sample dataset before reseeding it. (optional, default to false) + - returns: RequestBuilder + */ + open class func seedSampleDataDevSampleDataSeedPostWithRequestBuilder(reset: Bool? = nil) -> RequestBuilder { + let localVariablePath = "/dev/sample-data/seed" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "reset": (wrappedValue: reset?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift new file mode 100644 index 0000000..9abcfd5 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift @@ -0,0 +1,137 @@ +// +// HealthAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +open class HealthAPI { + + /** + Health + + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func healthHealthGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { + return healthHealthGetWithRequestBuilder().execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Health + - GET /health + - returns: RequestBuilder + */ + open class func healthHealthGetWithRequestBuilder() -> RequestBuilder { + let localVariablePath = "/health" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } + + /** + Liveness + + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func livenessHealthLiveGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { + return livenessHealthLiveGetWithRequestBuilder().execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Liveness + - GET /health/live + - returns: RequestBuilder + */ + open class func livenessHealthLiveGetWithRequestBuilder() -> RequestBuilder { + let localVariablePath = "/health/live" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } + + /** + Readiness + + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func readinessHealthReadyGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void)) -> RequestTask { + return readinessHealthReadyGetWithRequestBuilder().execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Readiness + - GET /health/ready + - returns: RequestBuilder + */ + open class func readinessHealthReadyGetWithRequestBuilder() -> RequestBuilder { + let localVariablePath = "/health/ready" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift new file mode 100644 index 0000000..b2a6443 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift @@ -0,0 +1,1503 @@ +// +// ManagementAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +open class ManagementAPI { + + /** + Add Permission To Role + + - parameter roleId: (path) + - parameter permissionId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId: Int, permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePermissionOut?, _ error: Error?) -> Void)) -> RequestTask { + return addPermissionToRoleRolesRoleIdPermissionsPermissionIdPostWithRequestBuilder(roleId: roleId, permissionId: permissionId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Add Permission To Role + - POST /roles/{role_id}/permissions/{permission_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter roleId: (path) + - parameter permissionId: (path) + - returns: RequestBuilder + */ + open class func addPermissionToRoleRolesRoleIdPermissionsPermissionIdPostWithRequestBuilder(roleId: Int, permissionId: Int) -> RequestBuilder { + var localVariablePath = "/roles/{role_id}/permissions/{permission_id}" + let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" + let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) + let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" + let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Acl Entry + + - parameter aCLCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createAclEntryAclPost(aCLCreate: ACLCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseACLOut?, _ error: Error?) -> Void)) -> RequestTask { + return createAclEntryAclPostWithRequestBuilder(aCLCreate: aCLCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Acl Entry + - POST /acl + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter aCLCreate: (body) + - returns: RequestBuilder + */ + open class func createAclEntryAclPostWithRequestBuilder(aCLCreate: ACLCreate) -> RequestBuilder { + let localVariablePath = "/acl" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: aCLCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Auth Model + + - parameter authModelCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createAuthModelAuthModelPost(authModelCreate: AuthModelCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void)) -> RequestTask { + return createAuthModelAuthModelPostWithRequestBuilder(authModelCreate: authModelCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Auth Model + - POST /auth-model + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter authModelCreate: (body) + - returns: RequestBuilder + */ + open class func createAuthModelAuthModelPostWithRequestBuilder(authModelCreate: AuthModelCreate) -> RequestBuilder { + let localVariablePath = "/auth-model" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: authModelCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Permission + + - parameter permissionCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createPermissionPermissionsPost(permissionCreate: PermissionCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: PermissionOut?, _ error: Error?) -> Void)) -> RequestTask { + return createPermissionPermissionsPostWithRequestBuilder(permissionCreate: permissionCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Permission + - POST /permissions + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter permissionCreate: (body) + - returns: RequestBuilder + */ + open class func createPermissionPermissionsPostWithRequestBuilder(permissionCreate: PermissionCreate) -> RequestBuilder { + let localVariablePath = "/permissions" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: permissionCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Policy From Dsl + + - parameter dsl: (query) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createPolicyFromDslPoliciesDslPost(dsl: String, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void)) -> RequestTask { + return createPolicyFromDslPoliciesDslPostWithRequestBuilder(dsl: dsl).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Policy From Dsl + - POST /policies/dsl + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter dsl: (query) + - returns: RequestBuilder + */ + open class func createPolicyFromDslPoliciesDslPostWithRequestBuilder(dsl: String) -> RequestBuilder { + let localVariablePath = "/policies/dsl" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "dsl": (wrappedValue: dsl.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Policy + + - parameter policyCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createPolicyPoliciesPost(policyCreate: PolicyCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void)) -> RequestTask { + return createPolicyPoliciesPostWithRequestBuilder(policyCreate: policyCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Policy + - POST /policies + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter policyCreate: (body) + - returns: RequestBuilder + */ + open class func createPolicyPoliciesPostWithRequestBuilder(policyCreate: PolicyCreate) -> RequestBuilder { + let localVariablePath = "/policies" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: policyCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Relationship + + - parameter relationshipCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createRelationshipRelationshipsPost(relationshipCreate: RelationshipCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseRelationshipOut?, _ error: Error?) -> Void)) -> RequestTask { + return createRelationshipRelationshipsPostWithRequestBuilder(relationshipCreate: relationshipCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Relationship + - POST /relationships + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter relationshipCreate: (body) + - returns: RequestBuilder + */ + open class func createRelationshipRelationshipsPostWithRequestBuilder(relationshipCreate: RelationshipCreate) -> RequestBuilder { + let localVariablePath = "/relationships" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: relationshipCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Create Role + + - parameter roleCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func createRoleRolesPost(roleCreate: RoleCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: RoleOut?, _ error: Error?) -> Void)) -> RequestTask { + return createRoleRolesPostWithRequestBuilder(roleCreate: roleCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Create Role + - POST /roles + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter roleCreate: (body) + - returns: RequestBuilder + */ + open class func createRoleRolesPostWithRequestBuilder(roleCreate: RoleCreate) -> RequestBuilder { + let localVariablePath = "/roles" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: roleCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Delete Acl Entry + + - parameter aclId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func deleteAclEntryAclAclIdDelete(aclId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { + return deleteAclEntryAclAclIdDeleteWithRequestBuilder(aclId: aclId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Delete Acl Entry + - DELETE /acl/{acl_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter aclId: (path) + - returns: RequestBuilder + */ + open class func deleteAclEntryAclAclIdDeleteWithRequestBuilder(aclId: Int) -> RequestBuilder { + var localVariablePath = "/acl/{acl_id}" + let aclIdPreEscape = "\(APIHelper.mapValueToPathItem(aclId))" + let aclIdPostEscape = aclIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{acl_id}", with: aclIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Delete Permission + + - parameter permissionId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func deletePermissionPermissionsPermissionIdDelete(permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { + return deletePermissionPermissionsPermissionIdDeleteWithRequestBuilder(permissionId: permissionId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Delete Permission + - DELETE /permissions/{permission_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter permissionId: (path) + - returns: RequestBuilder + */ + open class func deletePermissionPermissionsPermissionIdDeleteWithRequestBuilder(permissionId: Int) -> RequestBuilder { + var localVariablePath = "/permissions/{permission_id}" + let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" + let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Delete Policy + + - parameter policyKey: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func deletePolicyPoliciesPolicyKeyDelete(policyKey: String, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { + return deletePolicyPoliciesPolicyKeyDeleteWithRequestBuilder(policyKey: policyKey).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Delete Policy + - DELETE /policies/{policy_key} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter policyKey: (path) + - returns: RequestBuilder + */ + open class func deletePolicyPoliciesPolicyKeyDeleteWithRequestBuilder(policyKey: String) -> RequestBuilder { + var localVariablePath = "/policies/{policy_key}" + let policyKeyPreEscape = "\(APIHelper.mapValueToPathItem(policyKey))" + let policyKeyPostEscape = policyKeyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{policy_key}", with: policyKeyPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Delete Role + + - parameter roleId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func deleteRoleRolesRoleIdDelete(roleId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { + return deleteRoleRolesRoleIdDeleteWithRequestBuilder(roleId: roleId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Delete Role + - DELETE /roles/{role_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter roleId: (path) + - returns: RequestBuilder + */ + open class func deleteRoleRolesRoleIdDeleteWithRequestBuilder(roleId: Int) -> RequestBuilder { + var localVariablePath = "/roles/{role_id}" + let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" + let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Get Auth Model + + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func getAuthModelAuthModelGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void)) -> RequestTask { + return getAuthModelAuthModelGetWithRequestBuilder().execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Get Auth Model + - GET /auth-model + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - returns: RequestBuilder + */ + open class func getAuthModelAuthModelGetWithRequestBuilder() -> RequestBuilder { + let localVariablePath = "/auth-model" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Impact Analysis + + - parameter impactAnalysisRequest: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func impactAnalysisImpactAnalysisPost(impactAnalysisRequest: ImpactAnalysisRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseImpactAnalysisResponse?, _ error: Error?) -> Void)) -> RequestTask { + return impactAnalysisImpactAnalysisPostWithRequestBuilder(impactAnalysisRequest: impactAnalysisRequest).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Impact Analysis + - POST /impact-analysis + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter impactAnalysisRequest: (body) + - returns: RequestBuilder + */ + open class func impactAnalysisImpactAnalysisPostWithRequestBuilder(impactAnalysisRequest: ImpactAnalysisRequest) -> RequestBuilder { + let localVariablePath = "/impact-analysis" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: impactAnalysisRequest) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Acl Entries + + - parameter resourceType: (path) + - parameter resourceId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listAclEntriesAclResourceTypeResourceIdGet(resourceType: String, resourceId: String, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListACLOut?, _ error: Error?) -> Void)) -> RequestTask { + return listAclEntriesAclResourceTypeResourceIdGetWithRequestBuilder(resourceType: resourceType, resourceId: resourceId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Acl Entries + - GET /acl/{resource_type}/{resource_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter resourceType: (path) + - parameter resourceId: (path) + - returns: RequestBuilder + */ + open class func listAclEntriesAclResourceTypeResourceIdGetWithRequestBuilder(resourceType: String, resourceId: String) -> RequestBuilder { + var localVariablePath = "/acl/{resource_type}/{resource_id}" + let resourceTypePreEscape = "\(APIHelper.mapValueToPathItem(resourceType))" + let resourceTypePostEscape = resourceTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{resource_type}", with: resourceTypePostEscape, options: .literal, range: nil) + let resourceIdPreEscape = "\(APIHelper.mapValueToPathItem(resourceId))" + let resourceIdPostEscape = resourceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{resource_id}", with: resourceIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Audit Logs + + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - parameter userId: (query) (optional) + - parameter resourceId: (query) (optional) + - parameter decision: (query) (optional) + - parameter startTime: (query) (optional) + - parameter endTime: (query) (optional) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listAuditLogsAuditGet(limit: Int? = nil, cursor: String? = nil, userId: String? = nil, resourceId: String? = nil, decision: String? = nil, startTime: Date? = nil, endTime: Date? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListAuditRecordOut?, _ error: Error?) -> Void)) -> RequestTask { + return listAuditLogsAuditGetWithRequestBuilder(limit: limit, cursor: cursor, userId: userId, resourceId: resourceId, decision: decision, startTime: startTime, endTime: endTime).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Audit Logs + - GET /audit + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - parameter userId: (query) (optional) + - parameter resourceId: (query) (optional) + - parameter decision: (query) (optional) + - parameter startTime: (query) (optional) + - parameter endTime: (query) (optional) + - returns: RequestBuilder + */ + open class func listAuditLogsAuditGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil, userId: String? = nil, resourceId: String? = nil, decision: String? = nil, startTime: Date? = nil, endTime: Date? = nil) -> RequestBuilder { + let localVariablePath = "/audit" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), + "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), + "user_id": (wrappedValue: userId?.encodeToJSON(), isExplode: true), + "resource_id": (wrappedValue: resourceId?.encodeToJSON(), isExplode: true), + "decision": (wrappedValue: decision?.encodeToJSON(), isExplode: true), + "start_time": (wrappedValue: startTime?.encodeToJSON(), isExplode: true), + "end_time": (wrappedValue: endTime?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Permission Roles + + - parameter permissionId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listPermissionRolesPermissionsPermissionIdRolesGet(permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void)) -> RequestTask { + return listPermissionRolesPermissionsPermissionIdRolesGetWithRequestBuilder(permissionId: permissionId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Permission Roles + - GET /permissions/{permission_id}/roles + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter permissionId: (path) + - returns: RequestBuilder + */ + open class func listPermissionRolesPermissionsPermissionIdRolesGetWithRequestBuilder(permissionId: Int) -> RequestBuilder { + var localVariablePath = "/permissions/{permission_id}/roles" + let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" + let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Permissions + + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listPermissionsPermissionsGet(limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void)) -> RequestTask { + return listPermissionsPermissionsGetWithRequestBuilder(limit: limit, cursor: cursor).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Permissions + - GET /permissions + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - returns: RequestBuilder + */ + open class func listPermissionsPermissionsGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { + let localVariablePath = "/permissions" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), + "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Policies + + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listPoliciesPoliciesGet(limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListPolicyOut?, _ error: Error?) -> Void)) -> RequestTask { + return listPoliciesPoliciesGetWithRequestBuilder(limit: limit, cursor: cursor).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Policies + - GET /policies + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - returns: RequestBuilder + */ + open class func listPoliciesPoliciesGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { + let localVariablePath = "/policies" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), + "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Relationships + + - parameter subjectType: (query) + - parameter subjectId: (query) + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listRelationshipsRelationshipsGet(subjectType: String, subjectId: String, limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { + return listRelationshipsRelationshipsGetWithRequestBuilder(subjectType: subjectType, subjectId: subjectId, limit: limit, cursor: cursor).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Relationships + - GET /relationships + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter subjectType: (query) + - parameter subjectId: (query) + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - returns: RequestBuilder + */ + open class func listRelationshipsRelationshipsGetWithRequestBuilder(subjectType: String, subjectId: String, limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { + let localVariablePath = "/relationships" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "subject_type": (wrappedValue: subjectType.encodeToJSON(), isExplode: true), + "subject_id": (wrappedValue: subjectId.encodeToJSON(), isExplode: true), + "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), + "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Role Permissions + + - parameter roleId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listRolePermissionsRolesRoleIdPermissionsGet(roleId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void)) -> RequestTask { + return listRolePermissionsRolesRoleIdPermissionsGetWithRequestBuilder(roleId: roleId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Role Permissions + - GET /roles/{role_id}/permissions + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter roleId: (path) + - returns: RequestBuilder + */ + open class func listRolePermissionsRolesRoleIdPermissionsGetWithRequestBuilder(roleId: Int) -> RequestBuilder { + var localVariablePath = "/roles/{role_id}/permissions" + let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" + let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + List Roles + + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func listRolesRolesGet(limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void)) -> RequestTask { + return listRolesRolesGetWithRequestBuilder(limit: limit, cursor: cursor).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + List Roles + - GET /roles + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter limit: (query) (optional, default to 50) + - parameter cursor: (query) (optional) + - returns: RequestBuilder + */ + open class func listRolesRolesGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { + let localVariablePath = "/roles" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), + "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Remove Permission From Role + + - parameter roleId: (path) + - parameter permissionId: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId: Int, permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { + return removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteWithRequestBuilder(roleId: roleId, permissionId: permissionId).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Remove Permission From Role + - DELETE /roles/{role_id}/permissions/{permission_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter roleId: (path) + - parameter permissionId: (path) + - returns: RequestBuilder + */ + open class func removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteWithRequestBuilder(roleId: Int, permissionId: Int) -> RequestBuilder { + var localVariablePath = "/roles/{role_id}/permissions/{permission_id}" + let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" + let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) + let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" + let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Rollback Policy + + - parameter policyKey: (path) + - parameter version: (path) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey: String, version: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrUnionIntStr?, _ error: Error?) -> Void)) -> RequestTask { + return rollbackPolicyPoliciesPolicyKeyRollbackVersionPostWithRequestBuilder(policyKey: policyKey, version: version).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Rollback Policy + - POST /policies/{policy_key}/rollback/{version} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter policyKey: (path) + - parameter version: (path) + - returns: RequestBuilder + */ + open class func rollbackPolicyPoliciesPolicyKeyRollbackVersionPostWithRequestBuilder(policyKey: String, version: Int) -> RequestBuilder { + var localVariablePath = "/policies/{policy_key}/rollback/{version}" + let policyKeyPreEscape = "\(APIHelper.mapValueToPathItem(policyKey))" + let policyKeyPostEscape = policyKeyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{policy_key}", with: policyKeyPostEscape, options: .literal, range: nil) + let versionPreEscape = "\(APIHelper.mapValueToPathItem(version))" + let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters: [String: Any]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Simulate Policy + + - parameter policySimulationRequest: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func simulatePolicySimulatePolicyPost(policySimulationRequest: PolicySimulationRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicySimulationResponse?, _ error: Error?) -> Void)) -> RequestTask { + return simulatePolicySimulatePolicyPostWithRequestBuilder(policySimulationRequest: policySimulationRequest).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Simulate Policy + - POST /simulate-policy + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter policySimulationRequest: (body) + - returns: RequestBuilder + */ + open class func simulatePolicySimulatePolicyPostWithRequestBuilder(policySimulationRequest: PolicySimulationRequest) -> RequestBuilder { + let localVariablePath = "/simulate-policy" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: policySimulationRequest) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Update Permission + + - parameter permissionId: (path) + - parameter permissionUpdate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func updatePermissionPermissionsPermissionIdPut(permissionId: Int, permissionUpdate: PermissionUpdate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: PermissionOut?, _ error: Error?) -> Void)) -> RequestTask { + return updatePermissionPermissionsPermissionIdPutWithRequestBuilder(permissionId: permissionId, permissionUpdate: permissionUpdate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Update Permission + - PUT /permissions/{permission_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter permissionId: (path) + - parameter permissionUpdate: (body) + - returns: RequestBuilder + */ + open class func updatePermissionPermissionsPermissionIdPutWithRequestBuilder(permissionId: Int, permissionUpdate: PermissionUpdate) -> RequestBuilder { + var localVariablePath = "/permissions/{permission_id}" + let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" + let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: permissionUpdate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Update Policy + + - parameter policyKey: (path) + - parameter policyCreate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func updatePolicyPoliciesPolicyKeyPut(policyKey: String, policyCreate: PolicyCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void)) -> RequestTask { + return updatePolicyPoliciesPolicyKeyPutWithRequestBuilder(policyKey: policyKey, policyCreate: policyCreate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Update Policy + - PUT /policies/{policy_key} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter policyKey: (path) + - parameter policyCreate: (body) + - returns: RequestBuilder + */ + open class func updatePolicyPoliciesPolicyKeyPutWithRequestBuilder(policyKey: String, policyCreate: PolicyCreate) -> RequestBuilder { + var localVariablePath = "/policies/{policy_key}" + let policyKeyPreEscape = "\(APIHelper.mapValueToPathItem(policyKey))" + let policyKeyPostEscape = policyKeyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{policy_key}", with: policyKeyPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: policyCreate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } + + /** + Update Role + + - parameter roleId: (path) + - parameter roleUpdate: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func updateRoleRolesRoleIdPut(roleId: Int, roleUpdate: RoleUpdate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: RoleOut?, _ error: Error?) -> Void)) -> RequestTask { + return updateRoleRolesRoleIdPutWithRequestBuilder(roleId: roleId, roleUpdate: roleUpdate).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Update Role + - PUT /roles/{role_id} + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter roleId: (path) + - parameter roleUpdate: (body) + - returns: RequestBuilder + */ + open class func updateRoleRolesRoleIdPutWithRequestBuilder(roleId: Int, roleUpdate: RoleUpdate) -> RequestBuilder { + var localVariablePath = "/roles/{role_id}" + let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" + let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: roleUpdate) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift new file mode 100644 index 0000000..8d5714f --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift @@ -0,0 +1,63 @@ +// +// PlaygroundAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +open class PlaygroundAPI { + + /** + Evaluate + + - parameter playgroundEvaluateRequest: (body) + - parameter apiResponseQueue: The queue on which api response is dispatched. + - parameter completion: completion handler to receive the data and the error objects + */ + @discardableResult + open class func evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest: PlaygroundEvaluateRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrAny?, _ error: Error?) -> Void)) -> RequestTask { + return evaluatePlaygroundEvaluatePostWithRequestBuilder(playgroundEvaluateRequest: playgroundEvaluateRequest).execute(apiResponseQueue) { result in + switch result { + case let .success(response): + completion(response.body, nil) + case let .failure(error): + completion(nil, error) + } + } + } + + /** + Evaluate + - POST /playground/evaluate + - API Key: + - type: apiKey X-API-Key (HEADER) + - name: APIKeyHeader + - Bearer Token: + - type: http + - name: HTTPBearer + - parameter playgroundEvaluateRequest: (body) + - returns: RequestBuilder + */ + open class func evaluatePlaygroundEvaluatePostWithRequestBuilder(playgroundEvaluateRequest: PlaygroundEvaluateRequest) -> RequestBuilder { + let localVariablePath = "/playground/evaluate" + let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: playgroundEvaluateRequest) + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: Any?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift new file mode 100644 index 0000000..09c82e5 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift @@ -0,0 +1,49 @@ +// +// CodableHelper.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +open class CodableHelper { + private static var customDateFormatter: DateFormatter? + private static var defaultDateFormatter: DateFormatter = OpenISO8601DateFormatter() + + private static var customJSONDecoder: JSONDecoder? + private static var defaultJSONDecoder: JSONDecoder = { + let decoder = JSONDecoder() + decoder.dateDecodingStrategy = .formatted(CodableHelper.dateFormatter) + return decoder + }() + + private static var customJSONEncoder: JSONEncoder? + private static var defaultJSONEncoder: JSONEncoder = { + let encoder = JSONEncoder() + encoder.dateEncodingStrategy = .formatted(CodableHelper.dateFormatter) + encoder.outputFormatting = .prettyPrinted + return encoder + }() + + public static var dateFormatter: DateFormatter { + get { return customDateFormatter ?? defaultDateFormatter } + set { customDateFormatter = newValue } + } + public static var jsonDecoder: JSONDecoder { + get { return customJSONDecoder ?? defaultJSONDecoder } + set { customJSONDecoder = newValue } + } + public static var jsonEncoder: JSONEncoder { + get { return customJSONEncoder ?? defaultJSONEncoder } + set { customJSONEncoder = newValue } + } + + open class func decode(_ type: T.Type, from data: Data) -> Swift.Result where T: Decodable { + return Swift.Result { try jsonDecoder.decode(type, from: data) } + } + + open class func encode(_ value: T) -> Swift.Result where T: Encodable { + return Swift.Result { try jsonEncoder.encode(value) } + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift new file mode 100644 index 0000000..0457d99 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift @@ -0,0 +1,18 @@ +// Configuration.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +open class Configuration { + + /// Configures the range of HTTP status codes that will result in a successful response + /// + /// If a HTTP status code is outside of this range the response will be interpreted as failed. + public static var successfulStatusCodeRange: Range = 200..<300 +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift new file mode 100644 index 0000000..2082fb0 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift @@ -0,0 +1,237 @@ +// Extensions.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif +#if canImport(AnyCodable) +import AnyCodable +#endif + +extension Bool: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension Float: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension Int: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension Int32: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension Int64: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension Double: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension Decimal: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension String: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension URL: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension UUID: JSONEncodable { + func encodeToJSON() -> Any { self } +} + +extension RawRepresentable where RawValue: JSONEncodable { + func encodeToJSON() -> Any { return self.rawValue } +} + +private func encodeIfPossible(_ object: T) -> Any { + if let encodableObject = object as? JSONEncodable { + return encodableObject.encodeToJSON() + } else { + return object + } +} + +extension Array: JSONEncodable { + func encodeToJSON() -> Any { + return self.map(encodeIfPossible) + } +} + +extension Set: JSONEncodable { + func encodeToJSON() -> Any { + return Array(self).encodeToJSON() + } +} + +extension Dictionary: JSONEncodable { + func encodeToJSON() -> Any { + var dictionary = [AnyHashable: Any]() + for (key, value) in self { + dictionary[key] = encodeIfPossible(value) + } + return dictionary + } +} + +extension Data: JSONEncodable { + func encodeToJSON() -> Any { + return self.base64EncodedString(options: Data.Base64EncodingOptions()) + } +} + +extension Date: JSONEncodable { + func encodeToJSON() -> Any { + return CodableHelper.dateFormatter.string(from: self) + } +} + +extension JSONEncodable where Self: Encodable { + func encodeToJSON() -> Any { + guard let data = try? CodableHelper.jsonEncoder.encode(self) else { + fatalError("Could not encode to json: \(self)") + } + return data.encodeToJSON() + } +} + +extension String: CodingKey { + + public var stringValue: String { + return self + } + + public init?(stringValue: String) { + self.init(stringLiteral: stringValue) + } + + public var intValue: Int? { + return nil + } + + public init?(intValue: Int) { + return nil + } + +} + +extension KeyedEncodingContainerProtocol { + + public mutating func encodeArray(_ values: [T], forKey key: Self.Key) throws where T: Encodable { + var arrayContainer = nestedUnkeyedContainer(forKey: key) + try arrayContainer.encode(contentsOf: values) + } + + public mutating func encodeArrayIfPresent(_ values: [T]?, forKey key: Self.Key) throws where T: Encodable { + if let values = values { + try encodeArray(values, forKey: key) + } + } + + public mutating func encodeMap(_ pairs: [Self.Key: T]) throws where T: Encodable { + for (key, value) in pairs { + try encode(value, forKey: key) + } + } + + public mutating func encodeMapIfPresent(_ pairs: [Self.Key: T]?) throws where T: Encodable { + if let pairs = pairs { + try encodeMap(pairs) + } + } + + public mutating func encode(_ value: Decimal, forKey key: Self.Key) throws { + let decimalNumber = NSDecimalNumber(decimal: value) + let numberFormatter = NumberFormatter() + numberFormatter.numberStyle = .decimal + numberFormatter.locale = Locale(identifier: "en_US") + numberFormatter.usesGroupingSeparator = false + let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)" + try encode(formattedString, forKey: key) + } + + public mutating func encodeIfPresent(_ value: Decimal?, forKey key: Self.Key) throws { + if let value = value { + try encode(value, forKey: key) + } + } +} + +extension KeyedDecodingContainerProtocol { + + public func decodeArray(_ type: T.Type, forKey key: Self.Key) throws -> [T] where T: Decodable { + var tmpArray = [T]() + + var nestedContainer = try nestedUnkeyedContainer(forKey: key) + while !nestedContainer.isAtEnd { + let arrayValue = try nestedContainer.decode(T.self) + tmpArray.append(arrayValue) + } + + return tmpArray + } + + public func decodeArrayIfPresent(_ type: T.Type, forKey key: Self.Key) throws -> [T]? where T: Decodable { + var tmpArray: [T]? + + if contains(key) { + tmpArray = try decodeArray(T.self, forKey: key) + } + + return tmpArray + } + + public func decodeMap(_ type: T.Type, excludedKeys: Set) throws -> [Self.Key: T] where T: Decodable { + var map: [Self.Key: T] = [:] + + for key in allKeys { + if !excludedKeys.contains(key) { + let value = try decode(T.self, forKey: key) + map[key] = value + } + } + + return map + } + + public func decode(_ type: Decimal.Type, forKey key: Self.Key) throws -> Decimal { + let stringValue = try decode(String.self, forKey: key) + guard let decimalValue = Decimal(string: stringValue) else { + let context = DecodingError.Context(codingPath: [key], debugDescription: "The key \(key) couldn't be converted to a Decimal value") + throw DecodingError.typeMismatch(type, context) + } + + return decimalValue + } + + public func decodeIfPresent(_ type: Decimal.Type, forKey key: Self.Key) throws -> Decimal? { + guard let stringValue = try decodeIfPresent(String.self, forKey: key) else { + return nil + } + guard let decimalValue = Decimal(string: stringValue) else { + let context = DecodingError.Context(codingPath: [key], debugDescription: "The key \(key) couldn't be converted to a Decimal value") + throw DecodingError.typeMismatch(type, context) + } + + return decimalValue + } + +} + +extension HTTPURLResponse { + var isStatusCodeSuccessful: Bool { + return Configuration.successfulStatusCodeRange.contains(statusCode) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift new file mode 100644 index 0000000..cb3121a --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift @@ -0,0 +1,56 @@ +// +// JSONDataEncoding.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +public struct JSONDataEncoding { + + // MARK: Properties + + private static let jsonDataKey = "jsonData" + + // MARK: Encoding + + /// Creates a URL request by encoding parameters and applying them onto an existing request. + /// + /// - parameter urlRequest: The request to have parameters applied. + /// - parameter parameters: The parameters to apply. This should have a single key/value + /// pair with "jsonData" as the key and a Data object as the value. + /// + /// - throws: An `Error` if the encoding process encounters an error. + /// + /// - returns: The encoded request. + public func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) -> URLRequest { + var urlRequest = urlRequest + + guard let jsonData = parameters?[JSONDataEncoding.jsonDataKey] as? Data, !jsonData.isEmpty else { + return urlRequest + } + + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") + } + + urlRequest.httpBody = jsonData + + return urlRequest + } + + public static func encodingParameters(jsonData: Data?) -> [String: Any]? { + var returnedParams: [String: Any]? + if let jsonData = jsonData, !jsonData.isEmpty { + var params: [String: Any] = [:] + params[jsonDataKey] = jsonData + returnedParams = params + } + return returnedParams + } + +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift new file mode 100644 index 0000000..02f78ff --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift @@ -0,0 +1,45 @@ +// +// JSONEncodingHelper.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +open class JSONEncodingHelper { + + open class func encodingParameters(forEncodableObject encodableObj: T?) -> [String: Any]? { + var params: [String: Any]? + + // Encode the Encodable object + if let encodableObj = encodableObj { + let encodeResult = CodableHelper.encode(encodableObj) + do { + let data = try encodeResult.get() + params = JSONDataEncoding.encodingParameters(jsonData: data) + } catch { + print(error.localizedDescription) + } + } + + return params + } + + open class func encodingParameters(forEncodableObject encodableObj: Any?) -> [String: Any]? { + var params: [String: Any]? + + if let encodableObj = encodableObj { + do { + let data = try JSONSerialization.data(withJSONObject: encodableObj, options: .prettyPrinted) + params = JSONDataEncoding.encodingParameters(jsonData: data) + } catch { + print(error.localizedDescription) + return nil + } + } + + return params + } + +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift new file mode 100644 index 0000000..e6dc494 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift @@ -0,0 +1,129 @@ +// Models.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +protocol JSONEncodable { + func encodeToJSON() -> Any +} + +/// An enum where the last case value can be used as a default catch-all. +protocol CaseIterableDefaultsLast: Decodable & CaseIterable & RawRepresentable +where RawValue: Decodable, AllCases: BidirectionalCollection {} + +extension CaseIterableDefaultsLast { + /// Initializes an enum such that if a known raw value is found, then it is decoded. + /// Otherwise the last case is used. + /// - Parameter decoder: A decoder. + public init(from decoder: Decoder) throws { + if let value = try Self(rawValue: decoder.singleValueContainer().decode(RawValue.self)) { + self = value + } else if let lastValue = Self.allCases.last { + self = lastValue + } else { + throw DecodingError.valueNotFound( + Self.Type.self, + .init(codingPath: decoder.codingPath, debugDescription: "CaseIterableDefaultsLast") + ) + } + } +} + +/// A flexible type that can be encoded (`.encodeNull` or `.encodeValue`) +/// or not encoded (`.encodeNothing`). Intended for request payloads. +public enum NullEncodable: Hashable { + case encodeNothing + case encodeNull + case encodeValue(Wrapped) +} + +extension NullEncodable: Codable where Wrapped: Codable { + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(Wrapped.self) { + self = .encodeValue(value) + } else if container.decodeNil() { + self = .encodeNull + } else { + self = .encodeNothing + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .encodeNothing: return + case .encodeNull: try container.encodeNil() + case .encodeValue(let wrapped): try container.encode(wrapped) + } + } +} + +public enum ErrorResponse: Error { + case error(Int, Data?, URLResponse?, Error) +} + +public enum DownloadException: Error { + case responseDataMissing + case responseFailed + case requestMissing + case requestMissingPath + case requestMissingURL +} + +public enum DecodableRequestBuilderError: Error { + case emptyDataResponse + case nilHTTPResponse + case unsuccessfulHTTPStatusCode + case jsonDecoding(DecodingError) + case generalError(Error) +} + +open class Response { + public let statusCode: Int + public let header: [String: String] + public let body: T + public let bodyData: Data? + + public init(statusCode: Int, header: [String: String], body: T, bodyData: Data?) { + self.statusCode = statusCode + self.header = header + self.body = body + self.bodyData = bodyData + } + + public convenience init(response: HTTPURLResponse, body: T, bodyData: Data?) { + let rawHeader = response.allHeaderFields + var responseHeader = [String: String]() + for (key, value) in rawHeader { + if let key = key.base as? String, let value = value as? String { + responseHeader[key] = value + } + } + self.init(statusCode: response.statusCode, header: responseHeader, body: body, bodyData: bodyData) + } +} + +public final class RequestTask { + private let lock = NSRecursiveLock() + private var task: URLSessionDataTaskProtocol? + + internal func set(task: URLSessionDataTaskProtocol) { + lock.lock() + defer { lock.unlock() } + self.task = task + } + + public func cancel() { + lock.lock() + defer { lock.unlock() } + task?.cancel() + task = nil + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift new file mode 100644 index 0000000..427e3e7 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift @@ -0,0 +1,52 @@ +// +// ACLCreate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct ACLCreate: Codable, JSONEncodable, Hashable { + + public var subjectType: String + public var subjectId: String + public var resourceType: String + public var resourceId: String + public var action: String + public var effect: String + + public init(subjectType: String, subjectId: String, resourceType: String, resourceId: String, action: String, effect: String) { + self.subjectType = subjectType + self.subjectId = subjectId + self.resourceType = resourceType + self.resourceId = resourceId + self.action = action + self.effect = effect + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case subjectType = "subject_type" + case subjectId = "subject_id" + case resourceType = "resource_type" + case resourceId = "resource_id" + case action + case effect + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(subjectType, forKey: .subjectType) + try container.encode(subjectId, forKey: .subjectId) + try container.encode(resourceType, forKey: .resourceType) + try container.encode(resourceId, forKey: .resourceId) + try container.encode(action, forKey: .action) + try container.encode(effect, forKey: .effect) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift new file mode 100644 index 0000000..3dcfc57 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift @@ -0,0 +1,67 @@ +// +// ACLOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct ACLOut: Codable, JSONEncodable, Hashable { + + public var subjectType: String + public var subjectId: String + public var resourceType: String + public var resourceId: String + public var action: String + public var effect: String + public var id: Int + public var tenantId: Int + public var createdAt: Date? + + public init(subjectType: String, subjectId: String, resourceType: String, resourceId: String, action: String, effect: String, id: Int, tenantId: Int, createdAt: Date? = nil) { + self.subjectType = subjectType + self.subjectId = subjectId + self.resourceType = resourceType + self.resourceId = resourceId + self.action = action + self.effect = effect + self.id = id + self.tenantId = tenantId + self.createdAt = createdAt + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case subjectType = "subject_type" + case subjectId = "subject_id" + case resourceType = "resource_type" + case resourceId = "resource_id" + case action + case effect + case id + case tenantId = "tenant_id" + case createdAt = "created_at" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(subjectType, forKey: .subjectType) + try container.encode(subjectId, forKey: .subjectId) + try container.encode(resourceType, forKey: .resourceType) + try container.encode(resourceId, forKey: .resourceId) + try container.encode(action, forKey: .action) + try container.encode(effect, forKey: .effect) + try container.encode(id, forKey: .id) + try container.encode(tenantId, forKey: .tenantId) + try container.encodeIfPresent(createdAt, forKey: .createdAt) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension ACLOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift new file mode 100644 index 0000000..a20a3d8 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift @@ -0,0 +1,56 @@ +// +// AccessDecisionResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct AccessDecisionResponse: Codable, JSONEncodable, Hashable { + + public var allowed: Bool + public var decision: String + public var matchedPolicies: [String]? + public var reason: String? + public var policyId: String? + public var explainTrace: [[String: AnyCodable]]? + public var revision: Int? + + public init(allowed: Bool, decision: String, matchedPolicies: [String]? = nil, reason: String? = nil, policyId: String? = nil, explainTrace: [[String: AnyCodable]]? = nil, revision: Int? = nil) { + self.allowed = allowed + self.decision = decision + self.matchedPolicies = matchedPolicies + self.reason = reason + self.policyId = policyId + self.explainTrace = explainTrace + self.revision = revision + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case allowed + case decision + case matchedPolicies = "matched_policies" + case reason + case policyId = "policy_id" + case explainTrace = "explain_trace" + case revision + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(allowed, forKey: .allowed) + try container.encode(decision, forKey: .decision) + try container.encodeIfPresent(matchedPolicies, forKey: .matchedPolicies) + try container.encodeIfPresent(reason, forKey: .reason) + try container.encodeIfPresent(policyId, forKey: .policyId) + try container.encodeIfPresent(explainTrace, forKey: .explainTrace) + try container.encodeIfPresent(revision, forKey: .revision) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift new file mode 100644 index 0000000..c8ea51b --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift @@ -0,0 +1,53 @@ +// +// AccessRequest.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +/** Explicit authorization request passed through the API boundary. */ +public struct AccessRequest: Codable, JSONEncodable, Hashable { + + public var user: [String: AnyCodable]? + public var action: String + public var resource: [String: AnyCodable]? + public var context: [String: AnyCodable]? + public var consistency: String? = "eventual" + public var revision: Int? + + public init(user: [String: AnyCodable]? = nil, action: String, resource: [String: AnyCodable]? = nil, context: [String: AnyCodable]? = nil, consistency: String? = "eventual", revision: Int? = nil) { + self.user = user + self.action = action + self.resource = resource + self.context = context + self.consistency = consistency + self.revision = revision + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case user + case action + case resource + case context + case consistency + case revision + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(user, forKey: .user) + try container.encode(action, forKey: .action) + try container.encodeIfPresent(resource, forKey: .resource) + try container.encodeIfPresent(context, forKey: .context) + try container.encodeIfPresent(consistency, forKey: .consistency) + try container.encodeIfPresent(revision, forKey: .revision) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift new file mode 100644 index 0000000..24d0681 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift @@ -0,0 +1,36 @@ +// +// AdminLoginRequest.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct AdminLoginRequest: Codable, JSONEncodable, Hashable { + + public var username: String + public var password: String + + public init(username: String, password: String) { + self.username = username + self.password = password + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case username + case password + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(username, forKey: .username) + try container.encode(password, forKey: .password) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift new file mode 100644 index 0000000..4c20042 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift @@ -0,0 +1,48 @@ +// +// AdminLoginResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct AdminLoginResponse: Codable, JSONEncodable, Hashable { + + public var accessToken: String + public var tokenType: String? = "bearer" + public var expiresIn: Int + public var role: String? = "admin" + public var tenantKey: String + + public init(accessToken: String, tokenType: String? = "bearer", expiresIn: Int, role: String? = "admin", tenantKey: String) { + self.accessToken = accessToken + self.tokenType = tokenType + self.expiresIn = expiresIn + self.role = role + self.tenantKey = tenantKey + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case accessToken = "access_token" + case tokenType = "token_type" + case expiresIn = "expires_in" + case role + case tenantKey = "tenant_key" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(accessToken, forKey: .accessToken) + try container.encodeIfPresent(tokenType, forKey: .tokenType) + try container.encode(expiresIn, forKey: .expiresIn) + try container.encodeIfPresent(role, forKey: .role) + try container.encode(tenantKey, forKey: .tenantKey) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift new file mode 100644 index 0000000..26e2fef --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift @@ -0,0 +1,83 @@ +// +// AuditRecordOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct AuditRecordOut: Codable, JSONEncodable, Hashable { + + public var id: Int + public var principalType: String + public var principalId: String + public var correlationId: String? + public var user: [String: AnyCodable] + public var action: String + public var resource: [String: AnyCodable] + public var decision: String + public var matchedPolicies: [AnyCodable] + public var reason: String? + public var evaluatedRules: [AnyCodable] + public var failedConditions: [AnyCodable] + public var createdAt: Date + + public init(id: Int, principalType: String, principalId: String, correlationId: String? = nil, user: [String: AnyCodable], action: String, resource: [String: AnyCodable], decision: String, matchedPolicies: [AnyCodable], reason: String? = nil, evaluatedRules: [AnyCodable], failedConditions: [AnyCodable], createdAt: Date) { + self.id = id + self.principalType = principalType + self.principalId = principalId + self.correlationId = correlationId + self.user = user + self.action = action + self.resource = resource + self.decision = decision + self.matchedPolicies = matchedPolicies + self.reason = reason + self.evaluatedRules = evaluatedRules + self.failedConditions = failedConditions + self.createdAt = createdAt + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id + case principalType = "principal_type" + case principalId = "principal_id" + case correlationId = "correlation_id" + case user + case action + case resource + case decision + case matchedPolicies = "matched_policies" + case reason + case evaluatedRules = "evaluated_rules" + case failedConditions = "failed_conditions" + case createdAt = "created_at" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(principalType, forKey: .principalType) + try container.encode(principalId, forKey: .principalId) + try container.encodeIfPresent(correlationId, forKey: .correlationId) + try container.encode(user, forKey: .user) + try container.encode(action, forKey: .action) + try container.encode(resource, forKey: .resource) + try container.encode(decision, forKey: .decision) + try container.encode(matchedPolicies, forKey: .matchedPolicies) + try container.encodeIfPresent(reason, forKey: .reason) + try container.encode(evaluatedRules, forKey: .evaluatedRules) + try container.encode(failedConditions, forKey: .failedConditions) + try container.encode(createdAt, forKey: .createdAt) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension AuditRecordOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift new file mode 100644 index 0000000..6ef8650 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift @@ -0,0 +1,32 @@ +// +// AuthModelCreate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct AuthModelCreate: Codable, JSONEncodable, Hashable { + + public var schema: String + + public init(schema: String) { + self.schema = schema + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case schema + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(schema, forKey: .schema) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift new file mode 100644 index 0000000..88ed7c5 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift @@ -0,0 +1,51 @@ +// +// AuthModelOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct AuthModelOut: Codable, JSONEncodable, Hashable { + + public var id: Int + public var tenantId: Int + public var schema: String + public var parsed: [String: AnyCodable] + public var compiled: [String: AnyCodable] + + public init(id: Int, tenantId: Int, schema: String, parsed: [String: AnyCodable], compiled: [String: AnyCodable]) { + self.id = id + self.tenantId = tenantId + self.schema = schema + self.parsed = parsed + self.compiled = compiled + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id + case tenantId = "tenant_id" + case schema + case parsed + case compiled + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(tenantId, forKey: .tenantId) + try container.encode(schema, forKey: .schema) + try container.encode(parsed, forKey: .parsed) + try container.encode(compiled, forKey: .compiled) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension AuthModelOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift new file mode 100644 index 0000000..27ed74c --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift @@ -0,0 +1,36 @@ +// +// BatchAccessItem.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct BatchAccessItem: Codable, JSONEncodable, Hashable { + + public var action: String + public var resource: [String: AnyCodable]? + + public init(action: String, resource: [String: AnyCodable]? = nil) { + self.action = action + self.resource = resource + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + case resource + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + try container.encodeIfPresent(resource, forKey: .resource) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift new file mode 100644 index 0000000..52351c7 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift @@ -0,0 +1,44 @@ +// +// BatchAccessRequest.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct BatchAccessRequest: Codable, JSONEncodable, Hashable { + + public var user: [String: AnyCodable]? + public var items: [BatchAccessItem] + public var consistency: String? = "eventual" + public var revision: Int? + + public init(user: [String: AnyCodable]? = nil, items: [BatchAccessItem], consistency: String? = "eventual", revision: Int? = nil) { + self.user = user + self.items = items + self.consistency = consistency + self.revision = revision + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case user + case items + case consistency + case revision + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(user, forKey: .user) + try container.encode(items, forKey: .items) + try container.encodeIfPresent(consistency, forKey: .consistency) + try container.encodeIfPresent(revision, forKey: .revision) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift new file mode 100644 index 0000000..c0495b2 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift @@ -0,0 +1,36 @@ +// +// BatchAccessResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct BatchAccessResponse: Codable, JSONEncodable, Hashable { + + public var results: [BatchAccessResult] + public var revision: Int? + + public init(results: [BatchAccessResult], revision: Int? = nil) { + self.results = results + self.revision = revision + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case results + case revision + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(results, forKey: .results) + try container.encodeIfPresent(revision, forKey: .revision) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift new file mode 100644 index 0000000..d64244f --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift @@ -0,0 +1,40 @@ +// +// BatchAccessResult.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct BatchAccessResult: Codable, JSONEncodable, Hashable { + + public var action: String + public var allowed: Bool + public var revision: Int? + + public init(action: String, allowed: Bool, revision: Int? = nil) { + self.action = action + self.allowed = allowed + self.revision = revision + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + case allowed + case revision + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + try container.encode(allowed, forKey: .allowed) + try container.encodeIfPresent(revision, forKey: .revision) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift new file mode 100644 index 0000000..a99b672 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift @@ -0,0 +1,25 @@ +// +// DataValue.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct DataValue: Codable, JSONEncodable, Hashable { + + + public enum CodingKeys: CodingKey, CaseIterable { + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift new file mode 100644 index 0000000..06d590d --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift @@ -0,0 +1,32 @@ +// +// HTTPValidationError.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct HTTPValidationError: Codable, JSONEncodable, Hashable { + + public var detail: [ValidationError]? + + public init(detail: [ValidationError]? = nil) { + self.detail = detail + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case detail + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(detail, forKey: .detail) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift new file mode 100644 index 0000000..f14fecc --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift @@ -0,0 +1,32 @@ +// +// ImpactAnalysisRequest.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct ImpactAnalysisRequest: Codable, JSONEncodable, Hashable { + + public var policyChange: String + + public init(policyChange: String) { + self.policyChange = policyChange + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case policyChange = "policy_change" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(policyChange, forKey: .policyChange) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift new file mode 100644 index 0000000..bbc7a13 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift @@ -0,0 +1,36 @@ +// +// ImpactAnalysisResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct ImpactAnalysisResponse: Codable, JSONEncodable, Hashable { + + public var gainedAccess: [Int]? + public var lostAccess: [Int]? + + public init(gainedAccess: [Int]? = nil, lostAccess: [Int]? = nil) { + self.gainedAccess = gainedAccess + self.lostAccess = lostAccess + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case gainedAccess = "gained_access" + case lostAccess = "lost_access" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(gainedAccess, forKey: .gainedAccess) + try container.encodeIfPresent(lostAccess, forKey: .lostAccess) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift new file mode 100644 index 0000000..4e692f6 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift @@ -0,0 +1,25 @@ +// +// LocationInner.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct LocationInner: Codable, JSONEncodable, Hashable { + + + public enum CodingKeys: CodingKey, CaseIterable { + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift new file mode 100644 index 0000000..0dd546b --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift @@ -0,0 +1,44 @@ +// +// MetaBody.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct MetaBody: Codable, JSONEncodable, Hashable { + + public var requestId: String? + public var limit: Int? + public var nextCursor: String? + public var extra: [String: AnyCodable]? + + public init(requestId: String? = nil, limit: Int? = nil, nextCursor: String? = nil, extra: [String: AnyCodable]? = nil) { + self.requestId = requestId + self.limit = limit + self.nextCursor = nextCursor + self.extra = extra + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case requestId = "request_id" + case limit + case nextCursor = "next_cursor" + case extra + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(requestId, forKey: .requestId) + try container.encodeIfPresent(limit, forKey: .limit) + try container.encodeIfPresent(nextCursor, forKey: .nextCursor) + try container.encodeIfPresent(extra, forKey: .extra) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift new file mode 100644 index 0000000..4276d63 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift @@ -0,0 +1,32 @@ +// +// PermissionCreate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PermissionCreate: Codable, JSONEncodable, Hashable { + + public var action: String + + public init(action: String) { + self.action = action + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift new file mode 100644 index 0000000..8c35e48 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift @@ -0,0 +1,39 @@ +// +// PermissionOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PermissionOut: Codable, JSONEncodable, Hashable { + + public var id: Int + public var action: String + + public init(id: Int, action: String) { + self.id = id + self.action = action + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id + case action + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(action, forKey: .action) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension PermissionOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift new file mode 100644 index 0000000..1c8b3d9 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift @@ -0,0 +1,32 @@ +// +// PermissionUpdate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PermissionUpdate: Codable, JSONEncodable, Hashable { + + public var action: String + + public init(action: String) { + self.action = action + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift new file mode 100644 index 0000000..b9f5baf --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift @@ -0,0 +1,36 @@ +// +// PlaygroundEvaluateRequest.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PlaygroundEvaluateRequest: Codable, JSONEncodable, Hashable { + + public var policies: [PlaygroundPolicy] + public var input: PlaygroundInput + + public init(policies: [PlaygroundPolicy], input: PlaygroundInput) { + self.policies = policies + self.input = input + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case policies + case input + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(policies, forKey: .policies) + try container.encode(input, forKey: .input) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift new file mode 100644 index 0000000..871f4a6 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift @@ -0,0 +1,44 @@ +// +// PlaygroundInput.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PlaygroundInput: Codable, JSONEncodable, Hashable { + + public var user: [String: AnyCodable]? + public var resource: [String: AnyCodable]? + public var action: String? = "" + public var context: [String: AnyCodable]? + + public init(user: [String: AnyCodable]? = nil, resource: [String: AnyCodable]? = nil, action: String? = "", context: [String: AnyCodable]? = nil) { + self.user = user + self.resource = resource + self.action = action + self.context = context + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case user + case resource + case action + case context + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(user, forKey: .user) + try container.encodeIfPresent(resource, forKey: .resource) + try container.encodeIfPresent(action, forKey: .action) + try container.encodeIfPresent(context, forKey: .context) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift new file mode 100644 index 0000000..3b70811 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift @@ -0,0 +1,48 @@ +// +// PlaygroundPolicy.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PlaygroundPolicy: Codable, JSONEncodable, Hashable { + + public var action: String + public var effect: String? = "allow" + public var priority: Int? = 100 + public var policyId: String? + public var conditions: [String: AnyCodable]? + + public init(action: String, effect: String? = "allow", priority: Int? = 100, policyId: String? = nil, conditions: [String: AnyCodable]? = nil) { + self.action = action + self.effect = effect + self.priority = priority + self.policyId = policyId + self.conditions = conditions + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + case effect + case priority + case policyId = "policy_id" + case conditions + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + try container.encodeIfPresent(effect, forKey: .effect) + try container.encodeIfPresent(priority, forKey: .priority) + try container.encodeIfPresent(policyId, forKey: .policyId) + try container.encodeIfPresent(conditions, forKey: .conditions) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift new file mode 100644 index 0000000..d02e2ac --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift @@ -0,0 +1,48 @@ +// +// PolicyCreate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PolicyCreate: Codable, JSONEncodable, Hashable { + + public var action: String + public var effect: String? = "allow" + public var priority: Int? = 100 + public var state: String? = "active" + public var conditions: [String: AnyCodable]? + + public init(action: String, effect: String? = "allow", priority: Int? = 100, state: String? = "active", conditions: [String: AnyCodable]? = nil) { + self.action = action + self.effect = effect + self.priority = priority + self.state = state + self.conditions = conditions + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + case effect + case priority + case state + case conditions + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + try container.encodeIfPresent(effect, forKey: .effect) + try container.encodeIfPresent(priority, forKey: .priority) + try container.encodeIfPresent(state, forKey: .state) + try container.encodeIfPresent(conditions, forKey: .conditions) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift new file mode 100644 index 0000000..613087d --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift @@ -0,0 +1,55 @@ +// +// PolicyOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PolicyOut: Codable, JSONEncodable, Hashable { + + public var id: Int + public var action: String + public var effect: String + public var priority: Int + public var state: String? = "active" + public var conditions: [String: AnyCodable] + + public init(id: Int, action: String, effect: String, priority: Int, state: String? = "active", conditions: [String: AnyCodable]) { + self.id = id + self.action = action + self.effect = effect + self.priority = priority + self.state = state + self.conditions = conditions + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id + case action + case effect + case priority + case state + case conditions + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(action, forKey: .action) + try container.encode(effect, forKey: .effect) + try container.encode(priority, forKey: .priority) + try container.encodeIfPresent(state, forKey: .state) + try container.encode(conditions, forKey: .conditions) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension PolicyOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift new file mode 100644 index 0000000..6ebda15 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift @@ -0,0 +1,40 @@ +// +// PolicySimulationInput.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PolicySimulationInput: Codable, JSONEncodable, Hashable { + + public var policyChange: String? + public var relationshipChange: [String: AnyCodable]? + public var roleChange: [String: AnyCodable]? + + public init(policyChange: String? = nil, relationshipChange: [String: AnyCodable]? = nil, roleChange: [String: AnyCodable]? = nil) { + self.policyChange = policyChange + self.relationshipChange = relationshipChange + self.roleChange = roleChange + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case policyChange = "policy_change" + case relationshipChange = "relationship_change" + case roleChange = "role_change" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(policyChange, forKey: .policyChange) + try container.encodeIfPresent(relationshipChange, forKey: .relationshipChange) + try container.encodeIfPresent(roleChange, forKey: .roleChange) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift new file mode 100644 index 0000000..00a7568 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift @@ -0,0 +1,36 @@ +// +// PolicySimulationRequest.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PolicySimulationRequest: Codable, JSONEncodable, Hashable { + + public var simulate: PolicySimulationInput? + public var request: [String: AnyCodable]? + + public init(simulate: PolicySimulationInput? = nil, request: [String: AnyCodable]? = nil) { + self.simulate = simulate + self.request = request + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case simulate + case request + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(simulate, forKey: .simulate) + try container.encodeIfPresent(request, forKey: .request) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift new file mode 100644 index 0000000..94adaf3 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift @@ -0,0 +1,36 @@ +// +// PolicySimulationResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct PolicySimulationResponse: Codable, JSONEncodable, Hashable { + + public var decisionBefore: [String: AnyCodable] + public var decisionAfter: [String: AnyCodable] + + public init(decisionBefore: [String: AnyCodable], decisionAfter: [String: AnyCodable]) { + self.decisionBefore = decisionBefore + self.decisionAfter = decisionAfter + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case decisionBefore = "decision_before" + case decisionAfter = "decision_after" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(decisionBefore, forKey: .decisionBefore) + try container.encode(decisionAfter, forKey: .decisionAfter) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift new file mode 100644 index 0000000..369206f --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift @@ -0,0 +1,48 @@ +// +// RelationshipCreate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct RelationshipCreate: Codable, JSONEncodable, Hashable { + + public var subjectType: String + public var subjectId: String + public var relation: String + public var objectType: String + public var objectId: String + + public init(subjectType: String, subjectId: String, relation: String, objectType: String, objectId: String) { + self.subjectType = subjectType + self.subjectId = subjectId + self.relation = relation + self.objectType = objectType + self.objectId = objectId + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case subjectType = "subject_type" + case subjectId = "subject_id" + case relation + case objectType = "object_type" + case objectId = "object_id" + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(subjectType, forKey: .subjectType) + try container.encode(subjectId, forKey: .subjectId) + try container.encode(relation, forKey: .relation) + try container.encode(objectType, forKey: .objectType) + try container.encode(objectId, forKey: .objectId) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift new file mode 100644 index 0000000..b9c12ca --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift @@ -0,0 +1,55 @@ +// +// RelationshipOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct RelationshipOut: Codable, JSONEncodable, Hashable { + + public var subjectType: String + public var subjectId: String + public var relation: String + public var objectType: String + public var objectId: String + public var id: Int + + public init(subjectType: String, subjectId: String, relation: String, objectType: String, objectId: String, id: Int) { + self.subjectType = subjectType + self.subjectId = subjectId + self.relation = relation + self.objectType = objectType + self.objectId = objectId + self.id = id + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case subjectType = "subject_type" + case subjectId = "subject_id" + case relation + case objectType = "object_type" + case objectId = "object_id" + case id + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(subjectType, forKey: .subjectType) + try container.encode(subjectId, forKey: .subjectId) + try container.encode(relation, forKey: .relation) + try container.encode(objectType, forKey: .objectType) + try container.encode(objectId, forKey: .objectId) + try container.encode(id, forKey: .id) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension RelationshipOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift new file mode 100644 index 0000000..5676162 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift @@ -0,0 +1,32 @@ +// +// RoleCreate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct RoleCreate: Codable, JSONEncodable, Hashable { + + public var name: String + + public init(name: String) { + self.name = name + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case name + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(name, forKey: .name) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift new file mode 100644 index 0000000..a63440c --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift @@ -0,0 +1,39 @@ +// +// RoleOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct RoleOut: Codable, JSONEncodable, Hashable { + + public var id: Int + public var name: String + + public init(id: Int, name: String) { + self.id = id + self.name = name + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id + case name + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(name, forKey: .name) + } +} + + +@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) +extension RoleOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift new file mode 100644 index 0000000..bcced4f --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift @@ -0,0 +1,32 @@ +// +// RoleUpdate.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct RoleUpdate: Codable, JSONEncodable, Hashable { + + public var name: String + + public init(name: String) { + self.name = name + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case name + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(name, forKey: .name) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift new file mode 100644 index 0000000..0bd3afe --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift @@ -0,0 +1,56 @@ +// +// SimulationResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SimulationResponse: Codable, JSONEncodable, Hashable { + + public var decision: String + public var matchedPolicies: [String] + public var reason: String? + public var policyId: String? + public var explainTrace: [[String: AnyCodable]]? + public var failedConditions: [String]? + public var revision: Int? + + public init(decision: String, matchedPolicies: [String], reason: String? = nil, policyId: String? = nil, explainTrace: [[String: AnyCodable]]? = nil, failedConditions: [String]? = nil, revision: Int? = nil) { + self.decision = decision + self.matchedPolicies = matchedPolicies + self.reason = reason + self.policyId = policyId + self.explainTrace = explainTrace + self.failedConditions = failedConditions + self.revision = revision + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case decision + case matchedPolicies = "matched_policies" + case reason + case policyId = "policy_id" + case explainTrace = "explain_trace" + case failedConditions = "failed_conditions" + case revision + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(decision, forKey: .decision) + try container.encode(matchedPolicies, forKey: .matchedPolicies) + try container.encodeIfPresent(reason, forKey: .reason) + try container.encodeIfPresent(policyId, forKey: .policyId) + try container.encodeIfPresent(explainTrace, forKey: .explainTrace) + try container.encodeIfPresent(failedConditions, forKey: .failedConditions) + try container.encodeIfPresent(revision, forKey: .revision) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift new file mode 100644 index 0000000..4941cca --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseACLOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseACLOut: Codable, JSONEncodable, Hashable { + + public var data: ACLOut + public var meta: MetaBody? + public var error: Null? + + public init(data: ACLOut, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift new file mode 100644 index 0000000..ecb9014 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseAccessDecisionResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseAccessDecisionResponse: Codable, JSONEncodable, Hashable { + + public var data: AccessDecisionResponse + public var meta: MetaBody? + public var error: Null? + + public init(data: AccessDecisionResponse, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift new file mode 100644 index 0000000..94700dd --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseAdminLoginResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseAdminLoginResponse: Codable, JSONEncodable, Hashable { + + public var data: AdminLoginResponse + public var meta: MetaBody? + public var error: Null? + + public init(data: AdminLoginResponse, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift new file mode 100644 index 0000000..6b55d4d --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseAuthModelOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseAuthModelOut: Codable, JSONEncodable, Hashable { + + public var data: AuthModelOut + public var meta: MetaBody? + public var error: Null? + + public init(data: AuthModelOut, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift new file mode 100644 index 0000000..c7a1e8c --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseBatchAccessResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseBatchAccessResponse: Codable, JSONEncodable, Hashable { + + public var data: BatchAccessResponse + public var meta: MetaBody? + public var error: Null? + + public init(data: BatchAccessResponse, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift new file mode 100644 index 0000000..049b697 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseDictStrAny.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseDictStrAny: Codable, JSONEncodable, Hashable { + + public var data: [String: AnyCodable] + public var meta: MetaBody? + public var error: Null? + + public init(data: [String: AnyCodable], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift new file mode 100644 index 0000000..2b55d2f --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseDictStrInt.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseDictStrInt: Codable, JSONEncodable, Hashable { + + public var data: [String: Int] + public var meta: MetaBody? + public var error: Null? + + public init(data: [String: Int], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift new file mode 100644 index 0000000..beda3d1 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseDictStrObject.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseDictStrObject: Codable, JSONEncodable, Hashable { + + public var data: [String: AnyCodable] + public var meta: MetaBody? + public var error: Null? + + public init(data: [String: AnyCodable], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift new file mode 100644 index 0000000..31ad545 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseDictStrStr.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseDictStrStr: Codable, JSONEncodable, Hashable { + + public var data: [String: String] + public var meta: MetaBody? + public var error: Null? + + public init(data: [String: String], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift new file mode 100644 index 0000000..e7cd042 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseDictStrUnionIntStr.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseDictStrUnionIntStr: Codable, JSONEncodable, Hashable { + + public var data: [String: DataValue] + public var meta: MetaBody? + public var error: Null? + + public init(data: [String: DataValue], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift new file mode 100644 index 0000000..d5924b6 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseImpactAnalysisResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseImpactAnalysisResponse: Codable, JSONEncodable, Hashable { + + public var data: ImpactAnalysisResponse + public var meta: MetaBody? + public var error: Null? + + public init(data: ImpactAnalysisResponse, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift new file mode 100644 index 0000000..72f23d3 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseListACLOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseListACLOut: Codable, JSONEncodable, Hashable { + + public var data: [ACLOut] + public var meta: MetaBody? + public var error: Null? + + public init(data: [ACLOut], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift new file mode 100644 index 0000000..34c142a --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseListAuditRecordOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseListAuditRecordOut: Codable, JSONEncodable, Hashable { + + public var data: [AuditRecordOut] + public var meta: MetaBody? + public var error: Null? + + public init(data: [AuditRecordOut], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift new file mode 100644 index 0000000..1e956e4 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseListDictStrStr.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseListDictStrStr: Codable, JSONEncodable, Hashable { + + public var data: [[String: String]] + public var meta: MetaBody? + public var error: Null? + + public init(data: [[String: String]], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift new file mode 100644 index 0000000..780ea78 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseListPermissionOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseListPermissionOut: Codable, JSONEncodable, Hashable { + + public var data: [PermissionOut] + public var meta: MetaBody? + public var error: Null? + + public init(data: [PermissionOut], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift new file mode 100644 index 0000000..2603685 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseListPolicyOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseListPolicyOut: Codable, JSONEncodable, Hashable { + + public var data: [PolicyOut] + public var meta: MetaBody? + public var error: Null? + + public init(data: [PolicyOut], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift new file mode 100644 index 0000000..cab16f7 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseListRoleOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseListRoleOut: Codable, JSONEncodable, Hashable { + + public var data: [RoleOut] + public var meta: MetaBody? + public var error: Null? + + public init(data: [RoleOut], meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift new file mode 100644 index 0000000..00682ea --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponsePermissionOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponsePermissionOut: Codable, JSONEncodable, Hashable { + + public var data: PermissionOut + public var meta: MetaBody? + public var error: Null? + + public init(data: PermissionOut, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift new file mode 100644 index 0000000..1031d3a --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponsePolicyOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponsePolicyOut: Codable, JSONEncodable, Hashable { + + public var data: PolicyOut + public var meta: MetaBody? + public var error: Null? + + public init(data: PolicyOut, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift new file mode 100644 index 0000000..b906ac4 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift @@ -0,0 +1,40 @@ +// +// SuccessResponsePolicySimulationResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponsePolicySimulationResponse: Codable, JSONEncodable, Hashable { + + public var data: PolicySimulationResponse + public var meta: MetaBody? + public var error: Null? + + public init(data: PolicySimulationResponse, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift new file mode 100644 index 0000000..9295694 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseRelationshipOut.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseRelationshipOut: Codable, JSONEncodable, Hashable { + + public var data: RelationshipOut + public var meta: MetaBody? + public var error: Null? + + public init(data: RelationshipOut, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift new file mode 100644 index 0000000..10daefc --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift @@ -0,0 +1,40 @@ +// +// SuccessResponseSimulationResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct SuccessResponseSimulationResponse: Codable, JSONEncodable, Hashable { + + public var data: SimulationResponse + public var meta: MetaBody? + public var error: Null? + + public init(data: SimulationResponse, meta: MetaBody? = nil, error: Null? = nil) { + self.data = data + self.meta = meta + self.error = error + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case data + case meta + case error + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(data, forKey: .data) + try container.encodeIfPresent(meta, forKey: .meta) + try container.encodeIfPresent(error, forKey: .error) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift new file mode 100644 index 0000000..688dc61 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift @@ -0,0 +1,48 @@ +// +// ValidationError.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if canImport(AnyCodable) +import AnyCodable +#endif + +public struct ValidationError: Codable, JSONEncodable, Hashable { + + public var loc: [LocationInner] + public var msg: String + public var type: String + public var input: AnyCodable? + public var ctx: AnyCodable? + + public init(loc: [LocationInner], msg: String, type: String, input: AnyCodable? = nil, ctx: AnyCodable? = nil) { + self.loc = loc + self.msg = msg + self.type = type + self.input = input + self.ctx = ctx + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case loc + case msg + case type + case input + case ctx + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(loc, forKey: .loc) + try container.encode(msg, forKey: .msg) + try container.encode(type, forKey: .type) + try container.encodeIfPresent(input, forKey: .input) + try container.encodeIfPresent(ctx, forKey: .ctx) + } +} + diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift new file mode 100644 index 0000000..cc32888 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift @@ -0,0 +1,56 @@ +// +// OpenISO8601DateFormatter.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +// https://stackoverflow.com/a/50281094/976628 +public class OpenISO8601DateFormatter: DateFormatter { + static let withoutSeconds: DateFormatter = { + let formatter = DateFormatter() + formatter.calendar = Calendar(identifier: .iso8601) + formatter.locale = Locale(identifier: "en_US_POSIX") + formatter.timeZone = TimeZone(secondsFromGMT: 0) + formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ" + return formatter + }() + + static let withoutTime: DateFormatter = { + let formatter = DateFormatter() + formatter.calendar = Calendar(identifier: .iso8601) + formatter.locale = Locale(identifier: "en_US_POSIX") + formatter.timeZone = TimeZone(secondsFromGMT: 0) + formatter.dateFormat = "yyyy-MM-dd" + return formatter + }() + + private func setup() { + calendar = Calendar(identifier: .iso8601) + locale = Locale(identifier: "en_US_POSIX") + timeZone = TimeZone(secondsFromGMT: 0) + dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ" + } + + override init() { + super.init() + setup() + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setup() + } + + override public func date(from string: String) -> Date? { + if let result = super.date(from: string) { + return result + } else if let result = OpenISO8601DateFormatter.withoutSeconds.date(from: string) { + return result + } + + return OpenISO8601DateFormatter.withoutTime.date(from: string) + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift new file mode 100644 index 0000000..fbaa624 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift @@ -0,0 +1,26 @@ +// SynchronizedDictionary.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +internal struct SynchronizedDictionary { + + private var dictionary = [K: V]() + private let lock = NSRecursiveLock() + + internal subscript(key: K) -> V? { + get { + lock.lock() + defer { lock.unlock() } + return self.dictionary[key] + } + set { + lock.lock() + defer { lock.unlock() } + self.dictionary[key] = newValue + } + } +} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift new file mode 100644 index 0000000..4f504da --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift @@ -0,0 +1,682 @@ +// URLSessionImplementations.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation +#if !os(macOS) +import MobileCoreServices +#endif +#if canImport(UniformTypeIdentifiers) +import UniformTypeIdentifiers +#endif + +// Protocol defined for a session data task. This allows mocking out the URLSessionProtocol below since +// you may not want to create or return a real URLSessionDataTask. +public protocol URLSessionDataTaskProtocol { + func resume() + + var taskIdentifier: Int { get } + + var progress: Progress { get } + + func cancel() +} + +// Protocol allowing implementations to alter what is returned or to test their implementations. +public protocol URLSessionProtocol { + // Task which performs the network fetch. Expected to be from URLSession.dataTask(with:completionHandler:) such that a network request + // is sent off when `.resume()` is called. + func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol +} + +extension URLSession: URLSessionProtocol { + // Passthrough to URLSession.dataTask(with:completionHandler) since URLSessionDataTask conforms to URLSessionDataTaskProtocol and fetches the network data. + public func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> any URLSessionDataTaskProtocol { + return dataTask(with: request, completionHandler: completionHandler) + } +} + +extension URLSessionDataTask: URLSessionDataTaskProtocol {} + +class URLSessionRequestBuilderFactory: RequestBuilderFactory { + func getNonDecodableBuilder() -> RequestBuilder.Type { + return URLSessionRequestBuilder.self + } + + func getBuilder() -> RequestBuilder.Type { + return URLSessionDecodableRequestBuilder.self + } +} + +public typealias KeyNetraClientAPIChallengeHandler = ((URLSession, URLSessionTask, URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?)) + +// Store the URLSession's delegate to retain its reference +private let sessionDelegate = SessionDelegate() + +// Store the URLSession to retain its reference +private let defaultURLSession = URLSession(configuration: .default, delegate: sessionDelegate, delegateQueue: nil) + +// Store current taskDidReceiveChallenge for every URLSessionTask +private var challengeHandlerStore = SynchronizedDictionary() + +// Store current URLCredential for every URLSessionTask +private var credentialStore = SynchronizedDictionary() + +open class URLSessionRequestBuilder: RequestBuilder { + + /** + May be assigned if you want to control the authentication challenges. + */ + public var taskDidReceiveChallenge: KeyNetraClientAPIChallengeHandler? + + required public init(method: String, URLString: String, parameters: [String: Any]?, headers: [String: String] = [:], requiresAuthentication: Bool) { + super.init(method: method, URLString: URLString, parameters: parameters, headers: headers, requiresAuthentication: requiresAuthentication) + } + + /** + May be overridden by a subclass if you want to control the URLSession + configuration. + */ + open func createURLSession() -> URLSessionProtocol { + return defaultURLSession + } + + /** + May be overridden by a subclass if you want to control the Content-Type + that is given to an uploaded form part. + + Return nil to use the default behavior (inferring the Content-Type from + the file extension). Return the desired Content-Type otherwise. + */ + open func contentTypeForFormPart(fileURL: URL) -> String? { + return nil + } + + /** + May be overridden by a subclass if you want to control the URLRequest + configuration (e.g. to override the cache policy). + */ + open func createURLRequest(urlSession: URLSessionProtocol, method: HTTPMethod, encoding: ParameterEncoding, headers: [String: String]) throws -> URLRequest { + + guard let url = URL(string: URLString) else { + throw DownloadException.requestMissingURL + } + + var originalRequest = URLRequest(url: url) + + originalRequest.httpMethod = method.rawValue + + buildHeaders().forEach { key, value in + originalRequest.setValue(value, forHTTPHeaderField: key) + } + + let modifiedRequest = try encoding.encode(originalRequest, with: parameters) + + return modifiedRequest + } + + @discardableResult + override open func execute(_ apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, _ completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) -> RequestTask { + let urlSession = createURLSession() + + guard let xMethod = HTTPMethod(rawValue: method) else { + fatalError("Unsupported Http method - \(method)") + } + + let encoding: ParameterEncoding + + switch xMethod { + case .get, .head: + encoding = URLEncoding() + + case .options, .post, .put, .patch, .delete, .trace, .connect: + let contentType = headers["Content-Type"] ?? "application/json" + + if contentType.hasPrefix("application/") && contentType.contains("json") { + encoding = JSONDataEncoding() + } else if contentType.hasPrefix("multipart/form-data") { + encoding = FormDataEncoding(contentTypeForFormPart: contentTypeForFormPart(fileURL:)) + } else if contentType.hasPrefix("application/x-www-form-urlencoded") { + encoding = FormURLEncoding() + } else if contentType.hasPrefix("application/octet-stream") || contentType.hasPrefix("image/") { + encoding = OctetStreamEncoding() + } else { + fatalError("Unsupported Media Type - \(contentType)") + } + } + + do { + let request = try createURLRequest(urlSession: urlSession, method: xMethod, encoding: encoding, headers: headers) + + var taskIdentifier: Int? + let cleanupRequest = { + if let taskIdentifier = taskIdentifier { + challengeHandlerStore[taskIdentifier] = nil + credentialStore[taskIdentifier] = nil + } + } + + let dataTask = urlSession.dataTaskFromProtocol(with: request) { data, response, error in + apiResponseQueue.async { + self.processRequestResponse(urlRequest: request, data: data, response: response, error: error, completion: completion) + cleanupRequest() + } + } + + onProgressReady?(dataTask.progress) + + taskIdentifier = dataTask.taskIdentifier + challengeHandlerStore[dataTask.taskIdentifier] = taskDidReceiveChallenge + credentialStore[dataTask.taskIdentifier] = credential + + dataTask.resume() + + requestTask.set(task: dataTask) + } catch { + apiResponseQueue.async { + completion(.failure(ErrorResponse.error(415, nil, nil, error))) + } + } + + return requestTask + } + + fileprivate func processRequestResponse(urlRequest: URLRequest, data: Data?, response: URLResponse?, error: Error?, completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { + + if let error = error { + completion(.failure(ErrorResponse.error(-1, data, response, error))) + return + } + + guard let httpResponse = response as? HTTPURLResponse else { + completion(.failure(ErrorResponse.error(-2, data, response, DecodableRequestBuilderError.nilHTTPResponse))) + return + } + + guard httpResponse.isStatusCodeSuccessful else { + completion(.failure(ErrorResponse.error(httpResponse.statusCode, data, response, DecodableRequestBuilderError.unsuccessfulHTTPStatusCode))) + return + } + + switch T.self { + case is Void.Type: + + completion(.success(Response(response: httpResponse, body: () as! T, bodyData: data))) + + default: + fatalError("Unsupported Response Body Type - \(String(describing: T.self))") + } + + } + + open func buildHeaders() -> [String: String] { + var httpHeaders: [String: String] = [:] + for (key, value) in KeyNetraClientAPI.customHeaders { + httpHeaders[key] = value + } + for (key, value) in headers { + httpHeaders[key] = value + } + return httpHeaders + } + + fileprivate func getFileName(fromContentDisposition contentDisposition: String?) -> String? { + + guard let contentDisposition = contentDisposition else { + return nil + } + + let items = contentDisposition.components(separatedBy: ";") + + var filename: String? + + for contentItem in items { + + let filenameKey = "filename=" + guard let range = contentItem.range(of: filenameKey) else { + continue + } + + filename = contentItem + return filename? + .replacingCharacters(in: range, with: "") + .replacingOccurrences(of: "\"", with: "") + .trimmingCharacters(in: .whitespacesAndNewlines) + } + + return filename + + } + + fileprivate func getPath(from url: URL) throws -> String { + + guard var path = URLComponents(url: url, resolvingAgainstBaseURL: true)?.path else { + throw DownloadException.requestMissingPath + } + + if path.hasPrefix("/") { + path.remove(at: path.startIndex) + } + + return path + + } + + fileprivate func getURL(from urlRequest: URLRequest) throws -> URL { + + guard let url = urlRequest.url else { + throw DownloadException.requestMissingURL + } + + return url + } + +} + +open class URLSessionDecodableRequestBuilder: URLSessionRequestBuilder { + override fileprivate func processRequestResponse(urlRequest: URLRequest, data: Data?, response: URLResponse?, error: Error?, completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { + + if let error = error { + completion(.failure(ErrorResponse.error(-1, data, response, error))) + return + } + + guard let httpResponse = response as? HTTPURLResponse else { + completion(.failure(ErrorResponse.error(-2, data, response, DecodableRequestBuilderError.nilHTTPResponse))) + return + } + + guard httpResponse.isStatusCodeSuccessful else { + completion(.failure(ErrorResponse.error(httpResponse.statusCode, data, response, DecodableRequestBuilderError.unsuccessfulHTTPStatusCode))) + return + } + + switch T.self { + case is String.Type: + + let body = data.flatMap { String(data: $0, encoding: .utf8) } ?? "" + + completion(.success(Response(response: httpResponse, body: body as! T, bodyData: data))) + + case is URL.Type: + do { + + guard error == nil else { + throw DownloadException.responseFailed + } + + guard let data = data else { + throw DownloadException.responseDataMissing + } + + let fileManager = FileManager.default + let cachesDirectory = fileManager.urls(for: .cachesDirectory, in: .userDomainMask)[0] + let requestURL = try getURL(from: urlRequest) + + var requestPath = try getPath(from: requestURL) + + if let headerFileName = getFileName(fromContentDisposition: httpResponse.allHeaderFields["Content-Disposition"] as? String) { + requestPath = requestPath.appending("/\(headerFileName)") + } else { + requestPath = requestPath.appending("/tmp.KeyNetraClient.\(UUID().uuidString)") + } + + let filePath = cachesDirectory.appendingPathComponent(requestPath) + let directoryPath = filePath.deletingLastPathComponent().path + + try fileManager.createDirectory(atPath: directoryPath, withIntermediateDirectories: true, attributes: nil) + try data.write(to: filePath, options: .atomic) + + completion(.success(Response(response: httpResponse, body: filePath as! T, bodyData: data))) + + } catch let requestParserError as DownloadException { + completion(.failure(ErrorResponse.error(400, data, response, requestParserError))) + } catch { + completion(.failure(ErrorResponse.error(400, data, response, error))) + } + + case is Void.Type: + + completion(.success(Response(response: httpResponse, body: () as! T, bodyData: data))) + + case is Data.Type: + + completion(.success(Response(response: httpResponse, body: data as! T, bodyData: data))) + + default: + + guard let unwrappedData = data, !unwrappedData.isEmpty else { + if let expressibleByNilLiteralType = T.self as? ExpressibleByNilLiteral.Type { + completion(.success(Response(response: httpResponse, body: expressibleByNilLiteralType.init(nilLiteral: ()) as! T, bodyData: data))) + } else { + completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, response, DecodableRequestBuilderError.emptyDataResponse))) + } + return + } + + let decodeResult = CodableHelper.decode(T.self, from: unwrappedData) + + switch decodeResult { + case let .success(decodableObj): + completion(.success(Response(response: httpResponse, body: decodableObj, bodyData: unwrappedData))) + case let .failure(error): + completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, response, error))) + } + } + } +} + +private class SessionDelegate: NSObject, URLSessionTaskDelegate { + func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { + + var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling + + var credential: URLCredential? + + if let taskDidReceiveChallenge = challengeHandlerStore[task.taskIdentifier] { + (disposition, credential) = taskDidReceiveChallenge(session, task, challenge) + } else { + if challenge.previousFailureCount > 0 { + disposition = .rejectProtectionSpace + } else { + credential = credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace) + + if credential != nil { + disposition = .useCredential + } + } + } + + completionHandler(disposition, credential) + } +} + +public enum HTTPMethod: String { + case options = "OPTIONS" + case get = "GET" + case head = "HEAD" + case post = "POST" + case put = "PUT" + case patch = "PATCH" + case delete = "DELETE" + case trace = "TRACE" + case connect = "CONNECT" +} + +public protocol ParameterEncoding { + func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest +} + +private class URLEncoding: ParameterEncoding { + func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { + + var urlRequest = urlRequest + + guard let parameters = parameters else { return urlRequest } + + guard let url = urlRequest.url else { + throw DownloadException.requestMissingURL + } + + if var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false), !parameters.isEmpty { + urlComponents.queryItems = APIHelper.mapValuesToQueryItems(parameters) + urlRequest.url = urlComponents.url + } + + return urlRequest + } +} + +private class FormDataEncoding: ParameterEncoding { + + let contentTypeForFormPart: (_ fileURL: URL) -> String? + + init(contentTypeForFormPart: @escaping (_ fileURL: URL) -> String?) { + self.contentTypeForFormPart = contentTypeForFormPart + } + + func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { + + var urlRequest = urlRequest + + guard let parameters = parameters, !parameters.isEmpty else { + return urlRequest + } + + let boundary = "Boundary-\(UUID().uuidString)" + + urlRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type") + + for (key, value) in parameters { + for value in (value as? Array ?? [value]) { + switch value { + case let fileURL as URL: + + urlRequest = try configureFileUploadRequest( + urlRequest: urlRequest, + boundary: boundary, + name: key, + fileURL: fileURL + ) + + case let string as String: + + if let data = string.data(using: .utf8) { + urlRequest = configureDataUploadRequest( + urlRequest: urlRequest, + boundary: boundary, + name: key, + data: data + ) + } + + case let number as NSNumber: + + if let data = number.stringValue.data(using: .utf8) { + urlRequest = configureDataUploadRequest( + urlRequest: urlRequest, + boundary: boundary, + name: key, + data: data + ) + } + + case let data as Data: + + urlRequest = configureDataUploadRequest( + urlRequest: urlRequest, + boundary: boundary, + name: key, + data: data + ) + + case let uuid as UUID: + + if let data = uuid.uuidString.data(using: .utf8) { + urlRequest = configureDataUploadRequest( + urlRequest: urlRequest, + boundary: boundary, + name: key, + data: data + ) + } + + default: + fatalError("Unprocessable value \(value) with key \(key)") + } + } + } + + var body = urlRequest.httpBody.orEmpty + + body.append("\r\n--\(boundary)--\r\n") + + urlRequest.httpBody = body + + return urlRequest + } + + private func configureFileUploadRequest(urlRequest: URLRequest, boundary: String, name: String, fileURL: URL) throws -> URLRequest { + + var urlRequest = urlRequest + + var body = urlRequest.httpBody.orEmpty + + let fileData = try Data(contentsOf: fileURL) + + let mimetype = contentTypeForFormPart(fileURL) ?? mimeType(for: fileURL) + + let fileName = fileURL.lastPathComponent + + // If we already added something then we need an additional newline. + if body.count > 0 { + body.append("\r\n") + } + + // Value boundary. + body.append("--\(boundary)\r\n") + + // Value headers. + body.append("Content-Disposition: form-data; name=\"\(name)\"; filename=\"\(fileName)\"\r\n") + body.append("Content-Type: \(mimetype)\r\n") + + // Separate headers and body. + body.append("\r\n") + + // The value data. + body.append(fileData) + + urlRequest.httpBody = body + + return urlRequest + } + + private func configureDataUploadRequest(urlRequest: URLRequest, boundary: String, name: String, data: Data) -> URLRequest { + + var urlRequest = urlRequest + + var body = urlRequest.httpBody.orEmpty + + // If we already added something then we need an additional newline. + if body.count > 0 { + body.append("\r\n") + } + + // Value boundary. + body.append("--\(boundary)\r\n") + + // Value headers. + body.append("Content-Disposition: form-data; name=\"\(name)\"\r\n") + + // Separate headers and body. + body.append("\r\n") + + // The value data. + body.append(data) + + urlRequest.httpBody = body + + return urlRequest + + } + + func mimeType(for url: URL) -> String { + let pathExtension = url.pathExtension + + if #available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) { + #if canImport(UniformTypeIdentifiers) + if let utType = UTType(filenameExtension: pathExtension) { + return utType.preferredMIMEType ?? "application/octet-stream" + } + #else + return "application/octet-stream" + #endif + } else { + if let uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as NSString, nil)?.takeRetainedValue(), + let mimetype = UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType)?.takeRetainedValue() { + return mimetype as String + } + return "application/octet-stream" + } + return "application/octet-stream" + } + +} + +private class FormURLEncoding: ParameterEncoding { + func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { + + var urlRequest = urlRequest + + var requestBodyComponents = URLComponents() + let queryItems = APIHelper.mapValuesToQueryItems(parameters ?? [:]) + + /// `httpBody` needs to be percent encoded + /// -> https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST + /// "application/x-www-form-urlencoded: [...] Non-alphanumeric characters in both keys and values are percent-encoded" + let percentEncodedQueryItems = queryItems?.compactMap { queryItem in + return URLQueryItem( + name: queryItem.name.addingPercentEncoding(withAllowedCharacters: .alphanumerics) ?? queryItem.name, + value: queryItem.value?.addingPercentEncoding(withAllowedCharacters: .alphanumerics) ?? queryItem.value) + } + requestBodyComponents.queryItems = percentEncodedQueryItems + + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") + } + + /// We can't use `requestBodyComponents.percentEncodedQuery` since this does NOT percent encode the `+` sign + /// that is why we do the percent encoding manually for each key/value pair + urlRequest.httpBody = requestBodyComponents.query?.data(using: .utf8) + + return urlRequest + } +} + +private class OctetStreamEncoding: ParameterEncoding { + func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { + + var urlRequest = urlRequest + + guard let body = parameters?["body"] else { return urlRequest } + + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/octet-stream", forHTTPHeaderField: "Content-Type") + } + + switch body { + case let fileURL as URL: + urlRequest.httpBody = try Data(contentsOf: fileURL) + case let data as Data: + urlRequest.httpBody = data + default: + fatalError("Unprocessable body \(body)") + } + + return urlRequest + } +} + +private extension Data { + /// Append string to Data + /// + /// Rather than littering my code with calls to `dataUsingEncoding` to convert strings to Data, and then add that data to the Data, this wraps it in a nice convenient little extension to Data. This converts using UTF-8. + /// + /// - parameter string: The string to be added to the `Data`. + + mutating func append(_ string: String) { + if let data = string.data(using: .utf8) { + append(data) + } + } +} + +private extension Optional where Wrapped == Data { + var orEmpty: Data { + self ?? Data() + } +} + +extension JSONDataEncoding: ParameterEncoding {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift new file mode 100644 index 0000000..3bf4ec0 --- /dev/null +++ b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift @@ -0,0 +1,161 @@ +// Validation.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct StringRule { + public var minLength: Int? + public var maxLength: Int? + public var pattern: String? +} + +public struct NumericRule { + public var minimum: T? + public var exclusiveMinimum = false + public var maximum: T? + public var exclusiveMaximum = false + public var multipleOf: T? +} + +public struct ArrayRule { + public var minItems: Int? + public var maxItems: Int? + public var uniqueItems: Bool +} + +public enum StringValidationErrorKind: Error { + case minLength, maxLength, pattern +} + +public enum NumericValidationErrorKind: Error { + case minimum, maximum, multipleOf +} + +public enum ArrayValidationErrorKind: Error { + case minItems, maxItems, uniqueItems +} + +public struct ValidationError: Error { + public fileprivate(set) var kinds: Set +} + +public struct Validator { + /// Validate a string against a rule. + /// - Parameter string: The String you wish to validate. + /// - Parameter rule: The StringRule you wish to use for validation. + /// - Returns: A validated string. + /// - Throws: `ValidationError` if the string is invalid against the rule, + /// `NSError` if the rule.pattern is invalid. + public static func validate(_ string: String, against rule: StringRule) throws -> String { + var error = ValidationError(kinds: []) + if let minLength = rule.minLength, !(minLength <= string.count) { + error.kinds.insert(.minLength) + } + if let maxLength = rule.maxLength, !(string.count <= maxLength) { + error.kinds.insert(.maxLength) + } + if let pattern = rule.pattern { + let matches = try NSRegularExpression(pattern: pattern, options: .caseInsensitive) + .matches(in: string, range: .init(location: 0, length: string.utf16.count)) + if matches.isEmpty { + error.kinds.insert(.pattern) + } + } + guard error.kinds.isEmpty else { + throw error + } + return string + } + + /// Validate a integer against a rule. + /// - Parameter numeric: The integer you wish to validate. + /// - Parameter rule: The NumericRule you wish to use for validation. + /// - Returns: A validated integer. + /// - Throws: `ValidationError` if the numeric is invalid against the rule. + public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { + var error = ValidationError(kinds: []) + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { + error.kinds.insert(.minimum) + } + if rule.exclusiveMinimum, minimum >= numeric { + error.kinds.insert(.minimum) + } + } + if let maximum = rule.maximum { + if !rule.exclusiveMaximum, numeric > maximum { + error.kinds.insert(.maximum) + } + if rule.exclusiveMaximum, numeric >= maximum { + error.kinds.insert(.maximum) + } + } + if let multipleOf = rule.multipleOf, !numeric.isMultiple(of: multipleOf) { + error.kinds.insert(.multipleOf) + } + guard error.kinds.isEmpty else { + throw error + } + return numeric + } + + /// Validate a fractional number against a rule. + /// - Parameter numeric: The fractional number you wish to validate. + /// - Parameter rule: The NumericRule you wish to use for validation. + /// - Returns: A validated fractional number. + /// - Throws: `ValidationError` if the numeric is invalid against the rule. + public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { + var error = ValidationError(kinds: []) + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { + error.kinds.insert(.minimum) + } + if rule.exclusiveMinimum, minimum >= numeric { + error.kinds.insert(.minimum) + } + } + if let maximum = rule.maximum { + if !rule.exclusiveMaximum, numeric > maximum { + error.kinds.insert(.maximum) + } + if rule.exclusiveMaximum, numeric >= maximum { + error.kinds.insert(.maximum) + } + } + if let multipleOf = rule.multipleOf, numeric.remainder(dividingBy: multipleOf) != 0 { + error.kinds.insert(.multipleOf) + } + guard error.kinds.isEmpty else { + throw error + } + return numeric + } + + /// Validate a array against a rule. + /// - Parameter array: The Array you wish to validate. + /// - Parameter rule: The ArrayRule you wish to use for validation. + /// - Returns: A validated array. + /// - Throws: `ValidationError` if the string is invalid against the rule. + public static func validate(_ array: Array, against rule: ArrayRule) throws -> Array { + var error = ValidationError(kinds: []) + if let minItems = rule.minItems, !(minItems <= array.count) { + error.kinds.insert(.minItems) + } + if let maxItems = rule.maxItems, !(array.count <= maxItems) { + error.kinds.insert(.maxItems) + } + if rule.uniqueItems { + let unique = Set(array) + if unique.count != array.count { + error.kinds.insert(.uniqueItems) + } + } + guard error.kinds.isEmpty else { + throw error + } + return array + } +} diff --git a/sdks/swift/Package.swift b/sdks/swift/Package.swift new file mode 100644 index 0000000..5135d29 --- /dev/null +++ b/sdks/swift/Package.swift @@ -0,0 +1,33 @@ +// swift-tools-version:5.1 + +import PackageDescription + +let package = Package( + name: "KeyNetraClient", + platforms: [ + .iOS(.v11), + .macOS(.v10_13), + .tvOS(.v11), + .watchOS(.v4), + ], + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "KeyNetraClient", + targets: ["KeyNetraClient"] + ), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + .package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.1")), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages which this package depends on. + .target( + name: "KeyNetraClient", + dependencies: ["AnyCodable", ], + path: "KeyNetraClient/Classes" + ), + ] +) diff --git a/sdks/swift/README.md b/sdks/swift/README.md new file mode 100644 index 0000000..b05ecf7 --- /dev/null +++ b/sdks/swift/README.md @@ -0,0 +1,50 @@ +# KeyNetraClient + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official Swift SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Swift applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +dependencies: [ + .package(url: "https://github.com/keynetra/keynetra-sdks.git", from: "0.1.0") +] +``` + +## ๐Ÿš€ Quick Start + +```swift +import KeyNetraClient + +let client = KeyNetraClient( + baseUrl: "http://localhost:8080", + apiKey: "YOUR_API_KEY" +) + +// Perform an access check +client.accessApi.checkAccess(...) +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/swift/docs/ACLCreate.md b/sdks/swift/docs/ACLCreate.md new file mode 100644 index 0000000..19951f7 --- /dev/null +++ b/sdks/swift/docs/ACLCreate.md @@ -0,0 +1,15 @@ +# ACLCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **String** | | +**subjectId** | **String** | | +**resourceType** | **String** | | +**resourceId** | **String** | | +**action** | **String** | | +**effect** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/ACLOut.md b/sdks/swift/docs/ACLOut.md new file mode 100644 index 0000000..68e9da7 --- /dev/null +++ b/sdks/swift/docs/ACLOut.md @@ -0,0 +1,18 @@ +# ACLOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **String** | | +**subjectId** | **String** | | +**resourceType** | **String** | | +**resourceId** | **String** | | +**action** | **String** | | +**effect** | **String** | | +**id** | **Int** | | +**tenantId** | **Int** | | +**createdAt** | **Date** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AccessAPI.md b/sdks/swift/docs/AccessAPI.md new file mode 100644 index 0000000..c2507d7 --- /dev/null +++ b/sdks/swift/docs/AccessAPI.md @@ -0,0 +1,159 @@ +# AccessAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**checkAccessBatchCheckAccessBatchPost**](AccessAPI.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch +[**checkAccessCheckAccessPost**](AccessAPI.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access +[**simulateSimulatePost**](AccessAPI.md#simulatesimulatepost) | **POST** /simulate | Simulate + + +# **checkAccessBatchCheckAccessBatchPost** +```swift + open class func checkAccessBatchCheckAccessBatchPost(batchAccessRequest: BatchAccessRequest, policySet: String? = nil, completion: @escaping (_ data: SuccessResponseBatchAccessResponse?, _ error: Error?) -> Void) +``` + +Check Access Batch + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let batchAccessRequest = BatchAccessRequest(user: "TODO", items: [BatchAccessItem(action: "action_example", resource: "TODO")], consistency: "consistency_example", revision: 123) // BatchAccessRequest | +let policySet = "policySet_example" // String | (optional) (default to "active") + +// Check Access Batch +AccessAPI.checkAccessBatchCheckAccessBatchPost(batchAccessRequest: batchAccessRequest, policySet: policySet) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md) | | + **policySet** | **String** | | [optional] [default to "active"] + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **checkAccessCheckAccessPost** +```swift + open class func checkAccessCheckAccessPost(accessRequest: AccessRequest, policySet: String? = nil, completion: @escaping (_ data: SuccessResponseAccessDecisionResponse?, _ error: Error?) -> Void) +``` + +Check Access + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let accessRequest = AccessRequest(user: "TODO", action: "action_example", resource: "TODO", context: "TODO", consistency: "consistency_example", revision: 123) // AccessRequest | +let policySet = "policySet_example" // String | (optional) (default to "active") + +// Check Access +AccessAPI.checkAccessCheckAccessPost(accessRequest: accessRequest, policySet: policySet) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessRequest** | [**AccessRequest**](AccessRequest.md) | | + **policySet** | **String** | | [optional] [default to "active"] + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **simulateSimulatePost** +```swift + open class func simulateSimulatePost(accessRequest: AccessRequest, completion: @escaping (_ data: SuccessResponseSimulationResponse?, _ error: Error?) -> Void) +``` + +Simulate + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let accessRequest = AccessRequest(user: "TODO", action: "action_example", resource: "TODO", context: "TODO", consistency: "consistency_example", revision: 123) // AccessRequest | + +// Simulate +AccessAPI.simulateSimulatePost(accessRequest: accessRequest) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessRequest** | [**AccessRequest**](AccessRequest.md) | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/swift/docs/AccessDecisionResponse.md b/sdks/swift/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..80593f4 --- /dev/null +++ b/sdks/swift/docs/AccessDecisionResponse.md @@ -0,0 +1,16 @@ +# AccessDecisionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **Bool** | | +**decision** | **String** | | +**matchedPolicies** | **[String]** | | [optional] +**reason** | **String** | | [optional] +**policyId** | **String** | | [optional] +**explainTrace** | [[String: AnyCodable]] | | [optional] +**revision** | **Int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AccessRequest.md b/sdks/swift/docs/AccessRequest.md new file mode 100644 index 0000000..f2e6f96 --- /dev/null +++ b/sdks/swift/docs/AccessRequest.md @@ -0,0 +1,15 @@ +# AccessRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **[String: AnyCodable]** | | [optional] +**action** | **String** | | +**resource** | **[String: AnyCodable]** | | [optional] +**context** | **[String: AnyCodable]** | | [optional] +**consistency** | **String** | | [optional] [default to "eventual"] +**revision** | **Int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AdminLoginRequest.md b/sdks/swift/docs/AdminLoginRequest.md new file mode 100644 index 0000000..9b240c8 --- /dev/null +++ b/sdks/swift/docs/AdminLoginRequest.md @@ -0,0 +1,11 @@ +# AdminLoginRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **String** | | +**password** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AdminLoginResponse.md b/sdks/swift/docs/AdminLoginResponse.md new file mode 100644 index 0000000..b01d06a --- /dev/null +++ b/sdks/swift/docs/AdminLoginResponse.md @@ -0,0 +1,14 @@ +# AdminLoginResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessToken** | **String** | | +**tokenType** | **String** | | [optional] [default to "bearer"] +**expiresIn** | **Int** | | +**role** | **String** | | [optional] [default to "admin"] +**tenantKey** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AuditRecordOut.md b/sdks/swift/docs/AuditRecordOut.md new file mode 100644 index 0000000..2a48a35 --- /dev/null +++ b/sdks/swift/docs/AuditRecordOut.md @@ -0,0 +1,22 @@ +# AuditRecordOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Int** | | +**principalType** | **String** | | +**principalId** | **String** | | +**correlationId** | **String** | | [optional] +**user** | **[String: AnyCodable]** | | +**action** | **String** | | +**resource** | **[String: AnyCodable]** | | +**decision** | **String** | | +**matchedPolicies** | **[AnyCodable]** | | +**reason** | **String** | | [optional] +**evaluatedRules** | **[AnyCodable]** | | +**failedConditions** | **[AnyCodable]** | | +**createdAt** | **Date** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AuthAPI.md b/sdks/swift/docs/AuthAPI.md new file mode 100644 index 0000000..59b1422 --- /dev/null +++ b/sdks/swift/docs/AuthAPI.md @@ -0,0 +1,106 @@ +# AuthAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**adminLoginAdminLoginPost**](AuthAPI.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login +[**adminLoginAdminLoginPost_0**](AuthAPI.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login + + +# **adminLoginAdminLoginPost** +```swift + open class func adminLoginAdminLoginPost(adminLoginRequest: AdminLoginRequest, completion: @escaping (_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void) +``` + +Admin Login + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let adminLoginRequest = AdminLoginRequest(username: "username_example", password: "password_example") // AdminLoginRequest | + +// Admin Login +AuthAPI.adminLoginAdminLoginPost(adminLoginRequest: adminLoginRequest) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **adminLoginAdminLoginPost_0** +```swift + open class func adminLoginAdminLoginPost_0(adminLoginRequest: AdminLoginRequest, completion: @escaping (_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void) +``` + +Admin Login + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let adminLoginRequest = AdminLoginRequest(username: "username_example", password: "password_example") // AdminLoginRequest | + +// Admin Login +AuthAPI.adminLoginAdminLoginPost_0(adminLoginRequest: adminLoginRequest) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/swift/docs/AuthModelCreate.md b/sdks/swift/docs/AuthModelCreate.md new file mode 100644 index 0000000..40adea1 --- /dev/null +++ b/sdks/swift/docs/AuthModelCreate.md @@ -0,0 +1,10 @@ +# AuthModelCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**schema** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/AuthModelOut.md b/sdks/swift/docs/AuthModelOut.md new file mode 100644 index 0000000..8808ed3 --- /dev/null +++ b/sdks/swift/docs/AuthModelOut.md @@ -0,0 +1,14 @@ +# AuthModelOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Int** | | +**tenantId** | **Int** | | +**schema** | **String** | | +**parsed** | **[String: AnyCodable]** | | +**compiled** | **[String: AnyCodable]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/BatchAccessItem.md b/sdks/swift/docs/BatchAccessItem.md new file mode 100644 index 0000000..75a291b --- /dev/null +++ b/sdks/swift/docs/BatchAccessItem.md @@ -0,0 +1,11 @@ +# BatchAccessItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**resource** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/BatchAccessRequest.md b/sdks/swift/docs/BatchAccessRequest.md new file mode 100644 index 0000000..89a8ddb --- /dev/null +++ b/sdks/swift/docs/BatchAccessRequest.md @@ -0,0 +1,13 @@ +# BatchAccessRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **[String: AnyCodable]** | | [optional] +**items** | [BatchAccessItem] | | +**consistency** | **String** | | [optional] [default to "eventual"] +**revision** | **Int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/BatchAccessResponse.md b/sdks/swift/docs/BatchAccessResponse.md new file mode 100644 index 0000000..5b27701 --- /dev/null +++ b/sdks/swift/docs/BatchAccessResponse.md @@ -0,0 +1,11 @@ +# BatchAccessResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [BatchAccessResult] | | +**revision** | **Int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/BatchAccessResult.md b/sdks/swift/docs/BatchAccessResult.md new file mode 100644 index 0000000..62568a2 --- /dev/null +++ b/sdks/swift/docs/BatchAccessResult.md @@ -0,0 +1,12 @@ +# BatchAccessResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**allowed** | **Bool** | | +**revision** | **Int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/DataValue.md b/sdks/swift/docs/DataValue.md new file mode 100644 index 0000000..9bb682a --- /dev/null +++ b/sdks/swift/docs/DataValue.md @@ -0,0 +1,9 @@ +# DataValue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/DevAPI.md b/sdks/swift/docs/DevAPI.md new file mode 100644 index 0000000..2ecfdd1 --- /dev/null +++ b/sdks/swift/docs/DevAPI.md @@ -0,0 +1,102 @@ +# DevAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getSampleDataDevSampleDataGet**](DevAPI.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data +[**seedSampleDataDevSampleDataSeedPost**](DevAPI.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data + + +# **getSampleDataDevSampleDataGet** +```swift + open class func getSampleDataDevSampleDataGet(completion: @escaping (_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void) +``` + +Get Sample Data + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + + +// Get Sample Data +DevAPI.getSampleDataDevSampleDataGet() { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **seedSampleDataDevSampleDataSeedPost** +```swift + open class func seedSampleDataDevSampleDataSeedPost(reset: Bool? = nil, completion: @escaping (_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void) +``` + +Seed Sample Data + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let reset = true // Bool | Clear the sample dataset before reseeding it. (optional) (default to false) + +// Seed Sample Data +DevAPI.seedSampleDataDevSampleDataSeedPost(reset: reset) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reset** | **Bool** | Clear the sample dataset before reseeding it. | [optional] [default to false] + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/swift/docs/HTTPValidationError.md b/sdks/swift/docs/HTTPValidationError.md new file mode 100644 index 0000000..e609879 --- /dev/null +++ b/sdks/swift/docs/HTTPValidationError.md @@ -0,0 +1,10 @@ +# HTTPValidationError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**detail** | [ValidationError] | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/HealthAPI.md b/sdks/swift/docs/HealthAPI.md new file mode 100644 index 0000000..3dfdd57 --- /dev/null +++ b/sdks/swift/docs/HealthAPI.md @@ -0,0 +1,143 @@ +# HealthAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**healthHealthGet**](HealthAPI.md#healthhealthget) | **GET** /health | Health +[**livenessHealthLiveGet**](HealthAPI.md#livenesshealthliveget) | **GET** /health/live | Liveness +[**readinessHealthReadyGet**](HealthAPI.md#readinesshealthreadyget) | **GET** /health/ready | Readiness + + +# **healthHealthGet** +```swift + open class func healthHealthGet(completion: @escaping (_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void) +``` + +Health + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + + +// Health +HealthAPI.healthHealthGet() { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **livenessHealthLiveGet** +```swift + open class func livenessHealthLiveGet(completion: @escaping (_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void) +``` + +Liveness + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + + +// Liveness +HealthAPI.livenessHealthLiveGet() { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **readinessHealthReadyGet** +```swift + open class func readinessHealthReadyGet(completion: @escaping (_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void) +``` + +Readiness + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + + +// Readiness +HealthAPI.readinessHealthReadyGet() { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/swift/docs/ImpactAnalysisRequest.md b/sdks/swift/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..e86b403 --- /dev/null +++ b/sdks/swift/docs/ImpactAnalysisRequest.md @@ -0,0 +1,10 @@ +# ImpactAnalysisRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policyChange** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/ImpactAnalysisResponse.md b/sdks/swift/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..16f8708 --- /dev/null +++ b/sdks/swift/docs/ImpactAnalysisResponse.md @@ -0,0 +1,11 @@ +# ImpactAnalysisResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gainedAccess** | **[Int]** | | [optional] +**lostAccess** | **[Int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/LocationInner.md b/sdks/swift/docs/LocationInner.md new file mode 100644 index 0000000..3d04747 --- /dev/null +++ b/sdks/swift/docs/LocationInner.md @@ -0,0 +1,9 @@ +# LocationInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/ManagementAPI.md b/sdks/swift/docs/ManagementAPI.md new file mode 100644 index 0000000..eb3df16 --- /dev/null +++ b/sdks/swift/docs/ManagementAPI.md @@ -0,0 +1,1414 @@ +# ManagementAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementAPI.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +[**createAclEntryAclPost**](ManagementAPI.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry +[**createAuthModelAuthModelPost**](ManagementAPI.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model +[**createPermissionPermissionsPost**](ManagementAPI.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission +[**createPolicyFromDslPoliciesDslPost**](ManagementAPI.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl +[**createPolicyPoliciesPost**](ManagementAPI.md#createpolicypoliciespost) | **POST** /policies | Create Policy +[**createRelationshipRelationshipsPost**](ManagementAPI.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship +[**createRoleRolesPost**](ManagementAPI.md#createrolerolespost) | **POST** /roles | Create Role +[**deleteAclEntryAclAclIdDelete**](ManagementAPI.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +[**deletePermissionPermissionsPermissionIdDelete**](ManagementAPI.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission +[**deletePolicyPoliciesPolicyKeyDelete**](ManagementAPI.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy +[**deleteRoleRolesRoleIdDelete**](ManagementAPI.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role +[**getAuthModelAuthModelGet**](ManagementAPI.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model +[**impactAnalysisImpactAnalysisPost**](ManagementAPI.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis +[**listAclEntriesAclResourceTypeResourceIdGet**](ManagementAPI.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +[**listAuditLogsAuditGet**](ManagementAPI.md#listauditlogsauditget) | **GET** /audit | List Audit Logs +[**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementAPI.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles +[**listPermissionsPermissionsGet**](ManagementAPI.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions +[**listPoliciesPoliciesGet**](ManagementAPI.md#listpoliciespoliciesget) | **GET** /policies | List Policies +[**listRelationshipsRelationshipsGet**](ManagementAPI.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships +[**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementAPI.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions +[**listRolesRolesGet**](ManagementAPI.md#listrolesrolesget) | **GET** /roles | List Roles +[**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementAPI.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +[**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementAPI.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +[**simulatePolicySimulatePolicyPost**](ManagementAPI.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy +[**updatePermissionPermissionsPermissionIdPut**](ManagementAPI.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission +[**updatePolicyPoliciesPolicyKeyPut**](ManagementAPI.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy +[**updateRoleRolesRoleIdPut**](ManagementAPI.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role + + +# **addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** +```swift + open class func addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId: Int, permissionId: Int, completion: @escaping (_ data: SuccessResponsePermissionOut?, _ error: Error?) -> Void) +``` + +Add Permission To Role + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let roleId = 987 // Int | +let permissionId = 987 // Int | + +// Add Permission To Role +ManagementAPI.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId: roleId, permissionId: permissionId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleId** | **Int** | | + **permissionId** | **Int** | | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createAclEntryAclPost** +```swift + open class func createAclEntryAclPost(aCLCreate: ACLCreate, completion: @escaping (_ data: SuccessResponseACLOut?, _ error: Error?) -> Void) +``` + +Create Acl Entry + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let aCLCreate = ACLCreate(subjectType: "subjectType_example", subjectId: "subjectId_example", resourceType: "resourceType_example", resourceId: "resourceId_example", action: "action_example", effect: "effect_example") // ACLCreate | + +// Create Acl Entry +ManagementAPI.createAclEntryAclPost(aCLCreate: aCLCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aCLCreate** | [**ACLCreate**](ACLCreate.md) | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createAuthModelAuthModelPost** +```swift + open class func createAuthModelAuthModelPost(authModelCreate: AuthModelCreate, completion: @escaping (_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void) +``` + +Create Auth Model + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let authModelCreate = AuthModelCreate(schema: "schema_example") // AuthModelCreate | + +// Create Auth Model +ManagementAPI.createAuthModelAuthModelPost(authModelCreate: authModelCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md) | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createPermissionPermissionsPost** +```swift + open class func createPermissionPermissionsPost(permissionCreate: PermissionCreate, completion: @escaping (_ data: PermissionOut?, _ error: Error?) -> Void) +``` + +Create Permission + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let permissionCreate = PermissionCreate(action: "action_example") // PermissionCreate | + +// Create Permission +ManagementAPI.createPermissionPermissionsPost(permissionCreate: permissionCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permissionCreate** | [**PermissionCreate**](PermissionCreate.md) | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createPolicyFromDslPoliciesDslPost** +```swift + open class func createPolicyFromDslPoliciesDslPost(dsl: String, completion: @escaping (_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void) +``` + +Create Policy From Dsl + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let dsl = "dsl_example" // String | + +// Create Policy From Dsl +ManagementAPI.createPolicyFromDslPoliciesDslPost(dsl: dsl) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dsl** | **String** | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createPolicyPoliciesPost** +```swift + open class func createPolicyPoliciesPost(policyCreate: PolicyCreate, completion: @escaping (_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void) +``` + +Create Policy + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let policyCreate = PolicyCreate(action: "action_example", effect: "effect_example", priority: 123, state: "state_example", conditions: "TODO") // PolicyCreate | + +// Create Policy +ManagementAPI.createPolicyPoliciesPost(policyCreate: policyCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createRelationshipRelationshipsPost** +```swift + open class func createRelationshipRelationshipsPost(relationshipCreate: RelationshipCreate, completion: @escaping (_ data: SuccessResponseRelationshipOut?, _ error: Error?) -> Void) +``` + +Create Relationship + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let relationshipCreate = RelationshipCreate(subjectType: "subjectType_example", subjectId: "subjectId_example", relation: "relation_example", objectType: "objectType_example", objectId: "objectId_example") // RelationshipCreate | + +// Create Relationship +ManagementAPI.createRelationshipRelationshipsPost(relationshipCreate: relationshipCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md) | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createRoleRolesPost** +```swift + open class func createRoleRolesPost(roleCreate: RoleCreate, completion: @escaping (_ data: RoleOut?, _ error: Error?) -> Void) +``` + +Create Role + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let roleCreate = RoleCreate(name: "name_example") // RoleCreate | + +// Create Role +ManagementAPI.createRoleRolesPost(roleCreate: roleCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleCreate** | [**RoleCreate**](RoleCreate.md) | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteAclEntryAclAclIdDelete** +```swift + open class func deleteAclEntryAclAclIdDelete(aclId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) +``` + +Delete Acl Entry + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let aclId = 987 // Int | + +// Delete Acl Entry +ManagementAPI.deleteAclEntryAclAclIdDelete(aclId: aclId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aclId** | **Int** | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deletePermissionPermissionsPermissionIdDelete** +```swift + open class func deletePermissionPermissionsPermissionIdDelete(permissionId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) +``` + +Delete Permission + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let permissionId = 987 // Int | + +// Delete Permission +ManagementAPI.deletePermissionPermissionsPermissionIdDelete(permissionId: permissionId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permissionId** | **Int** | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deletePolicyPoliciesPolicyKeyDelete** +```swift + open class func deletePolicyPoliciesPolicyKeyDelete(policyKey: String, completion: @escaping (_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void) +``` + +Delete Policy + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let policyKey = "policyKey_example" // String | + +// Delete Policy +ManagementAPI.deletePolicyPoliciesPolicyKeyDelete(policyKey: policyKey) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policyKey** | **String** | | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteRoleRolesRoleIdDelete** +```swift + open class func deleteRoleRolesRoleIdDelete(roleId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) +``` + +Delete Role + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let roleId = 987 // Int | + +// Delete Role +ManagementAPI.deleteRoleRolesRoleIdDelete(roleId: roleId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleId** | **Int** | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getAuthModelAuthModelGet** +```swift + open class func getAuthModelAuthModelGet(completion: @escaping (_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void) +``` + +Get Auth Model + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + + +// Get Auth Model +ManagementAPI.getAuthModelAuthModelGet() { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **impactAnalysisImpactAnalysisPost** +```swift + open class func impactAnalysisImpactAnalysisPost(impactAnalysisRequest: ImpactAnalysisRequest, completion: @escaping (_ data: SuccessResponseImpactAnalysisResponse?, _ error: Error?) -> Void) +``` + +Impact Analysis + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let impactAnalysisRequest = ImpactAnalysisRequest(policyChange: "policyChange_example") // ImpactAnalysisRequest | + +// Impact Analysis +ManagementAPI.impactAnalysisImpactAnalysisPost(impactAnalysisRequest: impactAnalysisRequest) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listAclEntriesAclResourceTypeResourceIdGet** +```swift + open class func listAclEntriesAclResourceTypeResourceIdGet(resourceType: String, resourceId: String, completion: @escaping (_ data: SuccessResponseListACLOut?, _ error: Error?) -> Void) +``` + +List Acl Entries + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let resourceType = "resourceType_example" // String | +let resourceId = "resourceId_example" // String | + +// List Acl Entries +ManagementAPI.listAclEntriesAclResourceTypeResourceIdGet(resourceType: resourceType, resourceId: resourceId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceType** | **String** | | + **resourceId** | **String** | | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listAuditLogsAuditGet** +```swift + open class func listAuditLogsAuditGet(limit: Int? = nil, cursor: String? = nil, userId: String? = nil, resourceId: String? = nil, decision: String? = nil, startTime: Date? = nil, endTime: Date? = nil, completion: @escaping (_ data: SuccessResponseListAuditRecordOut?, _ error: Error?) -> Void) +``` + +List Audit Logs + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let limit = 987 // Int | (optional) (default to 50) +let cursor = "cursor_example" // String | (optional) +let userId = "userId_example" // String | (optional) +let resourceId = "resourceId_example" // String | (optional) +let decision = "decision_example" // String | (optional) +let startTime = Date() // Date | (optional) +let endTime = Date() // Date | (optional) + +// List Audit Logs +ManagementAPI.listAuditLogsAuditGet(limit: limit, cursor: cursor, userId: userId, resourceId: resourceId, decision: decision, startTime: startTime, endTime: endTime) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Int** | | [optional] [default to 50] + **cursor** | **String** | | [optional] + **userId** | **String** | | [optional] + **resourceId** | **String** | | [optional] + **decision** | **String** | | [optional] + **startTime** | **Date** | | [optional] + **endTime** | **Date** | | [optional] + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listPermissionRolesPermissionsPermissionIdRolesGet** +```swift + open class func listPermissionRolesPermissionsPermissionIdRolesGet(permissionId: Int, completion: @escaping (_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void) +``` + +List Permission Roles + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let permissionId = 987 // Int | + +// List Permission Roles +ManagementAPI.listPermissionRolesPermissionsPermissionIdRolesGet(permissionId: permissionId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permissionId** | **Int** | | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listPermissionsPermissionsGet** +```swift + open class func listPermissionsPermissionsGet(limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void) +``` + +List Permissions + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let limit = 987 // Int | (optional) (default to 50) +let cursor = "cursor_example" // String | (optional) + +// List Permissions +ManagementAPI.listPermissionsPermissionsGet(limit: limit, cursor: cursor) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Int** | | [optional] [default to 50] + **cursor** | **String** | | [optional] + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listPoliciesPoliciesGet** +```swift + open class func listPoliciesPoliciesGet(limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListPolicyOut?, _ error: Error?) -> Void) +``` + +List Policies + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let limit = 987 // Int | (optional) (default to 50) +let cursor = "cursor_example" // String | (optional) + +// List Policies +ManagementAPI.listPoliciesPoliciesGet(limit: limit, cursor: cursor) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Int** | | [optional] [default to 50] + **cursor** | **String** | | [optional] + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listRelationshipsRelationshipsGet** +```swift + open class func listRelationshipsRelationshipsGet(subjectType: String, subjectId: String, limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListDictStrStr?, _ error: Error?) -> Void) +``` + +List Relationships + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let subjectType = "subjectType_example" // String | +let subjectId = "subjectId_example" // String | +let limit = 987 // Int | (optional) (default to 50) +let cursor = "cursor_example" // String | (optional) + +// List Relationships +ManagementAPI.listRelationshipsRelationshipsGet(subjectType: subjectType, subjectId: subjectId, limit: limit, cursor: cursor) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subjectType** | **String** | | + **subjectId** | **String** | | + **limit** | **Int** | | [optional] [default to 50] + **cursor** | **String** | | [optional] + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listRolePermissionsRolesRoleIdPermissionsGet** +```swift + open class func listRolePermissionsRolesRoleIdPermissionsGet(roleId: Int, completion: @escaping (_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void) +``` + +List Role Permissions + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let roleId = 987 // Int | + +// List Role Permissions +ManagementAPI.listRolePermissionsRolesRoleIdPermissionsGet(roleId: roleId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleId** | **Int** | | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listRolesRolesGet** +```swift + open class func listRolesRolesGet(limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void) +``` + +List Roles + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let limit = 987 // Int | (optional) (default to 50) +let cursor = "cursor_example" // String | (optional) + +// List Roles +ManagementAPI.listRolesRolesGet(limit: limit, cursor: cursor) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Int** | | [optional] [default to 50] + **cursor** | **String** | | [optional] + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** +```swift + open class func removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId: Int, permissionId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) +``` + +Remove Permission From Role + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let roleId = 987 // Int | +let permissionId = 987 // Int | + +// Remove Permission From Role +ManagementAPI.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId: roleId, permissionId: permissionId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleId** | **Int** | | + **permissionId** | **Int** | | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **rollbackPolicyPoliciesPolicyKeyRollbackVersionPost** +```swift + open class func rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey: String, version: Int, completion: @escaping (_ data: SuccessResponseDictStrUnionIntStr?, _ error: Error?) -> Void) +``` + +Rollback Policy + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let policyKey = "policyKey_example" // String | +let version = 987 // Int | + +// Rollback Policy +ManagementAPI.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey: policyKey, version: version) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policyKey** | **String** | | + **version** | **Int** | | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **simulatePolicySimulatePolicyPost** +```swift + open class func simulatePolicySimulatePolicyPost(policySimulationRequest: PolicySimulationRequest, completion: @escaping (_ data: SuccessResponsePolicySimulationResponse?, _ error: Error?) -> Void) +``` + +Simulate Policy + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let policySimulationRequest = PolicySimulationRequest(simulate: PolicySimulationInput(policyChange: "policyChange_example", relationshipChange: "TODO", roleChange: "TODO"), request: "TODO") // PolicySimulationRequest | + +// Simulate Policy +ManagementAPI.simulatePolicySimulatePolicyPost(policySimulationRequest: policySimulationRequest) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **updatePermissionPermissionsPermissionIdPut** +```swift + open class func updatePermissionPermissionsPermissionIdPut(permissionId: Int, permissionUpdate: PermissionUpdate, completion: @escaping (_ data: PermissionOut?, _ error: Error?) -> Void) +``` + +Update Permission + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let permissionId = 987 // Int | +let permissionUpdate = PermissionUpdate(action: "action_example") // PermissionUpdate | + +// Update Permission +ManagementAPI.updatePermissionPermissionsPermissionIdPut(permissionId: permissionId, permissionUpdate: permissionUpdate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **permissionId** | **Int** | | + **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md) | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **updatePolicyPoliciesPolicyKeyPut** +```swift + open class func updatePolicyPoliciesPolicyKeyPut(policyKey: String, policyCreate: PolicyCreate, completion: @escaping (_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void) +``` + +Update Policy + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let policyKey = "policyKey_example" // String | +let policyCreate = PolicyCreate(action: "action_example", effect: "effect_example", priority: 123, state: "state_example", conditions: "TODO") // PolicyCreate | + +// Update Policy +ManagementAPI.updatePolicyPoliciesPolicyKeyPut(policyKey: policyKey, policyCreate: policyCreate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policyKey** | **String** | | + **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **updateRoleRolesRoleIdPut** +```swift + open class func updateRoleRolesRoleIdPut(roleId: Int, roleUpdate: RoleUpdate, completion: @escaping (_ data: RoleOut?, _ error: Error?) -> Void) +``` + +Update Role + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let roleId = 987 // Int | +let roleUpdate = RoleUpdate(name: "name_example") // RoleUpdate | + +// Update Role +ManagementAPI.updateRoleRolesRoleIdPut(roleId: roleId, roleUpdate: roleUpdate) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleId** | **Int** | | + **roleUpdate** | [**RoleUpdate**](RoleUpdate.md) | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/swift/docs/MetaBody.md b/sdks/swift/docs/MetaBody.md new file mode 100644 index 0000000..1dbba11 --- /dev/null +++ b/sdks/swift/docs/MetaBody.md @@ -0,0 +1,13 @@ +# MetaBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requestId** | **String** | | [optional] +**limit** | **Int** | | [optional] +**nextCursor** | **String** | | [optional] +**extra** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PermissionCreate.md b/sdks/swift/docs/PermissionCreate.md new file mode 100644 index 0000000..d02307c --- /dev/null +++ b/sdks/swift/docs/PermissionCreate.md @@ -0,0 +1,10 @@ +# PermissionCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PermissionOut.md b/sdks/swift/docs/PermissionOut.md new file mode 100644 index 0000000..855e5cb --- /dev/null +++ b/sdks/swift/docs/PermissionOut.md @@ -0,0 +1,11 @@ +# PermissionOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Int** | | +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PermissionUpdate.md b/sdks/swift/docs/PermissionUpdate.md new file mode 100644 index 0000000..5112b5f --- /dev/null +++ b/sdks/swift/docs/PermissionUpdate.md @@ -0,0 +1,10 @@ +# PermissionUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PlaygroundAPI.md b/sdks/swift/docs/PlaygroundAPI.md new file mode 100644 index 0000000..53cfc93 --- /dev/null +++ b/sdks/swift/docs/PlaygroundAPI.md @@ -0,0 +1,57 @@ +# PlaygroundAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**evaluatePlaygroundEvaluatePost**](PlaygroundAPI.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate + + +# **evaluatePlaygroundEvaluatePost** +```swift + open class func evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest: PlaygroundEvaluateRequest, completion: @escaping (_ data: SuccessResponseDictStrAny?, _ error: Error?) -> Void) +``` + +Evaluate + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import KeyNetraClient + +let playgroundEvaluateRequest = PlaygroundEvaluateRequest(policies: [PlaygroundPolicy(action: "action_example", effect: "effect_example", priority: 123, policyId: "policyId_example", conditions: "TODO")], input: PlaygroundInput(user: "TODO", resource: "TODO", action: "action_example", context: "TODO")) // PlaygroundEvaluateRequest | + +// Evaluate +PlaygroundAPI.evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest: playgroundEvaluateRequest) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/swift/docs/PlaygroundEvaluateRequest.md b/sdks/swift/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..b786372 --- /dev/null +++ b/sdks/swift/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,11 @@ +# PlaygroundEvaluateRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [PlaygroundPolicy] | | +**input** | [**PlaygroundInput**](PlaygroundInput.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PlaygroundInput.md b/sdks/swift/docs/PlaygroundInput.md new file mode 100644 index 0000000..d3a32ab --- /dev/null +++ b/sdks/swift/docs/PlaygroundInput.md @@ -0,0 +1,13 @@ +# PlaygroundInput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **[String: AnyCodable]** | | [optional] +**resource** | **[String: AnyCodable]** | | [optional] +**action** | **String** | | [optional] [default to ""] +**context** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PlaygroundPolicy.md b/sdks/swift/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..2c504e2 --- /dev/null +++ b/sdks/swift/docs/PlaygroundPolicy.md @@ -0,0 +1,14 @@ +# PlaygroundPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**effect** | **String** | | [optional] [default to "allow"] +**priority** | **Int** | | [optional] [default to 100] +**policyId** | **String** | | [optional] +**conditions** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PolicyCreate.md b/sdks/swift/docs/PolicyCreate.md new file mode 100644 index 0000000..8a6e98a --- /dev/null +++ b/sdks/swift/docs/PolicyCreate.md @@ -0,0 +1,14 @@ +# PolicyCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**effect** | **String** | | [optional] [default to "allow"] +**priority** | **Int** | | [optional] [default to 100] +**state** | **String** | | [optional] [default to "active"] +**conditions** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PolicyOut.md b/sdks/swift/docs/PolicyOut.md new file mode 100644 index 0000000..e6276cf --- /dev/null +++ b/sdks/swift/docs/PolicyOut.md @@ -0,0 +1,15 @@ +# PolicyOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Int** | | +**action** | **String** | | +**effect** | **String** | | +**priority** | **Int** | | +**state** | **String** | | [optional] [default to "active"] +**conditions** | **[String: AnyCodable]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PolicySimulationInput.md b/sdks/swift/docs/PolicySimulationInput.md new file mode 100644 index 0000000..11169d3 --- /dev/null +++ b/sdks/swift/docs/PolicySimulationInput.md @@ -0,0 +1,12 @@ +# PolicySimulationInput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policyChange** | **String** | | [optional] +**relationshipChange** | **[String: AnyCodable]** | | [optional] +**roleChange** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PolicySimulationRequest.md b/sdks/swift/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..ee6c38e --- /dev/null +++ b/sdks/swift/docs/PolicySimulationRequest.md @@ -0,0 +1,11 @@ +# PolicySimulationRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] +**request** | **[String: AnyCodable]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/PolicySimulationResponse.md b/sdks/swift/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..cf97a67 --- /dev/null +++ b/sdks/swift/docs/PolicySimulationResponse.md @@ -0,0 +1,11 @@ +# PolicySimulationResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decisionBefore** | **[String: AnyCodable]** | | +**decisionAfter** | **[String: AnyCodable]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/RelationshipCreate.md b/sdks/swift/docs/RelationshipCreate.md new file mode 100644 index 0000000..3fde247 --- /dev/null +++ b/sdks/swift/docs/RelationshipCreate.md @@ -0,0 +1,14 @@ +# RelationshipCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **String** | | +**subjectId** | **String** | | +**relation** | **String** | | +**objectType** | **String** | | +**objectId** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/RelationshipOut.md b/sdks/swift/docs/RelationshipOut.md new file mode 100644 index 0000000..9366e97 --- /dev/null +++ b/sdks/swift/docs/RelationshipOut.md @@ -0,0 +1,15 @@ +# RelationshipOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subjectType** | **String** | | +**subjectId** | **String** | | +**relation** | **String** | | +**objectType** | **String** | | +**objectId** | **String** | | +**id** | **Int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/RoleCreate.md b/sdks/swift/docs/RoleCreate.md new file mode 100644 index 0000000..87e882f --- /dev/null +++ b/sdks/swift/docs/RoleCreate.md @@ -0,0 +1,10 @@ +# RoleCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/RoleOut.md b/sdks/swift/docs/RoleOut.md new file mode 100644 index 0000000..63a9aed --- /dev/null +++ b/sdks/swift/docs/RoleOut.md @@ -0,0 +1,11 @@ +# RoleOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Int** | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/RoleUpdate.md b/sdks/swift/docs/RoleUpdate.md new file mode 100644 index 0000000..80710c0 --- /dev/null +++ b/sdks/swift/docs/RoleUpdate.md @@ -0,0 +1,10 @@ +# RoleUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SimulationResponse.md b/sdks/swift/docs/SimulationResponse.md new file mode 100644 index 0000000..ef95b2c --- /dev/null +++ b/sdks/swift/docs/SimulationResponse.md @@ -0,0 +1,16 @@ +# SimulationResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decision** | **String** | | +**matchedPolicies** | **[String]** | | +**reason** | **String** | | [optional] +**policyId** | **String** | | [optional] +**explainTrace** | [[String: AnyCodable]] | | [optional] +**failedConditions** | **[String]** | | [optional] +**revision** | **Int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseACLOut.md b/sdks/swift/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..3dfd791 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseACLOut.md @@ -0,0 +1,12 @@ +# SuccessResponseACLOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ACLOut**](ACLOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md b/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..84b0c39 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,12 @@ +# SuccessResponseAccessDecisionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseAdminLoginResponse.md b/sdks/swift/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..6c3c600 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,12 @@ +# SuccessResponseAdminLoginResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseAuthModelOut.md b/sdks/swift/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..8f27b09 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,12 @@ +# SuccessResponseAuthModelOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AuthModelOut**](AuthModelOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseBatchAccessResponse.md b/sdks/swift/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..8551483 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,12 @@ +# SuccessResponseBatchAccessResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseDictStrAny.md b/sdks/swift/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..ba3089b --- /dev/null +++ b/sdks/swift/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,12 @@ +# SuccessResponseDictStrAny + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **[String: AnyCodable]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseDictStrInt.md b/sdks/swift/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..35addec --- /dev/null +++ b/sdks/swift/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,12 @@ +# SuccessResponseDictStrInt + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **[String: Int]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseDictStrObject.md b/sdks/swift/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..8859aeb --- /dev/null +++ b/sdks/swift/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,12 @@ +# SuccessResponseDictStrObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **[String: AnyCodable]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseDictStrStr.md b/sdks/swift/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..f930900 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,12 @@ +# SuccessResponseDictStrStr + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **[String: String]** | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..ff96a45 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,12 @@ +# SuccessResponseDictStrUnionIntStr + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [String: DataValue] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..209e8db --- /dev/null +++ b/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,12 @@ +# SuccessResponseImpactAnalysisResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseListACLOut.md b/sdks/swift/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..15a97f7 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseListACLOut.md @@ -0,0 +1,12 @@ +# SuccessResponseListACLOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [ACLOut] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseListAuditRecordOut.md b/sdks/swift/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..db60737 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,12 @@ +# SuccessResponseListAuditRecordOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [AuditRecordOut] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseListDictStrStr.md b/sdks/swift/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..0ba50d3 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,12 @@ +# SuccessResponseListDictStrStr + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [[String: String]] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseListPermissionOut.md b/sdks/swift/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..720bfbd --- /dev/null +++ b/sdks/swift/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,12 @@ +# SuccessResponseListPermissionOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [PermissionOut] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseListPolicyOut.md b/sdks/swift/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..573db6d --- /dev/null +++ b/sdks/swift/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,12 @@ +# SuccessResponseListPolicyOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [PolicyOut] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseListRoleOut.md b/sdks/swift/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..2dfec76 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,12 @@ +# SuccessResponseListRoleOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [RoleOut] | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponsePermissionOut.md b/sdks/swift/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..6724903 --- /dev/null +++ b/sdks/swift/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,12 @@ +# SuccessResponsePermissionOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**PermissionOut**](PermissionOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponsePolicyOut.md b/sdks/swift/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..f67debb --- /dev/null +++ b/sdks/swift/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,12 @@ +# SuccessResponsePolicyOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**PolicyOut**](PolicyOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md b/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..67da6dc --- /dev/null +++ b/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,12 @@ +# SuccessResponsePolicySimulationResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseRelationshipOut.md b/sdks/swift/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..f597b13 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,12 @@ +# SuccessResponseRelationshipOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RelationshipOut**](RelationshipOut.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/SuccessResponseSimulationResponse.md b/sdks/swift/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..acc00e4 --- /dev/null +++ b/sdks/swift/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,12 @@ +# SuccessResponseSimulationResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**SimulationResponse**](SimulationResponse.md) | | +**meta** | [**MetaBody**](MetaBody.md) | | [optional] +**error** | [**Null**](Null.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/docs/ValidationError.md b/sdks/swift/docs/ValidationError.md new file mode 100644 index 0000000..bbd33d4 --- /dev/null +++ b/sdks/swift/docs/ValidationError.md @@ -0,0 +1,14 @@ +# ValidationError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loc** | [LocationInner] | | +**msg** | **String** | | +**type** | **String** | | +**input** | **AnyCodable** | | [optional] +**ctx** | **AnyCodable** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/swift/git_push.sh b/sdks/swift/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/sdks/swift/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/swift/project.yml b/sdks/swift/project.yml new file mode 100644 index 0000000..328733f --- /dev/null +++ b/sdks/swift/project.yml @@ -0,0 +1,15 @@ +name: KeyNetraClient +targets: + KeyNetraClient: + type: framework + platform: iOS + deploymentTarget: "11.0" + sources: [KeyNetraClient] + info: + path: ./Info.plist + version: 0.1.1 + settings: + APPLICATION_EXTENSION_API_ONLY: true + scheme: {} + dependencies: + - carthage: AnyCodable diff --git a/sdks/typescript/.gitignore b/sdks/typescript/.gitignore new file mode 100644 index 0000000..149b576 --- /dev/null +++ b/sdks/typescript/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/sdks/typescript/.npmignore b/sdks/typescript/.npmignore new file mode 100644 index 0000000..42061c0 --- /dev/null +++ b/sdks/typescript/.npmignore @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md new file mode 100644 index 0000000..19af73e --- /dev/null +++ b/sdks/typescript/README.md @@ -0,0 +1,52 @@ +# @keynetra/client + +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() + +Official TypeScript SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your TypeScript applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +npm install @keynetra/client +``` + +## ๐Ÿš€ Quick Start + +```typescript +import { KeyNetraClient } from "@keynetra/client"; + +const client = new KeyNetraClient( + "http://localhost:8080", + "YOUR_API_KEY" +); + +// Perform an access check +const decision = await client.access.checkAccess({ + subject: "user:123", + action: "read", + resource: "document:456" +}); +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **License**: Apache-2.0 + diff --git a/sdks/typescript/docs/ACLCreate.md b/sdks/typescript/docs/ACLCreate.md new file mode 100644 index 0000000..b7107b2 --- /dev/null +++ b/sdks/typescript/docs/ACLCreate.md @@ -0,0 +1,44 @@ + +# ACLCreate + + +## Properties + +Name | Type +------------ | ------------- +`subjectType` | string +`subjectId` | string +`resourceType` | string +`resourceId` | string +`action` | string +`effect` | string + +## Example + +```typescript +import type { ACLCreate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "subjectType": null, + "subjectId": null, + "resourceType": null, + "resourceId": null, + "action": null, + "effect": null, +} satisfies ACLCreate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ACLCreate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/ACLOut.md b/sdks/typescript/docs/ACLOut.md new file mode 100644 index 0000000..b727693 --- /dev/null +++ b/sdks/typescript/docs/ACLOut.md @@ -0,0 +1,50 @@ + +# ACLOut + + +## Properties + +Name | Type +------------ | ------------- +`subjectType` | string +`subjectId` | string +`resourceType` | string +`resourceId` | string +`action` | string +`effect` | string +`id` | number +`tenantId` | number +`createdAt` | Date + +## Example + +```typescript +import type { ACLOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "subjectType": null, + "subjectId": null, + "resourceType": null, + "resourceId": null, + "action": null, + "effect": null, + "id": null, + "tenantId": null, + "createdAt": null, +} satisfies ACLOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ACLOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AccessApi.md b/sdks/typescript/docs/AccessApi.md new file mode 100644 index 0000000..9d1875c --- /dev/null +++ b/sdks/typescript/docs/AccessApi.md @@ -0,0 +1,233 @@ +# AccessApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**checkAccessBatchCheckAccessBatchPost**](AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch | +| [**checkAccessCheckAccessPost**](AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access | +| [**simulateSimulatePost**](AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate | + + + +## checkAccessBatchCheckAccessBatchPost + +> SuccessResponseBatchAccessResponse checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) + +Check Access Batch + +### Example + +```ts +import { + Configuration, + AccessApi, +} from '@keynetra/client'; +import type { CheckAccessBatchCheckAccessBatchPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new AccessApi(config); + + const body = { + // BatchAccessRequest + batchAccessRequest: ..., + // string (optional) + policySet: policySet_example, + } satisfies CheckAccessBatchCheckAccessBatchPostRequest; + + try { + const data = await api.checkAccessBatchCheckAccessBatchPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **batchAccessRequest** | [BatchAccessRequest](BatchAccessRequest.md) | | | +| **policySet** | `string` | | [Optional] [Defaults to `'active'`] | + +### Return type + +[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## checkAccessCheckAccessPost + +> SuccessResponseAccessDecisionResponse checkAccessCheckAccessPost(accessRequest, policySet) + +Check Access + +### Example + +```ts +import { + Configuration, + AccessApi, +} from '@keynetra/client'; +import type { CheckAccessCheckAccessPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new AccessApi(config); + + const body = { + // AccessRequest + accessRequest: ..., + // string (optional) + policySet: policySet_example, + } satisfies CheckAccessCheckAccessPostRequest; + + try { + const data = await api.checkAccessCheckAccessPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accessRequest** | [AccessRequest](AccessRequest.md) | | | +| **policySet** | `string` | | [Optional] [Defaults to `'active'`] | + +### Return type + +[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## simulateSimulatePost + +> SuccessResponseSimulationResponse simulateSimulatePost(accessRequest) + +Simulate + +### Example + +```ts +import { + Configuration, + AccessApi, +} from '@keynetra/client'; +import type { SimulateSimulatePostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new AccessApi(config); + + const body = { + // AccessRequest + accessRequest: ..., + } satisfies SimulateSimulatePostRequest; + + try { + const data = await api.simulateSimulatePost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accessRequest** | [AccessRequest](AccessRequest.md) | | | + +### Return type + +[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/sdks/typescript/docs/AccessDecisionResponse.md b/sdks/typescript/docs/AccessDecisionResponse.md new file mode 100644 index 0000000..acbe94b --- /dev/null +++ b/sdks/typescript/docs/AccessDecisionResponse.md @@ -0,0 +1,46 @@ + +# AccessDecisionResponse + + +## Properties + +Name | Type +------------ | ------------- +`allowed` | boolean +`decision` | string +`matchedPolicies` | Array<string> +`reason` | string +`policyId` | string +`explainTrace` | Array<{ [key: string]: any; }> +`revision` | number + +## Example + +```typescript +import type { AccessDecisionResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "allowed": null, + "decision": null, + "matchedPolicies": null, + "reason": null, + "policyId": null, + "explainTrace": null, + "revision": null, +} satisfies AccessDecisionResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AccessDecisionResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AccessRequest.md b/sdks/typescript/docs/AccessRequest.md new file mode 100644 index 0000000..eb7723d --- /dev/null +++ b/sdks/typescript/docs/AccessRequest.md @@ -0,0 +1,45 @@ + +# AccessRequest + +Explicit authorization request passed through the API boundary. + +## Properties + +Name | Type +------------ | ------------- +`user` | { [key: string]: any; } +`action` | string +`resource` | { [key: string]: any; } +`context` | { [key: string]: any; } +`consistency` | string +`revision` | number + +## Example + +```typescript +import type { AccessRequest } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "user": null, + "action": null, + "resource": null, + "context": null, + "consistency": null, + "revision": null, +} satisfies AccessRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AccessRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AdminLoginRequest.md b/sdks/typescript/docs/AdminLoginRequest.md new file mode 100644 index 0000000..9415e5d --- /dev/null +++ b/sdks/typescript/docs/AdminLoginRequest.md @@ -0,0 +1,36 @@ + +# AdminLoginRequest + + +## Properties + +Name | Type +------------ | ------------- +`username` | string +`password` | string + +## Example + +```typescript +import type { AdminLoginRequest } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "username": null, + "password": null, +} satisfies AdminLoginRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AdminLoginRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AdminLoginResponse.md b/sdks/typescript/docs/AdminLoginResponse.md new file mode 100644 index 0000000..05fc583 --- /dev/null +++ b/sdks/typescript/docs/AdminLoginResponse.md @@ -0,0 +1,42 @@ + +# AdminLoginResponse + + +## Properties + +Name | Type +------------ | ------------- +`accessToken` | string +`tokenType` | string +`expiresIn` | number +`role` | string +`tenantKey` | string + +## Example + +```typescript +import type { AdminLoginResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "accessToken": null, + "tokenType": null, + "expiresIn": null, + "role": null, + "tenantKey": null, +} satisfies AdminLoginResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AdminLoginResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AuditRecordOut.md b/sdks/typescript/docs/AuditRecordOut.md new file mode 100644 index 0000000..2b280e9 --- /dev/null +++ b/sdks/typescript/docs/AuditRecordOut.md @@ -0,0 +1,58 @@ + +# AuditRecordOut + + +## Properties + +Name | Type +------------ | ------------- +`id` | number +`principalType` | string +`principalId` | string +`correlationId` | string +`user` | { [key: string]: any; } +`action` | string +`resource` | { [key: string]: any; } +`decision` | string +`matchedPolicies` | Array<any> +`reason` | string +`evaluatedRules` | Array<any> +`failedConditions` | Array<any> +`createdAt` | Date + +## Example + +```typescript +import type { AuditRecordOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "principalType": null, + "principalId": null, + "correlationId": null, + "user": null, + "action": null, + "resource": null, + "decision": null, + "matchedPolicies": null, + "reason": null, + "evaluatedRules": null, + "failedConditions": null, + "createdAt": null, +} satisfies AuditRecordOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AuditRecordOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AuthApi.md b/sdks/typescript/docs/AuthApi.md new file mode 100644 index 0000000..3631dae --- /dev/null +++ b/sdks/typescript/docs/AuthApi.md @@ -0,0 +1,142 @@ +# AuthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**adminLoginAdminLoginPost**](AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login | +| [**adminLoginAdminLoginPost_0**](AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login | + + + +## adminLoginAdminLoginPost + +> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost(adminLoginRequest) + +Admin Login + +### Example + +```ts +import { + Configuration, + AuthApi, +} from '@keynetra/client'; +import type { AdminLoginAdminLoginPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new AuthApi(); + + const body = { + // AdminLoginRequest + adminLoginRequest: ..., + } satisfies AdminLoginAdminLoginPostRequest; + + try { + const data = await api.adminLoginAdminLoginPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **adminLoginRequest** | [AdminLoginRequest](AdminLoginRequest.md) | | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## adminLoginAdminLoginPost_0 + +> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost_0(adminLoginRequest) + +Admin Login + +### Example + +```ts +import { + Configuration, + AuthApi, +} from '@keynetra/client'; +import type { AdminLoginAdminLoginPost0Request } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new AuthApi(); + + const body = { + // AdminLoginRequest + adminLoginRequest: ..., + } satisfies AdminLoginAdminLoginPost0Request; + + try { + const data = await api.adminLoginAdminLoginPost_0(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **adminLoginRequest** | [AdminLoginRequest](AdminLoginRequest.md) | | | + +### Return type + +[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/sdks/typescript/docs/AuthModelCreate.md b/sdks/typescript/docs/AuthModelCreate.md new file mode 100644 index 0000000..c48ba64 --- /dev/null +++ b/sdks/typescript/docs/AuthModelCreate.md @@ -0,0 +1,34 @@ + +# AuthModelCreate + + +## Properties + +Name | Type +------------ | ------------- +`schema` | string + +## Example + +```typescript +import type { AuthModelCreate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "schema": null, +} satisfies AuthModelCreate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AuthModelCreate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/AuthModelOut.md b/sdks/typescript/docs/AuthModelOut.md new file mode 100644 index 0000000..ad93cf4 --- /dev/null +++ b/sdks/typescript/docs/AuthModelOut.md @@ -0,0 +1,42 @@ + +# AuthModelOut + + +## Properties + +Name | Type +------------ | ------------- +`id` | number +`tenantId` | number +`schema` | string +`parsed` | { [key: string]: any; } +`compiled` | { [key: string]: any; } + +## Example + +```typescript +import type { AuthModelOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "tenantId": null, + "schema": null, + "parsed": null, + "compiled": null, +} satisfies AuthModelOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as AuthModelOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/BatchAccessItem.md b/sdks/typescript/docs/BatchAccessItem.md new file mode 100644 index 0000000..bc1b018 --- /dev/null +++ b/sdks/typescript/docs/BatchAccessItem.md @@ -0,0 +1,36 @@ + +# BatchAccessItem + + +## Properties + +Name | Type +------------ | ------------- +`action` | string +`resource` | { [key: string]: any; } + +## Example + +```typescript +import type { BatchAccessItem } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "action": null, + "resource": null, +} satisfies BatchAccessItem + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BatchAccessItem +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/BatchAccessRequest.md b/sdks/typescript/docs/BatchAccessRequest.md new file mode 100644 index 0000000..bac2dc2 --- /dev/null +++ b/sdks/typescript/docs/BatchAccessRequest.md @@ -0,0 +1,40 @@ + +# BatchAccessRequest + + +## Properties + +Name | Type +------------ | ------------- +`user` | { [key: string]: any; } +`items` | [Array<BatchAccessItem>](BatchAccessItem.md) +`consistency` | string +`revision` | number + +## Example + +```typescript +import type { BatchAccessRequest } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "user": null, + "items": null, + "consistency": null, + "revision": null, +} satisfies BatchAccessRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BatchAccessRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/BatchAccessResponse.md b/sdks/typescript/docs/BatchAccessResponse.md new file mode 100644 index 0000000..51e517f --- /dev/null +++ b/sdks/typescript/docs/BatchAccessResponse.md @@ -0,0 +1,36 @@ + +# BatchAccessResponse + + +## Properties + +Name | Type +------------ | ------------- +`results` | [Array<BatchAccessResult>](BatchAccessResult.md) +`revision` | number + +## Example + +```typescript +import type { BatchAccessResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "results": null, + "revision": null, +} satisfies BatchAccessResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BatchAccessResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/BatchAccessResult.md b/sdks/typescript/docs/BatchAccessResult.md new file mode 100644 index 0000000..4b4db9b --- /dev/null +++ b/sdks/typescript/docs/BatchAccessResult.md @@ -0,0 +1,38 @@ + +# BatchAccessResult + + +## Properties + +Name | Type +------------ | ------------- +`action` | string +`allowed` | boolean +`revision` | number + +## Example + +```typescript +import type { BatchAccessResult } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "action": null, + "allowed": null, + "revision": null, +} satisfies BatchAccessResult + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BatchAccessResult +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/DataValue.md b/sdks/typescript/docs/DataValue.md new file mode 100644 index 0000000..7b2237c --- /dev/null +++ b/sdks/typescript/docs/DataValue.md @@ -0,0 +1,32 @@ + +# DataValue + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { DataValue } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { +} satisfies DataValue + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DataValue +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/DevApi.md b/sdks/typescript/docs/DevApi.md new file mode 100644 index 0000000..303126d --- /dev/null +++ b/sdks/typescript/docs/DevApi.md @@ -0,0 +1,133 @@ +# DevApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getSampleDataDevSampleDataGet**](DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data | +| [**seedSampleDataDevSampleDataSeedPost**](DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data | + + + +## getSampleDataDevSampleDataGet + +> SuccessResponseDictStrObject getSampleDataDevSampleDataGet() + +Get Sample Data + +### Example + +```ts +import { + Configuration, + DevApi, +} from '@keynetra/client'; +import type { GetSampleDataDevSampleDataGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new DevApi(); + + try { + const data = await api.getSampleDataDevSampleDataGet(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## seedSampleDataDevSampleDataSeedPost + +> SuccessResponseDictStrObject seedSampleDataDevSampleDataSeedPost(reset) + +Seed Sample Data + +### Example + +```ts +import { + Configuration, + DevApi, +} from '@keynetra/client'; +import type { SeedSampleDataDevSampleDataSeedPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new DevApi(); + + const body = { + // boolean | Clear the sample dataset before reseeding it. (optional) + reset: true, + } satisfies SeedSampleDataDevSampleDataSeedPostRequest; + + try { + const data = await api.seedSampleDataDevSampleDataSeedPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **reset** | `boolean` | Clear the sample dataset before reseeding it. | [Optional] [Defaults to `false`] | + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/sdks/typescript/docs/HTTPValidationError.md b/sdks/typescript/docs/HTTPValidationError.md new file mode 100644 index 0000000..65fe274 --- /dev/null +++ b/sdks/typescript/docs/HTTPValidationError.md @@ -0,0 +1,34 @@ + +# HTTPValidationError + + +## Properties + +Name | Type +------------ | ------------- +`detail` | [Array<ValidationError>](ValidationError.md) + +## Example + +```typescript +import type { HTTPValidationError } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "detail": null, +} satisfies HTTPValidationError + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as HTTPValidationError +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/HealthApi.md b/sdks/typescript/docs/HealthApi.md new file mode 100644 index 0000000..b2a02bb --- /dev/null +++ b/sdks/typescript/docs/HealthApi.md @@ -0,0 +1,182 @@ +# HealthApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**healthHealthGet**](HealthApi.md#healthhealthget) | **GET** /health | Health | +| [**livenessHealthLiveGet**](HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness | +| [**readinessHealthReadyGet**](HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness | + + + +## healthHealthGet + +> SuccessResponseDictStrStr healthHealthGet() + +Health + +### Example + +```ts +import { + Configuration, + HealthApi, +} from '@keynetra/client'; +import type { HealthHealthGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new HealthApi(); + + try { + const data = await api.healthHealthGet(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## livenessHealthLiveGet + +> SuccessResponseDictStrStr livenessHealthLiveGet() + +Liveness + +### Example + +```ts +import { + Configuration, + HealthApi, +} from '@keynetra/client'; +import type { LivenessHealthLiveGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new HealthApi(); + + try { + const data = await api.livenessHealthLiveGet(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## readinessHealthReadyGet + +> SuccessResponseDictStrObject readinessHealthReadyGet() + +Readiness + +### Example + +```ts +import { + Configuration, + HealthApi, +} from '@keynetra/client'; +import type { ReadinessHealthReadyGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const api = new HealthApi(); + + try { + const data = await api.readinessHealthReadyGet(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/sdks/typescript/docs/ImpactAnalysisRequest.md b/sdks/typescript/docs/ImpactAnalysisRequest.md new file mode 100644 index 0000000..0c47d38 --- /dev/null +++ b/sdks/typescript/docs/ImpactAnalysisRequest.md @@ -0,0 +1,34 @@ + +# ImpactAnalysisRequest + + +## Properties + +Name | Type +------------ | ------------- +`policyChange` | string + +## Example + +```typescript +import type { ImpactAnalysisRequest } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "policyChange": null, +} satisfies ImpactAnalysisRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ImpactAnalysisRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/ImpactAnalysisResponse.md b/sdks/typescript/docs/ImpactAnalysisResponse.md new file mode 100644 index 0000000..d332dc5 --- /dev/null +++ b/sdks/typescript/docs/ImpactAnalysisResponse.md @@ -0,0 +1,36 @@ + +# ImpactAnalysisResponse + + +## Properties + +Name | Type +------------ | ------------- +`gainedAccess` | Array<number> +`lostAccess` | Array<number> + +## Example + +```typescript +import type { ImpactAnalysisResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "gainedAccess": null, + "lostAccess": null, +} satisfies ImpactAnalysisResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ImpactAnalysisResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/LocationInner.md b/sdks/typescript/docs/LocationInner.md new file mode 100644 index 0000000..5f584bd --- /dev/null +++ b/sdks/typescript/docs/LocationInner.md @@ -0,0 +1,32 @@ + +# LocationInner + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { LocationInner } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { +} satisfies LocationInner + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LocationInner +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/ManagementApi.md b/sdks/typescript/docs/ManagementApi.md new file mode 100644 index 0000000..459af69 --- /dev/null +++ b/sdks/typescript/docs/ManagementApi.md @@ -0,0 +1,2100 @@ +# ManagementApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| [**createAclEntryAclPost**](ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry | +| [**createAuthModelAuthModelPost**](ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model | +| [**createPermissionPermissionsPost**](ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission | +| [**createPolicyFromDslPoliciesDslPost**](ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl | +| [**createPolicyPoliciesPost**](ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy | +| [**createRelationshipRelationshipsPost**](ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship | +| [**createRoleRolesPost**](ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role | +| [**deleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| [**deletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| [**deletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy | +| [**deleteRoleRolesRoleIdDelete**](ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role | +| [**getAuthModelAuthModelGet**](ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model | +| [**impactAnalysisImpactAnalysisPost**](ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis | +| [**listAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| [**listAuditLogsAuditGet**](ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs | +| [**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| [**listPermissionsPermissionsGet**](ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions | +| [**listPoliciesPoliciesGet**](ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies | +| [**listRelationshipsRelationshipsGet**](ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships | +| [**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| [**listRolesRolesGet**](ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles | +| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| [**simulatePolicySimulatePolicyPost**](ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy | +| [**updatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission | +| [**updatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy | +| [**updateRoleRolesRoleIdPut**](ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role | + + + +## addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost + +> SuccessResponsePermissionOut addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) + +Add Permission To Role + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + roleId: 56, + // number + permissionId: 56, + } satisfies AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest; + + try { + const data = await api.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | `number` | | [Defaults to `undefined`] | +| **permissionId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createAclEntryAclPost + +> SuccessResponseACLOut createAclEntryAclPost(aCLCreate) + +Create Acl Entry + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreateAclEntryAclPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // ACLCreate + aCLCreate: ..., + } satisfies CreateAclEntryAclPostRequest; + + try { + const data = await api.createAclEntryAclPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **aCLCreate** | [ACLCreate](ACLCreate.md) | | | + +### Return type + +[**SuccessResponseACLOut**](SuccessResponseACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createAuthModelAuthModelPost + +> SuccessResponseAuthModelOut createAuthModelAuthModelPost(authModelCreate) + +Create Auth Model + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreateAuthModelAuthModelPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // AuthModelCreate + authModelCreate: ..., + } satisfies CreateAuthModelAuthModelPostRequest; + + try { + const data = await api.createAuthModelAuthModelPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **authModelCreate** | [AuthModelCreate](AuthModelCreate.md) | | | + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createPermissionPermissionsPost + +> PermissionOut createPermissionPermissionsPost(permissionCreate) + +Create Permission + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreatePermissionPermissionsPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // PermissionCreate + permissionCreate: ..., + } satisfies CreatePermissionPermissionsPostRequest; + + try { + const data = await api.createPermissionPermissionsPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionCreate** | [PermissionCreate](PermissionCreate.md) | | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createPolicyFromDslPoliciesDslPost + +> SuccessResponsePolicyOut createPolicyFromDslPoliciesDslPost(dsl) + +Create Policy From Dsl + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreatePolicyFromDslPoliciesDslPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // string + dsl: dsl_example, + } satisfies CreatePolicyFromDslPoliciesDslPostRequest; + + try { + const data = await api.createPolicyFromDslPoliciesDslPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dsl** | `string` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createPolicyPoliciesPost + +> SuccessResponsePolicyOut createPolicyPoliciesPost(policyCreate) + +Create Policy + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreatePolicyPoliciesPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // PolicyCreate + policyCreate: ..., + } satisfies CreatePolicyPoliciesPostRequest; + + try { + const data = await api.createPolicyPoliciesPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyCreate** | [PolicyCreate](PolicyCreate.md) | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createRelationshipRelationshipsPost + +> SuccessResponseRelationshipOut createRelationshipRelationshipsPost(relationshipCreate) + +Create Relationship + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreateRelationshipRelationshipsPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // RelationshipCreate + relationshipCreate: ..., + } satisfies CreateRelationshipRelationshipsPostRequest; + + try { + const data = await api.createRelationshipRelationshipsPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **relationshipCreate** | [RelationshipCreate](RelationshipCreate.md) | | | + +### Return type + +[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## createRoleRolesPost + +> RoleOut createRoleRolesPost(roleCreate) + +Create Role + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { CreateRoleRolesPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // RoleCreate + roleCreate: ..., + } satisfies CreateRoleRolesPostRequest; + + try { + const data = await api.createRoleRolesPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleCreate** | [RoleCreate](RoleCreate.md) | | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deleteAclEntryAclAclIdDelete + +> SuccessResponseDictStrInt deleteAclEntryAclAclIdDelete(aclId) + +Delete Acl Entry + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { DeleteAclEntryAclAclIdDeleteRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + aclId: 56, + } satisfies DeleteAclEntryAclAclIdDeleteRequest; + + try { + const data = await api.deleteAclEntryAclAclIdDelete(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **aclId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deletePermissionPermissionsPermissionIdDelete + +> SuccessResponseDictStrInt deletePermissionPermissionsPermissionIdDelete(permissionId) + +Delete Permission + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { DeletePermissionPermissionsPermissionIdDeleteRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + permissionId: 56, + } satisfies DeletePermissionPermissionsPermissionIdDeleteRequest; + + try { + const data = await api.deletePermissionPermissionsPermissionIdDelete(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deletePolicyPoliciesPolicyKeyDelete + +> SuccessResponseDictStrStr deletePolicyPoliciesPolicyKeyDelete(policyKey) + +Delete Policy + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { DeletePolicyPoliciesPolicyKeyDeleteRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // string + policyKey: policyKey_example, + } satisfies DeletePolicyPoliciesPolicyKeyDeleteRequest; + + try { + const data = await api.deletePolicyPoliciesPolicyKeyDelete(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyKey** | `string` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## deleteRoleRolesRoleIdDelete + +> SuccessResponseDictStrInt deleteRoleRolesRoleIdDelete(roleId) + +Delete Role + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { DeleteRoleRolesRoleIdDeleteRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + roleId: 56, + } satisfies DeleteRoleRolesRoleIdDeleteRequest; + + try { + const data = await api.deleteRoleRolesRoleIdDelete(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## getAuthModelAuthModelGet + +> SuccessResponseAuthModelOut getAuthModelAuthModelGet() + +Get Auth Model + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { GetAuthModelAuthModelGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + try { + const data = await api.getAuthModelAuthModelGet(); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## impactAnalysisImpactAnalysisPost + +> SuccessResponseImpactAnalysisResponse impactAnalysisImpactAnalysisPost(impactAnalysisRequest) + +Impact Analysis + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ImpactAnalysisImpactAnalysisPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // ImpactAnalysisRequest + impactAnalysisRequest: ..., + } satisfies ImpactAnalysisImpactAnalysisPostRequest; + + try { + const data = await api.impactAnalysisImpactAnalysisPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **impactAnalysisRequest** | [ImpactAnalysisRequest](ImpactAnalysisRequest.md) | | | + +### Return type + +[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listAclEntriesAclResourceTypeResourceIdGet + +> SuccessResponseListACLOut listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) + +List Acl Entries + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListAclEntriesAclResourceTypeResourceIdGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // string + resourceType: resourceType_example, + // string + resourceId: resourceId_example, + } satisfies ListAclEntriesAclResourceTypeResourceIdGetRequest; + + try { + const data = await api.listAclEntriesAclResourceTypeResourceIdGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **resourceType** | `string` | | [Defaults to `undefined`] | +| **resourceId** | `string` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listAuditLogsAuditGet + +> SuccessResponseListAuditRecordOut listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) + +List Audit Logs + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListAuditLogsAuditGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number (optional) + limit: 56, + // string (optional) + cursor: cursor_example, + // string (optional) + userId: userId_example, + // string (optional) + resourceId: resourceId_example, + // string (optional) + decision: decision_example, + // Date (optional) + startTime: 2013-10-20T19:20:30+01:00, + // Date (optional) + endTime: 2013-10-20T19:20:30+01:00, + } satisfies ListAuditLogsAuditGetRequest; + + try { + const data = await api.listAuditLogsAuditGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | `number` | | [Optional] [Defaults to `50`] | +| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | +| **userId** | `string` | | [Optional] [Defaults to `undefined`] | +| **resourceId** | `string` | | [Optional] [Defaults to `undefined`] | +| **decision** | `string` | | [Optional] [Defaults to `undefined`] | +| **startTime** | `Date` | | [Optional] [Defaults to `undefined`] | +| **endTime** | `Date` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listPermissionRolesPermissionsPermissionIdRolesGet + +> SuccessResponseListRoleOut listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) + +List Permission Roles + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListPermissionRolesPermissionsPermissionIdRolesGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + permissionId: 56, + } satisfies ListPermissionRolesPermissionsPermissionIdRolesGetRequest; + + try { + const data = await api.listPermissionRolesPermissionsPermissionIdRolesGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listPermissionsPermissionsGet + +> SuccessResponseListPermissionOut listPermissionsPermissionsGet(limit, cursor) + +List Permissions + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListPermissionsPermissionsGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number (optional) + limit: 56, + // string (optional) + cursor: cursor_example, + } satisfies ListPermissionsPermissionsGetRequest; + + try { + const data = await api.listPermissionsPermissionsGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | `number` | | [Optional] [Defaults to `50`] | +| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listPoliciesPoliciesGet + +> SuccessResponseListPolicyOut listPoliciesPoliciesGet(limit, cursor) + +List Policies + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListPoliciesPoliciesGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number (optional) + limit: 56, + // string (optional) + cursor: cursor_example, + } satisfies ListPoliciesPoliciesGetRequest; + + try { + const data = await api.listPoliciesPoliciesGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | `number` | | [Optional] [Defaults to `50`] | +| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listRelationshipsRelationshipsGet + +> SuccessResponseListDictStrStr listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) + +List Relationships + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListRelationshipsRelationshipsGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // string + subjectType: subjectType_example, + // string + subjectId: subjectId_example, + // number (optional) + limit: 56, + // string (optional) + cursor: cursor_example, + } satisfies ListRelationshipsRelationshipsGetRequest; + + try { + const data = await api.listRelationshipsRelationshipsGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **subjectType** | `string` | | [Defaults to `undefined`] | +| **subjectId** | `string` | | [Defaults to `undefined`] | +| **limit** | `number` | | [Optional] [Defaults to `50`] | +| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listRolePermissionsRolesRoleIdPermissionsGet + +> SuccessResponseListPermissionOut listRolePermissionsRolesRoleIdPermissionsGet(roleId) + +List Role Permissions + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListRolePermissionsRolesRoleIdPermissionsGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + roleId: 56, + } satisfies ListRolePermissionsRolesRoleIdPermissionsGetRequest; + + try { + const data = await api.listRolePermissionsRolesRoleIdPermissionsGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## listRolesRolesGet + +> SuccessResponseListRoleOut listRolesRolesGet(limit, cursor) + +List Roles + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { ListRolesRolesGetRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number (optional) + limit: 56, + // string (optional) + cursor: cursor_example, + } satisfies ListRolesRolesGetRequest; + + try { + const data = await api.listRolesRolesGet(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | `number` | | [Optional] [Defaults to `50`] | +| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete + +> SuccessResponseDictStrInt removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) + +Remove Permission From Role + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + roleId: 56, + // number + permissionId: 56, + } satisfies RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest; + + try { + const data = await api.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | `number` | | [Defaults to `undefined`] | +| **permissionId** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## rollbackPolicyPoliciesPolicyKeyRollbackVersionPost + +> SuccessResponseDictStrUnionIntStr rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) + +Rollback Policy + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { RollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // string + policyKey: policyKey_example, + // number + version: 56, + } satisfies RollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest; + + try { + const data = await api.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyKey** | `string` | | [Defaults to `undefined`] | +| **version** | `number` | | [Defaults to `undefined`] | + +### Return type + +[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## simulatePolicySimulatePolicyPost + +> SuccessResponsePolicySimulationResponse simulatePolicySimulatePolicyPost(policySimulationRequest) + +Simulate Policy + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { SimulatePolicySimulatePolicyPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // PolicySimulationRequest + policySimulationRequest: ..., + } satisfies SimulatePolicySimulatePolicyPostRequest; + + try { + const data = await api.simulatePolicySimulatePolicyPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policySimulationRequest** | [PolicySimulationRequest](PolicySimulationRequest.md) | | | + +### Return type + +[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updatePermissionPermissionsPermissionIdPut + +> PermissionOut updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) + +Update Permission + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { UpdatePermissionPermissionsPermissionIdPutRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + permissionId: 56, + // PermissionUpdate + permissionUpdate: ..., + } satisfies UpdatePermissionPermissionsPermissionIdPutRequest; + + try { + const data = await api.updatePermissionPermissionsPermissionIdPut(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **permissionId** | `number` | | [Defaults to `undefined`] | +| **permissionUpdate** | [PermissionUpdate](PermissionUpdate.md) | | | + +### Return type + +[**PermissionOut**](PermissionOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updatePolicyPoliciesPolicyKeyPut + +> SuccessResponsePolicyOut updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) + +Update Policy + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { UpdatePolicyPoliciesPolicyKeyPutRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // string + policyKey: policyKey_example, + // PolicyCreate + policyCreate: ..., + } satisfies UpdatePolicyPoliciesPolicyKeyPutRequest; + + try { + const data = await api.updatePolicyPoliciesPolicyKeyPut(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **policyKey** | `string` | | [Defaults to `undefined`] | +| **policyCreate** | [PolicyCreate](PolicyCreate.md) | | | + +### Return type + +[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## updateRoleRolesRoleIdPut + +> RoleOut updateRoleRolesRoleIdPut(roleId, roleUpdate) + +Update Role + +### Example + +```ts +import { + Configuration, + ManagementApi, +} from '@keynetra/client'; +import type { UpdateRoleRolesRoleIdPutRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new ManagementApi(config); + + const body = { + // number + roleId: 56, + // RoleUpdate + roleUpdate: ..., + } satisfies UpdateRoleRolesRoleIdPutRequest; + + try { + const data = await api.updateRoleRolesRoleIdPut(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleId** | `number` | | [Defaults to `undefined`] | +| **roleUpdate** | [RoleUpdate](RoleUpdate.md) | | | + +### Return type + +[**RoleOut**](RoleOut.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/sdks/typescript/docs/MetaBody.md b/sdks/typescript/docs/MetaBody.md new file mode 100644 index 0000000..8c4d939 --- /dev/null +++ b/sdks/typescript/docs/MetaBody.md @@ -0,0 +1,40 @@ + +# MetaBody + + +## Properties + +Name | Type +------------ | ------------- +`requestId` | string +`limit` | number +`nextCursor` | string +`extra` | { [key: string]: any; } + +## Example + +```typescript +import type { MetaBody } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "requestId": null, + "limit": null, + "nextCursor": null, + "extra": null, +} satisfies MetaBody + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MetaBody +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PermissionCreate.md b/sdks/typescript/docs/PermissionCreate.md new file mode 100644 index 0000000..eb159d8 --- /dev/null +++ b/sdks/typescript/docs/PermissionCreate.md @@ -0,0 +1,34 @@ + +# PermissionCreate + + +## Properties + +Name | Type +------------ | ------------- +`action` | string + +## Example + +```typescript +import type { PermissionCreate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "action": null, +} satisfies PermissionCreate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PermissionCreate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PermissionOut.md b/sdks/typescript/docs/PermissionOut.md new file mode 100644 index 0000000..6b4cb9a --- /dev/null +++ b/sdks/typescript/docs/PermissionOut.md @@ -0,0 +1,36 @@ + +# PermissionOut + + +## Properties + +Name | Type +------------ | ------------- +`id` | number +`action` | string + +## Example + +```typescript +import type { PermissionOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "action": null, +} satisfies PermissionOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PermissionOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PermissionUpdate.md b/sdks/typescript/docs/PermissionUpdate.md new file mode 100644 index 0000000..cabd06e --- /dev/null +++ b/sdks/typescript/docs/PermissionUpdate.md @@ -0,0 +1,34 @@ + +# PermissionUpdate + + +## Properties + +Name | Type +------------ | ------------- +`action` | string + +## Example + +```typescript +import type { PermissionUpdate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "action": null, +} satisfies PermissionUpdate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PermissionUpdate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PlaygroundApi.md b/sdks/typescript/docs/PlaygroundApi.md new file mode 100644 index 0000000..68a241b --- /dev/null +++ b/sdks/typescript/docs/PlaygroundApi.md @@ -0,0 +1,81 @@ +# PlaygroundApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**evaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate | + + + +## evaluatePlaygroundEvaluatePost + +> SuccessResponseDictStrAny evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) + +Evaluate + +### Example + +```ts +import { + Configuration, + PlaygroundApi, +} from '@keynetra/client'; +import type { EvaluatePlaygroundEvaluatePostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new PlaygroundApi(config); + + const body = { + // PlaygroundEvaluateRequest + playgroundEvaluateRequest: ..., + } satisfies EvaluatePlaygroundEvaluatePostRequest; + + try { + const data = await api.evaluatePlaygroundEvaluatePost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **playgroundEvaluateRequest** | [PlaygroundEvaluateRequest](PlaygroundEvaluateRequest.md) | | | + +### Return type + +[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) + +### Authorization + +[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/sdks/typescript/docs/PlaygroundEvaluateRequest.md b/sdks/typescript/docs/PlaygroundEvaluateRequest.md new file mode 100644 index 0000000..10a669c --- /dev/null +++ b/sdks/typescript/docs/PlaygroundEvaluateRequest.md @@ -0,0 +1,36 @@ + +# PlaygroundEvaluateRequest + + +## Properties + +Name | Type +------------ | ------------- +`policies` | [Array<PlaygroundPolicy>](PlaygroundPolicy.md) +`input` | [PlaygroundInput](PlaygroundInput.md) + +## Example + +```typescript +import type { PlaygroundEvaluateRequest } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "policies": null, + "input": null, +} satisfies PlaygroundEvaluateRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlaygroundEvaluateRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PlaygroundInput.md b/sdks/typescript/docs/PlaygroundInput.md new file mode 100644 index 0000000..696180a --- /dev/null +++ b/sdks/typescript/docs/PlaygroundInput.md @@ -0,0 +1,40 @@ + +# PlaygroundInput + + +## Properties + +Name | Type +------------ | ------------- +`user` | { [key: string]: any; } +`resource` | { [key: string]: any; } +`action` | string +`context` | { [key: string]: any; } + +## Example + +```typescript +import type { PlaygroundInput } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "user": null, + "resource": null, + "action": null, + "context": null, +} satisfies PlaygroundInput + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlaygroundInput +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PlaygroundPolicy.md b/sdks/typescript/docs/PlaygroundPolicy.md new file mode 100644 index 0000000..9907c7f --- /dev/null +++ b/sdks/typescript/docs/PlaygroundPolicy.md @@ -0,0 +1,42 @@ + +# PlaygroundPolicy + + +## Properties + +Name | Type +------------ | ------------- +`action` | string +`effect` | string +`priority` | number +`policyId` | string +`conditions` | { [key: string]: any; } + +## Example + +```typescript +import type { PlaygroundPolicy } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "action": null, + "effect": null, + "priority": null, + "policyId": null, + "conditions": null, +} satisfies PlaygroundPolicy + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlaygroundPolicy +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PolicyCreate.md b/sdks/typescript/docs/PolicyCreate.md new file mode 100644 index 0000000..89d0507 --- /dev/null +++ b/sdks/typescript/docs/PolicyCreate.md @@ -0,0 +1,42 @@ + +# PolicyCreate + + +## Properties + +Name | Type +------------ | ------------- +`action` | string +`effect` | string +`priority` | number +`state` | string +`conditions` | { [key: string]: any; } + +## Example + +```typescript +import type { PolicyCreate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "action": null, + "effect": null, + "priority": null, + "state": null, + "conditions": null, +} satisfies PolicyCreate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PolicyCreate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PolicyOut.md b/sdks/typescript/docs/PolicyOut.md new file mode 100644 index 0000000..44aa3be --- /dev/null +++ b/sdks/typescript/docs/PolicyOut.md @@ -0,0 +1,44 @@ + +# PolicyOut + + +## Properties + +Name | Type +------------ | ------------- +`id` | number +`action` | string +`effect` | string +`priority` | number +`state` | string +`conditions` | { [key: string]: any; } + +## Example + +```typescript +import type { PolicyOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "action": null, + "effect": null, + "priority": null, + "state": null, + "conditions": null, +} satisfies PolicyOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PolicyOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PolicySimulationInput.md b/sdks/typescript/docs/PolicySimulationInput.md new file mode 100644 index 0000000..6123485 --- /dev/null +++ b/sdks/typescript/docs/PolicySimulationInput.md @@ -0,0 +1,38 @@ + +# PolicySimulationInput + + +## Properties + +Name | Type +------------ | ------------- +`policyChange` | string +`relationshipChange` | { [key: string]: any; } +`roleChange` | { [key: string]: any; } + +## Example + +```typescript +import type { PolicySimulationInput } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "policyChange": null, + "relationshipChange": null, + "roleChange": null, +} satisfies PolicySimulationInput + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PolicySimulationInput +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PolicySimulationRequest.md b/sdks/typescript/docs/PolicySimulationRequest.md new file mode 100644 index 0000000..2e45e3b --- /dev/null +++ b/sdks/typescript/docs/PolicySimulationRequest.md @@ -0,0 +1,36 @@ + +# PolicySimulationRequest + + +## Properties + +Name | Type +------------ | ------------- +`simulate` | [PolicySimulationInput](PolicySimulationInput.md) +`request` | { [key: string]: any; } + +## Example + +```typescript +import type { PolicySimulationRequest } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "simulate": null, + "request": null, +} satisfies PolicySimulationRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PolicySimulationRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/PolicySimulationResponse.md b/sdks/typescript/docs/PolicySimulationResponse.md new file mode 100644 index 0000000..5384a19 --- /dev/null +++ b/sdks/typescript/docs/PolicySimulationResponse.md @@ -0,0 +1,36 @@ + +# PolicySimulationResponse + + +## Properties + +Name | Type +------------ | ------------- +`decisionBefore` | { [key: string]: any; } +`decisionAfter` | { [key: string]: any; } + +## Example + +```typescript +import type { PolicySimulationResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "decisionBefore": null, + "decisionAfter": null, +} satisfies PolicySimulationResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PolicySimulationResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/RelationshipCreate.md b/sdks/typescript/docs/RelationshipCreate.md new file mode 100644 index 0000000..0e6a18a --- /dev/null +++ b/sdks/typescript/docs/RelationshipCreate.md @@ -0,0 +1,42 @@ + +# RelationshipCreate + + +## Properties + +Name | Type +------------ | ------------- +`subjectType` | string +`subjectId` | string +`relation` | string +`objectType` | string +`objectId` | string + +## Example + +```typescript +import type { RelationshipCreate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "subjectType": null, + "subjectId": null, + "relation": null, + "objectType": null, + "objectId": null, +} satisfies RelationshipCreate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RelationshipCreate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/RelationshipOut.md b/sdks/typescript/docs/RelationshipOut.md new file mode 100644 index 0000000..8ada9fe --- /dev/null +++ b/sdks/typescript/docs/RelationshipOut.md @@ -0,0 +1,44 @@ + +# RelationshipOut + + +## Properties + +Name | Type +------------ | ------------- +`subjectType` | string +`subjectId` | string +`relation` | string +`objectType` | string +`objectId` | string +`id` | number + +## Example + +```typescript +import type { RelationshipOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "subjectType": null, + "subjectId": null, + "relation": null, + "objectType": null, + "objectId": null, + "id": null, +} satisfies RelationshipOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RelationshipOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/RoleCreate.md b/sdks/typescript/docs/RoleCreate.md new file mode 100644 index 0000000..681d185 --- /dev/null +++ b/sdks/typescript/docs/RoleCreate.md @@ -0,0 +1,34 @@ + +# RoleCreate + + +## Properties + +Name | Type +------------ | ------------- +`name` | string + +## Example + +```typescript +import type { RoleCreate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "name": null, +} satisfies RoleCreate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RoleCreate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/RoleOut.md b/sdks/typescript/docs/RoleOut.md new file mode 100644 index 0000000..46233ea --- /dev/null +++ b/sdks/typescript/docs/RoleOut.md @@ -0,0 +1,36 @@ + +# RoleOut + + +## Properties + +Name | Type +------------ | ------------- +`id` | number +`name` | string + +## Example + +```typescript +import type { RoleOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "id": null, + "name": null, +} satisfies RoleOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RoleOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/RoleUpdate.md b/sdks/typescript/docs/RoleUpdate.md new file mode 100644 index 0000000..e76d8ec --- /dev/null +++ b/sdks/typescript/docs/RoleUpdate.md @@ -0,0 +1,34 @@ + +# RoleUpdate + + +## Properties + +Name | Type +------------ | ------------- +`name` | string + +## Example + +```typescript +import type { RoleUpdate } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "name": null, +} satisfies RoleUpdate + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RoleUpdate +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SimulationResponse.md b/sdks/typescript/docs/SimulationResponse.md new file mode 100644 index 0000000..0bfa4dc --- /dev/null +++ b/sdks/typescript/docs/SimulationResponse.md @@ -0,0 +1,46 @@ + +# SimulationResponse + + +## Properties + +Name | Type +------------ | ------------- +`decision` | string +`matchedPolicies` | Array<string> +`reason` | string +`policyId` | string +`explainTrace` | Array<{ [key: string]: any; }> +`failedConditions` | Array<string> +`revision` | number + +## Example + +```typescript +import type { SimulationResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "decision": null, + "matchedPolicies": null, + "reason": null, + "policyId": null, + "explainTrace": null, + "failedConditions": null, + "revision": null, +} satisfies SimulationResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SimulationResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseACLOut.md b/sdks/typescript/docs/SuccessResponseACLOut.md new file mode 100644 index 0000000..298c9aa --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseACLOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseACLOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [ACLOut](ACLOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseACLOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseACLOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseACLOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md b/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md new file mode 100644 index 0000000..6d11754 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md @@ -0,0 +1,38 @@ + +# SuccessResponseAccessDecisionResponse + + +## Properties + +Name | Type +------------ | ------------- +`data` | [AccessDecisionResponse](AccessDecisionResponse.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseAccessDecisionResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseAccessDecisionResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseAccessDecisionResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md b/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md new file mode 100644 index 0000000..86faaed --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md @@ -0,0 +1,38 @@ + +# SuccessResponseAdminLoginResponse + + +## Properties + +Name | Type +------------ | ------------- +`data` | [AdminLoginResponse](AdminLoginResponse.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseAdminLoginResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseAdminLoginResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseAdminLoginResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseAuthModelOut.md b/sdks/typescript/docs/SuccessResponseAuthModelOut.md new file mode 100644 index 0000000..5af257a --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseAuthModelOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseAuthModelOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [AuthModelOut](AuthModelOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseAuthModelOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseAuthModelOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseAuthModelOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md b/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md new file mode 100644 index 0000000..a3bd585 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md @@ -0,0 +1,38 @@ + +# SuccessResponseBatchAccessResponse + + +## Properties + +Name | Type +------------ | ------------- +`data` | [BatchAccessResponse](BatchAccessResponse.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseBatchAccessResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseBatchAccessResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseBatchAccessResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseDictStrAny.md b/sdks/typescript/docs/SuccessResponseDictStrAny.md new file mode 100644 index 0000000..1efe98a --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseDictStrAny.md @@ -0,0 +1,38 @@ + +# SuccessResponseDictStrAny + + +## Properties + +Name | Type +------------ | ------------- +`data` | { [key: string]: any; } +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseDictStrAny } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseDictStrAny + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrAny +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseDictStrInt.md b/sdks/typescript/docs/SuccessResponseDictStrInt.md new file mode 100644 index 0000000..e80f211 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseDictStrInt.md @@ -0,0 +1,38 @@ + +# SuccessResponseDictStrInt + + +## Properties + +Name | Type +------------ | ------------- +`data` | { [key: string]: number; } +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseDictStrInt } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseDictStrInt + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrInt +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseDictStrObject.md b/sdks/typescript/docs/SuccessResponseDictStrObject.md new file mode 100644 index 0000000..6ebd245 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseDictStrObject.md @@ -0,0 +1,38 @@ + +# SuccessResponseDictStrObject + + +## Properties + +Name | Type +------------ | ------------- +`data` | { [key: string]: any; } +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseDictStrObject } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseDictStrObject + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrObject +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseDictStrStr.md b/sdks/typescript/docs/SuccessResponseDictStrStr.md new file mode 100644 index 0000000..df89c39 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseDictStrStr.md @@ -0,0 +1,38 @@ + +# SuccessResponseDictStrStr + + +## Properties + +Name | Type +------------ | ------------- +`data` | { [key: string]: string; } +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseDictStrStr } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseDictStrStr + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrStr +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md new file mode 100644 index 0000000..176ddbd --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md @@ -0,0 +1,38 @@ + +# SuccessResponseDictStrUnionIntStr + + +## Properties + +Name | Type +------------ | ------------- +`data` | [{ [key: string]: DataValue; }](DataValue.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseDictStrUnionIntStr } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseDictStrUnionIntStr + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrUnionIntStr +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md new file mode 100644 index 0000000..8a075b7 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md @@ -0,0 +1,38 @@ + +# SuccessResponseImpactAnalysisResponse + + +## Properties + +Name | Type +------------ | ------------- +`data` | [ImpactAnalysisResponse](ImpactAnalysisResponse.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseImpactAnalysisResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseImpactAnalysisResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseImpactAnalysisResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseListACLOut.md b/sdks/typescript/docs/SuccessResponseListACLOut.md new file mode 100644 index 0000000..17a9b7c --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseListACLOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseListACLOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [Array<ACLOut>](ACLOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseListACLOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseListACLOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListACLOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md b/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md new file mode 100644 index 0000000..bfaaa70 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseListAuditRecordOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [Array<AuditRecordOut>](AuditRecordOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseListAuditRecordOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseListAuditRecordOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListAuditRecordOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseListDictStrStr.md b/sdks/typescript/docs/SuccessResponseListDictStrStr.md new file mode 100644 index 0000000..b1917b1 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseListDictStrStr.md @@ -0,0 +1,38 @@ + +# SuccessResponseListDictStrStr + + +## Properties + +Name | Type +------------ | ------------- +`data` | Array<{ [key: string]: string; }> +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseListDictStrStr } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseListDictStrStr + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListDictStrStr +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseListPermissionOut.md b/sdks/typescript/docs/SuccessResponseListPermissionOut.md new file mode 100644 index 0000000..3c15e2e --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseListPermissionOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseListPermissionOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [Array<PermissionOut>](PermissionOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseListPermissionOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseListPermissionOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListPermissionOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseListPolicyOut.md b/sdks/typescript/docs/SuccessResponseListPolicyOut.md new file mode 100644 index 0000000..50d770a --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseListPolicyOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseListPolicyOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [Array<PolicyOut>](PolicyOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseListPolicyOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseListPolicyOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListPolicyOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseListRoleOut.md b/sdks/typescript/docs/SuccessResponseListRoleOut.md new file mode 100644 index 0000000..c906b01 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseListRoleOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseListRoleOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [Array<RoleOut>](RoleOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseListRoleOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseListRoleOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListRoleOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponsePermissionOut.md b/sdks/typescript/docs/SuccessResponsePermissionOut.md new file mode 100644 index 0000000..c855561 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponsePermissionOut.md @@ -0,0 +1,38 @@ + +# SuccessResponsePermissionOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [PermissionOut](PermissionOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponsePermissionOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponsePermissionOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponsePermissionOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponsePolicyOut.md b/sdks/typescript/docs/SuccessResponsePolicyOut.md new file mode 100644 index 0000000..64634de --- /dev/null +++ b/sdks/typescript/docs/SuccessResponsePolicyOut.md @@ -0,0 +1,38 @@ + +# SuccessResponsePolicyOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [PolicyOut](PolicyOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponsePolicyOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponsePolicyOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponsePolicyOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md b/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md new file mode 100644 index 0000000..7f5f54d --- /dev/null +++ b/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md @@ -0,0 +1,38 @@ + +# SuccessResponsePolicySimulationResponse + + +## Properties + +Name | Type +------------ | ------------- +`data` | [PolicySimulationResponse](PolicySimulationResponse.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponsePolicySimulationResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponsePolicySimulationResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponsePolicySimulationResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseRelationshipOut.md b/sdks/typescript/docs/SuccessResponseRelationshipOut.md new file mode 100644 index 0000000..8439ff8 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseRelationshipOut.md @@ -0,0 +1,38 @@ + +# SuccessResponseRelationshipOut + + +## Properties + +Name | Type +------------ | ------------- +`data` | [RelationshipOut](RelationshipOut.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseRelationshipOut } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseRelationshipOut + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseRelationshipOut +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/SuccessResponseSimulationResponse.md b/sdks/typescript/docs/SuccessResponseSimulationResponse.md new file mode 100644 index 0000000..8cf26f9 --- /dev/null +++ b/sdks/typescript/docs/SuccessResponseSimulationResponse.md @@ -0,0 +1,38 @@ + +# SuccessResponseSimulationResponse + + +## Properties + +Name | Type +------------ | ------------- +`data` | [SimulationResponse](SimulationResponse.md) +`meta` | [MetaBody](MetaBody.md) +`error` | [Null](Null.md) + +## Example + +```typescript +import type { SuccessResponseSimulationResponse } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "data": null, + "meta": null, + "error": null, +} satisfies SuccessResponseSimulationResponse + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseSimulationResponse +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/docs/ValidationError.md b/sdks/typescript/docs/ValidationError.md new file mode 100644 index 0000000..ed41e78 --- /dev/null +++ b/sdks/typescript/docs/ValidationError.md @@ -0,0 +1,42 @@ + +# ValidationError + + +## Properties + +Name | Type +------------ | ------------- +`loc` | [Array<LocationInner>](LocationInner.md) +`msg` | string +`type` | string +`input` | any +`ctx` | object + +## Example + +```typescript +import type { ValidationError } from '@keynetra/client' + +// TODO: Update the object below with actual values +const example = { + "loc": null, + "msg": null, + "type": null, + "input": null, + "ctx": null, +} satisfies ValidationError + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ValidationError +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json new file mode 100644 index 0000000..45a6a7d --- /dev/null +++ b/sdks/typescript/package.json @@ -0,0 +1,27 @@ +{ + "name": "@keynetra/client", + "version": "0.1.0", + "description": "Official TypeScript SDK for the KeyNetra authorization platform.", + "license": "Apache-2.0", + "type": "module", + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "files": [ + "dist", + "src", + "README.md" + ], + "author": "KeyNetra Engineering ", + "repository": { + "type": "git", + "url": "git+https://github.com/keynetra/keynetra-sdks.git" + }, + "homepage": "https://github.com/keynetra/keynetra-sdks", + "scripts": { + "build": "tsc -p tsconfig.json" + }, + "devDependencies": { + "typescript": "^5.0.0" + } +} diff --git a/sdks/typescript/tsconfig.esm.json b/sdks/typescript/tsconfig.esm.json new file mode 100644 index 0000000..2c0331c --- /dev/null +++ b/sdks/typescript/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "outDir": "dist/esm" + } +} diff --git a/sdks/typescript/tsconfig.json b/sdks/typescript/tsconfig.json new file mode 100644 index 0000000..99bdbe5 --- /dev/null +++ b/sdks/typescript/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ES2022", + "moduleResolution": "Bundler", + "declaration": true, + "outDir": "dist", + "rootDir": "src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true + }, + "include": ["src/**/*.ts"] +} diff --git a/templates/csharp-config.yaml b/templates/csharp-config.yaml new file mode 100644 index 0000000..ad2d71f --- /dev/null +++ b/templates/csharp-config.yaml @@ -0,0 +1,11 @@ +packageName: KeyNetra.Client +packageVersion: 0.1.0 +packageCompany: KeyNetra +packageAuthors: KeyNetra Engineering +targetFramework: net8.0 +nullableReferenceTypes: true +optionalProjectFile: false +packageTags: "keynetra;authorization;authz;permissions;sdk" +packageDescription: "Official C# SDK for the KeyNetra authorization platform. KeyNetra provides high-performance, distributed authorization as a service." +packageProjectUrl: "https://github.com/keynetra/keynetra-sdks" +packageLicenseExpression: "Apache-2.0" diff --git a/templates/go-config.yaml b/templates/go-config.yaml new file mode 100644 index 0000000..56d53a4 --- /dev/null +++ b/templates/go-config.yaml @@ -0,0 +1,11 @@ +packageName: keynetra +packageVersion: 0.1.0 +moduleName: github.com/keynetra/keynetra-client-go +enumClassPrefix: true +generateInterfaces: true +hideGenerationTimestamp: true +withGoMod: true +packageDescription: "Official Go SDK for KeyNetra authorization platform." +packageAuthor: "KeyNetra Engineering" +packageEmail: "business.keynetra@gmail.com" +packageUrl: "https://github.com/keynetra/keynetra-sdks" diff --git a/templates/java-config.yaml b/templates/java-config.yaml new file mode 100644 index 0000000..e3e9727 --- /dev/null +++ b/templates/java-config.yaml @@ -0,0 +1,16 @@ +groupId: io.keynetra +artifactId: keynetra-client +artifactVersion: 0.1.0 +invokerPackage: io.keynetra.client +apiPackage: io.keynetra.client.api +modelPackage: io.keynetra.client.model +library: okhttp-gson +hideGenerationTimestamp: true +developerName: KeyNetra Engineering +developerEmail: business.keynetra@gmail.com +developerOrganization: KeyNetra +developerOrganizationUrl: https://keynetra.com +scmConnection: scm:git:git://github.com/keynetra/keynetra-sdks.git +scmDeveloperConnection: scm:git:ssh://github.com:keynetra/keynetra-sdks.git +scmUrl: https://github.com/keynetra/keynetra-sdks +artifactDescription: Official Java SDK for the KeyNetra authorization platform. diff --git a/templates/kotlin-config.yaml b/templates/kotlin-config.yaml new file mode 100644 index 0000000..1ac3fdf --- /dev/null +++ b/templates/kotlin-config.yaml @@ -0,0 +1,12 @@ +groupId: io.keynetra +artifactId: keynetra-client-kotlin +artifactVersion: 0.1.0 +packageName: io.keynetra.client +library: multiplatform +dateLibrary: kotlinx-datetime +hideGenerationTimestamp: true +developerName: KeyNetra Engineering +developerEmail: business.keynetra@gmail.com +developerOrganization: KeyNetra +developerOrganizationUrl: https://keynetra.com +artifactDescription: Official Kotlin Multiplatform SDK for the KeyNetra authorization platform. diff --git a/templates/php-config.yaml b/templates/php-config.yaml new file mode 100644 index 0000000..2e3f5d6 --- /dev/null +++ b/templates/php-config.yaml @@ -0,0 +1,12 @@ +invokerPackage: KeyNetra\Client +packageName: keynetra-client +packageVersion: 0.1.0 +variableNamingConvention: camelCase +hideGenerationTimestamp: true +composerPackageName: keynetra/client +developerName: KeyNetra Engineering +developerEmail: business.keynetra@gmail.com +developerOrganization: KeyNetra +developerOrganizationUrl: https://keynetra.com +artifactDescription: Official PHP SDK for the KeyNetra authorization platform. +licenseName: Apache-2.0 diff --git a/templates/python-config.yaml b/templates/python-config.yaml new file mode 100644 index 0000000..a11fadd --- /dev/null +++ b/templates/python-config.yaml @@ -0,0 +1,11 @@ +packageName: keynetra_client +projectName: keynetra-client +packageVersion: 0.1.0 +packageUrl: https://github.com/keynetra/keynetra-sdks +library: urllib3 +hideGenerationTimestamp: true +authorName: KeyNetra Engineering +authorEmail: business.keynetra@gmail.com +packageDescription: Official Python SDK for the KeyNetra authorization platform. +licenseName: Apache-2.0 +usePydantic: false diff --git a/templates/ruby-config.yaml b/templates/ruby-config.yaml new file mode 100644 index 0000000..078a4b9 --- /dev/null +++ b/templates/ruby-config.yaml @@ -0,0 +1,9 @@ +gemName: keynetra-client +moduleName: KeyNetra +gemVersion: 0.1.0 +hideGenerationTimestamp: true +gemAuthor: KeyNetra Engineering +gemAuthorEmail: business.keynetra@gmail.com +gemDescription: Official Ruby SDK for the KeyNetra authorization platform. +gemHomepage: https://github.com/keynetra/keynetra-sdks +gemLicense: Apache-2.0 diff --git a/templates/rust-config.yaml b/templates/rust-config.yaml new file mode 100644 index 0000000..44bfb98 --- /dev/null +++ b/templates/rust-config.yaml @@ -0,0 +1,10 @@ +packageName: keynetra-client +packageVersion: 0.1.0 +library: reqwest +supportAsync: true +hideGenerationTimestamp: true +packageAuthors: "KeyNetra Engineering " +packageDescription: "Official Rust SDK for the KeyNetra authorization platform." +packageHomepage: "https://keynetra.com" +packageRepository: "https://github.com/keynetra/keynetra-sdks" +packageLicense: "Apache-2.0" diff --git a/templates/swift-config.yaml b/templates/swift-config.yaml new file mode 100644 index 0000000..b620c5d --- /dev/null +++ b/templates/swift-config.yaml @@ -0,0 +1,10 @@ +projectName: KeyNetraClient +podName: KeyNetraClient +moduleName: KeyNetraClient +hideGenerationTimestamp: true +podAuthors: KeyNetra Engineering +podSummary: Official Swift SDK for the KeyNetra authorization platform. +podDescription: "KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control." +podHomepage: https://keynetra.com +podSource: https://github.com/keynetra/keynetra-sdks +podLicense: Apache-2.0 diff --git a/templates/typescript-config.yaml b/templates/typescript-config.yaml new file mode 100644 index 0000000..8579f7a --- /dev/null +++ b/templates/typescript-config.yaml @@ -0,0 +1,12 @@ +npmName: "@keynetra/client" +npmVersion: 0.1.0 +supportsES6: true +typescriptThreePlus: true +withInterfaces: true +useSingleRequestParameter: true +enumNameSuffix: Enum +packageDescription: Official TypeScript SDK for the KeyNetra authorization platform. +authorName: KeyNetra Engineering +authorEmail: business.keynetra@gmail.com +packageRepository: https://github.com/keynetra/keynetra-sdks +packageLicense: Apache-2.0 diff --git a/tests/csharp/TestInstantiation.cs b/tests/csharp/TestInstantiation.cs new file mode 100644 index 0000000..2dcca73 --- /dev/null +++ b/tests/csharp/TestInstantiation.cs @@ -0,0 +1,21 @@ +using System; +using KeyNetra.Client; + +namespace KeyNetra.Tests +{ + class Program + { + static void Main(string[] args) + { + try { + var client = new KeyNetraClient("https://api.keynetra.com", "test-key"); + if (client != null) { + Console.WriteLine("C# SDK: Client instantiated successfully."); + } + } catch (Exception e) { + Console.Error.WriteLine("C# SDK: Error: " + e.Message); + Environment.Exit(1); + } + } + } +} diff --git a/tests/go/go.mod b/tests/go/go.mod new file mode 100644 index 0000000..71e722e --- /dev/null +++ b/tests/go/go.mod @@ -0,0 +1,5 @@ +module tests/go + +go 1.21.0 + +replace github.com/keynetra/keynetra-client-go => ../../sdks/go diff --git a/tests/go/test_instantiation.go b/tests/go/test_instantiation.go new file mode 100644 index 0000000..a3a1bd4 --- /dev/null +++ b/tests/go/test_instantiation.go @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "os" + + "github.com/keynetra/keynetra-client-go" +) + +func testClientInstantiation() bool { + defer func() { + if r := recover(); r != nil { + fmt.Printf("Go SDK: Panic: %v\n", r) + } + }() + + client := keynetra.NewKeyNetraClient("https://api.keynetra.com", "test-key") + if client != nil { + fmt.Println("Go SDK: Client instantiated successfully.") + return true + } + return false +} + +func main() { + if testClientInstantiation() { + os.Exit(0) + } else { + os.Exit(1) + } +} diff --git a/tests/java/TestInstantiation.java b/tests/java/TestInstantiation.java new file mode 100644 index 0000000..336fbb3 --- /dev/null +++ b/tests/java/TestInstantiation.java @@ -0,0 +1,15 @@ +import io.keynetra.client.KeyNetraClient; + +public class TestInstantiation { + public static void main(String[] args) { + try { + KeyNetraClient client = new KeyNetraClient("https://api.keynetra.com", "test-key"); + if (client != null) { + System.out.println("Java SDK: Client instantiated successfully."); + } + } catch (Exception e) { + System.err.println("Java SDK: Error: " + e.getMessage()); + System.exit(1); + } + } +} diff --git a/tests/python/test_full.py b/tests/python/test_full.py new file mode 100644 index 0000000..166bd2a --- /dev/null +++ b/tests/python/test_full.py @@ -0,0 +1,37 @@ +import sys +import os +import unittest +import time + +# Add generated SDK to path +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../sdks/python"))) + +from keynetra_client import KeyNetraClient + +class TestKeyNetraPythonSDK(unittest.TestCase): + def setUp(self): + self.base_url = "http://localhost:8080" + self.api_key = "test-key" + self.client = KeyNetraClient(base_url=self.base_url, api_key=self.api_key) + + def test_health_check(self): + print(f"\nTesting Health Check against {self.base_url}...") + try: + # The health API is at self.client.health + response = self.client.health.health_health_get() + print(f"Health Response: {response}") + self.assertIsNotNone(response) + except Exception as e: + self.fail(f"Health check failed: {e}") + + def test_liveness(self): + print(f"\nTesting Liveness Check against {self.base_url}...") + try: + response = self.client.health.liveness_health_live_get() + print(f"Liveness Response: {response}") + self.assertIsNotNone(response) + except Exception as e: + self.fail(f"Liveness check failed: {e}") + +if __name__ == "__main__": + unittest.main() diff --git a/tests/python/test_instantiation.py b/tests/python/test_instantiation.py new file mode 100644 index 0000000..b6e86f7 --- /dev/null +++ b/tests/python/test_instantiation.py @@ -0,0 +1,36 @@ +import sys +import os + +# Add generated SDK to path +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../sdks/python"))) + +def test_client_instantiation(): + try: + from keynetra_client import KeyNetraClient + client = KeyNetraClient(base_url="http://localhost:8080", api_key="test-key") + + # Check if all APIs are initialized + assert client.access is not None + assert client.auth is not None + assert client.dev is not None + assert client.health is not None + assert client.management is not None + assert client.playground is not None + + print("Python SDK: Client instantiated successfully with all APIs.") + return True + except ImportError as e: + print(f"Python SDK: Import error: {e}") + return False + except AssertionError as e: + print(f"Python SDK: Assertion error: {e}") + return False + except Exception as e: + print(f"Python SDK: Unexpected error: {e}") + return False + +if __name__ == "__main__": + if test_client_instantiation(): + sys.exit(0) + else: + sys.exit(1) diff --git a/tests/rust/test_instantiation.rs b/tests/rust/test_instantiation.rs new file mode 100644 index 0000000..623d566 --- /dev/null +++ b/tests/rust/test_instantiation.rs @@ -0,0 +1,8 @@ +extern crate keynetra_client; + +use keynetra_client::keynetra_client::KeyNetraClient; + +fn main() { + let client = KeyNetraClient::new("https://api.keynetra.com", "test-key"); + println!("Rust SDK: Client instantiated successfully."); +} diff --git a/tests/typescript/test_instantiation.ts b/tests/typescript/test_instantiation.ts new file mode 100644 index 0000000..4e78dfb --- /dev/null +++ b/tests/typescript/test_instantiation.ts @@ -0,0 +1,23 @@ +import { KeyNetraClient } from "../../sdks/typescript/src/keynetra-client"; + +function testClientInstantiation() { + try { + const client = new KeyNetraClient("http://localhost:8080", "test-key"); + + // Check if all APIs are initialized + if (!client.access) throw new Error("access API missing"); + if (!client.auth) throw new Error("auth API missing"); + if (!client.dev) throw new Error("dev API missing"); + if (!client.health) throw new Error("health API missing"); + if (!client.management) throw new Error("management API missing"); + if (!client.playground) throw new Error("playground API missing"); + + console.log("TypeScript SDK: Client instantiated successfully with all APIs."); + return true; + } catch (error) { + console.error("TypeScript SDK: Error:", error); + return false; + } +} + +testClientInstantiation(); From 7a0f7b81cfd9de2037d6a406f3d4a28c72fbb8f7 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 00:24:15 +0530 Subject: [PATCH 02/40] init repo commit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3902ce5..96ab688 100644 --- a/.gitignore +++ b/.gitignore @@ -119,3 +119,4 @@ tmp/ logs/ *.bak *.tmp +sdks/* \ No newline at end of file From 07afe07b25791483fb17166211628312ecfc3fe2 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 00:40:10 +0530 Subject: [PATCH 03/40] chore: finalize SDK metadata and README mappings --- .github/workflows/generate.yml | 2 +- .github/workflows/release.yml | 20 +++---- .gitignore | 3 +- README.md | 4 +- scripts/prepare-packages.sh | 99 ++++++++++++++++++++++++------- sdks/csharp/KeyNetra.Client.sln | 10 ++-- sdks/csharp/README.md | 7 ++- sdks/go/README.md | 7 ++- sdks/java/README.md | 7 ++- sdks/java/pom.xml | 6 +- sdks/kotlin/README.md | 7 ++- sdks/php/README.md | 7 ++- sdks/python/README.md | 7 ++- sdks/python/pyproject.toml | 6 +- sdks/python/setup.py | 2 +- sdks/ruby/README.md | 7 ++- sdks/ruby/keynetra-client.gemspec | 4 +- sdks/rust/Cargo.toml | 7 ++- sdks/rust/README.md | 7 ++- sdks/swift/KeyNetraClient.podspec | 2 +- sdks/swift/README.md | 9 +-- sdks/typescript/README.md | 7 ++- sdks/typescript/package.json | 4 +- templates/csharp-config.yaml | 2 +- templates/go-config.yaml | 2 +- templates/java-config.yaml | 6 +- templates/kotlin-config.yaml | 3 + templates/php-config.yaml | 1 + templates/python-config.yaml | 2 +- templates/ruby-config.yaml | 2 +- templates/rust-config.yaml | 2 +- templates/swift-config.yaml | 2 +- templates/typescript-config.yaml | 2 +- 33 files changed, 169 insertions(+), 96 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 2b81661..b553add 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -45,7 +45,7 @@ jobs: run: | git config user.name "KeyNetra Engineering" git config user.email "business.keynetra@gmail.com" - git add sdks scripts templates openapi + git add scripts templates openapi if git diff --cached --quiet; then echo "โœจ No SDK changes detected." exit 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28817c1..4f8e29b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,7 +84,7 @@ jobs: with: source-directory: 'sdks/python' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-python' + destination-repository-name: 'keynetra-client-python' user-email: business.keynetra@gmail.com target-branch: main @@ -122,7 +122,7 @@ jobs: with: source-directory: 'sdks/typescript' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-typescript' + destination-repository-name: 'keynetra-client-typescript' user-email: business.keynetra@gmail.com target-branch: main @@ -147,7 +147,7 @@ jobs: with: source-directory: 'sdks/go' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-go' + destination-repository-name: 'keynetra-client-go' user-email: business.keynetra@gmail.com target-branch: main @@ -199,7 +199,7 @@ jobs: with: source-directory: 'sdks/java' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-java' + destination-repository-name: 'keynetra-client-java' user-email: business.keynetra@gmail.com target-branch: main @@ -230,7 +230,7 @@ jobs: with: source-directory: 'sdks/rust' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-rust' + destination-repository-name: 'keynetra-client-rust' user-email: business.keynetra@gmail.com target-branch: main @@ -274,7 +274,7 @@ jobs: with: source-directory: 'sdks/csharp' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-csharp' + destination-repository-name: 'keynetra-client-csharp' user-email: business.keynetra@gmail.com target-branch: main @@ -308,7 +308,7 @@ jobs: with: source-directory: 'sdks/php' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-php' + destination-repository-name: 'keynetra-client-php' user-email: business.keynetra@gmail.com target-branch: main @@ -350,7 +350,7 @@ jobs: with: source-directory: 'sdks/ruby' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-ruby' + destination-repository-name: 'keynetra-client-ruby' user-email: business.keynetra@gmail.com target-branch: main @@ -385,7 +385,7 @@ jobs: with: source-directory: 'sdks/kotlin' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-kotlin' + destination-repository-name: 'keynetra-client-kotlin' user-email: business.keynetra@gmail.com target-branch: main @@ -410,7 +410,7 @@ jobs: with: source-directory: 'sdks/swift' destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-swift' + destination-repository-name: 'keynetra-client-swift' user-email: business.keynetra@gmail.com target-branch: main diff --git a/.gitignore b/.gitignore index 96ab688..dbcfabd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# SDKs +sdks/ # IDEs .vscode/ .idea/ @@ -119,4 +121,3 @@ tmp/ logs/ *.bak *.tmp -sdks/* \ No newline at end of file diff --git a/README.md b/README.md index 59ce510..9adf6f4 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ KeyNetra is a high-performance, distributed authorization as a service. This rep | **C#** | `KeyNetra.Client` | `dotnet add package KeyNetra.Client` | | **PHP** | `keynetra/client` | `composer require keynetra/client` | | **Ruby** | `keynetra-client` | `gem install keynetra-client` | -| **Kotlin** | `keynetra-client-kotlin` | `implementation("io.keynetra...")` | -| **Swift** | `KeyNetraClient` | `.package(url: "...", from: "...")` | +| **Kotlin** | `keynetra-client-kotlin` | `implementation("io.keynetra:keynetra-client-kotlin:0.1.0")` | +| **Swift** | `KeyNetraClient` | `.package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.0")` | ## โœจ Key Features diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 4c7d9fd..a8c8fda 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -3,7 +3,6 @@ set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" SDK_VERSION="${SDK_VERSION:-0.1.0}" -REPO_URL="${REPO_URL:-https://github.com/keynetra/keynetra-sdks}" # --- Colors & Emojis --- GREEN='\033[0;32m' @@ -21,7 +20,9 @@ generate_readme() { local pkg_name="$2" local install_cmd="$3" local usage_example="$4" - local extra_info="${5:-}" + local repo_url="$5" + local docs_url="${6:-https://docs.keynetra.com}" + local extra_info="${7:-}" local lang_lower=$(echo "$lang_name" | tr '[:upper:]' '[:lower:]') cat < "${ROOT_DIR}/sdks/python/README.md" +)" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/python/README.md" cat > "${ROOT_DIR}/sdks/python/pyproject.toml" <=2"] [project.urls] -Homepage = "${REPO_URL}" -Repository = "${REPO_URL}" -Issues = "${REPO_URL}/issues" +Homepage = "${repo_url}" +Repository = "${repo_url}" +Issues = "${repo_url}/issues" [tool.setuptools.packages.find] include = ["keynetra_client*"] @@ -148,6 +152,8 @@ EOF prepare_typescript() { log_step "TypeScript" mkdir -p "${ROOT_DIR}/sdks/typescript/src" + local repo_url="https://github.com/keynetra/keynetra-client-typescript" + local docs_url="https://docs.keynetra.com/sdks/typescript" generate_readme "TypeScript" "@keynetra/client" "npm install @keynetra/client" "import { KeyNetraClient } from \"@keynetra/client\"; @@ -161,7 +167,7 @@ const decision = await client.access.checkAccess({ subject: \"user:123\", action: \"read\", resource: \"document:456\" -});" > "${ROOT_DIR}/sdks/typescript/README.md" +});" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/typescript/README.md" cat > "${ROOT_DIR}/sdks/typescript/package.json" <", "repository": { "type": "git", - "url": "git+${REPO_URL}.git" + "url": "git+${repo_url}.git" }, - "homepage": "${REPO_URL}", + "homepage": "${repo_url}", "scripts": { "build": "tsc -p tsconfig.json" }, @@ -251,6 +257,8 @@ EOF prepare_go() { log_step "Go" + local repo_url="https://github.com/keynetra/keynetra-client-go" + local docs_url="https://docs.keynetra.com/sdks/go" generate_readme "Go" "keynetra-client-go" "go get github.com/keynetra/keynetra-client-go" "import \"github.com/keynetra/keynetra-client-go\" client := keynetra.NewKeyNetraClient( @@ -264,7 +272,7 @@ decision, _, err := client.Access.CheckAccess(context.Background()). Subject: \"user:123\", Action: \"read\", Resource: \"document:456\", - }).Execute()" > "${ROOT_DIR}/sdks/go/README.md" + }).Execute()" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/go/README.md" cat > "${ROOT_DIR}/sdks/go/keynetra_client.go" <<'EOF' package keynetra @@ -302,6 +310,8 @@ EOF prepare_java() { log_step "Java" mkdir -p "${ROOT_DIR}/sdks/java/src/main/java/io/keynetra/client" + local repo_url="https://github.com/keynetra/keynetra-client-java" + local docs_url="https://docs.keynetra.com/sdks/java" generate_readme "Java" "keynetra-client" " io.keynetra @@ -321,7 +331,7 @@ var decision = client.getAccess().checkAccess( .subject(\"user:123\") .action(\"read\") .resource(\"document:456\") -);" > "${ROOT_DIR}/sdks/java/README.md" +);" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/java/README.md" cat > "${ROOT_DIR}/sdks/java/src/main/java/io/keynetra/client/KeyNetraClient.java" <<'EOF' package io.keynetra.client; @@ -364,6 +374,8 @@ EOF prepare_rust() { log_step "Rust" mkdir -p "${ROOT_DIR}/sdks/rust/src" + local repo_url="https://github.com/keynetra/keynetra-client-rust" + local docs_url="https://docs.keynetra.com/sdks/rust" generate_readme "Rust" "keynetra-client" "cargo add keynetra-client" "use keynetra_client::keynetra_client::KeyNetraClient; @@ -375,7 +387,20 @@ let client = KeyNetraClient::new( // Perform an access check let decision = client.access() .check_access(...) - .await?;" > "${ROOT_DIR}/sdks/rust/README.md" + .await?;" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/rust/README.md" + + # Fix Cargo.toml metadata + if [ -f "${ROOT_DIR}/sdks/rust/Cargo.toml" ]; then + sed -i '' "s/description = .*/description = \"Official Rust SDK for the KeyNetra authorization platform.\"/" "${ROOT_DIR}/sdks/rust/Cargo.toml" + sed -i '' "s/license = .*/license = \"Apache-2.0\"/" "${ROOT_DIR}/sdks/rust/Cargo.toml" + sed -i '' "s/authors = .*/authors = [\"KeyNetra Engineering \"]/" "${ROOT_DIR}/sdks/rust/Cargo.toml" + # Add readme field if missing + if ! grep -q "readme =" "${ROOT_DIR}/sdks/rust/Cargo.toml"; then + sed -i '' "/\[package\]/a\\ +readme = \"README.md\" +" "${ROOT_DIR}/sdks/rust/Cargo.toml" + fi + fi cat > "${ROOT_DIR}/sdks/rust/src/keynetra_client.rs" <<'EOF' use crate::apis::configuration::Configuration; @@ -415,6 +440,8 @@ EOF prepare_csharp() { log_step "C#" mkdir -p "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client" + local repo_url="https://github.com/keynetra/keynetra-client-csharp" + local docs_url="https://docs.keynetra.com/sdks/csharp" generate_readme "C#" "KeyNetra.Client" "dotnet add package KeyNetra.Client" "using KeyNetra.Client; @@ -428,7 +455,24 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { Subject = \"user:123\", Action = \"read\", Resource = \"document:456\" -});" > "${ROOT_DIR}/sdks/csharp/README.md" +});" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/csharp/README.md" + + # Copy README for NuGet packaging + cp "${ROOT_DIR}/sdks/csharp/README.md" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/README.md" + + # Fix .csproj metadata + if [ -f "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" ]; then + sed -i '' "s|.*|${repo_url}.git|" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then + sed -i '' "/<\/PackageTags>/a\\ + README.md +" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + # Also need to include the README file in the package + sed -i '' "/<\/ItemGroup>/i\\ + +" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + fi + fi cat > "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetraClient.cs" <<'EOF' namespace KeyNetra.Client; @@ -468,6 +512,8 @@ EOF prepare_php() { log_step "PHP" + local repo_url="https://github.com/keynetra/keynetra-client-php" + local docs_url="https://docs.keynetra.com/sdks/php" generate_readme "PHP" "keynetra/client" "composer require keynetra/client" "use KeyNetra\Client\KeyNetraClient; \$client = new KeyNetraClient( @@ -476,11 +522,13 @@ prepare_php() { ); // Perform an access check -\$decision = \$client->getAccessApi()->checkAccess(...);" > "${ROOT_DIR}/sdks/php/README.md" +\$decision = \$client->getAccessApi()->checkAccess(...);" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/php/README.md" } prepare_ruby() { log_step "Ruby" + local repo_url="https://github.com/keynetra/keynetra-client-ruby" + local docs_url="https://docs.keynetra.com/sdks/ruby" generate_readme "Ruby" "keynetra-client" "gem install keynetra-client" "require 'keynetra-client' client = KeyNetra::KeyNetraClient.new( @@ -489,11 +537,18 @@ client = KeyNetra::KeyNetraClient.new( ) # Perform an access check -decision = client.access_api.check_access(...)" > "${ROOT_DIR}/sdks/ruby/README.md" +decision = client.access_api.check_access(...)" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/ruby/README.md" + + # Fix .gemspec metadata + if [ -f "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" ]; then + sed -i '' "s/s.summary = .*/s.summary = \"Official Ruby SDK for the KeyNetra authorization platform.\"/" "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" + fi } prepare_kotlin() { log_step "Kotlin" + local repo_url="https://github.com/keynetra/keynetra-client-kotlin" + local docs_url="https://docs.keynetra.com/sdks/kotlin" generate_readme "Kotlin" "keynetra-client-kotlin" "implementation(\"io.keynetra:keynetra-client-kotlin:${SDK_VERSION}\")" "import io.keynetra.client.KeyNetraClient val client = KeyNetraClient( @@ -502,13 +557,15 @@ val client = KeyNetraClient( ) // Perform an access check -val decision = client.accessApi.checkAccess(...)" > "${ROOT_DIR}/sdks/kotlin/README.md" +val decision = client.accessApi.checkAccess(...)" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/kotlin/README.md" } prepare_swift() { log_step "Swift" + local repo_url="https://github.com/keynetra/keynetra-client-swift" + local docs_url="https://docs.keynetra.com/sdks/swift" generate_readme "Swift" "KeyNetraClient" "dependencies: [ - .package(url: \"${REPO_URL}.git\", from: \"${SDK_VERSION}\") + .package(url: \"${repo_url}.git\", from: \"${SDK_VERSION}\") ]" "import KeyNetraClient let client = KeyNetraClient( @@ -517,7 +574,7 @@ let client = KeyNetraClient( ) // Perform an access check -client.accessApi.checkAccess(...)" > "${ROOT_DIR}/sdks/swift/README.md" +client.accessApi.checkAccess(...)" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/swift/README.md" } prepare_python diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln index 48ecef5..d03ee76 100644 --- a/sdks/csharp/KeyNetra.Client.sln +++ b/sdks/csharp/KeyNetra.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{14ADC607-3C0F-4D2B-8F65-BC80FF495D48}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4CCE5B44-40B7-413B-8D6D-91AEB4D272D4}.Release|Any CPU.Build.0 = Release|Any CPU + {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Debug|Any CPU.Build.0 = Debug|Any CPU + {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Release|Any CPU.ActiveCfg = Release|Any CPU + {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/sdks/csharp/README.md b/sdks/csharp/README.md index 789fcc3..c85df33 100644 --- a/sdks/csharp/README.md +++ b/sdks/csharp/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/csharp) Official C# SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -42,11 +43,11 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/csharp). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-csharp](https://github.com/keynetra/keynetra-client-csharp) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-csharp/issues) - **License**: Apache-2.0 diff --git a/sdks/go/README.md b/sdks/go/README.md index 72507c3..49f3169 100644 --- a/sdks/go/README.md +++ b/sdks/go/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/go) Official Go SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -43,11 +44,11 @@ decision, _, err := client.Access.CheckAccess(context.Background()). ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/go). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-go](https://github.com/keynetra/keynetra-client-go) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-go/issues) - **License**: Apache-2.0 diff --git a/sdks/java/README.md b/sdks/java/README.md index 5578d7f..fad37e6 100644 --- a/sdks/java/README.md +++ b/sdks/java/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/java) Official Java SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -48,11 +49,11 @@ var decision = client.getAccess().checkAccess( ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/java). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-java](https://github.com/keynetra/keynetra-client-java) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-java/issues) - **License**: Apache-2.0 diff --git a/sdks/java/pom.xml b/sdks/java/pom.xml index c7c9728..cb40b3a 100644 --- a/sdks/java/pom.xml +++ b/sdks/java/pom.xml @@ -9,9 +9,9 @@ https://github.com/openapitools/openapi-generator Official Java SDK for the KeyNetra authorization platform. - scm:git:git://github.com/keynetra/keynetra-sdks.git - scm:git:ssh://github.com:keynetra/keynetra-sdks.git - https://github.com/keynetra/keynetra-sdks + scm:git:git://github.com/keynetra/keynetra-client-java.git + scm:git:ssh://github.com:keynetra/keynetra-client-java.git + https://github.com/keynetra/keynetra-client-java diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md index df3d9db..d0a154f 100644 --- a/sdks/kotlin/README.md +++ b/sdks/kotlin/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/kotlin) Official Kotlin SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -38,11 +39,11 @@ val decision = client.accessApi.checkAccess(...) ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/kotlin). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-kotlin](https://github.com/keynetra/keynetra-client-kotlin) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-kotlin/issues) - **License**: Apache-2.0 diff --git a/sdks/php/README.md b/sdks/php/README.md index 137ed3d..5db8be3 100644 --- a/sdks/php/README.md +++ b/sdks/php/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/php) Official PHP SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -38,11 +39,11 @@ $decision = $client->getAccessApi()->checkAccess(...); ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/php). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-php](https://github.com/keynetra/keynetra-client-php) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-php/issues) - **License**: Apache-2.0 diff --git a/sdks/python/README.md b/sdks/python/README.md index bc1e623..c1afe3b 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/python) Official Python SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -42,11 +43,11 @@ decision = client.access.check_access( ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/python). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-python](https://github.com/keynetra/keynetra-client-python) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-python/issues) - **License**: Apache-2.0 diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 9ecbc6e..a99935a 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -13,9 +13,9 @@ authors = [{ name = "KeyNetra Engineering", email = "business.keynetra@gmail.com dependencies = ["urllib3>=2"] [project.urls] -Homepage = "https://github.com/keynetra/keynetra-sdks" -Repository = "https://github.com/keynetra/keynetra-sdks" -Issues = "https://github.com/keynetra/keynetra-sdks/issues" +Homepage = "https://github.com/keynetra/keynetra-client-python" +Repository = "https://github.com/keynetra/keynetra-client-python" +Issues = "https://github.com/keynetra/keynetra-client-python/issues" [tool.setuptools.packages.find] include = ["keynetra_client*"] diff --git a/sdks/python/setup.py b/sdks/python/setup.py index d771fe4..62061bc 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -34,7 +34,7 @@ description="KeyNetra", author="OpenAPI Generator community", author_email="team@openapitools.org", - url="https://github.com/keynetra/keynetra-sdks", + url="https://github.com/keynetra/keynetra-client-python", keywords=["OpenAPI", "OpenAPI-Generator", "KeyNetra"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index 0586d10..44c51a4 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/ruby) Official Ruby SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -38,11 +39,11 @@ decision = client.access_api.check_access(...) ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/ruby). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-ruby](https://github.com/keynetra/keynetra-client-ruby) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-ruby/issues) - **License**: Apache-2.0 diff --git a/sdks/ruby/keynetra-client.gemspec b/sdks/ruby/keynetra-client.gemspec index e8a9156..9793417 100644 --- a/sdks/ruby/keynetra-client.gemspec +++ b/sdks/ruby/keynetra-client.gemspec @@ -21,8 +21,8 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.authors = ["KeyNetra Engineering"] s.email = ["business.keynetra@gmail.com"] - s.homepage = "https://github.com/keynetra/keynetra-sdks" - s.summary = "KeyNetra Ruby Gem" + s.homepage = "https://github.com/keynetra/keynetra-client-ruby" + s.summary = "Official Ruby SDK for the KeyNetra authorization platform." s.description = "Official Ruby SDK for the KeyNetra authorization platform." s.license = "Apache-2.0" s.required_ruby_version = ">= 2.7" diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 6784c09..bc32e5d 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -1,10 +1,11 @@ [package] +readme = "README.md" name = "keynetra-client" version = "0.1.0" -authors = ["OpenAPI Generator team and contributors"] -description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" +authors = ["KeyNetra Engineering "] +description = "Official Rust SDK for the KeyNetra authorization platform." # Override this license by providing a License Object in the OpenAPI. -license = "Unlicense" +license = "Apache-2.0" edition = "2021" [dependencies] diff --git a/sdks/rust/README.md b/sdks/rust/README.md index 76492a7..cb58580 100644 --- a/sdks/rust/README.md +++ b/sdks/rust/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/rust) Official Rust SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -40,11 +41,11 @@ let decision = client.access() ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/rust). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-rust](https://github.com/keynetra/keynetra-client-rust) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-rust/issues) - **License**: Apache-2.0 diff --git a/sdks/swift/KeyNetraClient.podspec b/sdks/swift/KeyNetraClient.podspec index 461e946..4ea4063 100644 --- a/sdks/swift/KeyNetraClient.podspec +++ b/sdks/swift/KeyNetraClient.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '11.0' s.watchos.deployment_target = '4.0' s.version = '0.1.1' - s.source = https://github.com/keynetra/keynetra-sdks + s.source = https://github.com/keynetra/keynetra-client-swift s.authors = 'KeyNetra Engineering' s.license = Apache-2.0 s.homepage = 'https://keynetra.com' diff --git a/sdks/swift/README.md b/sdks/swift/README.md index b05ecf7..3d3d606 100644 --- a/sdks/swift/README.md +++ b/sdks/swift/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/swift) Official Swift SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -18,7 +19,7 @@ KeyNetra provides high-performance, distributed authorization as a service. This ```bash dependencies: [ - .package(url: "https://github.com/keynetra/keynetra-sdks.git", from: "0.1.0") + .package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.0") ] ``` @@ -40,11 +41,11 @@ client.accessApi.checkAccess(...) ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/swift). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-swift](https://github.com/keynetra/keynetra-client-swift) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-swift/issues) - **License**: Apache-2.0 diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 19af73e..3028714 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/typescript) Official TypeScript SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -42,11 +43,11 @@ const decision = await client.access.checkAccess({ ## ๐Ÿ“š Documentation -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com). +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/typescript). ## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-sdks](https://github.com/keynetra/keynetra-sdks) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-sdks/issues) +- **Source**: [https://github.com/keynetra/keynetra-client-typescript](https://github.com/keynetra/keynetra-client-typescript) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-typescript/issues) - **License**: Apache-2.0 diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 45a6a7d..8315195 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -15,9 +15,9 @@ "author": "KeyNetra Engineering ", "repository": { "type": "git", - "url": "git+https://github.com/keynetra/keynetra-sdks.git" + "url": "git+https://github.com/keynetra/keynetra-client-typescript.git" }, - "homepage": "https://github.com/keynetra/keynetra-sdks", + "homepage": "https://github.com/keynetra/keynetra-client-typescript", "scripts": { "build": "tsc -p tsconfig.json" }, diff --git a/templates/csharp-config.yaml b/templates/csharp-config.yaml index ad2d71f..46ef01d 100644 --- a/templates/csharp-config.yaml +++ b/templates/csharp-config.yaml @@ -7,5 +7,5 @@ nullableReferenceTypes: true optionalProjectFile: false packageTags: "keynetra;authorization;authz;permissions;sdk" packageDescription: "Official C# SDK for the KeyNetra authorization platform. KeyNetra provides high-performance, distributed authorization as a service." -packageProjectUrl: "https://github.com/keynetra/keynetra-sdks" +packageProjectUrl: "https://github.com/keynetra/keynetra-client-csharp" packageLicenseExpression: "Apache-2.0" diff --git a/templates/go-config.yaml b/templates/go-config.yaml index 56d53a4..d3969cf 100644 --- a/templates/go-config.yaml +++ b/templates/go-config.yaml @@ -8,4 +8,4 @@ withGoMod: true packageDescription: "Official Go SDK for KeyNetra authorization platform." packageAuthor: "KeyNetra Engineering" packageEmail: "business.keynetra@gmail.com" -packageUrl: "https://github.com/keynetra/keynetra-sdks" +packageUrl: "https://github.com/keynetra/keynetra-client-go" diff --git a/templates/java-config.yaml b/templates/java-config.yaml index e3e9727..824af2a 100644 --- a/templates/java-config.yaml +++ b/templates/java-config.yaml @@ -10,7 +10,7 @@ developerName: KeyNetra Engineering developerEmail: business.keynetra@gmail.com developerOrganization: KeyNetra developerOrganizationUrl: https://keynetra.com -scmConnection: scm:git:git://github.com/keynetra/keynetra-sdks.git -scmDeveloperConnection: scm:git:ssh://github.com:keynetra/keynetra-sdks.git -scmUrl: https://github.com/keynetra/keynetra-sdks +scmConnection: scm:git:git://github.com/keynetra/keynetra-client-java.git +scmDeveloperConnection: scm:git:ssh://github.com:keynetra/keynetra-client-java.git +scmUrl: https://github.com/keynetra/keynetra-client-java artifactDescription: Official Java SDK for the KeyNetra authorization platform. diff --git a/templates/kotlin-config.yaml b/templates/kotlin-config.yaml index 1ac3fdf..7156285 100644 --- a/templates/kotlin-config.yaml +++ b/templates/kotlin-config.yaml @@ -9,4 +9,7 @@ developerName: KeyNetra Engineering developerEmail: business.keynetra@gmail.com developerOrganization: KeyNetra developerOrganizationUrl: https://keynetra.com +scmConnection: scm:git:git://github.com/keynetra/keynetra-client-kotlin.git +scmDeveloperConnection: scm:git:ssh://github.com:keynetra/keynetra-client-kotlin.git +scmUrl: https://github.com/keynetra/keynetra-client-kotlin artifactDescription: Official Kotlin Multiplatform SDK for the KeyNetra authorization platform. diff --git a/templates/php-config.yaml b/templates/php-config.yaml index 2e3f5d6..d55ad88 100644 --- a/templates/php-config.yaml +++ b/templates/php-config.yaml @@ -8,5 +8,6 @@ developerName: KeyNetra Engineering developerEmail: business.keynetra@gmail.com developerOrganization: KeyNetra developerOrganizationUrl: https://keynetra.com +packageUrl: https://github.com/keynetra/keynetra-client-php artifactDescription: Official PHP SDK for the KeyNetra authorization platform. licenseName: Apache-2.0 diff --git a/templates/python-config.yaml b/templates/python-config.yaml index a11fadd..ffb034f 100644 --- a/templates/python-config.yaml +++ b/templates/python-config.yaml @@ -1,7 +1,7 @@ packageName: keynetra_client projectName: keynetra-client packageVersion: 0.1.0 -packageUrl: https://github.com/keynetra/keynetra-sdks +packageUrl: https://github.com/keynetra/keynetra-client-python library: urllib3 hideGenerationTimestamp: true authorName: KeyNetra Engineering diff --git a/templates/ruby-config.yaml b/templates/ruby-config.yaml index 078a4b9..5f4eabc 100644 --- a/templates/ruby-config.yaml +++ b/templates/ruby-config.yaml @@ -5,5 +5,5 @@ hideGenerationTimestamp: true gemAuthor: KeyNetra Engineering gemAuthorEmail: business.keynetra@gmail.com gemDescription: Official Ruby SDK for the KeyNetra authorization platform. -gemHomepage: https://github.com/keynetra/keynetra-sdks +gemHomepage: https://github.com/keynetra/keynetra-client-ruby gemLicense: Apache-2.0 diff --git a/templates/rust-config.yaml b/templates/rust-config.yaml index 44bfb98..e54e37d 100644 --- a/templates/rust-config.yaml +++ b/templates/rust-config.yaml @@ -6,5 +6,5 @@ hideGenerationTimestamp: true packageAuthors: "KeyNetra Engineering " packageDescription: "Official Rust SDK for the KeyNetra authorization platform." packageHomepage: "https://keynetra.com" -packageRepository: "https://github.com/keynetra/keynetra-sdks" +packageRepository: "https://github.com/keynetra/keynetra-client-rust" packageLicense: "Apache-2.0" diff --git a/templates/swift-config.yaml b/templates/swift-config.yaml index b620c5d..8d1f910 100644 --- a/templates/swift-config.yaml +++ b/templates/swift-config.yaml @@ -6,5 +6,5 @@ podAuthors: KeyNetra Engineering podSummary: Official Swift SDK for the KeyNetra authorization platform. podDescription: "KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control." podHomepage: https://keynetra.com -podSource: https://github.com/keynetra/keynetra-sdks +podSource: https://github.com/keynetra/keynetra-client-swift podLicense: Apache-2.0 diff --git a/templates/typescript-config.yaml b/templates/typescript-config.yaml index 8579f7a..a7e9c9a 100644 --- a/templates/typescript-config.yaml +++ b/templates/typescript-config.yaml @@ -8,5 +8,5 @@ enumNameSuffix: Enum packageDescription: Official TypeScript SDK for the KeyNetra authorization platform. authorName: KeyNetra Engineering authorEmail: business.keynetra@gmail.com -packageRepository: https://github.com/keynetra/keynetra-sdks +packageRepository: https://github.com/keynetra/keynetra-client-typescript packageLicense: Apache-2.0 From 52836af9f5188fa591939045dac0aa7e22600780 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 01:00:13 +0530 Subject: [PATCH 04/40] chore: sync automation scripts with template configuration updates --- README.md | 4 ++-- scripts/generate-all.sh | 2 +- scripts/prepare-packages.sh | 37 ++++++++++++++----------------- sdks/csharp/KeyNetra.Client.sln | 10 ++++----- sdks/csharp/README.md | 2 +- sdks/go/README.md | 2 +- sdks/java/README.md | 2 +- sdks/java/pom.xml | 4 ++-- sdks/kotlin/README.md | 2 +- sdks/php/README.md | 2 +- sdks/python/README.md | 2 +- sdks/python/pyproject.toml | 4 ++-- sdks/ruby/README.md | 2 +- sdks/ruby/keynetra-client.gemspec | 6 ++--- sdks/rust/Cargo.toml | 4 ++-- sdks/rust/README.md | 2 +- sdks/swift/KeyNetraClient.podspec | 4 ++-- sdks/swift/README.md | 2 +- sdks/typescript/README.md | 2 +- sdks/typescript/package.json | 4 ++-- templates/csharp-config.yaml | 4 ++-- templates/go-config.yaml | 4 ++-- templates/java-config.yaml | 6 ++--- templates/kotlin-config.yaml | 6 ++--- templates/php-config.yaml | 6 ++--- templates/python-config.yaml | 8 +++---- templates/ruby-config.yaml | 6 ++--- templates/rust-config.yaml | 4 ++-- templates/swift-config.yaml | 4 ++-- templates/typescript-config.yaml | 4 ++-- 30 files changed, 74 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index 9adf6f4..323c3c1 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ KeyNetra is a high-performance, distributed authorization as a service. This rep | **C#** | `KeyNetra.Client` | `dotnet add package KeyNetra.Client` | | **PHP** | `keynetra/client` | `composer require keynetra/client` | | **Ruby** | `keynetra-client` | `gem install keynetra-client` | -| **Kotlin** | `keynetra-client-kotlin` | `implementation("io.keynetra:keynetra-client-kotlin:0.1.0")` | -| **Swift** | `KeyNetraClient` | `.package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.0")` | +| **Kotlin** | `keynetra-client-kotlin` | `implementation("io.keynetra:keynetra-client-kotlin:0.1.1")` | +| **Swift** | `KeyNetraClient` | `.package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.1")` | ## โœจ Key Features diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 3e21ccd..3620079 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -4,7 +4,7 @@ set -euo pipefail # --- Configuration --- ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" SPEC_FILE="${ROOT_DIR}/openapi/keynetra.yaml" -SDK_VERSION="${SDK_VERSION:-0.1.0}" +SDK_VERSION="${SDK_VERSION:-0.1.1}" # --- Colors & Emojis --- RED='\033[0;31m' diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index a8c8fda..e1c6be5 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -2,7 +2,7 @@ set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -SDK_VERSION="${SDK_VERSION:-0.1.0}" +SDK_VERSION="${SDK_VERSION:-0.1.1}" # --- Colors & Emojis --- GREEN='\033[0;32m' @@ -32,7 +32,7 @@ generate_readme() { [![Version](https://img.shields.io/badge/version-${SDK_VERSION}-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](${docs_url}) -Official ${lang_name} SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official ${lang_name} Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your ${lang_name} applications to integrate seamlessly with KeyNetra for access control and policy management. @@ -98,11 +98,11 @@ build-backend = "setuptools.build_meta" [project] name = "keynetra-client" version = "${SDK_VERSION}" -description = "Official Python SDK for the KeyNetra authorization platform." +description = "Official Python Client SDK for the KeyNetra authorization platform." readme = "README.md" requires-python = ">=3.11" license = { text = "Apache-2.0" } -authors = [{ name = "KeyNetra Engineering", email = "business.keynetra@gmail.com" }] +authors = [{ name = "Sainath.Sapa", email = "info.djsai@gmail.com" }] dependencies = ["urllib3>=2"] [project.urls] @@ -173,7 +173,7 @@ const decision = await client.access.checkAccess({ { "name": "@keynetra/client", "version": "${SDK_VERSION}", - "description": "Official TypeScript SDK for the KeyNetra authorization platform.", + "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", "license": "Apache-2.0", "type": "module", "main": "./dist/index.js", @@ -184,7 +184,7 @@ const decision = await client.access.checkAccess({ "src", "README.md" ], - "author": "KeyNetra Engineering ", + "author": "KeyNetra ", "repository": { "type": "git", "url": "git+${repo_url}.git" @@ -391,14 +391,12 @@ let decision = client.access() # Fix Cargo.toml metadata if [ -f "${ROOT_DIR}/sdks/rust/Cargo.toml" ]; then - sed -i '' "s/description = .*/description = \"Official Rust SDK for the KeyNetra authorization platform.\"/" "${ROOT_DIR}/sdks/rust/Cargo.toml" - sed -i '' "s/license = .*/license = \"Apache-2.0\"/" "${ROOT_DIR}/sdks/rust/Cargo.toml" - sed -i '' "s/authors = .*/authors = [\"KeyNetra Engineering \"]/" "${ROOT_DIR}/sdks/rust/Cargo.toml" + perl -i -pe "s/description = .*/description = \"Official Rust Client SDK for the KeyNetra authorization platform.\"/g" "${ROOT_DIR}/sdks/rust/Cargo.toml" + perl -i -pe "s/license = .*/license = \"Apache-2.0\"/g" "${ROOT_DIR}/sdks/rust/Cargo.toml" + perl -i -pe "s/authors = .*/authors = [\"KeyNetra \"]/g" "${ROOT_DIR}/sdks/rust/Cargo.toml" # Add readme field if missing if ! grep -q "readme =" "${ROOT_DIR}/sdks/rust/Cargo.toml"; then - sed -i '' "/\[package\]/a\\ -readme = \"README.md\" -" "${ROOT_DIR}/sdks/rust/Cargo.toml" + perl -i -pe 's/^\[package\]/\[package\]\nreadme = \"README.md\"/' "${ROOT_DIR}/sdks/rust/Cargo.toml" fi fi @@ -462,15 +460,12 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { # Fix .csproj metadata if [ -f "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" ]; then - sed -i '' "s|.*|${repo_url}.git|" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + perl -i -pe "s|.*|${repo_url}.git|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + perl -i -pe "s|.*|KeyNetra|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then - sed -i '' "/<\/PackageTags>/a\\ - README.md -" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" # Also need to include the README file in the package - sed -i '' "/<\/ItemGroup>/i\\ - -" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + perl -i -pe 's/(<\/ItemGroup>)/ \n$1/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" fi fi @@ -541,7 +536,9 @@ decision = client.access_api.check_access(...)" "${repo_url}" "${docs_url}" > "$ # Fix .gemspec metadata if [ -f "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" ]; then - sed -i '' "s/s.summary = .*/s.summary = \"Official Ruby SDK for the KeyNetra authorization platform.\"/" "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" + perl -i -pe "s/s.summary = .*/s.summary = \"Official Ruby Client SDK for the KeyNetra authorization platform.\"/g" "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" + perl -i -pe "s/s.authors = .*/s.authors = [\"SainathSapa\"]/g" "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" + perl -i -pe "s/s.email = .*/s.email = [\"info.djsai\@gmail.com\"]/g" "${ROOT_DIR}/sdks/ruby/keynetra-client.gemspec" fi } diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln index d03ee76..f968fc6 100644 --- a/sdks/csharp/KeyNetra.Client.sln +++ b/sdks/csharp/KeyNetra.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{14ADC607-3C0F-4D2B-8F65-BC80FF495D48}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{6185BB4F-442A-4D18-9FBB-E932A8738A77}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Debug|Any CPU.Build.0 = Debug|Any CPU - {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Release|Any CPU.ActiveCfg = Release|Any CPU - {14ADC607-3C0F-4D2B-8F65-BC80FF495D48}.Release|Any CPU.Build.0 = Release|Any CPU + {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/sdks/csharp/README.md b/sdks/csharp/README.md index c85df33..b3c9f5f 100644 --- a/sdks/csharp/README.md +++ b/sdks/csharp/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/csharp) -Official C# SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official C# Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your C# applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/go/README.md b/sdks/go/README.md index 49f3169..b0a6fdc 100644 --- a/sdks/go/README.md +++ b/sdks/go/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/go) -Official Go SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Go Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Go applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/java/README.md b/sdks/java/README.md index fad37e6..92b6413 100644 --- a/sdks/java/README.md +++ b/sdks/java/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/java) -Official Java SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Java Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Java applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/java/pom.xml b/sdks/java/pom.xml index cb40b3a..17e74f8 100644 --- a/sdks/java/pom.xml +++ b/sdks/java/pom.xml @@ -7,7 +7,7 @@ keynetra-client 0.1.0 https://github.com/openapitools/openapi-generator - Official Java SDK for the KeyNetra authorization platform. + Official Java Client SDK for the KeyNetra authorization platform. scm:git:git://github.com/keynetra/keynetra-client-java.git scm:git:ssh://github.com:keynetra/keynetra-client-java.git @@ -24,7 +24,7 @@ - KeyNetra Engineering + Sainath Sapa business.keynetra@gmail.com KeyNetra https://keynetra.com diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md index d0a154f..ee34015 100644 --- a/sdks/kotlin/README.md +++ b/sdks/kotlin/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/kotlin) -Official Kotlin SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Kotlin Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Kotlin applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/php/README.md b/sdks/php/README.md index 5db8be3..4cc6430 100644 --- a/sdks/php/README.md +++ b/sdks/php/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/php) -Official PHP SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official PHP Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your PHP applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/python/README.md b/sdks/python/README.md index c1afe3b..4f71c5c 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/python) -Official Python SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Python Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Python applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index a99935a..9a6b7be 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -5,11 +5,11 @@ build-backend = "setuptools.build_meta" [project] name = "keynetra-client" version = "0.1.0" -description = "Official Python SDK for the KeyNetra authorization platform." +description = "Official Python Client SDK for the KeyNetra authorization platform." readme = "README.md" requires-python = ">=3.11" license = { text = "Apache-2.0" } -authors = [{ name = "KeyNetra Engineering", email = "business.keynetra@gmail.com" }] +authors = [{ name = "Sainath.Sapa", email = "info.djsai@gmail.com" }] dependencies = ["urllib3>=2"] [project.urls] diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index 44c51a4..20e928c 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/ruby) -Official Ruby SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Ruby Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Ruby applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/ruby/keynetra-client.gemspec b/sdks/ruby/keynetra-client.gemspec index 9793417..48382aa 100644 --- a/sdks/ruby/keynetra-client.gemspec +++ b/sdks/ruby/keynetra-client.gemspec @@ -19,10 +19,10 @@ Gem::Specification.new do |s| s.name = "keynetra-client" s.version = KeyNetra::VERSION s.platform = Gem::Platform::RUBY - s.authors = ["KeyNetra Engineering"] - s.email = ["business.keynetra@gmail.com"] + s.authors = ["SainathSapa"] + s.email = ["info.djsai@gmail.com"] s.homepage = "https://github.com/keynetra/keynetra-client-ruby" - s.summary = "Official Ruby SDK for the KeyNetra authorization platform." + s.summary = "Official Ruby Client SDK for the KeyNetra authorization platform." s.description = "Official Ruby SDK for the KeyNetra authorization platform." s.license = "Apache-2.0" s.required_ruby_version = ">= 2.7" diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index bc32e5d..1f3989b 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -2,8 +2,8 @@ readme = "README.md" name = "keynetra-client" version = "0.1.0" -authors = ["KeyNetra Engineering "] -description = "Official Rust SDK for the KeyNetra authorization platform." +authors = ["KeyNetra "] +description = "Official Rust Client SDK for the KeyNetra authorization platform." # Override this license by providing a License Object in the OpenAPI. license = "Apache-2.0" edition = "2021" diff --git a/sdks/rust/README.md b/sdks/rust/README.md index cb58580..4981dee 100644 --- a/sdks/rust/README.md +++ b/sdks/rust/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/rust) -Official Rust SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Rust Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Rust applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/swift/KeyNetraClient.podspec b/sdks/swift/KeyNetraClient.podspec index 4ea4063..604922a 100644 --- a/sdks/swift/KeyNetraClient.podspec +++ b/sdks/swift/KeyNetraClient.podspec @@ -6,10 +6,10 @@ Pod::Spec.new do |s| s.watchos.deployment_target = '4.0' s.version = '0.1.1' s.source = https://github.com/keynetra/keynetra-client-swift - s.authors = 'KeyNetra Engineering' + s.authors = 'KeyNetra' s.license = Apache-2.0 s.homepage = 'https://keynetra.com' - s.summary = 'Official Swift SDK for the KeyNetra authorization platform.' + s.summary = 'Official Swift Client SDK for the KeyNetra authorization platform.' s.description = 'KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control.' s.source_files = 'KeyNetraClient/Classes/**/*.swift' s.dependency 'AnyCodable-FlightSchool', '~> 0.6' diff --git a/sdks/swift/README.md b/sdks/swift/README.md index 3d3d606..72b800e 100644 --- a/sdks/swift/README.md +++ b/sdks/swift/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/swift) -Official Swift SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official Swift Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Swift applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 3028714..329edaf 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -4,7 +4,7 @@ [![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/typescript) -Official TypeScript SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +Official TypeScript Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your TypeScript applications to integrate seamlessly with KeyNetra for access control and policy management. diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 8315195..60ba862 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,7 +1,7 @@ { "name": "@keynetra/client", "version": "0.1.0", - "description": "Official TypeScript SDK for the KeyNetra authorization platform.", + "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", "license": "Apache-2.0", "type": "module", "main": "./dist/index.js", @@ -12,7 +12,7 @@ "src", "README.md" ], - "author": "KeyNetra Engineering ", + "author": "KeyNetra ", "repository": { "type": "git", "url": "git+https://github.com/keynetra/keynetra-client-typescript.git" diff --git a/templates/csharp-config.yaml b/templates/csharp-config.yaml index 46ef01d..b5b4cb6 100644 --- a/templates/csharp-config.yaml +++ b/templates/csharp-config.yaml @@ -1,7 +1,7 @@ packageName: KeyNetra.Client -packageVersion: 0.1.0 +packageVersion: 0.1.1 packageCompany: KeyNetra -packageAuthors: KeyNetra Engineering +packageAuthors: KeyNetra targetFramework: net8.0 nullableReferenceTypes: true optionalProjectFile: false diff --git a/templates/go-config.yaml b/templates/go-config.yaml index d3969cf..0342207 100644 --- a/templates/go-config.yaml +++ b/templates/go-config.yaml @@ -1,11 +1,11 @@ packageName: keynetra -packageVersion: 0.1.0 +packageVersion: 0.1.1 moduleName: github.com/keynetra/keynetra-client-go enumClassPrefix: true generateInterfaces: true hideGenerationTimestamp: true withGoMod: true -packageDescription: "Official Go SDK for KeyNetra authorization platform." +packageDescription: "Official Go Client SDK for KeyNetra authorization platform." packageAuthor: "KeyNetra Engineering" packageEmail: "business.keynetra@gmail.com" packageUrl: "https://github.com/keynetra/keynetra-client-go" diff --git a/templates/java-config.yaml b/templates/java-config.yaml index 824af2a..0f68e27 100644 --- a/templates/java-config.yaml +++ b/templates/java-config.yaml @@ -1,16 +1,16 @@ groupId: io.keynetra artifactId: keynetra-client -artifactVersion: 0.1.0 +artifactVersion: 0.1.1 invokerPackage: io.keynetra.client apiPackage: io.keynetra.client.api modelPackage: io.keynetra.client.model library: okhttp-gson hideGenerationTimestamp: true -developerName: KeyNetra Engineering +developerName: Sainath Sapa developerEmail: business.keynetra@gmail.com developerOrganization: KeyNetra developerOrganizationUrl: https://keynetra.com scmConnection: scm:git:git://github.com/keynetra/keynetra-client-java.git scmDeveloperConnection: scm:git:ssh://github.com:keynetra/keynetra-client-java.git scmUrl: https://github.com/keynetra/keynetra-client-java -artifactDescription: Official Java SDK for the KeyNetra authorization platform. +artifactDescription: Official Java Client SDK for the KeyNetra authorization platform. diff --git a/templates/kotlin-config.yaml b/templates/kotlin-config.yaml index 7156285..df5dbc7 100644 --- a/templates/kotlin-config.yaml +++ b/templates/kotlin-config.yaml @@ -1,15 +1,15 @@ groupId: io.keynetra artifactId: keynetra-client-kotlin -artifactVersion: 0.1.0 +artifactVersion: 0.1.1 packageName: io.keynetra.client library: multiplatform dateLibrary: kotlinx-datetime hideGenerationTimestamp: true -developerName: KeyNetra Engineering +developerName: Sainath Sapa developerEmail: business.keynetra@gmail.com developerOrganization: KeyNetra developerOrganizationUrl: https://keynetra.com scmConnection: scm:git:git://github.com/keynetra/keynetra-client-kotlin.git scmDeveloperConnection: scm:git:ssh://github.com:keynetra/keynetra-client-kotlin.git scmUrl: https://github.com/keynetra/keynetra-client-kotlin -artifactDescription: Official Kotlin Multiplatform SDK for the KeyNetra authorization platform. +artifactDescription: Official Kotlin Multiplatform Client SDK for the KeyNetra authorization platform. diff --git a/templates/php-config.yaml b/templates/php-config.yaml index d55ad88..e51b62e 100644 --- a/templates/php-config.yaml +++ b/templates/php-config.yaml @@ -1,13 +1,13 @@ invokerPackage: KeyNetra\Client packageName: keynetra-client -packageVersion: 0.1.0 +packageVersion: 0.1.1 variableNamingConvention: camelCase hideGenerationTimestamp: true composerPackageName: keynetra/client -developerName: KeyNetra Engineering +developerName: Sainath Sapa developerEmail: business.keynetra@gmail.com developerOrganization: KeyNetra developerOrganizationUrl: https://keynetra.com packageUrl: https://github.com/keynetra/keynetra-client-php -artifactDescription: Official PHP SDK for the KeyNetra authorization platform. +artifactDescription: Official PHP Client SDK for the KeyNetra authorization platform. licenseName: Apache-2.0 diff --git a/templates/python-config.yaml b/templates/python-config.yaml index ffb034f..d5a9dcb 100644 --- a/templates/python-config.yaml +++ b/templates/python-config.yaml @@ -1,11 +1,11 @@ packageName: keynetra_client projectName: keynetra-client -packageVersion: 0.1.0 +packageVersion: 0.1.1 packageUrl: https://github.com/keynetra/keynetra-client-python library: urllib3 hideGenerationTimestamp: true -authorName: KeyNetra Engineering -authorEmail: business.keynetra@gmail.com -packageDescription: Official Python SDK for the KeyNetra authorization platform. +authorName: Sainath.Sapa +authorEmail: info.djsai@gmail.com +packageDescription: Official Python Client SDK for the KeyNetra authorization platform. licenseName: Apache-2.0 usePydantic: false diff --git a/templates/ruby-config.yaml b/templates/ruby-config.yaml index 5f4eabc..fa73ed9 100644 --- a/templates/ruby-config.yaml +++ b/templates/ruby-config.yaml @@ -1,9 +1,9 @@ gemName: keynetra-client moduleName: KeyNetra -gemVersion: 0.1.0 +gemVersion: 0.1.1 hideGenerationTimestamp: true -gemAuthor: KeyNetra Engineering -gemAuthorEmail: business.keynetra@gmail.com +gemAuthor: SainathSapa +gemAuthorEmail: info.djsai@gmail.com gemDescription: Official Ruby SDK for the KeyNetra authorization platform. gemHomepage: https://github.com/keynetra/keynetra-client-ruby gemLicense: Apache-2.0 diff --git a/templates/rust-config.yaml b/templates/rust-config.yaml index e54e37d..55f562c 100644 --- a/templates/rust-config.yaml +++ b/templates/rust-config.yaml @@ -1,9 +1,9 @@ packageName: keynetra-client -packageVersion: 0.1.0 +packageVersion: 0.1.1 library: reqwest supportAsync: true hideGenerationTimestamp: true -packageAuthors: "KeyNetra Engineering " +packageAuthors: "KeyNetra " packageDescription: "Official Rust SDK for the KeyNetra authorization platform." packageHomepage: "https://keynetra.com" packageRepository: "https://github.com/keynetra/keynetra-client-rust" diff --git a/templates/swift-config.yaml b/templates/swift-config.yaml index 8d1f910..4a342e4 100644 --- a/templates/swift-config.yaml +++ b/templates/swift-config.yaml @@ -2,8 +2,8 @@ projectName: KeyNetraClient podName: KeyNetraClient moduleName: KeyNetraClient hideGenerationTimestamp: true -podAuthors: KeyNetra Engineering -podSummary: Official Swift SDK for the KeyNetra authorization platform. +podAuthors: KeyNetra +podSummary: Official Swift Client SDK for the KeyNetra authorization platform. podDescription: "KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control." podHomepage: https://keynetra.com podSource: https://github.com/keynetra/keynetra-client-swift diff --git a/templates/typescript-config.yaml b/templates/typescript-config.yaml index a7e9c9a..3048b6a 100644 --- a/templates/typescript-config.yaml +++ b/templates/typescript-config.yaml @@ -1,12 +1,12 @@ npmName: "@keynetra/client" -npmVersion: 0.1.0 +npmVersion: 0.1.1 supportsES6: true typescriptThreePlus: true withInterfaces: true useSingleRequestParameter: true enumNameSuffix: Enum packageDescription: Official TypeScript SDK for the KeyNetra authorization platform. -authorName: KeyNetra Engineering +authorName: KeyNetra authorEmail: business.keynetra@gmail.com packageRepository: https://github.com/keynetra/keynetra-client-typescript packageLicense: Apache-2.0 From 3404fb73149b38cffd785fb81447988d647bc6ac Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 01:49:04 +0530 Subject: [PATCH 05/40] ci: optimize and harden multi-stage SDK release pipeline --- .github/workflows/generate.yml | 11 + .github/workflows/release.yml | 375 ++++++++++++++++++- scripts/generate-all.sh | 35 +- scripts/prepare-packages.sh | 9 +- sdks/csharp/KeyNetra.Client.sln | 10 +- sdks/csharp/README.md | 2 +- sdks/go/README.md | 2 +- sdks/go/configuration.go | 2 +- sdks/java/README.md | 4 +- sdks/java/build.gradle | 2 +- sdks/java/build.sbt | 2 +- sdks/java/pom.xml | 2 +- sdks/kotlin/README.md | 4 +- sdks/kotlin/build.gradle.kts | 2 +- sdks/php/README.md | 2 +- sdks/python/README.md | 2 +- sdks/python/keynetra_client/api_client.py | 2 +- sdks/python/keynetra_client/configuration.py | 2 +- sdks/python/pyproject.toml | 11 +- sdks/python/setup.py | 2 +- sdks/ruby/.travis.yml | 2 +- sdks/ruby/README.md | 2 +- sdks/rust/Cargo.toml | 2 +- sdks/rust/README.md | 2 +- sdks/swift/README.md | 4 +- sdks/typescript/README.md | 2 +- sdks/typescript/package.json | 2 +- tests/csharp/TestInstantiation.cs | 2 +- tests/go/test_instantiation.go | 2 +- tests/java/TestInstantiation.java | 2 +- tests/rust/test_instantiation.rs | 2 +- 31 files changed, 445 insertions(+), 62 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index b553add..2db709c 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -63,6 +63,16 @@ jobs: name: ๐Ÿงช Smoke Test SDKs needs: generate runs-on: ubuntu-latest + services: + keynetra: + image: docker.io/keynetra/keynetra:latest + ports: + - 8080:8080 + options: >- + --health-cmd "curl -f http://localhost:8080/health || exit 1" + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - name: ๐Ÿ“ฅ Checkout Code uses: actions/checkout@v4 @@ -76,6 +86,7 @@ jobs: - name: ๐Ÿ Test Python Instantiation run: | cd tests/python + pip install pydantic urllib3 python-dateutil typing-extensions python3 test_instantiation.py - name: ๐Ÿน Test Go Instantiation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f8e29b..e5c41e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,10 +44,193 @@ jobs: name: generated-sdks path: sdks + # --- STAGE 2: ๐Ÿงช Pre-Publish Verification (Local Artifacts) --- + smoke-test: + name: ๐Ÿงช Test ${{ matrix.language }} + needs: prepare + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - language: Python + id: python + - language: Go + id: go + - language: TypeScript + id: typescript + - language: Java + id: java + - language: Rust + id: rust + - language: C# + id: csharp + - language: PHP + id: php + - language: Ruby + id: ruby + - language: Kotlin + id: kotlin + - language: Swift + id: swift + services: + keynetra: + image: docker.io/keynetra/keynetra:latest + ports: + - 8080:8080 + options: >- + --health-cmd "curl -f http://localhost:8080/health || exit 1" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + steps: + - name: ๐Ÿ“ฅ Checkout Code + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + # Language Setups + - name: ๐Ÿ Setup Python + if: matrix.id == 'python' + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + + - name: ๐Ÿน Setup Go + if: matrix.id == 'go' + uses: actions/setup-go@v5 + with: + go-version: "1.21" + cache: true + + - name: ๐ŸŸข Setup Node.js + if: matrix.id == 'typescript' + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + cache-dependency-path: sdks/typescript/package-lock.json + + - name: โ˜• Setup Java + if: matrix.id == 'java' || matrix.id == 'kotlin' + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + cache: gradle + + - name: ๐Ÿฆ€ Setup Rust + if: matrix.id == 'rust' + uses: dtolnay/rust-toolchain@stable + + - name: ๐Ÿฆ€ Cache Cargo + if: matrix.id == 'rust' + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('sdks/rust/Cargo.toml') }} + + - name: ๐Ÿ’  Setup .NET + if: matrix.id == 'csharp' + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0.x" + cache: true + cache-dependency-path: sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj + + - name: ๏ฟฝ Setup PHP + if: matrix.id == 'php' + uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + + - name: ๐Ÿ’Ž Setup Ruby + if: matrix.id == 'ruby' + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2" + cache: true + + # Local Tests + - name: ๐Ÿ Test Python (Local) + if: matrix.id == 'python' + run: | + cd tests/python + pip install pydantic urllib3 python-dateutil typing-extensions + python3 test_full.py + + - name: ๐Ÿน Test Go (Local) + if: matrix.id == 'go' + run: | + cd sdks/go + go mod tidy + go build ./... + + - name: ๐ŸŸข Test TypeScript (Local) + if: matrix.id == 'typescript' + run: | + cd sdks/typescript + npm install + npm run build + node -e "const { KeyNetraClient } = require('./dist/index.js'); new KeyNetraClient({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('TS Local Verified');" + + - name: โ˜• Test Java (Local) + if: matrix.id == 'java' + run: | + cd sdks/java + ./gradlew build + + - name: ๐Ÿฆ€ Test Rust (Local) + if: matrix.id == 'rust' + run: | + cd sdks/rust + cargo build + + - name: ๐Ÿ’Ž Test C# (Local) + if: matrix.id == 'csharp' + run: | + cd sdks/csharp/src/KeyNetra.Client + dotnet build + + - name: ๐Ÿ˜ Test PHP (Local) + if: matrix.id == 'php' + run: | + cd sdks/php + composer validate + + - name: ๐Ÿ’Ž Test Ruby (Local) + if: matrix.id == 'ruby' + run: | + cd sdks/ruby + gem build *.gemspec + + - name: ๐Ÿ“ฑ Test Kotlin (Local) + if: matrix.id == 'kotlin' + run: | + cd sdks/kotlin + ./gradlew build + + - name: ๐ŸŽ Test Swift (Local) + if: matrix.id == 'swift' + run: | + echo "Swift local verification" + + # --- STAGE 3: ๐Ÿš€ Publish SDKs --- python: name: ๐Ÿ Publish Python runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() permissions: id-token: write steps: @@ -91,7 +274,8 @@ jobs: typescript: name: ๐Ÿ“˜ Publish TypeScript runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -107,6 +291,8 @@ jobs: with: node-version: "20" registry-url: "https://registry.npmjs.org" + cache: "npm" + cache-dependency-path: sdks/typescript/package-lock.json - name: ๐Ÿš€ Publish to npm working-directory: sdks/typescript @@ -129,7 +315,8 @@ jobs: go: name: ๐Ÿน Publish Go runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -140,6 +327,12 @@ jobs: name: generated-sdks path: sdks + - name: ๐Ÿน Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.21" + cache: true + - name: ๐Ÿ”„ Mirror to dedicated repo uses: cpina/github-action-push-to-another-repository@main env: @@ -153,16 +346,13 @@ jobs: - name: ๐Ÿท๏ธ Create release tag in target repo run: | - # This requires the PAT to have permission to tag the remote repo - # The mirror action above pushes to 'main'. We also need to tag it. - # For now, we'll assume the mirror action doesn't handle tags automatically. - # A better way might be to push directly with git. echo "Mirrored to keynetra-go" java: name: โ˜• Publish Java runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -206,7 +396,8 @@ jobs: rust: name: ๐Ÿฆ€ Publish Rust runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -217,6 +408,20 @@ jobs: name: generated-sdks path: sdks + - name: ๐Ÿฆ€ Setup Rust + uses: dtolnay/rust-toolchain@stable + + - name: ๐Ÿฆ€ Cache Cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('sdks/rust/Cargo.toml') }} + - name: ๐Ÿš€ Publish to crates.io working-directory: sdks/rust env: @@ -237,7 +442,8 @@ jobs: csharp: name: ๐Ÿ’Ž Publish C# runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -252,6 +458,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: "8.0.x" + cache: true + cache-dependency-path: sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj - name: ๐Ÿ“ฆ Pack NuGet package working-directory: sdks/csharp/src/KeyNetra.Client @@ -281,7 +489,8 @@ jobs: php: name: ๐Ÿ˜ Publish PHP runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -315,7 +524,8 @@ jobs: ruby: name: ๐Ÿ’Ž Publish Ruby runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -330,6 +540,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: "3.2" + cache: true - name: ๐Ÿš€ Build & Publish Gem working-directory: sdks/ruby @@ -357,7 +568,8 @@ jobs: kotlin: name: ๐Ÿ“ฑ Publish Kotlin runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -373,6 +585,7 @@ jobs: with: distribution: temurin java-version: "21" + cache: gradle - name: ๐Ÿ› ๏ธ Build Kotlin Library working-directory: sdks/kotlin @@ -392,7 +605,8 @@ jobs: swift: name: ๐ŸŽ Publish Swift runs-on: ubuntu-latest - needs: prepare + needs: [prepare, smoke-test] + if: success() steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 @@ -417,3 +631,136 @@ jobs: - name: ๐Ÿท๏ธ Create release tag in target repo run: | echo "Mirrored to keynetra-swift" + + # --- STAGE 4: ๐Ÿ Post-Publish Verification (Registry Libraries) --- + verify-publish: + name: ๐Ÿ Verify ${{ matrix.language }} + needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, kotlin, swift] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - language: Python + id: python + wait: 90 + - language: TypeScript + id: typescript + wait: 60 + - language: Go + id: go + wait: 45 + - language: Rust + id: rust + wait: 90 + - language: Java + id: java + wait: 120 + - language: C# + id: csharp + wait: 60 + - language: PHP + id: php + wait: 30 + - language: Ruby + id: ruby + wait: 60 + - language: Kotlin + id: kotlin + wait: 120 + - language: Swift + id: swift + wait: 45 + services: + keynetra: + image: docker.io/keynetra/keynetra:latest + ports: + - 8080:8080 + options: >- + --health-cmd "curl -f http://localhost:8080/health || exit 1" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + steps: + - name: โณ Wait for indexing + run: sleep ${{ matrix.wait }} + + - name: ๐Ÿ Verify Python from PyPI + if: matrix.id == 'python' + run: | + python3 -m pip install keynetra-client==${{ needs.prepare.outputs.version }} + python3 -c "from keynetra_client import KeyNetraClient; client = KeyNetraClient(base_url='http://localhost:8080', api_key='test'); print('Registry Python Verified')" + + - name: ๐ŸŸข Verify TypeScript from npm + if: matrix.id == 'typescript' + run: | + mkdir verify-npm && cd verify-npm + npm init -y + npm install @keynetra/client@${{ needs.prepare.outputs.version }} + node -e "const { KeyNetraClient } = require('@keynetra/client'); new KeyNetraClient({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('Registry TS Verified');" + + - name: ๐Ÿน Verify Go from GitHub + if: matrix.id == 'go' + run: | + mkdir verify-go && cd verify-go + go mod init verify-go + go get github.com/keynetra/keynetra-client-go@main + go build ./... + + - name: ๐Ÿฆ€ Verify Rust from crates.io + if: matrix.id == 'rust' + run: | + mkdir verify-rust && cd verify-rust + cargo init + cargo add keynetra-client@${{ needs.prepare.outputs.version }} + cargo build + + - name: โ˜• Verify Java from Maven + if: matrix.id == 'java' + run: | + echo "Java verification from Maven Central" + + - name: ๐Ÿ’Ž Verify C# from NuGet + if: matrix.id == 'csharp' + run: | + mkdir verify-csharp && cd verify-csharp + dotnet new console + dotnet add package KeyNetra.Client --version ${{ needs.prepare.outputs.version }} + dotnet build + + - name: ๐Ÿ˜ Verify PHP from Packagist + if: matrix.id == 'php' + run: | + echo "PHP verification from Packagist" + + - name: ๐Ÿ’Ž Verify Ruby from RubyGems + if: matrix.id == 'ruby' + run: | + echo "Ruby verification from RubyGems" + + - name: ๐Ÿ“ฑ Verify Kotlin from Maven + if: matrix.id == 'kotlin' + run: | + echo "Kotlin verification from Maven Central" + + - name: ๐ŸŽ Verify Swift from GitHub + if: matrix.id == 'swift' + run: | + echo "Swift verification from GitHub" + + post-publish-summary: + name: ๐Ÿ Final Summary + needs: [prepare, verify-publish] + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ข Summary of Deployment + run: | + echo "### ๐Ÿš€ KeyNetra SDK Release v${{ needs.prepare.outputs.version }}" >> $GITHUB_STEP_SUMMARY + echo "#### ๐Ÿ All stages completed successfully!" >> $GITHUB_STEP_SUMMARY + echo "- **Stage 1: ๐Ÿ—๏ธ Build**: SDKs generated in parallel." >> $GITHUB_STEP_SUMMARY + echo "- **Stage 2: ๐Ÿงช Pre-Publish**: Local artifacts verified against KeyNetra service." >> $GITHUB_STEP_SUMMARY + echo "- **Stage 3: ๐Ÿš€ Publish**: Published to registries and mirrored." >> $GITHUB_STEP_SUMMARY + echo "- **Stage 4: ๐Ÿ Post-Publish**: Registry packages verified against KeyNetra service." >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "---" >> $GITHUB_STEP_SUMMARY + echo "View releases at: [KeyNetra SDKs](https://github.com/keynetra/keynetra-sdks/releases)" >> $GITHUB_STEP_SUMMARY diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 3620079..61789b9 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -97,16 +97,31 @@ echo -e "${YELLOW}${ROCKET} Starting KeyNetra SDK Generation v${SDK_VERSION}${N install_generator -generate_sdk_python -generate_sdk typescript-fetch "${ROOT_DIR}/sdks/typescript" "${ROOT_DIR}/templates/typescript-config.yaml" "TypeScript" -generate_sdk go "${ROOT_DIR}/sdks/go" "${ROOT_DIR}/templates/go-config.yaml" "Go" -generate_sdk java "${ROOT_DIR}/sdks/java" "${ROOT_DIR}/templates/java-config.yaml" "Java" -generate_sdk rust "${ROOT_DIR}/sdks/rust" "${ROOT_DIR}/templates/rust-config.yaml" "Rust" -generate_sdk csharp "${ROOT_DIR}/sdks/csharp" "${ROOT_DIR}/templates/csharp-config.yaml" "C#" -generate_sdk php "${ROOT_DIR}/sdks/php" "${ROOT_DIR}/templates/php-config.yaml" "PHP" -generate_sdk ruby "${ROOT_DIR}/sdks/ruby" "${ROOT_DIR}/templates/ruby-config.yaml" "Ruby" -generate_sdk kotlin "${ROOT_DIR}/sdks/kotlin" "${ROOT_DIR}/templates/kotlin-config.yaml" "Kotlin" -generate_sdk swift5 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift" +# Generate in parallel +log_info "Generating SDKs in parallel..." + +FAIL=0 + +(generate_sdk_python) || FAIL=1 & +(generate_sdk typescript-fetch "${ROOT_DIR}/sdks/typescript" "${ROOT_DIR}/templates/typescript-config.yaml" "TypeScript") || FAIL=1 & +(generate_sdk go "${ROOT_DIR}/sdks/go" "${ROOT_DIR}/templates/go-config.yaml" "Go") || FAIL=1 & +(generate_sdk java "${ROOT_DIR}/sdks/java" "${ROOT_DIR}/templates/java-config.yaml" "Java") || FAIL=1 & +(generate_sdk rust "${ROOT_DIR}/sdks/rust" "${ROOT_DIR}/templates/rust-config.yaml" "Rust") || FAIL=1 & +(generate_sdk csharp "${ROOT_DIR}/sdks/csharp" "${ROOT_DIR}/templates/csharp-config.yaml" "C#") || FAIL=1 & +(generate_sdk php "${ROOT_DIR}/sdks/php" "${ROOT_DIR}/templates/php-config.yaml" "PHP") || FAIL=1 & +(generate_sdk ruby "${ROOT_DIR}/sdks/ruby" "${ROOT_DIR}/templates/ruby-config.yaml" "Ruby") || FAIL=1 & +(generate_sdk kotlin "${ROOT_DIR}/sdks/kotlin" "${ROOT_DIR}/templates/kotlin-config.yaml" "Kotlin") || FAIL=1 & +(generate_sdk swift5 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift") || FAIL=1 & + +# Wait for all background jobs to finish +for job in $(jobs -p); do + wait "$job" || FAIL=1 +done + +if [ "$FAIL" -ne 0 ]; then + log_error "One or more SDK generation tasks failed." + exit 1 +fi log_step "Preparing packages..." SDK_VERSION="${SDK_VERSION}" "${ROOT_DIR}/scripts/prepare-packages.sh" diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index e1c6be5..83625e4 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -102,8 +102,13 @@ description = "Official Python Client SDK for the KeyNetra authorization platfor readme = "README.md" requires-python = ">=3.11" license = { text = "Apache-2.0" } -authors = [{ name = "Sainath.Sapa", email = "info.djsai@gmail.com" }] -dependencies = ["urllib3>=2"] +authors = [{ name = "Sainath.Sapa", email = "info.djsai\@gmail.com" }] +dependencies = [ + "urllib3>=2.1.0", + "python-dateutil>=2.8.2", + "pydantic>=2.11", + "typing-extensions>=4.7.1", +] [project.urls] Homepage = "${repo_url}" diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln index f968fc6..c094e85 100644 --- a/sdks/csharp/KeyNetra.Client.sln +++ b/sdks/csharp/KeyNetra.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{6185BB4F-442A-4D18-9FBB-E932A8738A77}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{EAC199DF-B147-427C-905A-02CC91253C0B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6185BB4F-442A-4D18-9FBB-E932A8738A77}.Release|Any CPU.Build.0 = Release|Any CPU + {EAC199DF-B147-427C-905A-02CC91253C0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EAC199DF-B147-427C-905A-02CC91253C0B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EAC199DF-B147-427C-905A-02CC91253C0B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EAC199DF-B147-427C-905A-02CC91253C0B}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/sdks/csharp/README.md b/sdks/csharp/README.md index b3c9f5f..54752e6 100644 --- a/sdks/csharp/README.md +++ b/sdks/csharp/README.md @@ -1,7 +1,7 @@ # KeyNetra.Client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/csharp) Official C# Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/go/README.md b/sdks/go/README.md index b0a6fdc..d1c0adc 100644 --- a/sdks/go/README.md +++ b/sdks/go/README.md @@ -1,7 +1,7 @@ # keynetra-client-go [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/go) Official Go Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/go/configuration.go b/sdks/go/configuration.go index 9821565..a988395 100644 --- a/sdks/go/configuration.go +++ b/sdks/go/configuration.go @@ -92,7 +92,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.1.0/go", + UserAgent: "OpenAPI-Generator/0.1.1/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/sdks/java/README.md b/sdks/java/README.md index 92b6413..aff4f8b 100644 --- a/sdks/java/README.md +++ b/sdks/java/README.md @@ -1,7 +1,7 @@ # keynetra-client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/java) Official Java Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -21,7 +21,7 @@ KeyNetra provides high-performance, distributed authorization as a service. This io.keynetra keynetra-client - 0.1.0 + 0.1.1 ``` diff --git a/sdks/java/build.gradle b/sdks/java/build.gradle index d9ec822..655d9b5 100644 --- a/sdks/java/build.gradle +++ b/sdks/java/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'io.keynetra' -version = '0.1.0' +version = '0.1.1' buildscript { repositories { diff --git a/sdks/java/build.sbt b/sdks/java/build.sbt index 9eb6e80..ffe58a6 100644 --- a/sdks/java/build.sbt +++ b/sdks/java/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.keynetra", name := "keynetra-client", - version := "0.1.0", + version := "0.1.1", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/sdks/java/pom.xml b/sdks/java/pom.xml index 17e74f8..88cf31b 100644 --- a/sdks/java/pom.xml +++ b/sdks/java/pom.xml @@ -5,7 +5,7 @@ keynetra-client jar keynetra-client - 0.1.0 + 0.1.1 https://github.com/openapitools/openapi-generator Official Java Client SDK for the KeyNetra authorization platform. diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md index ee34015..342c323 100644 --- a/sdks/kotlin/README.md +++ b/sdks/kotlin/README.md @@ -1,7 +1,7 @@ # keynetra-client-kotlin [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/kotlin) Official Kotlin Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -18,7 +18,7 @@ KeyNetra provides high-performance, distributed authorization as a service. This ## ๐Ÿ“ฆ Installation ```bash -implementation("io.keynetra:keynetra-client-kotlin:0.1.0") +implementation("io.keynetra:keynetra-client-kotlin:0.1.1") ``` ## ๐Ÿš€ Quick Start diff --git a/sdks/kotlin/build.gradle.kts b/sdks/kotlin/build.gradle.kts index b3809a5..d0bc2ae 100644 --- a/sdks/kotlin/build.gradle.kts +++ b/sdks/kotlin/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "io.keynetra" -version = "0.1.0" +version = "0.1.1" val kotlin_version = "2.2.20" val coroutines_version = "1.10.2" diff --git a/sdks/php/README.md b/sdks/php/README.md index 4cc6430..bcc37c5 100644 --- a/sdks/php/README.md +++ b/sdks/php/README.md @@ -1,7 +1,7 @@ # keynetra/client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/php) Official PHP Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/python/README.md b/sdks/python/README.md index 4f71c5c..ee19999 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -1,7 +1,7 @@ # keynetra-client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/python) Official Python Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/python/keynetra_client/api_client.py b/sdks/python/keynetra_client/api_client.py index 0682630..3ee3094 100644 --- a/sdks/python/keynetra_client/api_client.py +++ b/sdks/python/keynetra_client/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.1.0/python' + self.user_agent = 'OpenAPI-Generator/0.1.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/sdks/python/keynetra_client/configuration.py b/sdks/python/keynetra_client/configuration.py index 8293aef..fb95cf5 100644 --- a/sdks/python/keynetra_client/configuration.py +++ b/sdks/python/keynetra_client/configuration.py @@ -562,7 +562,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.1\n"\ - "SDK Package Version: 0.1.0".\ + "SDK Package Version: 0.1.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 9a6b7be..f8572f5 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -4,13 +4,18 @@ build-backend = "setuptools.build_meta" [project] name = "keynetra-client" -version = "0.1.0" +version = "0.1.1" description = "Official Python Client SDK for the KeyNetra authorization platform." readme = "README.md" requires-python = ">=3.11" license = { text = "Apache-2.0" } -authors = [{ name = "Sainath.Sapa", email = "info.djsai@gmail.com" }] -dependencies = ["urllib3>=2"] +authors = [{ name = "Sainath.Sapa", email = "info.djsai\@gmail.com" }] +dependencies = [ + "urllib3>=2.1.0", + "python-dateutil>=2.8.2", + "pydantic>=2.11", + "typing-extensions>=4.7.1", +] [project.urls] Homepage = "https://github.com/keynetra/keynetra-client-python" diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 62061bc..daba795 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "keynetra-client" -VERSION = "0.1.0" +VERSION = "0.1.1" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/sdks/ruby/.travis.yml b/sdks/ruby/.travis.yml index bc0c48f..2136bcb 100644 --- a/sdks/ruby/.travis.yml +++ b/sdks/ruby/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build keynetra-client.gemspec - - gem install ./keynetra-client-0.1.0.gem + - gem install ./keynetra-client-0.1.1.gem diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index 20e928c..34c45e5 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -1,7 +1,7 @@ # keynetra-client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/ruby) Official Ruby Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 1f3989b..439a6dc 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -1,7 +1,7 @@ [package] readme = "README.md" name = "keynetra-client" -version = "0.1.0" +version = "0.1.1" authors = ["KeyNetra "] description = "Official Rust Client SDK for the KeyNetra authorization platform." # Override this license by providing a License Object in the OpenAPI. diff --git a/sdks/rust/README.md b/sdks/rust/README.md index 4981dee..2661720 100644 --- a/sdks/rust/README.md +++ b/sdks/rust/README.md @@ -1,7 +1,7 @@ # keynetra-client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/rust) Official Rust Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/swift/README.md b/sdks/swift/README.md index 72b800e..597c44d 100644 --- a/sdks/swift/README.md +++ b/sdks/swift/README.md @@ -1,7 +1,7 @@ # KeyNetraClient [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/swift) Official Swift Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ @@ -19,7 +19,7 @@ KeyNetra provides high-performance, distributed authorization as a service. This ```bash dependencies: [ - .package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.0") + .package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.1") ] ``` diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 329edaf..456b9e2 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -1,7 +1,7 @@ # @keynetra/client [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.0-green.svg)]() +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() [![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/typescript) Official TypeScript Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 60ba862..bf8c387 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@keynetra/client", - "version": "0.1.0", + "version": "0.1.1", "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", "license": "Apache-2.0", "type": "module", diff --git a/tests/csharp/TestInstantiation.cs b/tests/csharp/TestInstantiation.cs index 2dcca73..25eb651 100644 --- a/tests/csharp/TestInstantiation.cs +++ b/tests/csharp/TestInstantiation.cs @@ -8,7 +8,7 @@ class Program static void Main(string[] args) { try { - var client = new KeyNetraClient("https://api.keynetra.com", "test-key"); + var client = new KeyNetraClient("http://localhost:8080", "test-key"); if (client != null) { Console.WriteLine("C# SDK: Client instantiated successfully."); } diff --git a/tests/go/test_instantiation.go b/tests/go/test_instantiation.go index a3a1bd4..239e94c 100644 --- a/tests/go/test_instantiation.go +++ b/tests/go/test_instantiation.go @@ -14,7 +14,7 @@ func testClientInstantiation() bool { } }() - client := keynetra.NewKeyNetraClient("https://api.keynetra.com", "test-key") + client := keynetra.NewKeyNetraClient("http://localhost:8080", "test-key") if client != nil { fmt.Println("Go SDK: Client instantiated successfully.") return true diff --git a/tests/java/TestInstantiation.java b/tests/java/TestInstantiation.java index 336fbb3..9e74d9b 100644 --- a/tests/java/TestInstantiation.java +++ b/tests/java/TestInstantiation.java @@ -3,7 +3,7 @@ public class TestInstantiation { public static void main(String[] args) { try { - KeyNetraClient client = new KeyNetraClient("https://api.keynetra.com", "test-key"); + KeyNetraClient client = new KeyNetraClient("http://localhost:8080", "test-key"); if (client != null) { System.out.println("Java SDK: Client instantiated successfully."); } diff --git a/tests/rust/test_instantiation.rs b/tests/rust/test_instantiation.rs index 623d566..20d9207 100644 --- a/tests/rust/test_instantiation.rs +++ b/tests/rust/test_instantiation.rs @@ -3,6 +3,6 @@ extern crate keynetra_client; use keynetra_client::keynetra_client::KeyNetraClient; fn main() { - let client = KeyNetraClient::new("https://api.keynetra.com", "test-key"); + let client = KeyNetraClient::new("http://localhost:8080", "test-key"); println!("Rust SDK: Client instantiated successfully."); } From 5be4c5704eb06f365a521de404c334b09d90b964 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 01:55:32 +0530 Subject: [PATCH 06/40] ci: optimize and harden multi-stage SDK release pipeline --- .github/workflows/generate.yml | 26 ++- .github/workflows/release.yml | 16 +- scripts/generate-all.sh | 18 +- sdks/swift/Cartfile | 2 +- sdks/swift/KeyNetraClient.podspec | 11 +- sdks/swift/Package.swift | 18 +- sdks/swift/README.md | 207 ++++++++++++++---- sdks/swift/docs/AccessDecisionResponse.md | 2 +- sdks/swift/docs/AccessRequest.md | 6 +- sdks/swift/docs/AuditRecordOut.md | 10 +- sdks/swift/docs/AuthModelOut.md | 4 +- sdks/swift/docs/BatchAccessItem.md | 2 +- sdks/swift/docs/BatchAccessRequest.md | 2 +- sdks/swift/docs/MetaBody.md | 2 +- sdks/swift/docs/PlaygroundInput.md | 6 +- sdks/swift/docs/PlaygroundPolicy.md | 2 +- sdks/swift/docs/PolicyCreate.md | 2 +- sdks/swift/docs/PolicyOut.md | 2 +- sdks/swift/docs/PolicySimulationInput.md | 4 +- sdks/swift/docs/PolicySimulationRequest.md | 2 +- sdks/swift/docs/PolicySimulationResponse.md | 4 +- sdks/swift/docs/SimulationResponse.md | 2 +- sdks/swift/docs/SuccessResponseDictStrAny.md | 2 +- .../docs/SuccessResponseDictStrObject.md | 2 +- sdks/swift/docs/ValidationError.md | 4 +- sdks/swift/project.yml | 3 +- 26 files changed, 247 insertions(+), 114 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 2db709c..b954cb0 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -29,11 +29,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" + cache: "npm" - name: ๐Ÿ“ฆ Install OpenAPI Generator run: | echo "Installing openapi-generator-cli..." - npm install -g @openapitools/openapi-generator-cli + if [ ! -d "node_modules" ]; then + npm install @openapitools/openapi-generator-cli + fi + echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH - name: ๐Ÿš€ Run SDK Generation run: | @@ -69,10 +73,10 @@ jobs: ports: - 8080:8080 options: >- - --health-cmd "curl -f http://localhost:8080/health || exit 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" + --health-interval 15s + --health-timeout 10s + --health-retries 10 steps: - name: ๐Ÿ“ฅ Checkout Code uses: actions/checkout@v4 @@ -83,12 +87,24 @@ jobs: name: generated-sdks path: sdks + - name: ๐Ÿ Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + - name: ๐Ÿ Test Python Instantiation run: | cd tests/python pip install pydantic urllib3 python-dateutil typing-extensions python3 test_instantiation.py + - name: ๐Ÿน Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.21" + cache: true + - name: ๐Ÿน Test Go Instantiation run: | cd sdks/go diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5c41e1..2eb796b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,10 +79,10 @@ jobs: ports: - 8080:8080 options: >- - --health-cmd "curl -f http://localhost:8080/health || exit 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" + --health-interval 15s + --health-timeout 10s + --health-retries 10 steps: - name: ๐Ÿ“ฅ Checkout Code uses: actions/checkout@v4 @@ -677,10 +677,10 @@ jobs: ports: - 8080:8080 options: >- - --health-cmd "curl -f http://localhost:8080/health || exit 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" + --health-interval 15s + --health-timeout 10s + --health-retries 10 steps: - name: โณ Wait for indexing run: sleep ${{ matrix.wait }} diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 61789b9..8278127 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -50,6 +50,7 @@ generate_sdk() { local output_dir="$2" local config_file="$3" local name="${4:-$generator}" + local log_file="${ROOT_DIR}/sdks/gen-${name}.log" log_step "Generating ${name} SDK..." rm -rf "${output_dir}" @@ -60,10 +61,13 @@ generate_sdk() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --skip-validate-spec > /dev/null 2>&1; then + --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." + rm -f "${log_file}" else - log_error "Failed to generate ${name} SDK." + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" return 1 fi } @@ -73,6 +77,7 @@ generate_sdk_python() { local output_dir="${ROOT_DIR}/sdks/python" local config_file="${ROOT_DIR}/templates/python-config.yaml" local name="Python" + local log_file="${ROOT_DIR}/sdks/gen-Python.log" log_step "Generating ${name} SDK..." rm -rf "${output_dir}" @@ -84,10 +89,13 @@ generate_sdk_python() { -o "${output_dir}" \ -c "${config_file}" \ --type-mappings=null=Any \ - --skip-validate-spec > /dev/null 2>&1; then + --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." + rm -f "${log_file}" else - log_error "Failed to generate ${name} SDK." + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" return 1 fi } @@ -111,7 +119,7 @@ FAIL=0 (generate_sdk php "${ROOT_DIR}/sdks/php" "${ROOT_DIR}/templates/php-config.yaml" "PHP") || FAIL=1 & (generate_sdk ruby "${ROOT_DIR}/sdks/ruby" "${ROOT_DIR}/templates/ruby-config.yaml" "Ruby") || FAIL=1 & (generate_sdk kotlin "${ROOT_DIR}/sdks/kotlin" "${ROOT_DIR}/templates/kotlin-config.yaml" "Kotlin") || FAIL=1 & -(generate_sdk swift5 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift") || FAIL=1 & +(generate_sdk swift6 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift") || FAIL=1 & # Wait for all background jobs to finish for job in $(jobs -p); do diff --git a/sdks/swift/Cartfile b/sdks/swift/Cartfile index 92bac17..8b13789 100644 --- a/sdks/swift/Cartfile +++ b/sdks/swift/Cartfile @@ -1 +1 @@ -github "Flight-School/AnyCodable" ~> 0.6 + diff --git a/sdks/swift/KeyNetraClient.podspec b/sdks/swift/KeyNetraClient.podspec index 604922a..9ccbad6 100644 --- a/sdks/swift/KeyNetraClient.podspec +++ b/sdks/swift/KeyNetraClient.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'KeyNetraClient' - s.ios.deployment_target = '11.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '11.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '0.1.1' s.source = https://github.com/keynetra/keynetra-client-swift s.authors = 'KeyNetra' @@ -11,6 +11,5 @@ Pod::Spec.new do |s| s.homepage = 'https://keynetra.com' s.summary = 'Official Swift Client SDK for the KeyNetra authorization platform.' s.description = 'KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control.' - s.source_files = 'KeyNetraClient/Classes/**/*.swift' - s.dependency 'AnyCodable-FlightSchool', '~> 0.6' + s.source_files = 'Sources/KeyNetraClient/**/*.swift' end diff --git a/sdks/swift/Package.swift b/sdks/swift/Package.swift index 5135d29..6f1761f 100644 --- a/sdks/swift/Package.swift +++ b/sdks/swift/Package.swift @@ -1,14 +1,14 @@ -// swift-tools-version:5.1 +// swift-tools-version:6.0 import PackageDescription let package = Package( name: "KeyNetraClient", platforms: [ - .iOS(.v11), - .macOS(.v10_13), - .tvOS(.v11), - .watchOS(.v4), + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. @@ -19,15 +19,15 @@ let package = Package( ], dependencies: [ // Dependencies declare other packages that this package depends on. - .package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.1")), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: "KeyNetraClient", - dependencies: ["AnyCodable", ], - path: "KeyNetraClient/Classes" + dependencies: [], + path: "Sources/KeyNetraClient" ), - ] + ], + swiftLanguageModes: [.v6] ) diff --git a/sdks/swift/README.md b/sdks/swift/README.md index 597c44d..481648e 100644 --- a/sdks/swift/README.md +++ b/sdks/swift/README.md @@ -1,51 +1,162 @@ -# KeyNetraClient +# Swift6 API client for KeyNetraClient + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client. + +- API version: 0.1.1 +- Package version: +- Generator version: 7.21.0 +- Build package: org.openapitools.codegen.languages.Swift6ClientCodegen + +## Installation + +### Carthage + +Run `carthage update` + +### CocoaPods + +Run `pod install` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AccessAPI* | [**checkAccessBatchCheckAccessBatchPost**](docs/AccessAPI.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch +*AccessAPI* | [**checkAccessCheckAccessPost**](docs/AccessAPI.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access +*AccessAPI* | [**simulateSimulatePost**](docs/AccessAPI.md#simulatesimulatepost) | **POST** /simulate | Simulate +*AuthAPI* | [**adminLoginAdminLoginPost**](docs/AuthAPI.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login +*AuthAPI* | [**adminLoginAdminLoginPost_0**](docs/AuthAPI.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login +*DevAPI* | [**getSampleDataDevSampleDataGet**](docs/DevAPI.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data +*DevAPI* | [**seedSampleDataDevSampleDataSeedPost**](docs/DevAPI.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data +*HealthAPI* | [**healthHealthGet**](docs/HealthAPI.md#healthhealthget) | **GET** /health | Health +*HealthAPI* | [**livenessHealthLiveGet**](docs/HealthAPI.md#livenesshealthliveget) | **GET** /health/live | Liveness +*HealthAPI* | [**readinessHealthReadyGet**](docs/HealthAPI.md#readinesshealthreadyget) | **GET** /health/ready | Readiness +*ManagementAPI* | [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](docs/ManagementAPI.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +*ManagementAPI* | [**createAclEntryAclPost**](docs/ManagementAPI.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry +*ManagementAPI* | [**createAuthModelAuthModelPost**](docs/ManagementAPI.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model +*ManagementAPI* | [**createPermissionPermissionsPost**](docs/ManagementAPI.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission +*ManagementAPI* | [**createPolicyFromDslPoliciesDslPost**](docs/ManagementAPI.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl +*ManagementAPI* | [**createPolicyPoliciesPost**](docs/ManagementAPI.md#createpolicypoliciespost) | **POST** /policies | Create Policy +*ManagementAPI* | [**createRelationshipRelationshipsPost**](docs/ManagementAPI.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship +*ManagementAPI* | [**createRoleRolesPost**](docs/ManagementAPI.md#createrolerolespost) | **POST** /roles | Create Role +*ManagementAPI* | [**deleteAclEntryAclAclIdDelete**](docs/ManagementAPI.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +*ManagementAPI* | [**deletePermissionPermissionsPermissionIdDelete**](docs/ManagementAPI.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission +*ManagementAPI* | [**deletePolicyPoliciesPolicyKeyDelete**](docs/ManagementAPI.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy +*ManagementAPI* | [**deleteRoleRolesRoleIdDelete**](docs/ManagementAPI.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role +*ManagementAPI* | [**getAuthModelAuthModelGet**](docs/ManagementAPI.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model +*ManagementAPI* | [**impactAnalysisImpactAnalysisPost**](docs/ManagementAPI.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis +*ManagementAPI* | [**listAclEntriesAclResourceTypeResourceIdGet**](docs/ManagementAPI.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +*ManagementAPI* | [**listAuditLogsAuditGet**](docs/ManagementAPI.md#listauditlogsauditget) | **GET** /audit | List Audit Logs +*ManagementAPI* | [**listPermissionRolesPermissionsPermissionIdRolesGet**](docs/ManagementAPI.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles +*ManagementAPI* | [**listPermissionsPermissionsGet**](docs/ManagementAPI.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions +*ManagementAPI* | [**listPoliciesPoliciesGet**](docs/ManagementAPI.md#listpoliciespoliciesget) | **GET** /policies | List Policies +*ManagementAPI* | [**listRelationshipsRelationshipsGet**](docs/ManagementAPI.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships +*ManagementAPI* | [**listRolePermissionsRolesRoleIdPermissionsGet**](docs/ManagementAPI.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions +*ManagementAPI* | [**listRolesRolesGet**](docs/ManagementAPI.md#listrolesrolesget) | **GET** /roles | List Roles +*ManagementAPI* | [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](docs/ManagementAPI.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +*ManagementAPI* | [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](docs/ManagementAPI.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +*ManagementAPI* | [**simulatePolicySimulatePolicyPost**](docs/ManagementAPI.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy +*ManagementAPI* | [**updatePermissionPermissionsPermissionIdPut**](docs/ManagementAPI.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission +*ManagementAPI* | [**updatePolicyPoliciesPolicyKeyPut**](docs/ManagementAPI.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy +*ManagementAPI* | [**updateRoleRolesRoleIdPut**](docs/ManagementAPI.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role +*PlaygroundAPI* | [**evaluatePlaygroundEvaluatePost**](docs/PlaygroundAPI.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate + + +## Documentation For Models + + - [ACLCreate](docs/ACLCreate.md) + - [ACLOut](docs/ACLOut.md) + - [AccessDecisionResponse](docs/AccessDecisionResponse.md) + - [AccessRequest](docs/AccessRequest.md) + - [AdminLoginRequest](docs/AdminLoginRequest.md) + - [AdminLoginResponse](docs/AdminLoginResponse.md) + - [AuditRecordOut](docs/AuditRecordOut.md) + - [AuthModelCreate](docs/AuthModelCreate.md) + - [AuthModelOut](docs/AuthModelOut.md) + - [BatchAccessItem](docs/BatchAccessItem.md) + - [BatchAccessRequest](docs/BatchAccessRequest.md) + - [BatchAccessResponse](docs/BatchAccessResponse.md) + - [BatchAccessResult](docs/BatchAccessResult.md) + - [DataValue](docs/DataValue.md) + - [HTTPValidationError](docs/HTTPValidationError.md) + - [ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) + - [ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) + - [LocationInner](docs/LocationInner.md) + - [MetaBody](docs/MetaBody.md) + - [PermissionCreate](docs/PermissionCreate.md) + - [PermissionOut](docs/PermissionOut.md) + - [PermissionUpdate](docs/PermissionUpdate.md) + - [PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) + - [PlaygroundInput](docs/PlaygroundInput.md) + - [PlaygroundPolicy](docs/PlaygroundPolicy.md) + - [PolicyCreate](docs/PolicyCreate.md) + - [PolicyOut](docs/PolicyOut.md) + - [PolicySimulationInput](docs/PolicySimulationInput.md) + - [PolicySimulationRequest](docs/PolicySimulationRequest.md) + - [PolicySimulationResponse](docs/PolicySimulationResponse.md) + - [RelationshipCreate](docs/RelationshipCreate.md) + - [RelationshipOut](docs/RelationshipOut.md) + - [RoleCreate](docs/RoleCreate.md) + - [RoleOut](docs/RoleOut.md) + - [RoleUpdate](docs/RoleUpdate.md) + - [SimulationResponse](docs/SimulationResponse.md) + - [SuccessResponseACLOut](docs/SuccessResponseACLOut.md) + - [SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) + - [SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) + - [SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) + - [SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) + - [SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) + - [SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) + - [SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) + - [SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) + - [SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) + - [SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) + - [SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) + - [SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) + - [SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) + - [SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) + - [SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) + - [SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) + - [SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) + - [SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) + - [SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) + - [SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) + - [SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) + - [ValidationError](docs/ValidationError.md) + + + +## Documentation For Authorization + + +Authentication schemes defined for the API: + +### HTTPBearer + +- **Type**: HTTP Bearer Token authentication + + +### APIKeyHeader + +- **Type**: API key +- **API key parameter name**: X-API-Key +- **Location**: HTTP header + + +# How do I migrate from the Swift 5 generator to the swift 6 generator? + +https://openapi-generator.tech/docs/faq-generators#how-do-i-migrate-from-the-swift-5-generator-to-the-swift-6-generator + +### How do I implement bearer token authentication with URLSession on the Swift 6 API client? + +https://openapi-generator.tech/docs/faq-generators#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-6-api-client + +## Author -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/swift) -Official Swift Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Swift applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -dependencies: [ - .package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.1") -] -``` - -## ๐Ÿš€ Quick Start - -```swift -import KeyNetraClient - -let client = KeyNetraClient( - baseUrl: "http://localhost:8080", - apiKey: "YOUR_API_KEY" -) - -// Perform an access check -client.accessApi.checkAccess(...) -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/swift). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-swift](https://github.com/keynetra/keynetra-client-swift) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-swift/issues) -- **License**: Apache-2.0 diff --git a/sdks/swift/docs/AccessDecisionResponse.md b/sdks/swift/docs/AccessDecisionResponse.md index 80593f4..2d3c741 100644 --- a/sdks/swift/docs/AccessDecisionResponse.md +++ b/sdks/swift/docs/AccessDecisionResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **matchedPolicies** | **[String]** | | [optional] **reason** | **String** | | [optional] **policyId** | **String** | | [optional] -**explainTrace** | [[String: AnyCodable]] | | [optional] +**explainTrace** | [[String: JSONValue]] | | [optional] **revision** | **Int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/AccessRequest.md b/sdks/swift/docs/AccessRequest.md index f2e6f96..bb8e61e 100644 --- a/sdks/swift/docs/AccessRequest.md +++ b/sdks/swift/docs/AccessRequest.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user** | **[String: AnyCodable]** | | [optional] +**user** | **[String: JSONValue]** | | [optional] **action** | **String** | | -**resource** | **[String: AnyCodable]** | | [optional] -**context** | **[String: AnyCodable]** | | [optional] +**resource** | **[String: JSONValue]** | | [optional] +**context** | **[String: JSONValue]** | | [optional] **consistency** | **String** | | [optional] [default to "eventual"] **revision** | **Int** | | [optional] diff --git a/sdks/swift/docs/AuditRecordOut.md b/sdks/swift/docs/AuditRecordOut.md index 2a48a35..47ec7a1 100644 --- a/sdks/swift/docs/AuditRecordOut.md +++ b/sdks/swift/docs/AuditRecordOut.md @@ -7,14 +7,14 @@ Name | Type | Description | Notes **principalType** | **String** | | **principalId** | **String** | | **correlationId** | **String** | | [optional] -**user** | **[String: AnyCodable]** | | +**user** | **[String: JSONValue]** | | **action** | **String** | | -**resource** | **[String: AnyCodable]** | | +**resource** | **[String: JSONValue]** | | **decision** | **String** | | -**matchedPolicies** | **[AnyCodable]** | | +**matchedPolicies** | **[JSONValue]** | | **reason** | **String** | | [optional] -**evaluatedRules** | **[AnyCodable]** | | -**failedConditions** | **[AnyCodable]** | | +**evaluatedRules** | **[JSONValue]** | | +**failedConditions** | **[JSONValue]** | | **createdAt** | **Date** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/AuthModelOut.md b/sdks/swift/docs/AuthModelOut.md index 8808ed3..d34a36d 100644 --- a/sdks/swift/docs/AuthModelOut.md +++ b/sdks/swift/docs/AuthModelOut.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **id** | **Int** | | **tenantId** | **Int** | | **schema** | **String** | | -**parsed** | **[String: AnyCodable]** | | -**compiled** | **[String: AnyCodable]** | | +**parsed** | **[String: JSONValue]** | | +**compiled** | **[String: JSONValue]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/BatchAccessItem.md b/sdks/swift/docs/BatchAccessItem.md index 75a291b..6f017cc 100644 --- a/sdks/swift/docs/BatchAccessItem.md +++ b/sdks/swift/docs/BatchAccessItem.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | | -**resource** | **[String: AnyCodable]** | | [optional] +**resource** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/BatchAccessRequest.md b/sdks/swift/docs/BatchAccessRequest.md index 89a8ddb..801fcaa 100644 --- a/sdks/swift/docs/BatchAccessRequest.md +++ b/sdks/swift/docs/BatchAccessRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user** | **[String: AnyCodable]** | | [optional] +**user** | **[String: JSONValue]** | | [optional] **items** | [BatchAccessItem] | | **consistency** | **String** | | [optional] [default to "eventual"] **revision** | **Int** | | [optional] diff --git a/sdks/swift/docs/MetaBody.md b/sdks/swift/docs/MetaBody.md index 1dbba11..488f234 100644 --- a/sdks/swift/docs/MetaBody.md +++ b/sdks/swift/docs/MetaBody.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **requestId** | **String** | | [optional] **limit** | **Int** | | [optional] **nextCursor** | **String** | | [optional] -**extra** | **[String: AnyCodable]** | | [optional] +**extra** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PlaygroundInput.md b/sdks/swift/docs/PlaygroundInput.md index d3a32ab..4fc9496 100644 --- a/sdks/swift/docs/PlaygroundInput.md +++ b/sdks/swift/docs/PlaygroundInput.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user** | **[String: AnyCodable]** | | [optional] -**resource** | **[String: AnyCodable]** | | [optional] +**user** | **[String: JSONValue]** | | [optional] +**resource** | **[String: JSONValue]** | | [optional] **action** | **String** | | [optional] [default to ""] -**context** | **[String: AnyCodable]** | | [optional] +**context** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PlaygroundPolicy.md b/sdks/swift/docs/PlaygroundPolicy.md index 2c504e2..abbbf13 100644 --- a/sdks/swift/docs/PlaygroundPolicy.md +++ b/sdks/swift/docs/PlaygroundPolicy.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **effect** | **String** | | [optional] [default to "allow"] **priority** | **Int** | | [optional] [default to 100] **policyId** | **String** | | [optional] -**conditions** | **[String: AnyCodable]** | | [optional] +**conditions** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PolicyCreate.md b/sdks/swift/docs/PolicyCreate.md index 8a6e98a..3fbf446 100644 --- a/sdks/swift/docs/PolicyCreate.md +++ b/sdks/swift/docs/PolicyCreate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **effect** | **String** | | [optional] [default to "allow"] **priority** | **Int** | | [optional] [default to 100] **state** | **String** | | [optional] [default to "active"] -**conditions** | **[String: AnyCodable]** | | [optional] +**conditions** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PolicyOut.md b/sdks/swift/docs/PolicyOut.md index e6276cf..d65cbfc 100644 --- a/sdks/swift/docs/PolicyOut.md +++ b/sdks/swift/docs/PolicyOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **effect** | **String** | | **priority** | **Int** | | **state** | **String** | | [optional] [default to "active"] -**conditions** | **[String: AnyCodable]** | | +**conditions** | **[String: JSONValue]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PolicySimulationInput.md b/sdks/swift/docs/PolicySimulationInput.md index 11169d3..0f6f060 100644 --- a/sdks/swift/docs/PolicySimulationInput.md +++ b/sdks/swift/docs/PolicySimulationInput.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **policyChange** | **String** | | [optional] -**relationshipChange** | **[String: AnyCodable]** | | [optional] -**roleChange** | **[String: AnyCodable]** | | [optional] +**relationshipChange** | **[String: JSONValue]** | | [optional] +**roleChange** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PolicySimulationRequest.md b/sdks/swift/docs/PolicySimulationRequest.md index ee6c38e..7464084 100644 --- a/sdks/swift/docs/PolicySimulationRequest.md +++ b/sdks/swift/docs/PolicySimulationRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] -**request** | **[String: AnyCodable]** | | [optional] +**request** | **[String: JSONValue]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/PolicySimulationResponse.md b/sdks/swift/docs/PolicySimulationResponse.md index cf97a67..461b5a2 100644 --- a/sdks/swift/docs/PolicySimulationResponse.md +++ b/sdks/swift/docs/PolicySimulationResponse.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**decisionBefore** | **[String: AnyCodable]** | | -**decisionAfter** | **[String: AnyCodable]** | | +**decisionBefore** | **[String: JSONValue]** | | +**decisionAfter** | **[String: JSONValue]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SimulationResponse.md b/sdks/swift/docs/SimulationResponse.md index ef95b2c..2cb2faf 100644 --- a/sdks/swift/docs/SimulationResponse.md +++ b/sdks/swift/docs/SimulationResponse.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **matchedPolicies** | **[String]** | | **reason** | **String** | | [optional] **policyId** | **String** | | [optional] -**explainTrace** | [[String: AnyCodable]] | | [optional] +**explainTrace** | [[String: JSONValue]] | | [optional] **failedConditions** | **[String]** | | [optional] **revision** | **Int** | | [optional] diff --git a/sdks/swift/docs/SuccessResponseDictStrAny.md b/sdks/swift/docs/SuccessResponseDictStrAny.md index ba3089b..5b78fa5 100644 --- a/sdks/swift/docs/SuccessResponseDictStrAny.md +++ b/sdks/swift/docs/SuccessResponseDictStrAny.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **[String: AnyCodable]** | | +**data** | **[String: JSONValue]** | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] **error** | [**Null**](Null.md) | | [optional] diff --git a/sdks/swift/docs/SuccessResponseDictStrObject.md b/sdks/swift/docs/SuccessResponseDictStrObject.md index 8859aeb..fff508d 100644 --- a/sdks/swift/docs/SuccessResponseDictStrObject.md +++ b/sdks/swift/docs/SuccessResponseDictStrObject.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **[String: AnyCodable]** | | +**data** | **[String: JSONValue]** | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] **error** | [**Null**](Null.md) | | [optional] diff --git a/sdks/swift/docs/ValidationError.md b/sdks/swift/docs/ValidationError.md index bbd33d4..4be532f 100644 --- a/sdks/swift/docs/ValidationError.md +++ b/sdks/swift/docs/ValidationError.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **loc** | [LocationInner] | | **msg** | **String** | | **type** | **String** | | -**input** | **AnyCodable** | | [optional] -**ctx** | **AnyCodable** | | [optional] +**input** | **JSONValue** | | [optional] +**ctx** | **JSONValue** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/project.yml b/sdks/swift/project.yml index 328733f..8d6d8dc 100644 --- a/sdks/swift/project.yml +++ b/sdks/swift/project.yml @@ -4,7 +4,7 @@ targets: type: framework platform: iOS deploymentTarget: "11.0" - sources: [KeyNetraClient] + sources: [Sources] info: path: ./Info.plist version: 0.1.1 @@ -12,4 +12,3 @@ targets: APPLICATION_EXTENSION_API_ONLY: true scheme: {} dependencies: - - carthage: AnyCodable From 2cc0e18efd582f7b9c95046ea6fb80eb6ced46a5 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 01:56:50 +0530 Subject: [PATCH 07/40] ci: optimize and harden multi-stage SDK release pipeline --- .github/workflows/generate.yml | 5 +---- .github/workflows/release.yml | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index b954cb0..a69b6f4 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -29,14 +29,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" - cache: "npm" - name: ๐Ÿ“ฆ Install OpenAPI Generator run: | echo "Installing openapi-generator-cli..." - if [ ! -d "node_modules" ]; then - npm install @openapitools/openapi-generator-cli - fi + npm install @openapitools/openapi-generator-cli echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH - name: ๐Ÿš€ Run SDK Generation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2eb796b..fedf259 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,8 +113,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" - cache: "npm" - cache-dependency-path: sdks/typescript/package-lock.json - name: โ˜• Setup Java if: matrix.id == 'java' || matrix.id == 'kotlin' @@ -291,8 +289,6 @@ jobs: with: node-version: "20" registry-url: "https://registry.npmjs.org" - cache: "npm" - cache-dependency-path: sdks/typescript/package-lock.json - name: ๐Ÿš€ Publish to npm working-directory: sdks/typescript From 53c155c8ab1693c4c59b898a262a9dea193f1220 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 01:59:58 +0530 Subject: [PATCH 08/40] fix: resolve Go compilation errors and harmonize environment --- .github/workflows/generate.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- scripts/generate-all.sh | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index a69b6f4..d445abf 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -99,8 +99,8 @@ jobs: - name: ๐Ÿน Setup Go uses: actions/setup-go@v5 with: - go-version: "1.21" - cache: true + go-version: "1.23" + cache: false - name: ๐Ÿน Test Go Instantiation run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fedf259..6495c1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,8 +105,8 @@ jobs: if: matrix.id == 'go' uses: actions/setup-go@v5 with: - go-version: "1.21" - cache: true + go-version: "1.23" + cache: false - name: ๐ŸŸข Setup Node.js if: matrix.id == 'typescript' diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 8278127..faaf463 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -61,6 +61,7 @@ generate_sdk() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ + --type-mappings=null=Any \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" From d71e501bbb894505469cce609df1ae1907dfae26 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:03:14 +0530 Subject: [PATCH 09/40] fix: resolve Go 'undefined: Any' compilation errors --- scripts/generate-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index faaf463..4ad7eb5 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -61,7 +61,7 @@ generate_sdk() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=Any \ + --type-mappings=null=interface{},Any=interface{},object=interface{} \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" From 1fbd6b57a6949151d40a313029a51e27048dccf2 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:09:48 +0530 Subject: [PATCH 10/40] fix: resolve Go SDK syntax --- .github/workflows/generate.yml | 50 +--------------------------------- scripts/generate-all.sh | 32 ++++++++++++++++++++-- templates/go-config.yaml | 2 +- 3 files changed, 32 insertions(+), 52 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index d445abf..42f415b 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -44,7 +44,7 @@ jobs: - name: ๐Ÿ’พ Commit & Push Changes if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | - git config user.name "KeyNetra Engineering" + git config user.name "Keynetra.admin" git config user.email "business.keynetra@gmail.com" git add scripts templates openapi if git diff --cached --quiet; then @@ -59,51 +59,3 @@ jobs: with: name: generated-sdks path: sdks - - test: - name: ๐Ÿงช Smoke Test SDKs - needs: generate - runs-on: ubuntu-latest - services: - keynetra: - image: docker.io/keynetra/keynetra:latest - ports: - - 8080:8080 - options: >- - --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" - --health-interval 15s - --health-timeout 10s - --health-retries 10 - steps: - - name: ๐Ÿ“ฅ Checkout Code - uses: actions/checkout@v4 - - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks - - - name: ๐Ÿ Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.11" - cache: "pip" - - - name: ๐Ÿ Test Python Instantiation - run: | - cd tests/python - pip install pydantic urllib3 python-dateutil typing-extensions - python3 test_instantiation.py - - - name: ๐Ÿน Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.23" - cache: false - - - name: ๐Ÿน Test Go Instantiation - run: | - cd sdks/go - go mod tidy - go build ./... diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 4ad7eb5..06f7013 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -61,7 +61,6 @@ generate_sdk() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=interface{},Any=interface{},object=interface{} \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" @@ -101,6 +100,35 @@ generate_sdk_python() { fi } +generate_sdk_go() { + local generator="go" + local output_dir="${ROOT_DIR}/sdks/go" + local config_file="${ROOT_DIR}/templates/go-config.yaml" + local name="Go" + local log_file="${ROOT_DIR}/sdks/gen-Go.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + # Go-specific mappings and flags to handle anyOf and untyped fields + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=any,Any=any,object=any,AnyOfstringinteger=any \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + # --- Execution --- echo -e "${YELLOW}${ROCKET} Starting KeyNetra SDK Generation v${SDK_VERSION}${NC}" @@ -113,7 +141,7 @@ FAIL=0 (generate_sdk_python) || FAIL=1 & (generate_sdk typescript-fetch "${ROOT_DIR}/sdks/typescript" "${ROOT_DIR}/templates/typescript-config.yaml" "TypeScript") || FAIL=1 & -(generate_sdk go "${ROOT_DIR}/sdks/go" "${ROOT_DIR}/templates/go-config.yaml" "Go") || FAIL=1 & +(generate_sdk_go) || FAIL=1 & (generate_sdk java "${ROOT_DIR}/sdks/java" "${ROOT_DIR}/templates/java-config.yaml" "Java") || FAIL=1 & (generate_sdk rust "${ROOT_DIR}/sdks/rust" "${ROOT_DIR}/templates/rust-config.yaml" "Rust") || FAIL=1 & (generate_sdk csharp "${ROOT_DIR}/sdks/csharp" "${ROOT_DIR}/templates/csharp-config.yaml" "C#") || FAIL=1 & diff --git a/templates/go-config.yaml b/templates/go-config.yaml index 0342207..b94a604 100644 --- a/templates/go-config.yaml +++ b/templates/go-config.yaml @@ -6,6 +6,6 @@ generateInterfaces: true hideGenerationTimestamp: true withGoMod: true packageDescription: "Official Go Client SDK for KeyNetra authorization platform." -packageAuthor: "KeyNetra Engineering" +packageAuthor: "KeyNetra" packageEmail: "business.keynetra@gmail.com" packageUrl: "https://github.com/keynetra/keynetra-client-go" From 88d764af644788b7d49dcf3d30c3573ca9270535 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:21:12 +0530 Subject: [PATCH 11/40] fix: resolve Kotlin/Ruby generation failures and restore smoke tests --- .github/workflows/generate.yml | 36 +++++ scripts/generate-all.sh | 60 +++++++- sdks/kotlin/README.md | 187 +++++++++++++++++++------ sdks/ruby/README.md | 220 ++++++++++++++++++++++++++---- sdks/ruby/keynetra-client.gemspec | 2 +- 5 files changed, 436 insertions(+), 69 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 42f415b..ce64e63 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -59,3 +59,39 @@ jobs: with: name: generated-sdks path: sdks + + smoke-test: + name: ๐Ÿงช Python Smoke Test + needs: generate + runs-on: ubuntu-latest + services: + keynetra: + image: docker.io/keynetra/keynetra:latest + ports: + - 8080:8080 + options: >- + --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" + --health-interval 15s + --health-timeout 10s + --health-retries 10 + steps: + - name: ๐Ÿ“ฅ Checkout Code + uses: actions/checkout@v4 + + - name: ๐Ÿ“‚ Download SDKs + uses: actions/download-artifact@v4 + with: + name: generated-sdks + path: sdks + + - name: ๐Ÿ Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + + - name: ๐Ÿ Test Python Instantiation + run: | + cd tests/python + pip install pydantic urllib3 python-dateutil typing-extensions + python3 test_instantiation.py diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 06f7013..eb73c82 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -129,6 +129,62 @@ generate_sdk_go() { fi } +generate_sdk_kotlin() { + local generator="kotlin" + local output_dir="${ROOT_DIR}/sdks/kotlin" + local config_file="${ROOT_DIR}/templates/kotlin-config.yaml" + local name="Kotlin" + local log_file="${ROOT_DIR}/sdks/gen-Kotlin.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=Any \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + +generate_sdk_ruby() { + local generator="ruby" + local output_dir="${ROOT_DIR}/sdks/ruby" + local config_file="${ROOT_DIR}/templates/ruby-config.yaml" + local name="Ruby" + local log_file="${ROOT_DIR}/sdks/gen-Ruby.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=Object \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + # --- Execution --- echo -e "${YELLOW}${ROCKET} Starting KeyNetra SDK Generation v${SDK_VERSION}${NC}" @@ -146,8 +202,8 @@ FAIL=0 (generate_sdk rust "${ROOT_DIR}/sdks/rust" "${ROOT_DIR}/templates/rust-config.yaml" "Rust") || FAIL=1 & (generate_sdk csharp "${ROOT_DIR}/sdks/csharp" "${ROOT_DIR}/templates/csharp-config.yaml" "C#") || FAIL=1 & (generate_sdk php "${ROOT_DIR}/sdks/php" "${ROOT_DIR}/templates/php-config.yaml" "PHP") || FAIL=1 & -(generate_sdk ruby "${ROOT_DIR}/sdks/ruby" "${ROOT_DIR}/templates/ruby-config.yaml" "Ruby") || FAIL=1 & -(generate_sdk kotlin "${ROOT_DIR}/sdks/kotlin" "${ROOT_DIR}/templates/kotlin-config.yaml" "Kotlin") || FAIL=1 & +(generate_sdk_ruby) || FAIL=1 & +(generate_sdk_kotlin) || FAIL=1 & (generate_sdk swift6 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift") || FAIL=1 & # Wait for all background jobs to finish diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md index 342c323..cd04c03 100644 --- a/sdks/kotlin/README.md +++ b/sdks/kotlin/README.md @@ -1,49 +1,160 @@ -# keynetra-client-kotlin +# io.keynetra.client - Kotlin client library for KeyNetra -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/kotlin) +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -Official Kotlin Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client. -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Kotlin applications to integrate seamlessly with KeyNetra for access control and policy management. +- API version: 0.1.1 +- Package version: +- Generator version: 7.21.0 +- Build package: org.openapitools.codegen.languages.KotlinClientCodegen -## โœจ Features +## Requires -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. +* Kotlin 2.2.20 -## ๐Ÿ“ฆ Installation +## Build -```bash -implementation("io.keynetra:keynetra-client-kotlin:0.1.1") ``` - -## ๐Ÿš€ Quick Start - -```kotlin -import io.keynetra.client.KeyNetraClient - -val client = KeyNetraClient( - baseUrl = "http://localhost:8080", - apiKey = "YOUR_API_KEY" -) - -// Perform an access check -val decision = client.accessApi.checkAccess(...) +./gradlew check assemble ``` - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/kotlin). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-kotlin](https://github.com/keynetra/keynetra-client-kotlin) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-kotlin/issues) -- **License**: Apache-2.0 +This runs all tests and packages the library. + +## Features/Implementation Notes + +* Supports JSON inputs/outputs, File inputs, and Form inputs. +* Supports collection formats for query parameters: csv, tsv, ssv, pipes. +* Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions. + + + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +| Class | Method | HTTP request | Description | +| ------------ | ------------- | ------------- | ------------- | +| *AccessApi* | [**checkAccessBatchCheckAccessBatchPost**](docs/AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch | +| *AccessApi* | [**checkAccessCheckAccessPost**](docs/AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access | +| *AccessApi* | [**simulateSimulatePost**](docs/AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate | +| *AuthApi* | [**adminLoginAdminLoginPost**](docs/AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login | +| *AuthApi* | [**adminLoginAdminLoginPost_0**](docs/AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login | +| *DevApi* | [**getSampleDataDevSampleDataGet**](docs/DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data | +| *DevApi* | [**seedSampleDataDevSampleDataSeedPost**](docs/DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data | +| *HealthApi* | [**healthHealthGet**](docs/HealthApi.md#healthhealthget) | **GET** /health | Health | +| *HealthApi* | [**livenessHealthLiveGet**](docs/HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness | +| *HealthApi* | [**readinessHealthReadyGet**](docs/HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness | +| *ManagementApi* | [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](docs/ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | +| *ManagementApi* | [**createAclEntryAclPost**](docs/ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry | +| *ManagementApi* | [**createAuthModelAuthModelPost**](docs/ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model | +| *ManagementApi* | [**createPermissionPermissionsPost**](docs/ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission | +| *ManagementApi* | [**createPolicyFromDslPoliciesDslPost**](docs/ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl | +| *ManagementApi* | [**createPolicyPoliciesPost**](docs/ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy | +| *ManagementApi* | [**createRelationshipRelationshipsPost**](docs/ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship | +| *ManagementApi* | [**createRoleRolesPost**](docs/ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role | +| *ManagementApi* | [**deleteAclEntryAclAclIdDelete**](docs/ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | +| *ManagementApi* | [**deletePermissionPermissionsPermissionIdDelete**](docs/ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission | +| *ManagementApi* | [**deletePolicyPoliciesPolicyKeyDelete**](docs/ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy | +| *ManagementApi* | [**deleteRoleRolesRoleIdDelete**](docs/ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role | +| *ManagementApi* | [**getAuthModelAuthModelGet**](docs/ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model | +| *ManagementApi* | [**impactAnalysisImpactAnalysisPost**](docs/ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis | +| *ManagementApi* | [**listAclEntriesAclResourceTypeResourceIdGet**](docs/ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | +| *ManagementApi* | [**listAuditLogsAuditGet**](docs/ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs | +| *ManagementApi* | [**listPermissionRolesPermissionsPermissionIdRolesGet**](docs/ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles | +| *ManagementApi* | [**listPermissionsPermissionsGet**](docs/ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions | +| *ManagementApi* | [**listPoliciesPoliciesGet**](docs/ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies | +| *ManagementApi* | [**listRelationshipsRelationshipsGet**](docs/ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships | +| *ManagementApi* | [**listRolePermissionsRolesRoleIdPermissionsGet**](docs/ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions | +| *ManagementApi* | [**listRolesRolesGet**](docs/ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles | +| *ManagementApi* | [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](docs/ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | +| *ManagementApi* | [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](docs/ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | +| *ManagementApi* | [**simulatePolicySimulatePolicyPost**](docs/ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy | +| *ManagementApi* | [**updatePermissionPermissionsPermissionIdPut**](docs/ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission | +| *ManagementApi* | [**updatePolicyPoliciesPolicyKeyPut**](docs/ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy | +| *ManagementApi* | [**updateRoleRolesRoleIdPut**](docs/ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role | +| *PlaygroundApi* | [**evaluatePlaygroundEvaluatePost**](docs/PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate | + + + +## Documentation for Models + + - [io.keynetra.client.models.ACLCreate](docs/ACLCreate.md) + - [io.keynetra.client.models.ACLOut](docs/ACLOut.md) + - [io.keynetra.client.models.AccessDecisionResponse](docs/AccessDecisionResponse.md) + - [io.keynetra.client.models.AccessRequest](docs/AccessRequest.md) + - [io.keynetra.client.models.AdminLoginRequest](docs/AdminLoginRequest.md) + - [io.keynetra.client.models.AdminLoginResponse](docs/AdminLoginResponse.md) + - [io.keynetra.client.models.AuditRecordOut](docs/AuditRecordOut.md) + - [io.keynetra.client.models.AuthModelCreate](docs/AuthModelCreate.md) + - [io.keynetra.client.models.AuthModelOut](docs/AuthModelOut.md) + - [io.keynetra.client.models.BatchAccessItem](docs/BatchAccessItem.md) + - [io.keynetra.client.models.BatchAccessRequest](docs/BatchAccessRequest.md) + - [io.keynetra.client.models.BatchAccessResponse](docs/BatchAccessResponse.md) + - [io.keynetra.client.models.BatchAccessResult](docs/BatchAccessResult.md) + - [io.keynetra.client.models.DataValue](docs/DataValue.md) + - [io.keynetra.client.models.HTTPValidationError](docs/HTTPValidationError.md) + - [io.keynetra.client.models.ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) + - [io.keynetra.client.models.ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) + - [io.keynetra.client.models.LocationInner](docs/LocationInner.md) + - [io.keynetra.client.models.MetaBody](docs/MetaBody.md) + - [io.keynetra.client.models.PermissionCreate](docs/PermissionCreate.md) + - [io.keynetra.client.models.PermissionOut](docs/PermissionOut.md) + - [io.keynetra.client.models.PermissionUpdate](docs/PermissionUpdate.md) + - [io.keynetra.client.models.PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) + - [io.keynetra.client.models.PlaygroundInput](docs/PlaygroundInput.md) + - [io.keynetra.client.models.PlaygroundPolicy](docs/PlaygroundPolicy.md) + - [io.keynetra.client.models.PolicyCreate](docs/PolicyCreate.md) + - [io.keynetra.client.models.PolicyOut](docs/PolicyOut.md) + - [io.keynetra.client.models.PolicySimulationInput](docs/PolicySimulationInput.md) + - [io.keynetra.client.models.PolicySimulationRequest](docs/PolicySimulationRequest.md) + - [io.keynetra.client.models.PolicySimulationResponse](docs/PolicySimulationResponse.md) + - [io.keynetra.client.models.RelationshipCreate](docs/RelationshipCreate.md) + - [io.keynetra.client.models.RelationshipOut](docs/RelationshipOut.md) + - [io.keynetra.client.models.RoleCreate](docs/RoleCreate.md) + - [io.keynetra.client.models.RoleOut](docs/RoleOut.md) + - [io.keynetra.client.models.RoleUpdate](docs/RoleUpdate.md) + - [io.keynetra.client.models.SimulationResponse](docs/SimulationResponse.md) + - [io.keynetra.client.models.SuccessResponseACLOut](docs/SuccessResponseACLOut.md) + - [io.keynetra.client.models.SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) + - [io.keynetra.client.models.SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) + - [io.keynetra.client.models.SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) + - [io.keynetra.client.models.SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) + - [io.keynetra.client.models.SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) + - [io.keynetra.client.models.SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) + - [io.keynetra.client.models.SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) + - [io.keynetra.client.models.SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) + - [io.keynetra.client.models.SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) + - [io.keynetra.client.models.SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) + - [io.keynetra.client.models.SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) + - [io.keynetra.client.models.SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) + - [io.keynetra.client.models.SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) + - [io.keynetra.client.models.SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) + - [io.keynetra.client.models.SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) + - [io.keynetra.client.models.SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) + - [io.keynetra.client.models.SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) + - [io.keynetra.client.models.SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) + - [io.keynetra.client.models.SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) + - [io.keynetra.client.models.SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) + - [io.keynetra.client.models.SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) + - [io.keynetra.client.models.ValidationError](docs/ValidationError.md) + + + +## Documentation for Authorization + + +Authentication schemes defined for the API: + +### HTTPBearer + +- **Type**: HTTP Bearer Token authentication + + +### APIKeyHeader + +- **Type**: API key +- **API key parameter name**: X-API-Key +- **Location**: HTTP header diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index 34c45e5..5ad657b 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -1,49 +1,213 @@ # keynetra-client -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/ruby) +KeyNetra - the Ruby gem for the KeyNetra -Official Ruby Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Ruby applications to integrate seamlessly with KeyNetra for access control and policy management. +This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -## โœจ Features +- API version: 0.1.1 +- Package version: 0.1.1 +- Generator version: 7.21.0 +- Build package: org.openapitools.codegen.languages.RubyClientCodegen -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. +## Installation -## ๐Ÿ“ฆ Installation +### Build a gem -```bash -gem install keynetra-client +To build the Ruby code into a gem: + +```shell +gem build keynetra-client.gemspec ``` -## ๐Ÿš€ Quick Start +Then either install the gem locally: -```ruby -require 'keynetra-client' +```shell +gem install ./keynetra-client-0.1.1.gem +``` + +(for development, run `gem install --dev ./keynetra-client-0.1.1.gem` to install the development dependencies) + +or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). + +Finally add this to the Gemfile: + + gem 'keynetra-client', '~> 0.1.1' -client = KeyNetra::KeyNetraClient.new( - "http://localhost:8080", - "YOUR_API_KEY" -) +### Install from Git -# Perform an access check -decision = client.access_api.check_access(...) +If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile: + + gem 'keynetra-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git' + +### Include the Ruby code directly + +Include the Ruby code directly using `-I` as follows: + +```shell +ruby -Ilib script.rb ``` +## Getting Started +Please follow the [installation](#installation) procedure and then run the following code: -## ๐Ÿ“š Documentation +```ruby +# Load the gem +require 'keynetra-client' -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/ruby). +# Setup authorization +KeyNetra.configure do |config| + # Configure API key authorization: APIKeyHeader + config.api_key['X-API-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['X-API-Key'] = 'Bearer' + + # Configure Bearer authorization: HTTPBearer + config.access_token = 'YOUR_BEARER_TOKEN' + # Configure a proc to get access tokens in lieu of the static access_token configuration + config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } +end + +api_instance = KeyNetra::AccessApi.new +batch_access_request = KeyNetra::BatchAccessRequest.new({items: [KeyNetra::BatchAccessItem.new({action: 'action_example'})]}) # BatchAccessRequest | +opts = { + policy_set: 'policy_set_example' # String | +} + +begin + #Check Access Batch + result = api_instance.check_access_batch_check_access_batch_post(batch_access_request, opts) + p result +rescue KeyNetra::ApiError => e + puts "Exception when calling AccessApi->check_access_batch_check_access_batch_post: #{e}" +end -## ๐Ÿค Support +``` -- **Source**: [https://github.com/keynetra/keynetra-client-ruby](https://github.com/keynetra/keynetra-client-ruby) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-ruby/issues) -- **License**: Apache-2.0 +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*KeyNetra::AccessApi* | [**check_access_batch_check_access_batch_post**](docs/AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch +*KeyNetra::AccessApi* | [**check_access_check_access_post**](docs/AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access +*KeyNetra::AccessApi* | [**simulate_simulate_post**](docs/AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate +*KeyNetra::AuthApi* | [**admin_login_admin_login_post**](docs/AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login +*KeyNetra::AuthApi* | [**admin_login_admin_login_post_0**](docs/AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login +*KeyNetra::DevApi* | [**get_sample_data_dev_sample_data_get**](docs/DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data +*KeyNetra::DevApi* | [**seed_sample_data_dev_sample_data_seed_post**](docs/DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data +*KeyNetra::HealthApi* | [**health_health_get**](docs/HealthApi.md#health_health_get) | **GET** /health | Health +*KeyNetra::HealthApi* | [**liveness_health_live_get**](docs/HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness +*KeyNetra::HealthApi* | [**readiness_health_ready_get**](docs/HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness +*KeyNetra::ManagementApi* | [**add_permission_to_role_roles_role_id_permissions_permission_id_post**](docs/ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +*KeyNetra::ManagementApi* | [**create_acl_entry_acl_post**](docs/ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry +*KeyNetra::ManagementApi* | [**create_auth_model_auth_model_post**](docs/ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model +*KeyNetra::ManagementApi* | [**create_permission_permissions_post**](docs/ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission +*KeyNetra::ManagementApi* | [**create_policy_from_dsl_policies_dsl_post**](docs/ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl +*KeyNetra::ManagementApi* | [**create_policy_policies_post**](docs/ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy +*KeyNetra::ManagementApi* | [**create_relationship_relationships_post**](docs/ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship +*KeyNetra::ManagementApi* | [**create_role_roles_post**](docs/ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role +*KeyNetra::ManagementApi* | [**delete_acl_entry_acl_acl_id_delete**](docs/ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +*KeyNetra::ManagementApi* | [**delete_permission_permissions_permission_id_delete**](docs/ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission +*KeyNetra::ManagementApi* | [**delete_policy_policies_policy_key_delete**](docs/ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy +*KeyNetra::ManagementApi* | [**delete_role_roles_role_id_delete**](docs/ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role +*KeyNetra::ManagementApi* | [**get_auth_model_auth_model_get**](docs/ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model +*KeyNetra::ManagementApi* | [**impact_analysis_impact_analysis_post**](docs/ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis +*KeyNetra::ManagementApi* | [**list_acl_entries_acl_resource_type_resource_id_get**](docs/ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +*KeyNetra::ManagementApi* | [**list_audit_logs_audit_get**](docs/ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs +*KeyNetra::ManagementApi* | [**list_permission_roles_permissions_permission_id_roles_get**](docs/ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles +*KeyNetra::ManagementApi* | [**list_permissions_permissions_get**](docs/ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions +*KeyNetra::ManagementApi* | [**list_policies_policies_get**](docs/ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies +*KeyNetra::ManagementApi* | [**list_relationships_relationships_get**](docs/ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships +*KeyNetra::ManagementApi* | [**list_role_permissions_roles_role_id_permissions_get**](docs/ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions +*KeyNetra::ManagementApi* | [**list_roles_roles_get**](docs/ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles +*KeyNetra::ManagementApi* | [**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](docs/ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +*KeyNetra::ManagementApi* | [**rollback_policy_policies_policy_key_rollback_version_post**](docs/ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +*KeyNetra::ManagementApi* | [**simulate_policy_simulate_policy_post**](docs/ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy +*KeyNetra::ManagementApi* | [**update_permission_permissions_permission_id_put**](docs/ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission +*KeyNetra::ManagementApi* | [**update_policy_policies_policy_key_put**](docs/ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy +*KeyNetra::ManagementApi* | [**update_role_roles_role_id_put**](docs/ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role +*KeyNetra::PlaygroundApi* | [**evaluate_playground_evaluate_post**](docs/PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate + + +## Documentation for Models + + - [KeyNetra::ACLCreate](docs/ACLCreate.md) + - [KeyNetra::ACLOut](docs/ACLOut.md) + - [KeyNetra::AccessDecisionResponse](docs/AccessDecisionResponse.md) + - [KeyNetra::AccessRequest](docs/AccessRequest.md) + - [KeyNetra::AdminLoginRequest](docs/AdminLoginRequest.md) + - [KeyNetra::AdminLoginResponse](docs/AdminLoginResponse.md) + - [KeyNetra::AuditRecordOut](docs/AuditRecordOut.md) + - [KeyNetra::AuthModelCreate](docs/AuthModelCreate.md) + - [KeyNetra::AuthModelOut](docs/AuthModelOut.md) + - [KeyNetra::BatchAccessItem](docs/BatchAccessItem.md) + - [KeyNetra::BatchAccessRequest](docs/BatchAccessRequest.md) + - [KeyNetra::BatchAccessResponse](docs/BatchAccessResponse.md) + - [KeyNetra::BatchAccessResult](docs/BatchAccessResult.md) + - [KeyNetra::DataValue](docs/DataValue.md) + - [KeyNetra::HTTPValidationError](docs/HTTPValidationError.md) + - [KeyNetra::ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) + - [KeyNetra::ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) + - [KeyNetra::LocationInner](docs/LocationInner.md) + - [KeyNetra::MetaBody](docs/MetaBody.md) + - [KeyNetra::PermissionCreate](docs/PermissionCreate.md) + - [KeyNetra::PermissionOut](docs/PermissionOut.md) + - [KeyNetra::PermissionUpdate](docs/PermissionUpdate.md) + - [KeyNetra::PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) + - [KeyNetra::PlaygroundInput](docs/PlaygroundInput.md) + - [KeyNetra::PlaygroundPolicy](docs/PlaygroundPolicy.md) + - [KeyNetra::PolicyCreate](docs/PolicyCreate.md) + - [KeyNetra::PolicyOut](docs/PolicyOut.md) + - [KeyNetra::PolicySimulationInput](docs/PolicySimulationInput.md) + - [KeyNetra::PolicySimulationRequest](docs/PolicySimulationRequest.md) + - [KeyNetra::PolicySimulationResponse](docs/PolicySimulationResponse.md) + - [KeyNetra::RelationshipCreate](docs/RelationshipCreate.md) + - [KeyNetra::RelationshipOut](docs/RelationshipOut.md) + - [KeyNetra::RoleCreate](docs/RoleCreate.md) + - [KeyNetra::RoleOut](docs/RoleOut.md) + - [KeyNetra::RoleUpdate](docs/RoleUpdate.md) + - [KeyNetra::SimulationResponse](docs/SimulationResponse.md) + - [KeyNetra::SuccessResponseACLOut](docs/SuccessResponseACLOut.md) + - [KeyNetra::SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) + - [KeyNetra::SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) + - [KeyNetra::SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) + - [KeyNetra::SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) + - [KeyNetra::SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) + - [KeyNetra::SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) + - [KeyNetra::SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) + - [KeyNetra::SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) + - [KeyNetra::SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) + - [KeyNetra::SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) + - [KeyNetra::SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) + - [KeyNetra::SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) + - [KeyNetra::SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) + - [KeyNetra::SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) + - [KeyNetra::SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) + - [KeyNetra::SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) + - [KeyNetra::SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) + - [KeyNetra::SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) + - [KeyNetra::SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) + - [KeyNetra::SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) + - [KeyNetra::SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) + - [KeyNetra::ValidationError](docs/ValidationError.md) + + +## Documentation for Authorization + + +Authentication schemes defined for the API: +### HTTPBearer + +- **Type**: Bearer authentication + +### APIKeyHeader + + +- **Type**: API key +- **API key parameter name**: X-API-Key +- **Location**: HTTP header diff --git a/sdks/ruby/keynetra-client.gemspec b/sdks/ruby/keynetra-client.gemspec index 48382aa..6f32351 100644 --- a/sdks/ruby/keynetra-client.gemspec +++ b/sdks/ruby/keynetra-client.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.authors = ["SainathSapa"] s.email = ["info.djsai@gmail.com"] s.homepage = "https://github.com/keynetra/keynetra-client-ruby" - s.summary = "Official Ruby Client SDK for the KeyNetra authorization platform." + s.summary = "KeyNetra Ruby Gem" s.description = "Official Ruby SDK for the KeyNetra authorization platform." s.license = "Apache-2.0" s.required_ruby_version = ">= 2.7" From a9609c35b2e27373ab5ac238b7bd89e0366f8910 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:24:35 +0530 Subject: [PATCH 12/40] fix: resolve TypeScript/Rust generation failures and harden all SDK builds --- .github/workflows/generate.yml | 8 +- scripts/generate-all.sh | 149 +++++++++++++++++++- sdks/rust/Cargo.toml | 7 +- sdks/rust/README.md | 163 ++++++++++++++++----- sdks/typescript/README.md | 249 ++++++++++++++++++++++++++++----- sdks/typescript/package.json | 26 ++-- sdks/typescript/tsconfig.json | 18 +-- 7 files changed, 513 insertions(+), 107 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index ce64e63..26c5504 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -94,4 +94,10 @@ jobs: run: | cd tests/python pip install pydantic urllib3 python-dateutil typing-extensions - python3 test_instantiation.py + echo "๐Ÿงช Running Python SDK Instantiation Test..." + if python3 test_instantiation.py; then + echo "โœ… Python SDK Instantiation Test Passed!" + else + echo "โŒ Python SDK Instantiation Test Failed!" + exit 1 + fi diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index eb73c82..4439a1e 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -185,6 +185,145 @@ generate_sdk_ruby() { fi } +generate_sdk_typescript() { + local generator="typescript-fetch" + local output_dir="${ROOT_DIR}/sdks/typescript" + local config_file="${ROOT_DIR}/templates/typescript-config.yaml" + local name="TypeScript" + local log_file="${ROOT_DIR}/sdks/gen-TypeScript.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=any \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + +generate_sdk_rust() { + local generator="rust" + local output_dir="${ROOT_DIR}/sdks/rust" + local config_file="${ROOT_DIR}/templates/rust-config.yaml" + local name="Rust" + local log_file="${ROOT_DIR}/sdks/gen-Rust.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + +generate_sdk_java() { + local generator="java" + local output_dir="${ROOT_DIR}/sdks/java" + local config_file="${ROOT_DIR}/templates/java-config.yaml" + local name="Java" + local log_file="${ROOT_DIR}/sdks/gen-Java.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=Object \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + +generate_sdk_csharp() { + local generator="csharp" + local output_dir="${ROOT_DIR}/sdks/csharp" + local config_file="${ROOT_DIR}/templates/csharp-config.yaml" + local name="C#" + local log_file="${ROOT_DIR}/sdks/gen-CSharp.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=object \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + +generate_sdk_php() { + local generator="php" + local output_dir="${ROOT_DIR}/sdks/php" + local config_file="${ROOT_DIR}/templates/php-config.yaml" + local name="PHP" + local log_file="${ROOT_DIR}/sdks/gen-PHP.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=mixed \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + # --- Execution --- echo -e "${YELLOW}${ROCKET} Starting KeyNetra SDK Generation v${SDK_VERSION}${NC}" @@ -196,12 +335,12 @@ log_info "Generating SDKs in parallel..." FAIL=0 (generate_sdk_python) || FAIL=1 & -(generate_sdk typescript-fetch "${ROOT_DIR}/sdks/typescript" "${ROOT_DIR}/templates/typescript-config.yaml" "TypeScript") || FAIL=1 & +(generate_sdk_typescript) || FAIL=1 & (generate_sdk_go) || FAIL=1 & -(generate_sdk java "${ROOT_DIR}/sdks/java" "${ROOT_DIR}/templates/java-config.yaml" "Java") || FAIL=1 & -(generate_sdk rust "${ROOT_DIR}/sdks/rust" "${ROOT_DIR}/templates/rust-config.yaml" "Rust") || FAIL=1 & -(generate_sdk csharp "${ROOT_DIR}/sdks/csharp" "${ROOT_DIR}/templates/csharp-config.yaml" "C#") || FAIL=1 & -(generate_sdk php "${ROOT_DIR}/sdks/php" "${ROOT_DIR}/templates/php-config.yaml" "PHP") || FAIL=1 & +(generate_sdk_java) || FAIL=1 & +(generate_sdk_rust) || FAIL=1 & +(generate_sdk_csharp) || FAIL=1 & +(generate_sdk_php) || FAIL=1 & (generate_sdk_ruby) || FAIL=1 & (generate_sdk_kotlin) || FAIL=1 & (generate_sdk swift6 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift") || FAIL=1 & diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 439a6dc..1e4f437 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -1,11 +1,10 @@ [package] -readme = "README.md" name = "keynetra-client" version = "0.1.1" -authors = ["KeyNetra "] -description = "Official Rust Client SDK for the KeyNetra authorization platform." +authors = ["OpenAPI Generator team and contributors"] +description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" # Override this license by providing a License Object in the OpenAPI. -license = "Apache-2.0" +license = "Unlicense" edition = "2021" [dependencies] diff --git a/sdks/rust/README.md b/sdks/rust/README.md index 2661720..0854b45 100644 --- a/sdks/rust/README.md +++ b/sdks/rust/README.md @@ -1,51 +1,142 @@ -# keynetra-client +# Rust API client for keynetra-client -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/rust) +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -Official Rust Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Rust applications to integrate seamlessly with KeyNetra for access control and policy management. +## Overview -## โœจ Features +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. +- API version: 0.1.1 +- Package version: 0.1.1 +- Generator version: 7.21.0 +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` -## ๐Ÿ“ฆ Installation +## Installation -```bash -cargo add keynetra-client -``` - -## ๐Ÿš€ Quick Start - -```rust -use keynetra_client::keynetra_client::KeyNetraClient; - -let client = KeyNetraClient::new( - "http://localhost:8080", - "YOUR_API_KEY" -); +Put the package under your project folder in a directory named `keynetra-client` and add the following to `Cargo.toml` under `[dependencies]`: -// Perform an access check -let decision = client.access() - .check_access(...) - .await?; +``` +keynetra-client = { path = "./keynetra-client" } ``` +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AccessApi* | [**check_access_batch_check_access_batch_post**](docs/AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch +*AccessApi* | [**check_access_check_access_post**](docs/AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access +*AccessApi* | [**simulate_simulate_post**](docs/AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate +*AuthApi* | [**admin_login_admin_login_post**](docs/AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login +*AuthApi* | [**admin_login_admin_login_post_0**](docs/AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login +*DevApi* | [**get_sample_data_dev_sample_data_get**](docs/DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data +*DevApi* | [**seed_sample_data_dev_sample_data_seed_post**](docs/DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data +*HealthApi* | [**health_health_get**](docs/HealthApi.md#health_health_get) | **GET** /health | Health +*HealthApi* | [**liveness_health_live_get**](docs/HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness +*HealthApi* | [**readiness_health_ready_get**](docs/HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness +*ManagementApi* | [**add_permission_to_role_roles_role_id_permissions_permission_id_post**](docs/ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +*ManagementApi* | [**create_acl_entry_acl_post**](docs/ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry +*ManagementApi* | [**create_auth_model_auth_model_post**](docs/ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model +*ManagementApi* | [**create_permission_permissions_post**](docs/ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission +*ManagementApi* | [**create_policy_from_dsl_policies_dsl_post**](docs/ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl +*ManagementApi* | [**create_policy_policies_post**](docs/ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy +*ManagementApi* | [**create_relationship_relationships_post**](docs/ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship +*ManagementApi* | [**create_role_roles_post**](docs/ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role +*ManagementApi* | [**delete_acl_entry_acl_acl_id_delete**](docs/ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +*ManagementApi* | [**delete_permission_permissions_permission_id_delete**](docs/ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission +*ManagementApi* | [**delete_policy_policies_policy_key_delete**](docs/ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy +*ManagementApi* | [**delete_role_roles_role_id_delete**](docs/ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role +*ManagementApi* | [**get_auth_model_auth_model_get**](docs/ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model +*ManagementApi* | [**impact_analysis_impact_analysis_post**](docs/ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis +*ManagementApi* | [**list_acl_entries_acl_resource_type_resource_id_get**](docs/ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +*ManagementApi* | [**list_audit_logs_audit_get**](docs/ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs +*ManagementApi* | [**list_permission_roles_permissions_permission_id_roles_get**](docs/ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles +*ManagementApi* | [**list_permissions_permissions_get**](docs/ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions +*ManagementApi* | [**list_policies_policies_get**](docs/ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies +*ManagementApi* | [**list_relationships_relationships_get**](docs/ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships +*ManagementApi* | [**list_role_permissions_roles_role_id_permissions_get**](docs/ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions +*ManagementApi* | [**list_roles_roles_get**](docs/ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles +*ManagementApi* | [**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](docs/ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +*ManagementApi* | [**rollback_policy_policies_policy_key_rollback_version_post**](docs/ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +*ManagementApi* | [**simulate_policy_simulate_policy_post**](docs/ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy +*ManagementApi* | [**update_permission_permissions_permission_id_put**](docs/ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission +*ManagementApi* | [**update_policy_policies_policy_key_put**](docs/ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy +*ManagementApi* | [**update_role_roles_role_id_put**](docs/ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role +*PlaygroundApi* | [**evaluate_playground_evaluate_post**](docs/PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate + + +## Documentation For Models + + - [AccessDecisionResponse](docs/AccessDecisionResponse.md) + - [AccessRequest](docs/AccessRequest.md) + - [AclCreate](docs/AclCreate.md) + - [AclOut](docs/AclOut.md) + - [AdminLoginRequest](docs/AdminLoginRequest.md) + - [AdminLoginResponse](docs/AdminLoginResponse.md) + - [AuditRecordOut](docs/AuditRecordOut.md) + - [AuthModelCreate](docs/AuthModelCreate.md) + - [AuthModelOut](docs/AuthModelOut.md) + - [BatchAccessItem](docs/BatchAccessItem.md) + - [BatchAccessRequest](docs/BatchAccessRequest.md) + - [BatchAccessResponse](docs/BatchAccessResponse.md) + - [BatchAccessResult](docs/BatchAccessResult.md) + - [DataValue](docs/DataValue.md) + - [HttpValidationError](docs/HttpValidationError.md) + - [ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) + - [ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) + - [LocationInner](docs/LocationInner.md) + - [MetaBody](docs/MetaBody.md) + - [PermissionCreate](docs/PermissionCreate.md) + - [PermissionOut](docs/PermissionOut.md) + - [PermissionUpdate](docs/PermissionUpdate.md) + - [PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) + - [PlaygroundInput](docs/PlaygroundInput.md) + - [PlaygroundPolicy](docs/PlaygroundPolicy.md) + - [PolicyCreate](docs/PolicyCreate.md) + - [PolicyOut](docs/PolicyOut.md) + - [PolicySimulationInput](docs/PolicySimulationInput.md) + - [PolicySimulationRequest](docs/PolicySimulationRequest.md) + - [PolicySimulationResponse](docs/PolicySimulationResponse.md) + - [RelationshipCreate](docs/RelationshipCreate.md) + - [RelationshipOut](docs/RelationshipOut.md) + - [RoleCreate](docs/RoleCreate.md) + - [RoleOut](docs/RoleOut.md) + - [RoleUpdate](docs/RoleUpdate.md) + - [SimulationResponse](docs/SimulationResponse.md) + - [SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) + - [SuccessResponseAclOut](docs/SuccessResponseAclOut.md) + - [SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) + - [SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) + - [SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) + - [SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) + - [SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) + - [SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) + - [SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) + - [SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) + - [SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) + - [SuccessResponseListAclOut](docs/SuccessResponseListAclOut.md) + - [SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) + - [SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) + - [SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) + - [SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) + - [SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) + - [SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) + - [SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) + - [SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) + - [SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) + - [SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) + - [ValidationError](docs/ValidationError.md) + + +To get access to the crate's generated documentation, use: +``` +cargo doc --open +``` -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/rust). +## Author -## ๐Ÿค Support -- **Source**: [https://github.com/keynetra/keynetra-client-rust](https://github.com/keynetra/keynetra-client-rust) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-rust/issues) -- **License**: Apache-2.0 diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 456b9e2..d9872d9 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -1,53 +1,228 @@ -# @keynetra/client +# @keynetra/client@0.1.1 -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/typescript) +A TypeScript SDK client for the localhost API. -Official TypeScript Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ +## Usage -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your TypeScript applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation +First, install the SDK from npm. ```bash -npm install @keynetra/client +npm install @keynetra/client --save ``` -## ๐Ÿš€ Quick Start +Next, try it out. + + +```ts +import { + Configuration, + AccessApi, +} from '@keynetra/client'; +import type { CheckAccessBatchCheckAccessBatchPostRequest } from '@keynetra/client'; + +async function example() { + console.log("๐Ÿš€ Testing @keynetra/client SDK..."); + const config = new Configuration({ + // To configure API key authorization: APIKeyHeader + apiKey: "YOUR API KEY", + // Configure HTTP bearer authorization: HTTPBearer + accessToken: "YOUR BEARER TOKEN", + }); + const api = new AccessApi(config); + + const body = { + // BatchAccessRequest + batchAccessRequest: ..., + // string (optional) + policySet: policySet_example, + } satisfies CheckAccessBatchCheckAccessBatchPostRequest; + + try { + const data = await api.checkAccessBatchCheckAccessBatchPost(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` -```typescript -import { KeyNetraClient } from "@keynetra/client"; -const client = new KeyNetraClient( - "http://localhost:8080", - "YOUR_API_KEY" -); +## Documentation + +### API Endpoints + +All URIs are relative to *http://localhost* + +| Class | Method | HTTP request | Description +| ----- | ------ | ------------ | ------------- +*AccessApi* | [**checkAccessBatchCheckAccessBatchPost**](docs/AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch +*AccessApi* | [**checkAccessCheckAccessPost**](docs/AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access +*AccessApi* | [**simulateSimulatePost**](docs/AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate +*AuthApi* | [**adminLoginAdminLoginPost**](docs/AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login +*AuthApi* | [**adminLoginAdminLoginPost_0**](docs/AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login +*DevApi* | [**getSampleDataDevSampleDataGet**](docs/DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data +*DevApi* | [**seedSampleDataDevSampleDataSeedPost**](docs/DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data +*HealthApi* | [**healthHealthGet**](docs/HealthApi.md#healthhealthget) | **GET** /health | Health +*HealthApi* | [**livenessHealthLiveGet**](docs/HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness +*HealthApi* | [**readinessHealthReadyGet**](docs/HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness +*ManagementApi* | [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](docs/ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role +*ManagementApi* | [**createAclEntryAclPost**](docs/ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry +*ManagementApi* | [**createAuthModelAuthModelPost**](docs/ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model +*ManagementApi* | [**createPermissionPermissionsPost**](docs/ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission +*ManagementApi* | [**createPolicyFromDslPoliciesDslPost**](docs/ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl +*ManagementApi* | [**createPolicyPoliciesPost**](docs/ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy +*ManagementApi* | [**createRelationshipRelationshipsPost**](docs/ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship +*ManagementApi* | [**createRoleRolesPost**](docs/ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role +*ManagementApi* | [**deleteAclEntryAclAclIdDelete**](docs/ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry +*ManagementApi* | [**deletePermissionPermissionsPermissionIdDelete**](docs/ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission +*ManagementApi* | [**deletePolicyPoliciesPolicyKeyDelete**](docs/ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy +*ManagementApi* | [**deleteRoleRolesRoleIdDelete**](docs/ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role +*ManagementApi* | [**getAuthModelAuthModelGet**](docs/ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model +*ManagementApi* | [**impactAnalysisImpactAnalysisPost**](docs/ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis +*ManagementApi* | [**listAclEntriesAclResourceTypeResourceIdGet**](docs/ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries +*ManagementApi* | [**listAuditLogsAuditGet**](docs/ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs +*ManagementApi* | [**listPermissionRolesPermissionsPermissionIdRolesGet**](docs/ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles +*ManagementApi* | [**listPermissionsPermissionsGet**](docs/ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions +*ManagementApi* | [**listPoliciesPoliciesGet**](docs/ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies +*ManagementApi* | [**listRelationshipsRelationshipsGet**](docs/ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships +*ManagementApi* | [**listRolePermissionsRolesRoleIdPermissionsGet**](docs/ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions +*ManagementApi* | [**listRolesRolesGet**](docs/ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles +*ManagementApi* | [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](docs/ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role +*ManagementApi* | [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](docs/ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy +*ManagementApi* | [**simulatePolicySimulatePolicyPost**](docs/ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy +*ManagementApi* | [**updatePermissionPermissionsPermissionIdPut**](docs/ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission +*ManagementApi* | [**updatePolicyPoliciesPolicyKeyPut**](docs/ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy +*ManagementApi* | [**updateRoleRolesRoleIdPut**](docs/ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role +*PlaygroundApi* | [**evaluatePlaygroundEvaluatePost**](docs/PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate + + +### Models + +- [ACLCreate](docs/ACLCreate.md) +- [ACLOut](docs/ACLOut.md) +- [AccessDecisionResponse](docs/AccessDecisionResponse.md) +- [AccessRequest](docs/AccessRequest.md) +- [AdminLoginRequest](docs/AdminLoginRequest.md) +- [AdminLoginResponse](docs/AdminLoginResponse.md) +- [AuditRecordOut](docs/AuditRecordOut.md) +- [AuthModelCreate](docs/AuthModelCreate.md) +- [AuthModelOut](docs/AuthModelOut.md) +- [BatchAccessItem](docs/BatchAccessItem.md) +- [BatchAccessRequest](docs/BatchAccessRequest.md) +- [BatchAccessResponse](docs/BatchAccessResponse.md) +- [BatchAccessResult](docs/BatchAccessResult.md) +- [DataValue](docs/DataValue.md) +- [HTTPValidationError](docs/HTTPValidationError.md) +- [ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) +- [ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) +- [LocationInner](docs/LocationInner.md) +- [MetaBody](docs/MetaBody.md) +- [PermissionCreate](docs/PermissionCreate.md) +- [PermissionOut](docs/PermissionOut.md) +- [PermissionUpdate](docs/PermissionUpdate.md) +- [PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) +- [PlaygroundInput](docs/PlaygroundInput.md) +- [PlaygroundPolicy](docs/PlaygroundPolicy.md) +- [PolicyCreate](docs/PolicyCreate.md) +- [PolicyOut](docs/PolicyOut.md) +- [PolicySimulationInput](docs/PolicySimulationInput.md) +- [PolicySimulationRequest](docs/PolicySimulationRequest.md) +- [PolicySimulationResponse](docs/PolicySimulationResponse.md) +- [RelationshipCreate](docs/RelationshipCreate.md) +- [RelationshipOut](docs/RelationshipOut.md) +- [RoleCreate](docs/RoleCreate.md) +- [RoleOut](docs/RoleOut.md) +- [RoleUpdate](docs/RoleUpdate.md) +- [SimulationResponse](docs/SimulationResponse.md) +- [SuccessResponseACLOut](docs/SuccessResponseACLOut.md) +- [SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) +- [SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) +- [SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) +- [SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) +- [SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) +- [SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) +- [SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) +- [SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) +- [SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) +- [SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) +- [SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) +- [SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) +- [SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) +- [SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) +- [SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) +- [SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) +- [SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) +- [SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) +- [SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) +- [SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) +- [SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) +- [ValidationError](docs/ValidationError.md) + +### Authorization + + +Authentication schemes defined for the API: + +#### HTTPBearer + + +- **Type**: HTTP Bearer Token authentication + +#### APIKeyHeader + + +- **Type**: API key +- **API key parameter name**: `X-API-Key` +- **Location**: HTTP header + +## About + +This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/) +and is automatically generated by the +[OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: `0.1.1` +- Package version: `0.1.1` +- Generator version: `7.21.0` +- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen` + +The generated npm module supports the following: + +- Environments + * Node.js + * Webpack + * Browserify +- Language levels + * ES5 - you must have a Promises/A+ library installed + * ES6 +- Module systems + * CommonJS + * ES6 module system + + +## Development + +### Building + +To build the TypeScript source code, you need to have Node.js and npm installed. +After cloning the repository, navigate to the project directory and run: -// Perform an access check -const decision = await client.access.checkAccess({ - subject: "user:123", - action: "read", - resource: "document:456" -}); +```bash +npm install +npm run build ``` +### Publishing +Once you've built the package, you can publish it to npm: -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/typescript). - -## ๐Ÿค Support +```bash +npm publish +``` -- **Source**: [https://github.com/keynetra/keynetra-client-typescript](https://github.com/keynetra/keynetra-client-typescript) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-typescript/issues) -- **License**: Apache-2.0 +## License +[]() diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index bf8c387..5f7132e 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,27 +1,21 @@ { "name": "@keynetra/client", "version": "0.1.1", - "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", - "license": "Apache-2.0", - "type": "module", - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", - "files": [ - "dist", - "src", - "README.md" - ], - "author": "KeyNetra ", + "description": "OpenAPI client for @keynetra/client", + "author": "OpenAPI-Generator", "repository": { "type": "git", - "url": "git+https://github.com/keynetra/keynetra-client-typescript.git" + "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, - "homepage": "https://github.com/keynetra/keynetra-client-typescript", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "module": "./dist/esm/index.js", + "sideEffects": false, "scripts": { - "build": "tsc -p tsconfig.json" + "build": "tsc && tsc -p tsconfig.esm.json", + "prepare": "npm run build" }, "devDependencies": { - "typescript": "^5.0.0" + "typescript": "^4.0 || ^5.0" } } diff --git a/sdks/typescript/tsconfig.json b/sdks/typescript/tsconfig.json index 99bdbe5..250280d 100644 --- a/sdks/typescript/tsconfig.json +++ b/sdks/typescript/tsconfig.json @@ -1,14 +1,16 @@ { "compilerOptions": { - "target": "ES2022", - "module": "ES2022", - "moduleResolution": "Bundler", "declaration": true, + "target": "es6", + "module": "commonjs", + "moduleResolution": "node", "outDir": "dist", - "rootDir": "src", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true + "typeRoots": [ + "node_modules/@types" + ] }, - "include": ["src/**/*.ts"] + "exclude": [ + "dist", + "node_modules" + ] } From 5c7de8105efa2313f13d3867ad61feb2caaebd28 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:35:30 +0530 Subject: [PATCH 13/40] fix: resolve multiple SDK build failures in release pipeline --- .github/workflows/release.yml | 10 ++++++-- scripts/generate-all.sh | 31 +++++++++++++++++++++++- scripts/prepare-packages.sh | 45 ++++++++++++++++++----------------- templates/csharp-config.yaml | 1 + 4 files changed, 62 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6495c1b..39c8621 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -186,6 +186,7 @@ jobs: if: matrix.id == 'java' run: | cd sdks/java + chmod +x ./gradlew ./gradlew build - name: ๐Ÿฆ€ Test Rust (Local) @@ -216,6 +217,7 @@ jobs: if: matrix.id == 'kotlin' run: | cd sdks/kotlin + chmod +x ./gradlew ./gradlew build - name: ๐ŸŽ Test Swift (Local) @@ -376,7 +378,9 @@ jobs: MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - run: ./gradlew publish + run: | + chmod +x ./gradlew + ./gradlew publish - name: ๐Ÿ”„ Mirror to dedicated repo uses: cpina/github-action-push-to-another-repository@main @@ -585,7 +589,9 @@ jobs: - name: ๐Ÿ› ๏ธ Build Kotlin Library working-directory: sdks/kotlin - run: ./gradlew build + run: | + chmod +x ./gradlew + ./gradlew build - name: ๐Ÿ”„ Mirror to dedicated repo uses: cpina/github-action-push-to-another-repository@main diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 4439a1e..44b3f8f 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -229,6 +229,7 @@ generate_sdk_rust() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ + --type-mappings=null=serde_json::Value,Null=serde_json::Value \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" @@ -324,6 +325,34 @@ generate_sdk_php() { fi } +generate_sdk_swift() { + local generator="swift6" + local output_dir="${ROOT_DIR}/sdks/swift" + local config_file="${ROOT_DIR}/templates/swift-config.yaml" + local name="Swift" + local log_file="${ROOT_DIR}/sdks/gen-Swift.log" + + log_step "Generating ${name} SDK..." + rm -rf "${output_dir}" + mkdir -p "${output_dir}" + + if openapi-generator-cli generate \ + -i "${SPEC_FILE}" \ + -g "${generator}" \ + -o "${output_dir}" \ + -c "${config_file}" \ + --type-mappings=null=Any \ + --skip-validate-spec > "${log_file}" 2>&1; then + log_success "${name} SDK generated successfully." + rm -f "${log_file}" + else + log_error "Failed to generate ${name} SDK. See details below:" + cat "${log_file}" + rm -f "${log_file}" + return 1 + fi +} + # --- Execution --- echo -e "${YELLOW}${ROCKET} Starting KeyNetra SDK Generation v${SDK_VERSION}${NC}" @@ -343,7 +372,7 @@ FAIL=0 (generate_sdk_php) || FAIL=1 & (generate_sdk_ruby) || FAIL=1 & (generate_sdk_kotlin) || FAIL=1 & -(generate_sdk swift6 "${ROOT_DIR}/sdks/swift" "${ROOT_DIR}/templates/swift-config.yaml" "Swift") || FAIL=1 & +(generate_sdk_swift) || FAIL=1 & # Wait for all background jobs to finish for job in $(jobs -p); do diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 83625e4..6534dee 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -180,7 +180,6 @@ const decision = await client.access.checkAccess({ "version": "${SDK_VERSION}", "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", "license": "Apache-2.0", - "type": "module", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", @@ -208,8 +207,8 @@ EOF { "compilerOptions": { "target": "ES2022", - "module": "ES2022", - "moduleResolution": "Bundler", + "module": "CommonJS", + "moduleResolution": "Node", "declaration": true, "outDir": "dist", "rootDir": "src", @@ -283,12 +282,12 @@ decision, _, err := client.Access.CheckAccess(context.Background()). package keynetra type KeyNetraClient struct { - Access *AccessApiService - Auth *AuthApiService - Dev *DevApiService - Health *HealthApiService - Management *ManagementApiService - Playground *PlaygroundApiService + Access *AccessAPIService + Auth *AuthAPIService + Dev *DevAPIService + Health *HealthAPIService + Management *ManagementAPIService + Playground *PlaygroundAPIService client *APIClient } @@ -300,12 +299,12 @@ func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { client := NewAPIClient(cfg) return &KeyNetraClient{ - Access: client.AccessApi, - Auth: client.AuthApi, - Dev: client.DevApi, - Health: client.HealthApi, - Management: client.ManagementApi, - Playground: client.PlaygroundApi, + Access: client.AccessAPI, + Auth: client.AuthAPI, + Dev: client.DevAPI, + Health: client.HealthAPI, + Management: client.ManagementAPI, + Playground: client.PlaygroundAPI, client: client, } } @@ -478,6 +477,7 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { namespace KeyNetra.Client; using KeyNetra.Client.Api; +using KeyNetra.Client.Client; public sealed class KeyNetraClient { @@ -498,13 +498,14 @@ public sealed class KeyNetraClient configuration.DefaultHeaders["X-API-Key"] = apiKey; configuration.DefaultHeaders["Authorization"] = $"Bearer {apiKey}"; - var apiClient = new ApiClient(configuration); - Access = new AccessApi(apiClient); - Auth = new AuthApi(apiClient); - Dev = new DevApi(apiClient); - Health = new HealthApi(apiClient); - Management = new ManagementApi(apiClient); - Playground = new PlaygroundApi(apiClient); + // Use the simplified client initialization if possible + // Based on common OpenAPI C# generator patterns + Access = new AccessApi(configuration); + Auth = new AuthApi(configuration); + Dev = new DevApi(configuration); + Health = new HealthApi(configuration); + Management = new ManagementApi(configuration); + Playground = new PlaygroundApi(configuration); } } EOF diff --git a/templates/csharp-config.yaml b/templates/csharp-config.yaml index b5b4cb6..eb213a5 100644 --- a/templates/csharp-config.yaml +++ b/templates/csharp-config.yaml @@ -3,6 +3,7 @@ packageVersion: 0.1.1 packageCompany: KeyNetra packageAuthors: KeyNetra targetFramework: net8.0 +library: restsharp nullableReferenceTypes: true optionalProjectFile: false packageTags: "keynetra;authorization;authz;permissions;sdk" From e9b7e1c5e62bbc1845c32fe0219b5beddedbe5cc Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:42:03 +0530 Subject: [PATCH 14/40] fix: resolve multiple SDK build failures in release pipeline --- scripts/generate-all.sh | 5 ++++- scripts/prepare-packages.sh | 45 ++++++++++++++++++++++++++++--------- 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 44b3f8f..49ec276 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -140,12 +140,14 @@ generate_sdk_kotlin() { rm -rf "${output_dir}" mkdir -p "${output_dir}" + # Kotlin-specific mappings to handle @Contextual for Any? if openapi-generator-cli generate \ -i "${SPEC_FILE}" \ -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=Any \ + --type-mappings=null=Any,Any=Any,object=Any \ + --additional-properties=enumPropertyNaming=original \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" @@ -224,6 +226,7 @@ generate_sdk_rust() { rm -rf "${output_dir}" mkdir -p "${output_dir}" + # Rust-specific mappings to handle 'null' types if openapi-generator-cli generate \ -i "${SPEC_FILE}" \ -g "${generator}" \ diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 6534dee..fd8c761 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -239,12 +239,12 @@ export class KeyNetraClient { public readonly management: ManagementApi; public readonly playground: PlaygroundApi; - constructor(base_url: string, api_key: string) { + constructor(options: { baseUrl: string, apiKey: string }) { const configuration = new Configuration({ - basePath: base_url, + basePath: options.baseUrl, headers: { - "X-API-Key": api_key, - Authorization: `Bearer ${api_key}`, + "X-API-Key": options.apiKey, + Authorization: `Bearer ${options.apiKey}`, }, }); @@ -298,13 +298,14 @@ func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { cfg.DefaultHeader["Authorization"] = "Bearer " + apiKey client := NewAPIClient(cfg) + return &KeyNetraClient{ - Access: client.AccessAPI, - Auth: client.AuthAPI, - Dev: client.DevAPI, - Health: client.HealthAPI, - Management: client.ManagementAPI, - Playground: client.PlaygroundAPI, + Access: client.AccessAPI.(*AccessAPIService), + Auth: client.AuthAPI.(*AuthAPIService), + Dev: client.DevAPI.(*DevAPIService), + Health: client.HealthAPI.(*HealthAPIService), + Management: client.ManagementAPI.(*ManagementAPIService), + Playground: client.PlaygroundAPI.(*PlaygroundAPIService), client: client, } } @@ -317,6 +318,11 @@ prepare_java() { local repo_url="https://github.com/keynetra/keynetra-client-java" local docs_url="https://docs.keynetra.com/sdks/java" + # Ensure gradlew is executable + if [ -f "${ROOT_DIR}/sdks/java/gradlew" ]; then + chmod +x "${ROOT_DIR}/sdks/java/gradlew" + fi + generate_readme "Java" "keynetra-client" " io.keynetra keynetra-client @@ -530,6 +536,20 @@ prepare_ruby() { log_step "Ruby" local repo_url="https://github.com/keynetra/keynetra-client-ruby" local docs_url="https://docs.keynetra.com/sdks/ruby" + + # Ensure the directory exists + mkdir -p "${ROOT_DIR}/sdks/ruby/lib/keynetra-client" + + # The generator might not have created the version file if we are using custom templates or specific options + # Let's ensure a version file exists so the gemspec doesn't fail + if [ ! -f "${ROOT_DIR}/sdks/ruby/lib/keynetra-client/version.rb" ]; then + cat > "${ROOT_DIR}/sdks/ruby/lib/keynetra-client/version.rb" < Date: Thu, 9 Apr 2026 02:43:52 +0530 Subject: [PATCH 15/40] fix: resolve parallel race condition in SDK generation --- scripts/generate-all.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 49ec276..5ccb124 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -37,12 +37,16 @@ require_cmd() { install_generator() { if command -v openapi-generator-cli >/dev/null 2>&1; then log_info "OpenAPI Generator already installed." + # Ensure a version is selected and downloaded to avoid parallel download race conditions + openapi-generator-cli version >/dev/null 2>&1 return fi log_step "Installing OpenAPI Generator..." require_cmd npm npm install -g @openapitools/openapi-generator-cli + # Pre-download the jar to avoid parallel race conditions + openapi-generator-cli version >/dev/null 2>&1 } generate_sdk() { From 8d4979d9a1f94c46fe5ce520c5d696117335b609 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 02:54:48 +0530 Subject: [PATCH 16/40] fix: resolve parallel race condition in SDK generation --- .github/workflows/release.yml | 12 +- scripts/generate-all.sh | 6 +- scripts/prepare-packages.sh | 29 +- sdks/csharp/KeyNetra.Client.sln | 10 +- sdks/csharp/docs/apis/AccessApi.md | 117 -- sdks/csharp/docs/apis/AuthApi.md | 79 - sdks/csharp/docs/apis/DevApi.md | 74 - sdks/csharp/docs/apis/HealthApi.md | 100 -- sdks/csharp/docs/apis/ManagementApi.md | 1029 ----------- sdks/csharp/docs/apis/PlaygroundApi.md | 43 - sdks/csharp/docs/models/ACLCreate.md | 15 - sdks/csharp/docs/models/ACLOut.md | 18 - .../docs/models/AccessDecisionResponse.md | 16 - sdks/csharp/docs/models/AccessRequest.md | 16 - sdks/csharp/docs/models/AdminLoginRequest.md | 11 - sdks/csharp/docs/models/AdminLoginResponse.md | 14 - sdks/csharp/docs/models/AuditRecordOut.md | 22 - sdks/csharp/docs/models/AuthModelCreate.md | 10 - sdks/csharp/docs/models/AuthModelOut.md | 14 - sdks/csharp/docs/models/BatchAccessItem.md | 11 - sdks/csharp/docs/models/BatchAccessRequest.md | 13 - .../csharp/docs/models/BatchAccessResponse.md | 11 - sdks/csharp/docs/models/BatchAccessResult.md | 12 - sdks/csharp/docs/models/DataValue.md | 9 - .../csharp/docs/models/HTTPValidationError.md | 10 - .../docs/models/ImpactAnalysisRequest.md | 10 - .../docs/models/ImpactAnalysisResponse.md | 11 - sdks/csharp/docs/models/LocationInner.md | 9 - sdks/csharp/docs/models/MetaBody.md | 13 - sdks/csharp/docs/models/PermissionCreate.md | 10 - sdks/csharp/docs/models/PermissionOut.md | 11 - sdks/csharp/docs/models/PermissionUpdate.md | 10 - .../docs/models/PlaygroundEvaluateRequest.md | 11 - sdks/csharp/docs/models/PlaygroundInput.md | 13 - sdks/csharp/docs/models/PlaygroundPolicy.md | 14 - sdks/csharp/docs/models/PolicyCreate.md | 14 - sdks/csharp/docs/models/PolicyOut.md | 15 - .../docs/models/PolicySimulationInput.md | 12 - .../docs/models/PolicySimulationRequest.md | 11 - .../docs/models/PolicySimulationResponse.md | 11 - sdks/csharp/docs/models/RelationshipCreate.md | 14 - sdks/csharp/docs/models/RelationshipOut.md | 15 - sdks/csharp/docs/models/RoleCreate.md | 10 - sdks/csharp/docs/models/RoleOut.md | 11 - sdks/csharp/docs/models/RoleUpdate.md | 10 - sdks/csharp/docs/models/SimulationResponse.md | 16 - .../docs/models/SuccessResponseACLOut.md | 12 - .../SuccessResponseAccessDecisionResponse.md | 12 - .../SuccessResponseAdminLoginResponse.md | 12 - .../models/SuccessResponseAuthModelOut.md | 12 - .../SuccessResponseBatchAccessResponse.md | 12 - .../docs/models/SuccessResponseDictStrAny.md | 12 - .../docs/models/SuccessResponseDictStrInt.md | 12 - .../models/SuccessResponseDictStrObject.md | 12 - .../docs/models/SuccessResponseDictStrStr.md | 12 - .../SuccessResponseDictStrUnionIntStr.md | 12 - .../SuccessResponseImpactAnalysisResponse.md | 12 - .../docs/models/SuccessResponseListACLOut.md | 12 - .../SuccessResponseListAuditRecordOut.md | 12 - .../models/SuccessResponseListDictStrStr.md | 12 - .../SuccessResponseListPermissionOut.md | 12 - .../models/SuccessResponseListPolicyOut.md | 12 - .../docs/models/SuccessResponseListRoleOut.md | 12 - .../models/SuccessResponsePermissionOut.md | 12 - .../docs/models/SuccessResponsePolicyOut.md | 12 - ...SuccessResponsePolicySimulationResponse.md | 12 - .../models/SuccessResponseRelationshipOut.md | 12 - .../SuccessResponseSimulationResponse.md | 12 - sdks/csharp/docs/models/ValidationError.md | 14 - sdks/csharp/docs/scripts/git_push.ps1 | 75 - sdks/csharp/docs/scripts/git_push.sh | 49 - sdks/go/docs/SuccessResponseACLOut.md | 8 +- .../SuccessResponseAccessDecisionResponse.md | 8 +- .../docs/SuccessResponseAdminLoginResponse.md | 8 +- sdks/go/docs/SuccessResponseAuthModelOut.md | 8 +- .../SuccessResponseBatchAccessResponse.md | 8 +- sdks/go/docs/SuccessResponseDictStrAny.md | 8 +- sdks/go/docs/SuccessResponseDictStrInt.md | 8 +- sdks/go/docs/SuccessResponseDictStrObject.md | 8 +- sdks/go/docs/SuccessResponseDictStrStr.md | 8 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 8 +- .../SuccessResponseImpactAnalysisResponse.md | 8 +- sdks/go/docs/SuccessResponseListACLOut.md | 8 +- .../docs/SuccessResponseListAuditRecordOut.md | 8 +- sdks/go/docs/SuccessResponseListDictStrStr.md | 8 +- .../docs/SuccessResponseListPermissionOut.md | 8 +- sdks/go/docs/SuccessResponseListPolicyOut.md | 8 +- sdks/go/docs/SuccessResponseListRoleOut.md | 8 +- sdks/go/docs/SuccessResponsePermissionOut.md | 8 +- sdks/go/docs/SuccessResponsePolicyOut.md | 8 +- ...SuccessResponsePolicySimulationResponse.md | 8 +- .../go/docs/SuccessResponseRelationshipOut.md | 8 +- .../docs/SuccessResponseSimulationResponse.md | 8 +- sdks/go/docs/ValidationError.md | 8 +- sdks/go/keynetra_client.go | 25 +- ...cess_response_access_decision_response_.go | 12 +- sdks/go/model_success_response_acl_out_.go | 12 +- ..._success_response_admin_login_response_.go | 12 +- .../model_success_response_auth_model_out_.go | 12 +- ...success_response_batch_access_response_.go | 12 +- .../model_success_response_dict_str__any__.go | 12 +- .../model_success_response_dict_str__int__.go | 12 +- ...del_success_response_dict_str__object__.go | 12 +- .../model_success_response_dict_str__str__.go | 12 +- ...ss_response_dict_str__union_int__str___.go | 12 +- ...cess_response_impact_analysis_response_.go | 12 +- .../model_success_response_list_acl_out__.go | 12 +- ...uccess_response_list_audit_record_out__.go | 12 +- ..._success_response_list_dict_str__str___.go | 12 +- ..._success_response_list_permission_out__.go | 12 +- ...odel_success_response_list_policy_out__.go | 12 +- .../model_success_response_list_role_out__.go | 12 +- .../model_success_response_permission_out_.go | 12 +- sdks/go/model_success_response_policy_out_.go | 12 +- ...ss_response_policy_simulation_response_.go | 12 +- ...odel_success_response_relationship_out_.go | 12 +- ...l_success_response_simulation_response_.go | 12 +- sdks/go/model_validation_error.go | 14 +- sdks/java/docs/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- sdks/java/docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- sdks/java/docs/SuccessResponseDictStrAny.md | 2 +- sdks/java/docs/SuccessResponseDictStrInt.md | 2 +- .../java/docs/SuccessResponseDictStrObject.md | 2 +- sdks/java/docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- sdks/java/docs/SuccessResponseListACLOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../java/docs/SuccessResponseListPolicyOut.md | 2 +- sdks/java/docs/SuccessResponseListRoleOut.md | 2 +- .../java/docs/SuccessResponsePermissionOut.md | 2 +- sdks/java/docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- sdks/java/gradlew | 0 sdks/kotlin/README.md | 187 +- sdks/kotlin/docs/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- .../docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- sdks/kotlin/docs/SuccessResponseDictStrAny.md | 2 +- sdks/kotlin/docs/SuccessResponseDictStrInt.md | 2 +- .../docs/SuccessResponseDictStrObject.md | 2 +- sdks/kotlin/docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- sdks/kotlin/docs/SuccessResponseListACLOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../docs/SuccessResponseListPolicyOut.md | 2 +- .../kotlin/docs/SuccessResponseListRoleOut.md | 2 +- .../docs/SuccessResponsePermissionOut.md | 2 +- sdks/kotlin/docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- sdks/kotlin/docs/ValidationError.md | 2 +- sdks/kotlin/gradlew | 0 sdks/php/docs/Model/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../SuccessResponseAdminLoginResponse.md | 2 +- .../docs/Model/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- .../docs/Model/SuccessResponseDictStrAny.md | 2 +- .../docs/Model/SuccessResponseDictStrInt.md | 2 +- .../Model/SuccessResponseDictStrObject.md | 2 +- .../docs/Model/SuccessResponseDictStrStr.md | 2 +- .../SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- .../docs/Model/SuccessResponseListACLOut.md | 2 +- .../SuccessResponseListAuditRecordOut.md | 2 +- .../Model/SuccessResponseListDictStrStr.md | 2 +- .../Model/SuccessResponseListPermissionOut.md | 2 +- .../Model/SuccessResponseListPolicyOut.md | 2 +- .../docs/Model/SuccessResponseListRoleOut.md | 2 +- .../Model/SuccessResponsePermissionOut.md | 2 +- .../docs/Model/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../Model/SuccessResponseRelationshipOut.md | 2 +- .../SuccessResponseSimulationResponse.md | 2 +- sdks/ruby/README.md | 220 +-- sdks/ruby/docs/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- sdks/ruby/docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- sdks/ruby/docs/SuccessResponseDictStrAny.md | 2 +- sdks/ruby/docs/SuccessResponseDictStrInt.md | 2 +- .../ruby/docs/SuccessResponseDictStrObject.md | 2 +- sdks/ruby/docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- sdks/ruby/docs/SuccessResponseListACLOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../ruby/docs/SuccessResponseListPolicyOut.md | 2 +- sdks/ruby/docs/SuccessResponseListRoleOut.md | 2 +- .../ruby/docs/SuccessResponsePermissionOut.md | 2 +- sdks/ruby/docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- sdks/ruby/keynetra-client.gemspec | 2 +- sdks/rust/Cargo.toml | 7 +- sdks/rust/README.md | 163 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- sdks/rust/docs/SuccessResponseAclOut.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- sdks/rust/docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- sdks/rust/docs/SuccessResponseDictStrAny.md | 2 +- sdks/rust/docs/SuccessResponseDictStrInt.md | 2 +- .../rust/docs/SuccessResponseDictStrObject.md | 2 +- sdks/rust/docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- sdks/rust/docs/SuccessResponseListAclOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../rust/docs/SuccessResponseListPolicyOut.md | 2 +- sdks/rust/docs/SuccessResponseListRoleOut.md | 2 +- .../rust/docs/SuccessResponsePermissionOut.md | 2 +- sdks/rust/docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- .../Classes/OpenAPIs/APIHelper.swift | 121 -- .../Classes/OpenAPIs/APIs.swift | 68 - .../Classes/OpenAPIs/APIs/AccessAPI.swift | 171 -- .../Classes/OpenAPIs/APIs/AuthAPI.swift | 100 -- .../Classes/OpenAPIs/APIs/DevAPI.swift | 101 -- .../Classes/OpenAPIs/APIs/HealthAPI.swift | 137 -- .../Classes/OpenAPIs/APIs/ManagementAPI.swift | 1503 ----------------- .../Classes/OpenAPIs/APIs/PlaygroundAPI.swift | 63 - .../Classes/OpenAPIs/CodableHelper.swift | 49 - .../Classes/OpenAPIs/Configuration.swift | 18 - .../Classes/OpenAPIs/Extensions.swift | 237 --- .../Classes/OpenAPIs/JSONDataEncoding.swift | 56 - .../Classes/OpenAPIs/JSONEncodingHelper.swift | 45 - .../Classes/OpenAPIs/Models.swift | 129 -- .../Classes/OpenAPIs/Models/ACLCreate.swift | 52 - .../Classes/OpenAPIs/Models/ACLOut.swift | 67 - .../Models/AccessDecisionResponse.swift | 56 - .../OpenAPIs/Models/AccessRequest.swift | 53 - .../OpenAPIs/Models/AdminLoginRequest.swift | 36 - .../OpenAPIs/Models/AdminLoginResponse.swift | 48 - .../OpenAPIs/Models/AuditRecordOut.swift | 83 - .../OpenAPIs/Models/AuthModelCreate.swift | 32 - .../OpenAPIs/Models/AuthModelOut.swift | 51 - .../OpenAPIs/Models/BatchAccessItem.swift | 36 - .../OpenAPIs/Models/BatchAccessRequest.swift | 44 - .../OpenAPIs/Models/BatchAccessResponse.swift | 36 - .../OpenAPIs/Models/BatchAccessResult.swift | 40 - .../Classes/OpenAPIs/Models/DataValue.swift | 25 - .../OpenAPIs/Models/HTTPValidationError.swift | 32 - .../Models/ImpactAnalysisRequest.swift | 32 - .../Models/ImpactAnalysisResponse.swift | 36 - .../OpenAPIs/Models/LocationInner.swift | 25 - .../Classes/OpenAPIs/Models/MetaBody.swift | 44 - .../OpenAPIs/Models/PermissionCreate.swift | 32 - .../OpenAPIs/Models/PermissionOut.swift | 39 - .../OpenAPIs/Models/PermissionUpdate.swift | 32 - .../Models/PlaygroundEvaluateRequest.swift | 36 - .../OpenAPIs/Models/PlaygroundInput.swift | 44 - .../OpenAPIs/Models/PlaygroundPolicy.swift | 48 - .../OpenAPIs/Models/PolicyCreate.swift | 48 - .../Classes/OpenAPIs/Models/PolicyOut.swift | 55 - .../Models/PolicySimulationInput.swift | 40 - .../Models/PolicySimulationRequest.swift | 36 - .../Models/PolicySimulationResponse.swift | 36 - .../OpenAPIs/Models/RelationshipCreate.swift | 48 - .../OpenAPIs/Models/RelationshipOut.swift | 55 - .../Classes/OpenAPIs/Models/RoleCreate.swift | 32 - .../Classes/OpenAPIs/Models/RoleOut.swift | 39 - .../Classes/OpenAPIs/Models/RoleUpdate.swift | 32 - .../OpenAPIs/Models/SimulationResponse.swift | 56 - .../Models/SuccessResponseACLOut.swift | 40 - ...uccessResponseAccessDecisionResponse.swift | 40 - .../SuccessResponseAdminLoginResponse.swift | 40 - .../Models/SuccessResponseAuthModelOut.swift | 40 - .../SuccessResponseBatchAccessResponse.swift | 40 - .../Models/SuccessResponseDictStrAny.swift | 40 - .../Models/SuccessResponseDictStrInt.swift | 40 - .../Models/SuccessResponseDictStrObject.swift | 40 - .../Models/SuccessResponseDictStrStr.swift | 40 - .../SuccessResponseDictStrUnionIntStr.swift | 40 - ...uccessResponseImpactAnalysisResponse.swift | 40 - .../Models/SuccessResponseListACLOut.swift | 40 - .../SuccessResponseListAuditRecordOut.swift | 40 - .../SuccessResponseListDictStrStr.swift | 40 - .../SuccessResponseListPermissionOut.swift | 40 - .../Models/SuccessResponseListPolicyOut.swift | 40 - .../Models/SuccessResponseListRoleOut.swift | 40 - .../Models/SuccessResponsePermissionOut.swift | 40 - .../Models/SuccessResponsePolicyOut.swift | 40 - ...cessResponsePolicySimulationResponse.swift | 40 - .../SuccessResponseRelationshipOut.swift | 40 - .../SuccessResponseSimulationResponse.swift | 40 - .../OpenAPIs/Models/ValidationError.swift | 48 - .../OpenAPIs/OpenISO8601DateFormatter.swift | 56 - .../OpenAPIs/SynchronizedDictionary.swift | 26 - .../OpenAPIs/URLSessionImplementations.swift | 682 -------- .../Classes/OpenAPIs/Validation.swift | 161 -- sdks/swift/README.md | 207 +-- sdks/swift/docs/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- .../swift/docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- sdks/swift/docs/SuccessResponseDictStrAny.md | 2 +- sdks/swift/docs/SuccessResponseDictStrInt.md | 2 +- .../docs/SuccessResponseDictStrObject.md | 2 +- sdks/swift/docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- sdks/swift/docs/SuccessResponseListACLOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../docs/SuccessResponseListPolicyOut.md | 2 +- sdks/swift/docs/SuccessResponseListRoleOut.md | 2 +- .../docs/SuccessResponsePermissionOut.md | 2 +- sdks/swift/docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- sdks/typescript/README.md | 249 +-- sdks/typescript/docs/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- .../docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- .../docs/SuccessResponseDictStrAny.md | 2 +- .../docs/SuccessResponseDictStrInt.md | 2 +- .../docs/SuccessResponseDictStrObject.md | 2 +- .../docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- .../docs/SuccessResponseListACLOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../docs/SuccessResponseListPolicyOut.md | 2 +- .../docs/SuccessResponseListRoleOut.md | 2 +- .../docs/SuccessResponsePermissionOut.md | 2 +- .../docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- sdks/typescript/package.json | 25 +- sdks/typescript/tsconfig.json | 18 +- 361 files changed, 646 insertions(+), 9770 deletions(-) delete mode 100644 sdks/csharp/docs/apis/AccessApi.md delete mode 100644 sdks/csharp/docs/apis/AuthApi.md delete mode 100644 sdks/csharp/docs/apis/DevApi.md delete mode 100644 sdks/csharp/docs/apis/HealthApi.md delete mode 100644 sdks/csharp/docs/apis/ManagementApi.md delete mode 100644 sdks/csharp/docs/apis/PlaygroundApi.md delete mode 100644 sdks/csharp/docs/models/ACLCreate.md delete mode 100644 sdks/csharp/docs/models/ACLOut.md delete mode 100644 sdks/csharp/docs/models/AccessDecisionResponse.md delete mode 100644 sdks/csharp/docs/models/AccessRequest.md delete mode 100644 sdks/csharp/docs/models/AdminLoginRequest.md delete mode 100644 sdks/csharp/docs/models/AdminLoginResponse.md delete mode 100644 sdks/csharp/docs/models/AuditRecordOut.md delete mode 100644 sdks/csharp/docs/models/AuthModelCreate.md delete mode 100644 sdks/csharp/docs/models/AuthModelOut.md delete mode 100644 sdks/csharp/docs/models/BatchAccessItem.md delete mode 100644 sdks/csharp/docs/models/BatchAccessRequest.md delete mode 100644 sdks/csharp/docs/models/BatchAccessResponse.md delete mode 100644 sdks/csharp/docs/models/BatchAccessResult.md delete mode 100644 sdks/csharp/docs/models/DataValue.md delete mode 100644 sdks/csharp/docs/models/HTTPValidationError.md delete mode 100644 sdks/csharp/docs/models/ImpactAnalysisRequest.md delete mode 100644 sdks/csharp/docs/models/ImpactAnalysisResponse.md delete mode 100644 sdks/csharp/docs/models/LocationInner.md delete mode 100644 sdks/csharp/docs/models/MetaBody.md delete mode 100644 sdks/csharp/docs/models/PermissionCreate.md delete mode 100644 sdks/csharp/docs/models/PermissionOut.md delete mode 100644 sdks/csharp/docs/models/PermissionUpdate.md delete mode 100644 sdks/csharp/docs/models/PlaygroundEvaluateRequest.md delete mode 100644 sdks/csharp/docs/models/PlaygroundInput.md delete mode 100644 sdks/csharp/docs/models/PlaygroundPolicy.md delete mode 100644 sdks/csharp/docs/models/PolicyCreate.md delete mode 100644 sdks/csharp/docs/models/PolicyOut.md delete mode 100644 sdks/csharp/docs/models/PolicySimulationInput.md delete mode 100644 sdks/csharp/docs/models/PolicySimulationRequest.md delete mode 100644 sdks/csharp/docs/models/PolicySimulationResponse.md delete mode 100644 sdks/csharp/docs/models/RelationshipCreate.md delete mode 100644 sdks/csharp/docs/models/RelationshipOut.md delete mode 100644 sdks/csharp/docs/models/RoleCreate.md delete mode 100644 sdks/csharp/docs/models/RoleOut.md delete mode 100644 sdks/csharp/docs/models/RoleUpdate.md delete mode 100644 sdks/csharp/docs/models/SimulationResponse.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseACLOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseAuthModelOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrAny.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrInt.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrObject.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrStr.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseListACLOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseListDictStrStr.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseListPermissionOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseListPolicyOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseListRoleOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponsePermissionOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponsePolicyOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseRelationshipOut.md delete mode 100644 sdks/csharp/docs/models/SuccessResponseSimulationResponse.md delete mode 100644 sdks/csharp/docs/models/ValidationError.md delete mode 100644 sdks/csharp/docs/scripts/git_push.ps1 delete mode 100644 sdks/csharp/docs/scripts/git_push.sh mode change 100644 => 100755 sdks/java/gradlew mode change 100644 => 100755 sdks/kotlin/gradlew delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift delete mode 100644 sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39c8621..e8037e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,7 @@ jobs: # --- STAGE 2: ๐Ÿงช Pre-Publish Verification (Local Artifacts) --- smoke-test: - name: ๐Ÿงช Test ${{ matrix.language }} + name: "๐Ÿงช Local: ${{ matrix.language }}" needs: prepare runs-on: ubuntu-latest strategy: @@ -174,13 +174,14 @@ jobs: go mod tidy go build ./... - - name: ๐ŸŸข Test TypeScript (Local) + - name: ๐ŸŸข Test TypeScript (Local Artifact) if: matrix.id == 'typescript' run: | cd sdks/typescript npm install npm run build - node -e "const { KeyNetraClient } = require('./dist/index.js'); new KeyNetraClient({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('TS Local Verified');" + # Check for both named and default exports + node -e "const pkg = require('./dist/index.js'); const Client = pkg.KeyNetraClient || pkg.default?.KeyNetraClient; if (!Client) throw new Error('KeyNetraClient not found'); new Client({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('TS Local Verified');" - name: โ˜• Test Java (Local) if: matrix.id == 'java' @@ -636,7 +637,7 @@ jobs: # --- STAGE 4: ๐Ÿ Post-Publish Verification (Registry Libraries) --- verify-publish: - name: ๐Ÿ Verify ${{ matrix.language }} + name: "๐Ÿ Registry: ${{ matrix.language }}" needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, kotlin, swift] runs-on: ubuntu-latest strategy: @@ -699,7 +700,8 @@ jobs: mkdir verify-npm && cd verify-npm npm init -y npm install @keynetra/client@${{ needs.prepare.outputs.version }} - node -e "const { KeyNetraClient } = require('@keynetra/client'); new KeyNetraClient({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('Registry TS Verified');" + # Check for both named and default exports + node -e "const pkg = require('@keynetra/client'); const Client = pkg.KeyNetraClient || pkg.default?.KeyNetraClient; if (!Client) throw new Error('KeyNetraClient not found'); new Client({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('Registry TS Verified');" - name: ๐Ÿน Verify Go from GitHub if: matrix.id == 'go' diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 5ccb124..8b3f941 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -121,7 +121,7 @@ generate_sdk_go() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=any,Any=any,object=any,AnyOfstringinteger=any \ + --type-mappings=null=interface{},object=interface{} \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" @@ -150,8 +150,8 @@ generate_sdk_kotlin() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=Any,Any=Any,object=Any \ - --additional-properties=enumPropertyNaming=original \ + --type-mappings=null=kotlin.Any,Any=kotlin.Any,object=kotlin.Any \ + --additional-properties=enumPropertyNaming=original,library=multiplatform \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index fd8c761..8db8f93 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -257,6 +257,11 @@ export class KeyNetraClient { } } EOF + + # Ensure the wrapper is exported in the main index + if [ -f "${ROOT_DIR}/sdks/typescript/src/index.ts" ]; then + echo "export * from './keynetra-client';" >> "${ROOT_DIR}/sdks/typescript/src/index.ts" + fi } prepare_go() { @@ -282,12 +287,12 @@ decision, _, err := client.Access.CheckAccess(context.Background()). package keynetra type KeyNetraClient struct { - Access *AccessAPIService - Auth *AuthAPIService - Dev *DevAPIService - Health *HealthAPIService - Management *ManagementAPIService - Playground *PlaygroundAPIService + Access any + Auth any + Dev any + Health any + Management any + Playground any client *APIClient } @@ -300,12 +305,12 @@ func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { client := NewAPIClient(cfg) return &KeyNetraClient{ - Access: client.AccessAPI.(*AccessAPIService), - Auth: client.AuthAPI.(*AuthAPIService), - Dev: client.DevAPI.(*DevAPIService), - Health: client.HealthAPI.(*HealthAPIService), - Management: client.ManagementAPI.(*ManagementAPIService), - Playground: client.PlaygroundAPI.(*PlaygroundAPIService), + Access: client.AccessAPI, + Auth: client.AuthAPI, + Dev: client.DevAPI, + Health: client.HealthAPI, + Management: client.ManagementAPI, + Playground: client.PlaygroundAPI, client: client, } } diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln index c094e85..4a6f260 100644 --- a/sdks/csharp/KeyNetra.Client.sln +++ b/sdks/csharp/KeyNetra.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{EAC199DF-B147-427C-905A-02CC91253C0B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EAC199DF-B147-427C-905A-02CC91253C0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EAC199DF-B147-427C-905A-02CC91253C0B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EAC199DF-B147-427C-905A-02CC91253C0B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EAC199DF-B147-427C-905A-02CC91253C0B}.Release|Any CPU.Build.0 = Release|Any CPU + {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/sdks/csharp/docs/apis/AccessApi.md b/sdks/csharp/docs/apis/AccessApi.md deleted file mode 100644 index 541bc59..0000000 --- a/sdks/csharp/docs/apis/AccessApi.md +++ /dev/null @@ -1,117 +0,0 @@ -# KeyNetra.Client.Api.AccessApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**CheckAccessBatchCheckAccessBatchPost**](AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch | -| [**CheckAccessCheckAccessPost**](AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access | -| [**SimulateSimulatePost**](AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate | - - -# **CheckAccessBatchCheckAccessBatchPost** -> SuccessResponseBatchAccessResponse CheckAccessBatchCheckAccessBatchPost (BatchAccessRequest batchAccessRequest, string policySet = null) - -Check Access Batch - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md) | | | -| **policySet** | **string** | | [optional] [default to "active"] | - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CheckAccessCheckAccessPost** -> SuccessResponseAccessDecisionResponse CheckAccessCheckAccessPost (AccessRequest accessRequest, string policySet = null) - -Check Access - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **accessRequest** | [**AccessRequest**](AccessRequest.md) | | | -| **policySet** | **string** | | [optional] [default to "active"] | - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **SimulateSimulatePost** -> SuccessResponseSimulationResponse SimulateSimulatePost (AccessRequest accessRequest) - -Simulate - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **accessRequest** | [**AccessRequest**](AccessRequest.md) | | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/apis/AuthApi.md b/sdks/csharp/docs/apis/AuthApi.md deleted file mode 100644 index 646966a..0000000 --- a/sdks/csharp/docs/apis/AuthApi.md +++ /dev/null @@ -1,79 +0,0 @@ -# KeyNetra.Client.Api.AuthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**AdminLoginAdminLoginPost**](AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login | -| [**AdminLoginAdminLoginPost_0**](AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login | - - -# **AdminLoginAdminLoginPost** -> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost (AdminLoginRequest adminLoginRequest) - -Admin Login - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **AdminLoginAdminLoginPost_0** -> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost_0 (AdminLoginRequest adminLoginRequest) - -Admin Login - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/apis/DevApi.md b/sdks/csharp/docs/apis/DevApi.md deleted file mode 100644 index ffbfc72..0000000 --- a/sdks/csharp/docs/apis/DevApi.md +++ /dev/null @@ -1,74 +0,0 @@ -# KeyNetra.Client.Api.DevApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**GetSampleDataDevSampleDataGet**](DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data | -| [**SeedSampleDataDevSampleDataSeedPost**](DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data | - - -# **GetSampleDataDevSampleDataGet** -> SuccessResponseDictStrObject GetSampleDataDevSampleDataGet () - -Get Sample Data - - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **SeedSampleDataDevSampleDataSeedPost** -> SuccessResponseDictStrObject SeedSampleDataDevSampleDataSeedPost (bool reset = null) - -Seed Sample Data - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **reset** | **bool** | Clear the sample dataset before reseeding it. | [optional] [default to false] | - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/apis/HealthApi.md b/sdks/csharp/docs/apis/HealthApi.md deleted file mode 100644 index 80cda1d..0000000 --- a/sdks/csharp/docs/apis/HealthApi.md +++ /dev/null @@ -1,100 +0,0 @@ -# KeyNetra.Client.Api.HealthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**HealthHealthGet**](HealthApi.md#healthhealthget) | **GET** /health | Health | -| [**LivenessHealthLiveGet**](HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness | -| [**ReadinessHealthReadyGet**](HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness | - - -# **HealthHealthGet** -> SuccessResponseDictStrStr HealthHealthGet () - -Health - - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **LivenessHealthLiveGet** -> SuccessResponseDictStrStr LivenessHealthLiveGet () - -Liveness - - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ReadinessHealthReadyGet** -> SuccessResponseDictStrObject ReadinessHealthReadyGet () - -Readiness - - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/apis/ManagementApi.md b/sdks/csharp/docs/apis/ManagementApi.md deleted file mode 100644 index 929a4b9..0000000 --- a/sdks/csharp/docs/apis/ManagementApi.md +++ /dev/null @@ -1,1029 +0,0 @@ -# KeyNetra.Client.Api.ManagementApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| [**CreateAclEntryAclPost**](ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry | -| [**CreateAuthModelAuthModelPost**](ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model | -| [**CreatePermissionPermissionsPost**](ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission | -| [**CreatePolicyFromDslPoliciesDslPost**](ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl | -| [**CreatePolicyPoliciesPost**](ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy | -| [**CreateRelationshipRelationshipsPost**](ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship | -| [**CreateRoleRolesPost**](ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role | -| [**DeleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| [**DeletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| [**DeletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy | -| [**DeleteRoleRolesRoleIdDelete**](ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role | -| [**GetAuthModelAuthModelGet**](ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model | -| [**ImpactAnalysisImpactAnalysisPost**](ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis | -| [**ListAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| [**ListAuditLogsAuditGet**](ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs | -| [**ListPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| [**ListPermissionsPermissionsGet**](ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions | -| [**ListPoliciesPoliciesGet**](ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies | -| [**ListRelationshipsRelationshipsGet**](ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships | -| [**ListRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| [**ListRolesRolesGet**](ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles | -| [**RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| [**RollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| [**SimulatePolicySimulatePolicyPost**](ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy | -| [**UpdatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission | -| [**UpdatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy | -| [**UpdateRoleRolesRoleIdPut**](ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role | - - -# **AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** -> SuccessResponsePermissionOut AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost (int roleId, int permissionId) - -Add Permission To Role - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **roleId** | **int** | | | -| **permissionId** | **int** | | | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreateAclEntryAclPost** -> SuccessResponseACLOut CreateAclEntryAclPost (ACLCreate aCLCreate) - -Create Acl Entry - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **aCLCreate** | [**ACLCreate**](ACLCreate.md) | | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreateAuthModelAuthModelPost** -> SuccessResponseAuthModelOut CreateAuthModelAuthModelPost (AuthModelCreate authModelCreate) - -Create Auth Model - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md) | | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreatePermissionPermissionsPost** -> PermissionOut CreatePermissionPermissionsPost (PermissionCreate permissionCreate) - -Create Permission - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **permissionCreate** | [**PermissionCreate**](PermissionCreate.md) | | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreatePolicyFromDslPoliciesDslPost** -> SuccessResponsePolicyOut CreatePolicyFromDslPoliciesDslPost (string dsl) - -Create Policy From Dsl - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **dsl** | **string** | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreatePolicyPoliciesPost** -> SuccessResponsePolicyOut CreatePolicyPoliciesPost (PolicyCreate policyCreate) - -Create Policy - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreateRelationshipRelationshipsPost** -> SuccessResponseRelationshipOut CreateRelationshipRelationshipsPost (RelationshipCreate relationshipCreate) - -Create Relationship - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md) | | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **CreateRoleRolesPost** -> RoleOut CreateRoleRolesPost (RoleCreate roleCreate) - -Create Role - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **roleCreate** | [**RoleCreate**](RoleCreate.md) | | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **DeleteAclEntryAclAclIdDelete** -> SuccessResponseDictStrInt DeleteAclEntryAclAclIdDelete (int aclId) - -Delete Acl Entry - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **aclId** | **int** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **DeletePermissionPermissionsPermissionIdDelete** -> SuccessResponseDictStrInt DeletePermissionPermissionsPermissionIdDelete (int permissionId) - -Delete Permission - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **permissionId** | **int** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **DeletePolicyPoliciesPolicyKeyDelete** -> SuccessResponseDictStrStr DeletePolicyPoliciesPolicyKeyDelete (string policyKey) - -Delete Policy - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **policyKey** | **string** | | | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **DeleteRoleRolesRoleIdDelete** -> SuccessResponseDictStrInt DeleteRoleRolesRoleIdDelete (int roleId) - -Delete Role - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **roleId** | **int** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **GetAuthModelAuthModelGet** -> SuccessResponseAuthModelOut GetAuthModelAuthModelGet () - -Get Auth Model - - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ImpactAnalysisImpactAnalysisPost** -> SuccessResponseImpactAnalysisResponse ImpactAnalysisImpactAnalysisPost (ImpactAnalysisRequest impactAnalysisRequest) - -Impact Analysis - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListAclEntriesAclResourceTypeResourceIdGet** -> SuccessResponseListACLOut ListAclEntriesAclResourceTypeResourceIdGet (string resourceType, string resourceId) - -List Acl Entries - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **resourceType** | **string** | | | -| **resourceId** | **string** | | | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListAuditLogsAuditGet** -> SuccessResponseListAuditRecordOut ListAuditLogsAuditGet (int limit = null, string cursor = null, string userId = null, string resourceId = null, string decision = null, DateTime startTime = null, DateTime endTime = null) - -List Audit Logs - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **limit** | **int** | | [optional] [default to 50] | -| **cursor** | **string** | | [optional] | -| **userId** | **string** | | [optional] | -| **resourceId** | **string** | | [optional] | -| **decision** | **string** | | [optional] | -| **startTime** | **DateTime** | | [optional] | -| **endTime** | **DateTime** | | [optional] | - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListPermissionRolesPermissionsPermissionIdRolesGet** -> SuccessResponseListRoleOut ListPermissionRolesPermissionsPermissionIdRolesGet (int permissionId) - -List Permission Roles - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **permissionId** | **int** | | | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListPermissionsPermissionsGet** -> SuccessResponseListPermissionOut ListPermissionsPermissionsGet (int limit = null, string cursor = null) - -List Permissions - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **limit** | **int** | | [optional] [default to 50] | -| **cursor** | **string** | | [optional] | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListPoliciesPoliciesGet** -> SuccessResponseListPolicyOut ListPoliciesPoliciesGet (int limit = null, string cursor = null) - -List Policies - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **limit** | **int** | | [optional] [default to 50] | -| **cursor** | **string** | | [optional] | - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListRelationshipsRelationshipsGet** -> SuccessResponseListDictStrStr ListRelationshipsRelationshipsGet (string subjectType, string subjectId, int limit = null, string cursor = null) - -List Relationships - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **subjectType** | **string** | | | -| **subjectId** | **string** | | | -| **limit** | **int** | | [optional] [default to 50] | -| **cursor** | **string** | | [optional] | - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListRolePermissionsRolesRoleIdPermissionsGet** -> SuccessResponseListPermissionOut ListRolePermissionsRolesRoleIdPermissionsGet (int roleId) - -List Role Permissions - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **roleId** | **int** | | | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **ListRolesRolesGet** -> SuccessResponseListRoleOut ListRolesRolesGet (int limit = null, string cursor = null) - -List Roles - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **limit** | **int** | | [optional] [default to 50] | -| **cursor** | **string** | | [optional] | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** -> SuccessResponseDictStrInt RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete (int roleId, int permissionId) - -Remove Permission From Role - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **roleId** | **int** | | | -| **permissionId** | **int** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **RollbackPolicyPoliciesPolicyKeyRollbackVersionPost** -> SuccessResponseDictStrUnionIntStr RollbackPolicyPoliciesPolicyKeyRollbackVersionPost (string policyKey, int version) - -Rollback Policy - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **policyKey** | **string** | | | -| **version** | **int** | | | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **SimulatePolicySimulatePolicyPost** -> SuccessResponsePolicySimulationResponse SimulatePolicySimulatePolicyPost (PolicySimulationRequest policySimulationRequest) - -Simulate Policy - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **UpdatePermissionPermissionsPermissionIdPut** -> PermissionOut UpdatePermissionPermissionsPermissionIdPut (int permissionId, PermissionUpdate permissionUpdate) - -Update Permission - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **permissionId** | **int** | | | -| **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md) | | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **UpdatePolicyPoliciesPolicyKeyPut** -> SuccessResponsePolicyOut UpdatePolicyPoliciesPolicyKeyPut (string policyKey, PolicyCreate policyCreate) - -Update Policy - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **policyKey** | **string** | | | -| **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - - -# **UpdateRoleRolesRoleIdPut** -> RoleOut UpdateRoleRolesRoleIdPut (int roleId, RoleUpdate roleUpdate) - -Update Role - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **roleId** | **int** | | | -| **roleUpdate** | [**RoleUpdate**](RoleUpdate.md) | | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/apis/PlaygroundApi.md b/sdks/csharp/docs/apis/PlaygroundApi.md deleted file mode 100644 index 4fe0e2f..0000000 --- a/sdks/csharp/docs/apis/PlaygroundApi.md +++ /dev/null @@ -1,43 +0,0 @@ -# KeyNetra.Client.Api.PlaygroundApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**EvaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate | - - -# **EvaluatePlaygroundEvaluatePost** -> SuccessResponseDictStrAny EvaluatePlaygroundEvaluatePost (PlaygroundEvaluateRequest playgroundEvaluateRequest) - -Evaluate - - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/ACLCreate.md b/sdks/csharp/docs/models/ACLCreate.md deleted file mode 100644 index 44a8c33..0000000 --- a/sdks/csharp/docs/models/ACLCreate.md +++ /dev/null @@ -1,15 +0,0 @@ -# KeyNetra.Client.Model.ACLCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**ResourceType** | **string** | | -**ResourceId** | **string** | | -**Action** | **string** | | -**Effect** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/ACLOut.md b/sdks/csharp/docs/models/ACLOut.md deleted file mode 100644 index a711977..0000000 --- a/sdks/csharp/docs/models/ACLOut.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra.Client.Model.ACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**ResourceType** | **string** | | -**ResourceId** | **string** | | -**Action** | **string** | | -**Effect** | **string** | | -**Id** | **int** | | -**TenantId** | **int** | | -**CreatedAt** | **DateTime** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AccessDecisionResponse.md b/sdks/csharp/docs/models/AccessDecisionResponse.md deleted file mode 100644 index 9178b93..0000000 --- a/sdks/csharp/docs/models/AccessDecisionResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# KeyNetra.Client.Model.AccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Allowed** | **bool** | | -**Decision** | **string** | | -**MatchedPolicies** | **List<string>** | | [optional] -**Reason** | **string** | | [optional] -**PolicyId** | **string** | | [optional] -**ExplainTrace** | **List<Dictionary<string, Object>>** | | [optional] -**Revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AccessRequest.md b/sdks/csharp/docs/models/AccessRequest.md deleted file mode 100644 index 09dd7a7..0000000 --- a/sdks/csharp/docs/models/AccessRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# KeyNetra.Client.Model.AccessRequest -Explicit authorization request passed through the API boundary. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**User** | **Dictionary<string, Object>** | | [optional] -**Resource** | **Dictionary<string, Object>** | | [optional] -**Context** | **Dictionary<string, Object>** | | [optional] -**Consistency** | **string** | | [optional] [default to "eventual"] -**Revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AdminLoginRequest.md b/sdks/csharp/docs/models/AdminLoginRequest.md deleted file mode 100644 index d025f2b..0000000 --- a/sdks/csharp/docs/models/AdminLoginRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.AdminLoginRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Username** | **string** | | -**Password** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AdminLoginResponse.md b/sdks/csharp/docs/models/AdminLoginResponse.md deleted file mode 100644 index 85728ab..0000000 --- a/sdks/csharp/docs/models/AdminLoginResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# KeyNetra.Client.Model.AdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccessToken** | **string** | | -**ExpiresIn** | **int** | | -**TenantKey** | **string** | | -**TokenType** | **string** | | [optional] [default to "bearer"] -**Role** | **string** | | [optional] [default to "admin"] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AuditRecordOut.md b/sdks/csharp/docs/models/AuditRecordOut.md deleted file mode 100644 index cbc22f4..0000000 --- a/sdks/csharp/docs/models/AuditRecordOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra.Client.Model.AuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int** | | -**PrincipalType** | **string** | | -**PrincipalId** | **string** | | -**User** | **Dictionary<string, Object>** | | -**Action** | **string** | | -**Resource** | **Dictionary<string, Object>** | | -**Decision** | **string** | | -**MatchedPolicies** | **List<Object>** | | -**EvaluatedRules** | **List<Object>** | | -**FailedConditions** | **List<Object>** | | -**CreatedAt** | **DateTime** | | -**CorrelationId** | **string** | | [optional] -**Reason** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AuthModelCreate.md b/sdks/csharp/docs/models/AuthModelCreate.md deleted file mode 100644 index 11f9147..0000000 --- a/sdks/csharp/docs/models/AuthModelCreate.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.AuthModelCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Schema** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/AuthModelOut.md b/sdks/csharp/docs/models/AuthModelOut.md deleted file mode 100644 index 3e05f79..0000000 --- a/sdks/csharp/docs/models/AuthModelOut.md +++ /dev/null @@ -1,14 +0,0 @@ -# KeyNetra.Client.Model.AuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int** | | -**TenantId** | **int** | | -**Schema** | **string** | | -**Parsed** | **Dictionary<string, Object>** | | -**Compiled** | **Dictionary<string, Object>** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/BatchAccessItem.md b/sdks/csharp/docs/models/BatchAccessItem.md deleted file mode 100644 index 8482c1a..0000000 --- a/sdks/csharp/docs/models/BatchAccessItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.BatchAccessItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Resource** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/BatchAccessRequest.md b/sdks/csharp/docs/models/BatchAccessRequest.md deleted file mode 100644 index 4a2d40f..0000000 --- a/sdks/csharp/docs/models/BatchAccessRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# KeyNetra.Client.Model.BatchAccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Items** | [**List<BatchAccessItem>**](BatchAccessItem.md) | | -**User** | **Dictionary<string, Object>** | | [optional] -**Consistency** | **string** | | [optional] [default to "eventual"] -**Revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/BatchAccessResponse.md b/sdks/csharp/docs/models/BatchAccessResponse.md deleted file mode 100644 index 89190bf..0000000 --- a/sdks/csharp/docs/models/BatchAccessResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.BatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Results** | [**List<BatchAccessResult>**](BatchAccessResult.md) | | -**Revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/BatchAccessResult.md b/sdks/csharp/docs/models/BatchAccessResult.md deleted file mode 100644 index ca3a566..0000000 --- a/sdks/csharp/docs/models/BatchAccessResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.BatchAccessResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Allowed** | **bool** | | -**Revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/DataValue.md b/sdks/csharp/docs/models/DataValue.md deleted file mode 100644 index 30a9f73..0000000 --- a/sdks/csharp/docs/models/DataValue.md +++ /dev/null @@ -1,9 +0,0 @@ -# KeyNetra.Client.Model.DataValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/HTTPValidationError.md b/sdks/csharp/docs/models/HTTPValidationError.md deleted file mode 100644 index d6af074..0000000 --- a/sdks/csharp/docs/models/HTTPValidationError.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.HTTPValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Detail** | [**List<ValidationError>**](ValidationError.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/ImpactAnalysisRequest.md b/sdks/csharp/docs/models/ImpactAnalysisRequest.md deleted file mode 100644 index 4c0ecc8..0000000 --- a/sdks/csharp/docs/models/ImpactAnalysisRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.ImpactAnalysisRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PolicyChange** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/ImpactAnalysisResponse.md b/sdks/csharp/docs/models/ImpactAnalysisResponse.md deleted file mode 100644 index feb78ed..0000000 --- a/sdks/csharp/docs/models/ImpactAnalysisResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.ImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**GainedAccess** | **List<int>** | | [optional] -**LostAccess** | **List<int>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/LocationInner.md b/sdks/csharp/docs/models/LocationInner.md deleted file mode 100644 index 70b4591..0000000 --- a/sdks/csharp/docs/models/LocationInner.md +++ /dev/null @@ -1,9 +0,0 @@ -# KeyNetra.Client.Model.LocationInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/MetaBody.md b/sdks/csharp/docs/models/MetaBody.md deleted file mode 100644 index b1e1e2c..0000000 --- a/sdks/csharp/docs/models/MetaBody.md +++ /dev/null @@ -1,13 +0,0 @@ -# KeyNetra.Client.Model.MetaBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RequestId** | **string** | | [optional] -**Limit** | **int** | | [optional] -**NextCursor** | **string** | | [optional] -**Extra** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PermissionCreate.md b/sdks/csharp/docs/models/PermissionCreate.md deleted file mode 100644 index 9d4648f..0000000 --- a/sdks/csharp/docs/models/PermissionCreate.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.PermissionCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PermissionOut.md b/sdks/csharp/docs/models/PermissionOut.md deleted file mode 100644 index ad7c715..0000000 --- a/sdks/csharp/docs/models/PermissionOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.PermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int** | | -**Action** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PermissionUpdate.md b/sdks/csharp/docs/models/PermissionUpdate.md deleted file mode 100644 index 11c9a90..0000000 --- a/sdks/csharp/docs/models/PermissionUpdate.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.PermissionUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PlaygroundEvaluateRequest.md b/sdks/csharp/docs/models/PlaygroundEvaluateRequest.md deleted file mode 100644 index 3f64833..0000000 --- a/sdks/csharp/docs/models/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.PlaygroundEvaluateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Policies** | [**List<PlaygroundPolicy>**](PlaygroundPolicy.md) | | -**Input** | [**PlaygroundInput**](PlaygroundInput.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PlaygroundInput.md b/sdks/csharp/docs/models/PlaygroundInput.md deleted file mode 100644 index d20bf81..0000000 --- a/sdks/csharp/docs/models/PlaygroundInput.md +++ /dev/null @@ -1,13 +0,0 @@ -# KeyNetra.Client.Model.PlaygroundInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**User** | **Dictionary<string, Object>** | | [optional] -**Resource** | **Dictionary<string, Object>** | | [optional] -**Action** | **string** | | [optional] [default to ""] -**Context** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PlaygroundPolicy.md b/sdks/csharp/docs/models/PlaygroundPolicy.md deleted file mode 100644 index 8cfd856..0000000 --- a/sdks/csharp/docs/models/PlaygroundPolicy.md +++ /dev/null @@ -1,14 +0,0 @@ -# KeyNetra.Client.Model.PlaygroundPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Effect** | **string** | | [optional] [default to "allow"] -**Priority** | **int** | | [optional] [default to 100] -**PolicyId** | **string** | | [optional] -**Conditions** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PolicyCreate.md b/sdks/csharp/docs/models/PolicyCreate.md deleted file mode 100644 index b8bc932..0000000 --- a/sdks/csharp/docs/models/PolicyCreate.md +++ /dev/null @@ -1,14 +0,0 @@ -# KeyNetra.Client.Model.PolicyCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Effect** | **string** | | [optional] [default to "allow"] -**Priority** | **int** | | [optional] [default to 100] -**State** | **string** | | [optional] [default to "active"] -**Conditions** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PolicyOut.md b/sdks/csharp/docs/models/PolicyOut.md deleted file mode 100644 index 148394c..0000000 --- a/sdks/csharp/docs/models/PolicyOut.md +++ /dev/null @@ -1,15 +0,0 @@ -# KeyNetra.Client.Model.PolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int** | | -**Action** | **string** | | -**Effect** | **string** | | -**Priority** | **int** | | -**Conditions** | **Dictionary<string, Object>** | | -**State** | **string** | | [optional] [default to "active"] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PolicySimulationInput.md b/sdks/csharp/docs/models/PolicySimulationInput.md deleted file mode 100644 index 848726b..0000000 --- a/sdks/csharp/docs/models/PolicySimulationInput.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.PolicySimulationInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PolicyChange** | **string** | | [optional] -**RelationshipChange** | **Dictionary<string, Object>** | | [optional] -**RoleChange** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PolicySimulationRequest.md b/sdks/csharp/docs/models/PolicySimulationRequest.md deleted file mode 100644 index 58661dd..0000000 --- a/sdks/csharp/docs/models/PolicySimulationRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.PolicySimulationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] -**Request** | **Dictionary<string, Object>** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/PolicySimulationResponse.md b/sdks/csharp/docs/models/PolicySimulationResponse.md deleted file mode 100644 index 8803ae8..0000000 --- a/sdks/csharp/docs/models/PolicySimulationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.PolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DecisionBefore** | **Dictionary<string, Object>** | | -**DecisionAfter** | **Dictionary<string, Object>** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/RelationshipCreate.md b/sdks/csharp/docs/models/RelationshipCreate.md deleted file mode 100644 index 8131405..0000000 --- a/sdks/csharp/docs/models/RelationshipCreate.md +++ /dev/null @@ -1,14 +0,0 @@ -# KeyNetra.Client.Model.RelationshipCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**Relation** | **string** | | -**ObjectType** | **string** | | -**ObjectId** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/RelationshipOut.md b/sdks/csharp/docs/models/RelationshipOut.md deleted file mode 100644 index fe7f1cc..0000000 --- a/sdks/csharp/docs/models/RelationshipOut.md +++ /dev/null @@ -1,15 +0,0 @@ -# KeyNetra.Client.Model.RelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**Relation** | **string** | | -**ObjectType** | **string** | | -**ObjectId** | **string** | | -**Id** | **int** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/RoleCreate.md b/sdks/csharp/docs/models/RoleCreate.md deleted file mode 100644 index 321c239..0000000 --- a/sdks/csharp/docs/models/RoleCreate.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.RoleCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/RoleOut.md b/sdks/csharp/docs/models/RoleOut.md deleted file mode 100644 index 2a9ba9b..0000000 --- a/sdks/csharp/docs/models/RoleOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# KeyNetra.Client.Model.RoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int** | | -**Name** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/RoleUpdate.md b/sdks/csharp/docs/models/RoleUpdate.md deleted file mode 100644 index b65cff3..0000000 --- a/sdks/csharp/docs/models/RoleUpdate.md +++ /dev/null @@ -1,10 +0,0 @@ -# KeyNetra.Client.Model.RoleUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SimulationResponse.md b/sdks/csharp/docs/models/SimulationResponse.md deleted file mode 100644 index 2437e69..0000000 --- a/sdks/csharp/docs/models/SimulationResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# KeyNetra.Client.Model.SimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Decision** | **string** | | -**MatchedPolicies** | **List<string>** | | -**Reason** | **string** | | [optional] -**PolicyId** | **string** | | [optional] -**ExplainTrace** | **List<Dictionary<string, Object>>** | | [optional] -**FailedConditions** | **List<string>** | | [optional] -**Revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseACLOut.md b/sdks/csharp/docs/models/SuccessResponseACLOut.md deleted file mode 100644 index 51f6547..0000000 --- a/sdks/csharp/docs/models/SuccessResponseACLOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ACLOut**](ACLOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md b/sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index 4e0bdbb..0000000 --- a/sdks/csharp/docs/models/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseAccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md b/sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index ff4509e..0000000 --- a/sdks/csharp/docs/models/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseAdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseAuthModelOut.md b/sdks/csharp/docs/models/SuccessResponseAuthModelOut.md deleted file mode 100644 index 1bff91e..0000000 --- a/sdks/csharp/docs/models/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseAuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AuthModelOut**](AuthModelOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md b/sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index 4c0123e..0000000 --- a/sdks/csharp/docs/models/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseBatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrAny.md b/sdks/csharp/docs/models/SuccessResponseDictStrAny.md deleted file mode 100644 index 632daf4..0000000 --- a/sdks/csharp/docs/models/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseDictStrAny - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **Dictionary<string, Object>** | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrInt.md b/sdks/csharp/docs/models/SuccessResponseDictStrInt.md deleted file mode 100644 index fc6b659..0000000 --- a/sdks/csharp/docs/models/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseDictStrInt - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **Dictionary<string, int>** | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrObject.md b/sdks/csharp/docs/models/SuccessResponseDictStrObject.md deleted file mode 100644 index aeef1d5..0000000 --- a/sdks/csharp/docs/models/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseDictStrObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **Dictionary<string, Object>** | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrStr.md b/sdks/csharp/docs/models/SuccessResponseDictStrStr.md deleted file mode 100644 index a5aa85f..0000000 --- a/sdks/csharp/docs/models/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **Dictionary<string, string>** | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md b/sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index 524e93b..0000000 --- a/sdks/csharp/docs/models/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseDictStrUnionIntStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**Dictionary<string, DataValue>**](DataValue.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md b/sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index 116a3cd..0000000 --- a/sdks/csharp/docs/models/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseListACLOut.md b/sdks/csharp/docs/models/SuccessResponseListACLOut.md deleted file mode 100644 index 8df9ed0..0000000 --- a/sdks/csharp/docs/models/SuccessResponseListACLOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseListACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<ACLOut>**](ACLOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md b/sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 9e07194..0000000 --- a/sdks/csharp/docs/models/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseListAuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<AuditRecordOut>**](AuditRecordOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseListDictStrStr.md b/sdks/csharp/docs/models/SuccessResponseListDictStrStr.md deleted file mode 100644 index 3eed978..0000000 --- a/sdks/csharp/docs/models/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseListDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **List<Dictionary<string, string>>** | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseListPermissionOut.md b/sdks/csharp/docs/models/SuccessResponseListPermissionOut.md deleted file mode 100644 index 05f43b6..0000000 --- a/sdks/csharp/docs/models/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseListPermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<PermissionOut>**](PermissionOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseListPolicyOut.md b/sdks/csharp/docs/models/SuccessResponseListPolicyOut.md deleted file mode 100644 index 9a51528..0000000 --- a/sdks/csharp/docs/models/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseListPolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<PolicyOut>**](PolicyOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseListRoleOut.md b/sdks/csharp/docs/models/SuccessResponseListRoleOut.md deleted file mode 100644 index cfc8cfb..0000000 --- a/sdks/csharp/docs/models/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseListRoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<RoleOut>**](RoleOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponsePermissionOut.md b/sdks/csharp/docs/models/SuccessResponsePermissionOut.md deleted file mode 100644 index a0968b5..0000000 --- a/sdks/csharp/docs/models/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponsePermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**PermissionOut**](PermissionOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponsePolicyOut.md b/sdks/csharp/docs/models/SuccessResponsePolicyOut.md deleted file mode 100644 index eb004c1..0000000 --- a/sdks/csharp/docs/models/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponsePolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**PolicyOut**](PolicyOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md b/sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index 01849c7..0000000 --- a/sdks/csharp/docs/models/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponsePolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseRelationshipOut.md b/sdks/csharp/docs/models/SuccessResponseRelationshipOut.md deleted file mode 100644 index 8f2510e..0000000 --- a/sdks/csharp/docs/models/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseRelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**RelationshipOut**](RelationshipOut.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/SuccessResponseSimulationResponse.md b/sdks/csharp/docs/models/SuccessResponseSimulationResponse.md deleted file mode 100644 index 4c411cc..0000000 --- a/sdks/csharp/docs/models/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# KeyNetra.Client.Model.SuccessResponseSimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**SimulationResponse**](SimulationResponse.md) | | -**Meta** | [**MetaBody**](MetaBody.md) | | [optional] -**Error** | [**Null**](Null.md) | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/models/ValidationError.md b/sdks/csharp/docs/models/ValidationError.md deleted file mode 100644 index e037212..0000000 --- a/sdks/csharp/docs/models/ValidationError.md +++ /dev/null @@ -1,14 +0,0 @@ -# KeyNetra.Client.Model.ValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Loc** | [**List<LocationInner>**](LocationInner.md) | | -**Msg** | **string** | | -**Type** | **string** | | -**Input** | **Object** | | [optional] -**Ctx** | **Object** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/sdks/csharp/docs/scripts/git_push.ps1 b/sdks/csharp/docs/scripts/git_push.ps1 deleted file mode 100644 index 73ed35c..0000000 --- a/sdks/csharp/docs/scripts/git_push.ps1 +++ /dev/null @@ -1,75 +0,0 @@ -param( - [Parameter()][Alias("g")][String]$GitHost = "github.com", - [Parameter()][Alias("u")][String]$GitUserId = "GIT_USER_ID", - [Parameter()][Alias("r")][String]$GitRepoId = "GIT_REPO_ID", - [Parameter()][Alias("m")][string]$Message = "Minor update", - [Parameter()][Alias("h")][switch]$Help -) - -function Publish-ToGitHost{ - if ([string]::IsNullOrWhiteSpace($Message) -or $Message -eq "Minor update"){ - # it seems unlikely that we would want our git commit message to be the default, so lets prompt the user - $Message = Read-Host -Prompt "Please provide a commit message or press enter" - $Message = if([string]::IsNullOrWhiteSpace($Message)) { "no message provided" } else { $Message } - } - - git init - git add . - git commit -am "${Message}" - $branchName=$(git rev-parse --abbrev-ref HEAD) - $gitRemote=$(git remote) - - if([string]::IsNullOrWhiteSpace($gitRemote)){ - git remote add origin https://${GitHost}/${GitUserId}/${GitRepoId}.git - } - - Write-Output "Pulling from https://${GitHost}/${GitUserId}/${GitRepoId}.git" - git pull origin $branchName --ff-only - - if ($LastExitCode -ne 0){ - if (${GitHost} -eq "github.com"){ - Write-Output "The ${GitRepoId} repository may not exist yet. Creating it now with the GitHub CLI." - gh auth login --hostname github.com --web - gh repo create $GitRepoId --private - # sleep 2 seconds to ensure git finishes creation of the repo - Start-Sleep -Seconds 2 - } - else{ - throw "There was an issue pulling the origin branch. The remote repository may not exist yet." - } - } - - Write-Output "Pushing to https://${GitHost}/${GitUserId}/${GitRepoId}.git" - git push origin $branchName -} - -$ErrorActionPreference = "Stop" -Set-StrictMode -Version 3.0 - -if ($Help){ - Write-Output " - This script will initialize a git repository, then add and commit all files. - The local repository will then be pushed to your preferred git provider. - If the remote repository does not exist yet and you are using GitHub, - the repository will be created for you provided you have the GitHub CLI installed. - - Parameters: - -g | -GitHost -> ex: github.com - -m | -Message -> the git commit message - -r | -GitRepoId -> the name of the repository - -u | -GitUserId -> your user id - " - - return -} - -$rootPath=Resolve-Path -Path $PSScriptRoot/../.. - -Push-Location $rootPath - -try { - Publish-ToGitHost $GitHost $GitUserId $GitRepoId $Message -} -finally{ - Pop-Location -} \ No newline at end of file diff --git a/sdks/csharp/docs/scripts/git_push.sh b/sdks/csharp/docs/scripts/git_push.sh deleted file mode 100644 index 8821049..0000000 --- a/sdks/csharp/docs/scripts/git_push.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=${1:-GIT_USER_ID} -git_repo_id=${2:-GIT_REPO_ID} -release_note=${3:-Minor update} -git_host=${4:-github.com} - -starting_directory=$(pwd) -script_root="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" -cd $script_root -cd ../.. - -if [ "$release_note" = "" ] || [ "$release_note" = "Minor update" ]; then - # it seems unlikely that we would want our git commit message to be the default, so lets prompt the user - echo "Please provide a commit message or press enter" - read user_input - release_note=$user_input - if [ "$release_note" = "" ]; then - release_note="no message provided" - fi -fi - -git init -git add . -git commit -am "$release_note" -branch_name=$(git rev-parse --abbrev-ref HEAD) -git_remote=$(git remote) - -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -echo "[INFO] Pulling from https://${git_host}/${git_user_id}/${git_repo_id}.git" -git pull origin $branch_name --ff-only - -echo "[INFO] Pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin $branch_name - -cd $starting_directory diff --git a/sdks/go/docs/SuccessResponseACLOut.md b/sdks/go/docs/SuccessResponseACLOut.md index 839e588..8b22de6 100644 --- a/sdks/go/docs/SuccessResponseACLOut.md +++ b/sdks/go/docs/SuccessResponseACLOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**ACLOut**](ACLOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseACLOut) GetError() nil` +`func (o *SuccessResponseACLOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseACLOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseACLOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseACLOut) SetError(v nil)` +`func (o *SuccessResponseACLOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseAccessDecisionResponse.md b/sdks/go/docs/SuccessResponseAccessDecisionResponse.md index 806cc42..60b4484 100644 --- a/sdks/go/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/go/docs/SuccessResponseAccessDecisionResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseAccessDecisionResponse) GetError() nil` +`func (o *SuccessResponseAccessDecisionResponse) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseAccessDecisionResponse) SetError(v nil)` +`func (o *SuccessResponseAccessDecisionResponse) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseAdminLoginResponse.md b/sdks/go/docs/SuccessResponseAdminLoginResponse.md index 8dbfc66..4216af2 100644 --- a/sdks/go/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/go/docs/SuccessResponseAdminLoginResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseAdminLoginResponse) GetError() nil` +`func (o *SuccessResponseAdminLoginResponse) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseAdminLoginResponse) SetError(v nil)` +`func (o *SuccessResponseAdminLoginResponse) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseAuthModelOut.md b/sdks/go/docs/SuccessResponseAuthModelOut.md index 9a2c811..349bc5e 100644 --- a/sdks/go/docs/SuccessResponseAuthModelOut.md +++ b/sdks/go/docs/SuccessResponseAuthModelOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**AuthModelOut**](AuthModelOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseAuthModelOut) GetError() nil` +`func (o *SuccessResponseAuthModelOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseAuthModelOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseAuthModelOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseAuthModelOut) SetError(v nil)` +`func (o *SuccessResponseAuthModelOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseBatchAccessResponse.md b/sdks/go/docs/SuccessResponseBatchAccessResponse.md index 2b4d2d6..7766985 100644 --- a/sdks/go/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/go/docs/SuccessResponseBatchAccessResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseBatchAccessResponse) GetError() nil` +`func (o *SuccessResponseBatchAccessResponse) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseBatchAccessResponse) SetError(v nil)` +`func (o *SuccessResponseBatchAccessResponse) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseDictStrAny.md b/sdks/go/docs/SuccessResponseDictStrAny.md index d51aa3c..1af0e0a 100644 --- a/sdks/go/docs/SuccessResponseDictStrAny.md +++ b/sdks/go/docs/SuccessResponseDictStrAny.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | **map[string]interface{}** | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseDictStrAny) GetError() nil` +`func (o *SuccessResponseDictStrAny) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseDictStrAny) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseDictStrAny) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseDictStrAny) SetError(v nil)` +`func (o *SuccessResponseDictStrAny) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseDictStrInt.md b/sdks/go/docs/SuccessResponseDictStrInt.md index 2fdf6e7..bdf5f3c 100644 --- a/sdks/go/docs/SuccessResponseDictStrInt.md +++ b/sdks/go/docs/SuccessResponseDictStrInt.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | **map[string]int32** | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseDictStrInt) GetError() nil` +`func (o *SuccessResponseDictStrInt) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseDictStrInt) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseDictStrInt) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseDictStrInt) SetError(v nil)` +`func (o *SuccessResponseDictStrInt) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseDictStrObject.md b/sdks/go/docs/SuccessResponseDictStrObject.md index 7d46a6f..9733c1f 100644 --- a/sdks/go/docs/SuccessResponseDictStrObject.md +++ b/sdks/go/docs/SuccessResponseDictStrObject.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | **map[string]interface{}** | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseDictStrObject) GetError() nil` +`func (o *SuccessResponseDictStrObject) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseDictStrObject) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseDictStrObject) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseDictStrObject) SetError(v nil)` +`func (o *SuccessResponseDictStrObject) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseDictStrStr.md b/sdks/go/docs/SuccessResponseDictStrStr.md index 6aba0e0..e561a51 100644 --- a/sdks/go/docs/SuccessResponseDictStrStr.md +++ b/sdks/go/docs/SuccessResponseDictStrStr.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | **map[string]string** | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseDictStrStr) GetError() nil` +`func (o *SuccessResponseDictStrStr) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseDictStrStr) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseDictStrStr) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseDictStrStr) SetError(v nil)` +`func (o *SuccessResponseDictStrStr) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md index 9c89d2b..47d15c2 100644 --- a/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**map[string]DataValue**](DataValue.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseDictStrUnionIntStr) GetError() nil` +`func (o *SuccessResponseDictStrUnionIntStr) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseDictStrUnionIntStr) SetError(v nil)` +`func (o *SuccessResponseDictStrUnionIntStr) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md index d4d229a..65d2bf3 100644 --- a/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseImpactAnalysisResponse) GetError() nil` +`func (o *SuccessResponseImpactAnalysisResponse) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseImpactAnalysisResponse) SetError(v nil)` +`func (o *SuccessResponseImpactAnalysisResponse) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseListACLOut.md b/sdks/go/docs/SuccessResponseListACLOut.md index 53c538e..9c2d5d2 100644 --- a/sdks/go/docs/SuccessResponseListACLOut.md +++ b/sdks/go/docs/SuccessResponseListACLOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**[]ACLOut**](ACLOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseListACLOut) GetError() nil` +`func (o *SuccessResponseListACLOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseListACLOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseListACLOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseListACLOut) SetError(v nil)` +`func (o *SuccessResponseListACLOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseListAuditRecordOut.md b/sdks/go/docs/SuccessResponseListAuditRecordOut.md index dd44bf5..c1ca75b 100644 --- a/sdks/go/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/go/docs/SuccessResponseListAuditRecordOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**[]AuditRecordOut**](AuditRecordOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseListAuditRecordOut) GetError() nil` +`func (o *SuccessResponseListAuditRecordOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseListAuditRecordOut) SetError(v nil)` +`func (o *SuccessResponseListAuditRecordOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseListDictStrStr.md b/sdks/go/docs/SuccessResponseListDictStrStr.md index 6af97d0..b78e7aa 100644 --- a/sdks/go/docs/SuccessResponseListDictStrStr.md +++ b/sdks/go/docs/SuccessResponseListDictStrStr.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | **[]map[string]string** | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseListDictStrStr) GetError() nil` +`func (o *SuccessResponseListDictStrStr) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseListDictStrStr) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseListDictStrStr) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseListDictStrStr) SetError(v nil)` +`func (o *SuccessResponseListDictStrStr) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseListPermissionOut.md b/sdks/go/docs/SuccessResponseListPermissionOut.md index 97c535b..0d69063 100644 --- a/sdks/go/docs/SuccessResponseListPermissionOut.md +++ b/sdks/go/docs/SuccessResponseListPermissionOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**[]PermissionOut**](PermissionOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseListPermissionOut) GetError() nil` +`func (o *SuccessResponseListPermissionOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseListPermissionOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseListPermissionOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseListPermissionOut) SetError(v nil)` +`func (o *SuccessResponseListPermissionOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseListPolicyOut.md b/sdks/go/docs/SuccessResponseListPolicyOut.md index a07aa88..ea33e03 100644 --- a/sdks/go/docs/SuccessResponseListPolicyOut.md +++ b/sdks/go/docs/SuccessResponseListPolicyOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**[]PolicyOut**](PolicyOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseListPolicyOut) GetError() nil` +`func (o *SuccessResponseListPolicyOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseListPolicyOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseListPolicyOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseListPolicyOut) SetError(v nil)` +`func (o *SuccessResponseListPolicyOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseListRoleOut.md b/sdks/go/docs/SuccessResponseListRoleOut.md index 9a41a18..877b561 100644 --- a/sdks/go/docs/SuccessResponseListRoleOut.md +++ b/sdks/go/docs/SuccessResponseListRoleOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**[]RoleOut**](RoleOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseListRoleOut) GetError() nil` +`func (o *SuccessResponseListRoleOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseListRoleOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseListRoleOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseListRoleOut) SetError(v nil)` +`func (o *SuccessResponseListRoleOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponsePermissionOut.md b/sdks/go/docs/SuccessResponsePermissionOut.md index 3bbc3ae..e1f2bdb 100644 --- a/sdks/go/docs/SuccessResponsePermissionOut.md +++ b/sdks/go/docs/SuccessResponsePermissionOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**PermissionOut**](PermissionOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponsePermissionOut) GetError() nil` +`func (o *SuccessResponsePermissionOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponsePermissionOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponsePermissionOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponsePermissionOut) SetError(v nil)` +`func (o *SuccessResponsePermissionOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponsePolicyOut.md b/sdks/go/docs/SuccessResponsePolicyOut.md index 0d78fac..7179876 100644 --- a/sdks/go/docs/SuccessResponsePolicyOut.md +++ b/sdks/go/docs/SuccessResponsePolicyOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**PolicyOut**](PolicyOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponsePolicyOut) GetError() nil` +`func (o *SuccessResponsePolicyOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponsePolicyOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponsePolicyOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponsePolicyOut) SetError(v nil)` +`func (o *SuccessResponsePolicyOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponsePolicySimulationResponse.md b/sdks/go/docs/SuccessResponsePolicySimulationResponse.md index bcf2e7b..fef5558 100644 --- a/sdks/go/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/go/docs/SuccessResponsePolicySimulationResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponsePolicySimulationResponse) GetError() nil` +`func (o *SuccessResponsePolicySimulationResponse) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponsePolicySimulationResponse) SetError(v nil)` +`func (o *SuccessResponsePolicySimulationResponse) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseRelationshipOut.md b/sdks/go/docs/SuccessResponseRelationshipOut.md index bec03b2..3df1728 100644 --- a/sdks/go/docs/SuccessResponseRelationshipOut.md +++ b/sdks/go/docs/SuccessResponseRelationshipOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**RelationshipOut**](RelationshipOut.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseRelationshipOut) GetError() nil` +`func (o *SuccessResponseRelationshipOut) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseRelationshipOut) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseRelationshipOut) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseRelationshipOut) SetError(v nil)` +`func (o *SuccessResponseRelationshipOut) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/SuccessResponseSimulationResponse.md b/sdks/go/docs/SuccessResponseSimulationResponse.md index 0d70f02..8a9981c 100644 --- a/sdks/go/docs/SuccessResponseSimulationResponse.md +++ b/sdks/go/docs/SuccessResponseSimulationResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Data** | [**SimulationResponse**](SimulationResponse.md) | | **Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to [**nil**](nil.md) | | [optional] +**Error** | Pointer to **interface{}** | | [optional] ## Methods @@ -74,20 +74,20 @@ HasMeta returns a boolean if a field has been set. ### GetError -`func (o *SuccessResponseSimulationResponse) GetError() nil` +`func (o *SuccessResponseSimulationResponse) GetError() interface{}` GetError returns the Error field if non-nil, zero value otherwise. ### GetErrorOk -`func (o *SuccessResponseSimulationResponse) GetErrorOk() (*nil, bool)` +`func (o *SuccessResponseSimulationResponse) GetErrorOk() (*interface{}, bool)` GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetError -`func (o *SuccessResponseSimulationResponse) SetError(v nil)` +`func (o *SuccessResponseSimulationResponse) SetError(v interface{})` SetError sets Error field to given value. diff --git a/sdks/go/docs/ValidationError.md b/sdks/go/docs/ValidationError.md index 463e7cf..2ae083d 100644 --- a/sdks/go/docs/ValidationError.md +++ b/sdks/go/docs/ValidationError.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Msg** | **string** | | **Type** | **string** | | **Input** | Pointer to **interface{}** | | [optional] -**Ctx** | Pointer to **map[string]interface{}** | | [optional] +**Ctx** | Pointer to **interface{}** | | [optional] ## Methods @@ -126,20 +126,20 @@ HasInput returns a boolean if a field has been set. UnsetInput ensures that no value is present for Input, not even an explicit nil ### GetCtx -`func (o *ValidationError) GetCtx() map[string]interface{}` +`func (o *ValidationError) GetCtx() interface{}` GetCtx returns the Ctx field if non-nil, zero value otherwise. ### GetCtxOk -`func (o *ValidationError) GetCtxOk() (*map[string]interface{}, bool)` +`func (o *ValidationError) GetCtxOk() (*interface{}, bool)` GetCtxOk returns a tuple with the Ctx field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCtx -`func (o *ValidationError) SetCtx(v map[string]interface{})` +`func (o *ValidationError) SetCtx(v interface{})` SetCtx sets Ctx field to given value. diff --git a/sdks/go/keynetra_client.go b/sdks/go/keynetra_client.go index cb399f1..8f4ce5a 100644 --- a/sdks/go/keynetra_client.go +++ b/sdks/go/keynetra_client.go @@ -1,12 +1,12 @@ package keynetra type KeyNetraClient struct { - Access *AccessApiService - Auth *AuthApiService - Dev *DevApiService - Health *HealthApiService - Management *ManagementApiService - Playground *PlaygroundApiService + Access any + Auth any + Dev any + Health any + Management any + Playground any client *APIClient } @@ -17,13 +17,14 @@ func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { cfg.DefaultHeader["Authorization"] = "Bearer " + apiKey client := NewAPIClient(cfg) + return &KeyNetraClient{ - Access: client.AccessApi, - Auth: client.AuthApi, - Dev: client.DevApi, - Health: client.HealthApi, - Management: client.ManagementApi, - Playground: client.PlaygroundApi, + Access: client.AccessAPI, + Auth: client.AuthAPI, + Dev: client.DevAPI, + Health: client.HealthAPI, + Management: client.ManagementAPI, + Playground: client.PlaygroundAPI, client: client, } } diff --git a/sdks/go/model_success_response_access_decision_response_.go b/sdks/go/model_success_response_access_decision_response_.go index 80a4275..fd640d2 100644 --- a/sdks/go/model_success_response_access_decision_response_.go +++ b/sdks/go/model_success_response_access_decision_response_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseAccessDecisionResponse{} type SuccessResponseAccessDecisionResponse struct { Data AccessDecisionResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseAccessDecisionResponse SuccessResponseAccessDecisionResponse @@ -103,9 +103,9 @@ func (o *SuccessResponseAccessDecisionResponse) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseAccessDecisionResponse) GetError() nil { +func (o *SuccessResponseAccessDecisionResponse) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseAccessDecisionResponse) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseAccessDecisionResponse) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseAccessDecisionResponse) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseAccessDecisionResponse) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_acl_out_.go b/sdks/go/model_success_response_acl_out_.go index ddaa481..9b6dc63 100644 --- a/sdks/go/model_success_response_acl_out_.go +++ b/sdks/go/model_success_response_acl_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseACLOut{} type SuccessResponseACLOut struct { Data ACLOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseACLOut SuccessResponseACLOut @@ -103,9 +103,9 @@ func (o *SuccessResponseACLOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseACLOut) GetError() nil { +func (o *SuccessResponseACLOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseACLOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseACLOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseACLOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseACLOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseACLOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseACLOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_admin_login_response_.go b/sdks/go/model_success_response_admin_login_response_.go index 949162b..a480c38 100644 --- a/sdks/go/model_success_response_admin_login_response_.go +++ b/sdks/go/model_success_response_admin_login_response_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseAdminLoginResponse{} type SuccessResponseAdminLoginResponse struct { Data AdminLoginResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseAdminLoginResponse SuccessResponseAdminLoginResponse @@ -103,9 +103,9 @@ func (o *SuccessResponseAdminLoginResponse) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseAdminLoginResponse) GetError() nil { +func (o *SuccessResponseAdminLoginResponse) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseAdminLoginResponse) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseAdminLoginResponse) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseAdminLoginResponse) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseAdminLoginResponse) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_auth_model_out_.go b/sdks/go/model_success_response_auth_model_out_.go index d613026..e3587b8 100644 --- a/sdks/go/model_success_response_auth_model_out_.go +++ b/sdks/go/model_success_response_auth_model_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseAuthModelOut{} type SuccessResponseAuthModelOut struct { Data AuthModelOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseAuthModelOut SuccessResponseAuthModelOut @@ -103,9 +103,9 @@ func (o *SuccessResponseAuthModelOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseAuthModelOut) GetError() nil { +func (o *SuccessResponseAuthModelOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseAuthModelOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseAuthModelOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseAuthModelOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseAuthModelOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseAuthModelOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseAuthModelOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_batch_access_response_.go b/sdks/go/model_success_response_batch_access_response_.go index 52c21ed..6209c06 100644 --- a/sdks/go/model_success_response_batch_access_response_.go +++ b/sdks/go/model_success_response_batch_access_response_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseBatchAccessResponse{} type SuccessResponseBatchAccessResponse struct { Data BatchAccessResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseBatchAccessResponse SuccessResponseBatchAccessResponse @@ -103,9 +103,9 @@ func (o *SuccessResponseBatchAccessResponse) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseBatchAccessResponse) GetError() nil { +func (o *SuccessResponseBatchAccessResponse) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseBatchAccessResponse) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseBatchAccessResponse) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseBatchAccessResponse) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseBatchAccessResponse) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_dict_str__any__.go b/sdks/go/model_success_response_dict_str__any__.go index 5b33363..70f1996 100644 --- a/sdks/go/model_success_response_dict_str__any__.go +++ b/sdks/go/model_success_response_dict_str__any__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseDictStrAny{} type SuccessResponseDictStrAny struct { Data map[string]interface{} `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseDictStrAny SuccessResponseDictStrAny @@ -103,9 +103,9 @@ func (o *SuccessResponseDictStrAny) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrAny) GetError() nil { +func (o *SuccessResponseDictStrAny) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseDictStrAny) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrAny) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseDictStrAny) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseDictStrAny) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseDictStrAny) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseDictStrAny) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_dict_str__int__.go b/sdks/go/model_success_response_dict_str__int__.go index b2e0627..de7d935 100644 --- a/sdks/go/model_success_response_dict_str__int__.go +++ b/sdks/go/model_success_response_dict_str__int__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseDictStrInt{} type SuccessResponseDictStrInt struct { Data map[string]int32 `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseDictStrInt SuccessResponseDictStrInt @@ -103,9 +103,9 @@ func (o *SuccessResponseDictStrInt) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrInt) GetError() nil { +func (o *SuccessResponseDictStrInt) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseDictStrInt) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrInt) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseDictStrInt) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseDictStrInt) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseDictStrInt) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseDictStrInt) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_dict_str__object__.go b/sdks/go/model_success_response_dict_str__object__.go index 1439934..9dd2038 100644 --- a/sdks/go/model_success_response_dict_str__object__.go +++ b/sdks/go/model_success_response_dict_str__object__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseDictStrObject{} type SuccessResponseDictStrObject struct { Data map[string]interface{} `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseDictStrObject SuccessResponseDictStrObject @@ -103,9 +103,9 @@ func (o *SuccessResponseDictStrObject) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrObject) GetError() nil { +func (o *SuccessResponseDictStrObject) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseDictStrObject) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrObject) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseDictStrObject) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseDictStrObject) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseDictStrObject) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseDictStrObject) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_dict_str__str__.go b/sdks/go/model_success_response_dict_str__str__.go index 7fada77..070089e 100644 --- a/sdks/go/model_success_response_dict_str__str__.go +++ b/sdks/go/model_success_response_dict_str__str__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseDictStrStr{} type SuccessResponseDictStrStr struct { Data map[string]string `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseDictStrStr SuccessResponseDictStrStr @@ -103,9 +103,9 @@ func (o *SuccessResponseDictStrStr) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrStr) GetError() nil { +func (o *SuccessResponseDictStrStr) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseDictStrStr) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrStr) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseDictStrStr) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseDictStrStr) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseDictStrStr) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseDictStrStr) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_dict_str__union_int__str___.go b/sdks/go/model_success_response_dict_str__union_int__str___.go index fd97730..b10de3a 100644 --- a/sdks/go/model_success_response_dict_str__union_int__str___.go +++ b/sdks/go/model_success_response_dict_str__union_int__str___.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseDictStrUnionIntStr{} type SuccessResponseDictStrUnionIntStr struct { Data map[string]DataValue `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseDictStrUnionIntStr SuccessResponseDictStrUnionIntStr @@ -103,9 +103,9 @@ func (o *SuccessResponseDictStrUnionIntStr) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrUnionIntStr) GetError() nil { +func (o *SuccessResponseDictStrUnionIntStr) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseDictStrUnionIntStr) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseDictStrUnionIntStr) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseDictStrUnionIntStr) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseDictStrUnionIntStr) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_impact_analysis_response_.go b/sdks/go/model_success_response_impact_analysis_response_.go index 05ec608..cf428e1 100644 --- a/sdks/go/model_success_response_impact_analysis_response_.go +++ b/sdks/go/model_success_response_impact_analysis_response_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseImpactAnalysisResponse{} type SuccessResponseImpactAnalysisResponse struct { Data ImpactAnalysisResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseImpactAnalysisResponse SuccessResponseImpactAnalysisResponse @@ -103,9 +103,9 @@ func (o *SuccessResponseImpactAnalysisResponse) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseImpactAnalysisResponse) GetError() nil { +func (o *SuccessResponseImpactAnalysisResponse) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseImpactAnalysisResponse) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseImpactAnalysisResponse) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseImpactAnalysisResponse) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseImpactAnalysisResponse) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_list_acl_out__.go b/sdks/go/model_success_response_list_acl_out__.go index 56c51d8..11d60cd 100644 --- a/sdks/go/model_success_response_list_acl_out__.go +++ b/sdks/go/model_success_response_list_acl_out__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseListACLOut{} type SuccessResponseListACLOut struct { Data []ACLOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseListACLOut SuccessResponseListACLOut @@ -103,9 +103,9 @@ func (o *SuccessResponseListACLOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListACLOut) GetError() nil { +func (o *SuccessResponseListACLOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseListACLOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseListACLOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseListACLOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseListACLOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseListACLOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseListACLOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_list_audit_record_out__.go b/sdks/go/model_success_response_list_audit_record_out__.go index 826ff05..a6b135e 100644 --- a/sdks/go/model_success_response_list_audit_record_out__.go +++ b/sdks/go/model_success_response_list_audit_record_out__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseListAuditRecordOut{} type SuccessResponseListAuditRecordOut struct { Data []AuditRecordOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseListAuditRecordOut SuccessResponseListAuditRecordOut @@ -103,9 +103,9 @@ func (o *SuccessResponseListAuditRecordOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListAuditRecordOut) GetError() nil { +func (o *SuccessResponseListAuditRecordOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseListAuditRecordOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseListAuditRecordOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseListAuditRecordOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseListAuditRecordOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_list_dict_str__str___.go b/sdks/go/model_success_response_list_dict_str__str___.go index 2800ddc..ab34ed3 100644 --- a/sdks/go/model_success_response_list_dict_str__str___.go +++ b/sdks/go/model_success_response_list_dict_str__str___.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseListDictStrStr{} type SuccessResponseListDictStrStr struct { Data []map[string]string `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseListDictStrStr SuccessResponseListDictStrStr @@ -103,9 +103,9 @@ func (o *SuccessResponseListDictStrStr) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListDictStrStr) GetError() nil { +func (o *SuccessResponseListDictStrStr) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseListDictStrStr) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseListDictStrStr) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseListDictStrStr) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseListDictStrStr) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseListDictStrStr) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseListDictStrStr) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_list_permission_out__.go b/sdks/go/model_success_response_list_permission_out__.go index e33d5af..1b3a570 100644 --- a/sdks/go/model_success_response_list_permission_out__.go +++ b/sdks/go/model_success_response_list_permission_out__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseListPermissionOut{} type SuccessResponseListPermissionOut struct { Data []PermissionOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseListPermissionOut SuccessResponseListPermissionOut @@ -103,9 +103,9 @@ func (o *SuccessResponseListPermissionOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListPermissionOut) GetError() nil { +func (o *SuccessResponseListPermissionOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseListPermissionOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseListPermissionOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseListPermissionOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseListPermissionOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseListPermissionOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseListPermissionOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_list_policy_out__.go b/sdks/go/model_success_response_list_policy_out__.go index e0e40f0..1cb2d05 100644 --- a/sdks/go/model_success_response_list_policy_out__.go +++ b/sdks/go/model_success_response_list_policy_out__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseListPolicyOut{} type SuccessResponseListPolicyOut struct { Data []PolicyOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseListPolicyOut SuccessResponseListPolicyOut @@ -103,9 +103,9 @@ func (o *SuccessResponseListPolicyOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListPolicyOut) GetError() nil { +func (o *SuccessResponseListPolicyOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseListPolicyOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseListPolicyOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseListPolicyOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseListPolicyOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseListPolicyOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseListPolicyOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_list_role_out__.go b/sdks/go/model_success_response_list_role_out__.go index 63bd4b8..2b02d06 100644 --- a/sdks/go/model_success_response_list_role_out__.go +++ b/sdks/go/model_success_response_list_role_out__.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseListRoleOut{} type SuccessResponseListRoleOut struct { Data []RoleOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseListRoleOut SuccessResponseListRoleOut @@ -103,9 +103,9 @@ func (o *SuccessResponseListRoleOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListRoleOut) GetError() nil { +func (o *SuccessResponseListRoleOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseListRoleOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseListRoleOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseListRoleOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseListRoleOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseListRoleOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseListRoleOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_permission_out_.go b/sdks/go/model_success_response_permission_out_.go index 3de2fbc..572c17a 100644 --- a/sdks/go/model_success_response_permission_out_.go +++ b/sdks/go/model_success_response_permission_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponsePermissionOut{} type SuccessResponsePermissionOut struct { Data PermissionOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponsePermissionOut SuccessResponsePermissionOut @@ -103,9 +103,9 @@ func (o *SuccessResponsePermissionOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponsePermissionOut) GetError() nil { +func (o *SuccessResponsePermissionOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponsePermissionOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponsePermissionOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponsePermissionOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponsePermissionOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponsePermissionOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponsePermissionOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_policy_out_.go b/sdks/go/model_success_response_policy_out_.go index 004cffb..106d987 100644 --- a/sdks/go/model_success_response_policy_out_.go +++ b/sdks/go/model_success_response_policy_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponsePolicyOut{} type SuccessResponsePolicyOut struct { Data PolicyOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponsePolicyOut SuccessResponsePolicyOut @@ -103,9 +103,9 @@ func (o *SuccessResponsePolicyOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponsePolicyOut) GetError() nil { +func (o *SuccessResponsePolicyOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponsePolicyOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponsePolicyOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponsePolicyOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponsePolicyOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponsePolicyOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponsePolicyOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_policy_simulation_response_.go b/sdks/go/model_success_response_policy_simulation_response_.go index 82f632b..1f653f6 100644 --- a/sdks/go/model_success_response_policy_simulation_response_.go +++ b/sdks/go/model_success_response_policy_simulation_response_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponsePolicySimulationResponse{} type SuccessResponsePolicySimulationResponse struct { Data PolicySimulationResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponsePolicySimulationResponse SuccessResponsePolicySimulationResponse @@ -103,9 +103,9 @@ func (o *SuccessResponsePolicySimulationResponse) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponsePolicySimulationResponse) GetError() nil { +func (o *SuccessResponsePolicySimulationResponse) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponsePolicySimulationResponse) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*nil, bool) { +func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponsePolicySimulationResponse) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponsePolicySimulationResponse) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponsePolicySimulationResponse) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_relationship_out_.go b/sdks/go/model_success_response_relationship_out_.go index aec8827..e70eb8a 100644 --- a/sdks/go/model_success_response_relationship_out_.go +++ b/sdks/go/model_success_response_relationship_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseRelationshipOut{} type SuccessResponseRelationshipOut struct { Data RelationshipOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseRelationshipOut SuccessResponseRelationshipOut @@ -103,9 +103,9 @@ func (o *SuccessResponseRelationshipOut) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseRelationshipOut) GetError() nil { +func (o *SuccessResponseRelationshipOut) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseRelationshipOut) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseRelationshipOut) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseRelationshipOut) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseRelationshipOut) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseRelationshipOut) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseRelationshipOut) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_success_response_simulation_response_.go b/sdks/go/model_success_response_simulation_response_.go index 3b8936a..8312912 100644 --- a/sdks/go/model_success_response_simulation_response_.go +++ b/sdks/go/model_success_response_simulation_response_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &SuccessResponseSimulationResponse{} type SuccessResponseSimulationResponse struct { Data SimulationResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` - Error *nil `json:"error,omitempty"` + Error *interface{} `json:"error,omitempty"` } type _SuccessResponseSimulationResponse SuccessResponseSimulationResponse @@ -103,9 +103,9 @@ func (o *SuccessResponseSimulationResponse) SetMeta(v MetaBody) { } // GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseSimulationResponse) GetError() nil { +func (o *SuccessResponseSimulationResponse) GetError() interface{} { if o == nil || IsNil(o.Error) { - var ret nil + var ret interface{} return ret } return *o.Error @@ -113,7 +113,7 @@ func (o *SuccessResponseSimulationResponse) GetError() nil { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SuccessResponseSimulationResponse) GetErrorOk() (*nil, bool) { +func (o *SuccessResponseSimulationResponse) GetErrorOk() (*interface{}, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -129,8 +129,8 @@ func (o *SuccessResponseSimulationResponse) HasError() bool { return false } -// SetError gets a reference to the given nil and assigns it to the Error field. -func (o *SuccessResponseSimulationResponse) SetError(v nil) { +// SetError gets a reference to the given interface{} and assigns it to the Error field. +func (o *SuccessResponseSimulationResponse) SetError(v interface{}) { o.Error = &v } diff --git a/sdks/go/model_validation_error.go b/sdks/go/model_validation_error.go index ae51838..14b2575 100644 --- a/sdks/go/model_validation_error.go +++ b/sdks/go/model_validation_error.go @@ -25,7 +25,7 @@ type ValidationError struct { Msg string `json:"msg"` Type string `json:"type"` Input interface{} `json:"input,omitempty"` - Ctx map[string]interface{} `json:"ctx,omitempty"` + Ctx interface{} `json:"ctx,omitempty"` } type _ValidationError ValidationError @@ -156,9 +156,9 @@ func (o *ValidationError) SetInput(v interface{}) { } // GetCtx returns the Ctx field value if set, zero value otherwise. -func (o *ValidationError) GetCtx() map[string]interface{} { +func (o *ValidationError) GetCtx() interface{} { if o == nil || IsNil(o.Ctx) { - var ret map[string]interface{} + var ret interface{} return ret } return o.Ctx @@ -166,9 +166,9 @@ func (o *ValidationError) GetCtx() map[string]interface{} { // GetCtxOk returns a tuple with the Ctx field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ValidationError) GetCtxOk() (map[string]interface{}, bool) { +func (o *ValidationError) GetCtxOk() (interface{}, bool) { if o == nil || IsNil(o.Ctx) { - return map[string]interface{}{}, false + return interface{}{}, false } return o.Ctx, true } @@ -182,8 +182,8 @@ func (o *ValidationError) HasCtx() bool { return false } -// SetCtx gets a reference to the given map[string]interface{} and assigns it to the Ctx field. -func (o *ValidationError) SetCtx(v map[string]interface{}) { +// SetCtx gets a reference to the given interface{} and assigns it to the Ctx field. +func (o *ValidationError) SetCtx(v interface{}) { o.Ctx = v } diff --git a/sdks/java/docs/SuccessResponseACLOut.md b/sdks/java/docs/SuccessResponseACLOut.md index 2fe228d..fbe803f 100644 --- a/sdks/java/docs/SuccessResponseACLOut.md +++ b/sdks/java/docs/SuccessResponseACLOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**ACLOut**](ACLOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseAccessDecisionResponse.md b/sdks/java/docs/SuccessResponseAccessDecisionResponse.md index 55685b4..0b1b03e 100644 --- a/sdks/java/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/java/docs/SuccessResponseAccessDecisionResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseAdminLoginResponse.md b/sdks/java/docs/SuccessResponseAdminLoginResponse.md index c172463..1a55086 100644 --- a/sdks/java/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/java/docs/SuccessResponseAdminLoginResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseAuthModelOut.md b/sdks/java/docs/SuccessResponseAuthModelOut.md index a357062..a3ca425 100644 --- a/sdks/java/docs/SuccessResponseAuthModelOut.md +++ b/sdks/java/docs/SuccessResponseAuthModelOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**AuthModelOut**](AuthModelOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseBatchAccessResponse.md b/sdks/java/docs/SuccessResponseBatchAccessResponse.md index 58be0a6..7c848dc 100644 --- a/sdks/java/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/java/docs/SuccessResponseBatchAccessResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseDictStrAny.md b/sdks/java/docs/SuccessResponseDictStrAny.md index 0d94359..e2e3314 100644 --- a/sdks/java/docs/SuccessResponseDictStrAny.md +++ b/sdks/java/docs/SuccessResponseDictStrAny.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Map<String, Object>** | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseDictStrInt.md b/sdks/java/docs/SuccessResponseDictStrInt.md index b061f36..952add1 100644 --- a/sdks/java/docs/SuccessResponseDictStrInt.md +++ b/sdks/java/docs/SuccessResponseDictStrInt.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Map<String, Integer>** | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseDictStrObject.md b/sdks/java/docs/SuccessResponseDictStrObject.md index e73f0dd..dbed9ca 100644 --- a/sdks/java/docs/SuccessResponseDictStrObject.md +++ b/sdks/java/docs/SuccessResponseDictStrObject.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Map<String, Object>** | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseDictStrStr.md b/sdks/java/docs/SuccessResponseDictStrStr.md index e862e77..edfccee 100644 --- a/sdks/java/docs/SuccessResponseDictStrStr.md +++ b/sdks/java/docs/SuccessResponseDictStrStr.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Map<String, String>** | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md index e8905e7..d0110e9 100644 --- a/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**Map<String, DataValue>**](DataValue.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md index ece4d9e..39c01d6 100644 --- a/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseListACLOut.md b/sdks/java/docs/SuccessResponseListACLOut.md index fb3705e..aee97e3 100644 --- a/sdks/java/docs/SuccessResponseListACLOut.md +++ b/sdks/java/docs/SuccessResponseListACLOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**List<ACLOut>**](ACLOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseListAuditRecordOut.md b/sdks/java/docs/SuccessResponseListAuditRecordOut.md index 59703d3..3916d21 100644 --- a/sdks/java/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/java/docs/SuccessResponseListAuditRecordOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**List<AuditRecordOut>**](AuditRecordOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseListDictStrStr.md b/sdks/java/docs/SuccessResponseListDictStrStr.md index c5173f7..d73c099 100644 --- a/sdks/java/docs/SuccessResponseListDictStrStr.md +++ b/sdks/java/docs/SuccessResponseListDictStrStr.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **List<Map<String, String>>** | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseListPermissionOut.md b/sdks/java/docs/SuccessResponseListPermissionOut.md index ea569ed..c3607b3 100644 --- a/sdks/java/docs/SuccessResponseListPermissionOut.md +++ b/sdks/java/docs/SuccessResponseListPermissionOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**List<PermissionOut>**](PermissionOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseListPolicyOut.md b/sdks/java/docs/SuccessResponseListPolicyOut.md index e29e5ef..9934b27 100644 --- a/sdks/java/docs/SuccessResponseListPolicyOut.md +++ b/sdks/java/docs/SuccessResponseListPolicyOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**List<PolicyOut>**](PolicyOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseListRoleOut.md b/sdks/java/docs/SuccessResponseListRoleOut.md index 58b7d58..920b211 100644 --- a/sdks/java/docs/SuccessResponseListRoleOut.md +++ b/sdks/java/docs/SuccessResponseListRoleOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**List<RoleOut>**](RoleOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponsePermissionOut.md b/sdks/java/docs/SuccessResponsePermissionOut.md index 717b22a..6e6c299 100644 --- a/sdks/java/docs/SuccessResponsePermissionOut.md +++ b/sdks/java/docs/SuccessResponsePermissionOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**PermissionOut**](PermissionOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponsePolicyOut.md b/sdks/java/docs/SuccessResponsePolicyOut.md index 8a018df..8fd1af7 100644 --- a/sdks/java/docs/SuccessResponsePolicyOut.md +++ b/sdks/java/docs/SuccessResponsePolicyOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**PolicyOut**](PolicyOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponsePolicySimulationResponse.md b/sdks/java/docs/SuccessResponsePolicySimulationResponse.md index cbf8f65..e39f6e8 100644 --- a/sdks/java/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/java/docs/SuccessResponsePolicySimulationResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseRelationshipOut.md b/sdks/java/docs/SuccessResponseRelationshipOut.md index 7741d06..d09ccc8 100644 --- a/sdks/java/docs/SuccessResponseRelationshipOut.md +++ b/sdks/java/docs/SuccessResponseRelationshipOut.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**RelationshipOut**](RelationshipOut.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/docs/SuccessResponseSimulationResponse.md b/sdks/java/docs/SuccessResponseSimulationResponse.md index 5bc43d9..4f71cdf 100644 --- a/sdks/java/docs/SuccessResponseSimulationResponse.md +++ b/sdks/java/docs/SuccessResponseSimulationResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | [**SimulationResponse**](SimulationResponse.md) | | | |**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **ModelNull** | | [optional] | +|**error** | **Object** | | [optional] | diff --git a/sdks/java/gradlew b/sdks/java/gradlew old mode 100644 new mode 100755 diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md index cd04c03..342c323 100644 --- a/sdks/kotlin/README.md +++ b/sdks/kotlin/README.md @@ -1,160 +1,49 @@ -# io.keynetra.client - Kotlin client library for KeyNetra +# keynetra-client-kotlin -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/kotlin) -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client. +Official Kotlin Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ -- API version: 0.1.1 -- Package version: -- Generator version: 7.21.0 -- Build package: org.openapitools.codegen.languages.KotlinClientCodegen +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Kotlin applications to integrate seamlessly with KeyNetra for access control and policy management. -## Requires +## โœจ Features -* Kotlin 2.2.20 +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. -## Build +## ๐Ÿ“ฆ Installation +```bash +implementation("io.keynetra:keynetra-client-kotlin:0.1.1") ``` -./gradlew check assemble + +## ๐Ÿš€ Quick Start + +```kotlin +import io.keynetra.client.KeyNetraClient + +val client = KeyNetraClient( + baseUrl = "http://localhost:8080", + apiKey = "YOUR_API_KEY" +) + +// Perform an access check +val decision = client.accessApi.checkAccess(...) ``` -This runs all tests and packages the library. - -## Features/Implementation Notes - -* Supports JSON inputs/outputs, File inputs, and Form inputs. -* Supports collection formats for query parameters: csv, tsv, ssv, pipes. -* Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions. - - - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -| Class | Method | HTTP request | Description | -| ------------ | ------------- | ------------- | ------------- | -| *AccessApi* | [**checkAccessBatchCheckAccessBatchPost**](docs/AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch | -| *AccessApi* | [**checkAccessCheckAccessPost**](docs/AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access | -| *AccessApi* | [**simulateSimulatePost**](docs/AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate | -| *AuthApi* | [**adminLoginAdminLoginPost**](docs/AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login | -| *AuthApi* | [**adminLoginAdminLoginPost_0**](docs/AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login | -| *DevApi* | [**getSampleDataDevSampleDataGet**](docs/DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data | -| *DevApi* | [**seedSampleDataDevSampleDataSeedPost**](docs/DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data | -| *HealthApi* | [**healthHealthGet**](docs/HealthApi.md#healthhealthget) | **GET** /health | Health | -| *HealthApi* | [**livenessHealthLiveGet**](docs/HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness | -| *HealthApi* | [**readinessHealthReadyGet**](docs/HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness | -| *ManagementApi* | [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](docs/ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| *ManagementApi* | [**createAclEntryAclPost**](docs/ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry | -| *ManagementApi* | [**createAuthModelAuthModelPost**](docs/ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model | -| *ManagementApi* | [**createPermissionPermissionsPost**](docs/ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission | -| *ManagementApi* | [**createPolicyFromDslPoliciesDslPost**](docs/ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl | -| *ManagementApi* | [**createPolicyPoliciesPost**](docs/ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy | -| *ManagementApi* | [**createRelationshipRelationshipsPost**](docs/ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship | -| *ManagementApi* | [**createRoleRolesPost**](docs/ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role | -| *ManagementApi* | [**deleteAclEntryAclAclIdDelete**](docs/ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| *ManagementApi* | [**deletePermissionPermissionsPermissionIdDelete**](docs/ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| *ManagementApi* | [**deletePolicyPoliciesPolicyKeyDelete**](docs/ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy | -| *ManagementApi* | [**deleteRoleRolesRoleIdDelete**](docs/ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role | -| *ManagementApi* | [**getAuthModelAuthModelGet**](docs/ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model | -| *ManagementApi* | [**impactAnalysisImpactAnalysisPost**](docs/ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis | -| *ManagementApi* | [**listAclEntriesAclResourceTypeResourceIdGet**](docs/ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| *ManagementApi* | [**listAuditLogsAuditGet**](docs/ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs | -| *ManagementApi* | [**listPermissionRolesPermissionsPermissionIdRolesGet**](docs/ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| *ManagementApi* | [**listPermissionsPermissionsGet**](docs/ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions | -| *ManagementApi* | [**listPoliciesPoliciesGet**](docs/ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies | -| *ManagementApi* | [**listRelationshipsRelationshipsGet**](docs/ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships | -| *ManagementApi* | [**listRolePermissionsRolesRoleIdPermissionsGet**](docs/ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| *ManagementApi* | [**listRolesRolesGet**](docs/ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles | -| *ManagementApi* | [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](docs/ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| *ManagementApi* | [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](docs/ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| *ManagementApi* | [**simulatePolicySimulatePolicyPost**](docs/ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy | -| *ManagementApi* | [**updatePermissionPermissionsPermissionIdPut**](docs/ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission | -| *ManagementApi* | [**updatePolicyPoliciesPolicyKeyPut**](docs/ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy | -| *ManagementApi* | [**updateRoleRolesRoleIdPut**](docs/ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role | -| *PlaygroundApi* | [**evaluatePlaygroundEvaluatePost**](docs/PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate | - - - -## Documentation for Models - - - [io.keynetra.client.models.ACLCreate](docs/ACLCreate.md) - - [io.keynetra.client.models.ACLOut](docs/ACLOut.md) - - [io.keynetra.client.models.AccessDecisionResponse](docs/AccessDecisionResponse.md) - - [io.keynetra.client.models.AccessRequest](docs/AccessRequest.md) - - [io.keynetra.client.models.AdminLoginRequest](docs/AdminLoginRequest.md) - - [io.keynetra.client.models.AdminLoginResponse](docs/AdminLoginResponse.md) - - [io.keynetra.client.models.AuditRecordOut](docs/AuditRecordOut.md) - - [io.keynetra.client.models.AuthModelCreate](docs/AuthModelCreate.md) - - [io.keynetra.client.models.AuthModelOut](docs/AuthModelOut.md) - - [io.keynetra.client.models.BatchAccessItem](docs/BatchAccessItem.md) - - [io.keynetra.client.models.BatchAccessRequest](docs/BatchAccessRequest.md) - - [io.keynetra.client.models.BatchAccessResponse](docs/BatchAccessResponse.md) - - [io.keynetra.client.models.BatchAccessResult](docs/BatchAccessResult.md) - - [io.keynetra.client.models.DataValue](docs/DataValue.md) - - [io.keynetra.client.models.HTTPValidationError](docs/HTTPValidationError.md) - - [io.keynetra.client.models.ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) - - [io.keynetra.client.models.ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) - - [io.keynetra.client.models.LocationInner](docs/LocationInner.md) - - [io.keynetra.client.models.MetaBody](docs/MetaBody.md) - - [io.keynetra.client.models.PermissionCreate](docs/PermissionCreate.md) - - [io.keynetra.client.models.PermissionOut](docs/PermissionOut.md) - - [io.keynetra.client.models.PermissionUpdate](docs/PermissionUpdate.md) - - [io.keynetra.client.models.PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) - - [io.keynetra.client.models.PlaygroundInput](docs/PlaygroundInput.md) - - [io.keynetra.client.models.PlaygroundPolicy](docs/PlaygroundPolicy.md) - - [io.keynetra.client.models.PolicyCreate](docs/PolicyCreate.md) - - [io.keynetra.client.models.PolicyOut](docs/PolicyOut.md) - - [io.keynetra.client.models.PolicySimulationInput](docs/PolicySimulationInput.md) - - [io.keynetra.client.models.PolicySimulationRequest](docs/PolicySimulationRequest.md) - - [io.keynetra.client.models.PolicySimulationResponse](docs/PolicySimulationResponse.md) - - [io.keynetra.client.models.RelationshipCreate](docs/RelationshipCreate.md) - - [io.keynetra.client.models.RelationshipOut](docs/RelationshipOut.md) - - [io.keynetra.client.models.RoleCreate](docs/RoleCreate.md) - - [io.keynetra.client.models.RoleOut](docs/RoleOut.md) - - [io.keynetra.client.models.RoleUpdate](docs/RoleUpdate.md) - - [io.keynetra.client.models.SimulationResponse](docs/SimulationResponse.md) - - [io.keynetra.client.models.SuccessResponseACLOut](docs/SuccessResponseACLOut.md) - - [io.keynetra.client.models.SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) - - [io.keynetra.client.models.SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) - - [io.keynetra.client.models.SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) - - [io.keynetra.client.models.SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) - - [io.keynetra.client.models.SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) - - [io.keynetra.client.models.SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) - - [io.keynetra.client.models.SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) - - [io.keynetra.client.models.SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) - - [io.keynetra.client.models.SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) - - [io.keynetra.client.models.SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) - - [io.keynetra.client.models.SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) - - [io.keynetra.client.models.SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) - - [io.keynetra.client.models.SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) - - [io.keynetra.client.models.SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) - - [io.keynetra.client.models.SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) - - [io.keynetra.client.models.SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) - - [io.keynetra.client.models.SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) - - [io.keynetra.client.models.SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) - - [io.keynetra.client.models.SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) - - [io.keynetra.client.models.SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) - - [io.keynetra.client.models.SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) - - [io.keynetra.client.models.ValidationError](docs/ValidationError.md) - - - -## Documentation for Authorization - - -Authentication schemes defined for the API: - -### HTTPBearer - -- **Type**: HTTP Bearer Token authentication - - -### APIKeyHeader - -- **Type**: API key -- **API key parameter name**: X-API-Key -- **Location**: HTTP header + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/kotlin). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-client-kotlin](https://github.com/keynetra/keynetra-client-kotlin) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-kotlin/issues) +- **License**: Apache-2.0 diff --git a/sdks/kotlin/docs/SuccessResponseACLOut.md b/sdks/kotlin/docs/SuccessResponseACLOut.md index 0dfa280..2c15d9a 100644 --- a/sdks/kotlin/docs/SuccessResponseACLOut.md +++ b/sdks/kotlin/docs/SuccessResponseACLOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**ACLOut**](ACLOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md index 0955eed..7154ef9 100644 --- a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md index a33348d..7c224da 100644 --- a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md index c040363..de5705a 100644 --- a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md +++ b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**AuthModelOut**](AuthModelOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md index a2ff457..c8d1809 100644 --- a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrAny.md b/sdks/kotlin/docs/SuccessResponseDictStrAny.md index e207a05..63994ce 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrAny.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrAny.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrInt.md b/sdks/kotlin/docs/SuccessResponseDictStrInt.md index 3188711..8bd4281 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrInt.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrInt.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.Int>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrObject.md b/sdks/kotlin/docs/SuccessResponseDictStrObject.md index ac15ab8..7d7d485 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrObject.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrObject.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrStr.md b/sdks/kotlin/docs/SuccessResponseDictStrStr.md index af1ebab..4c4ba7b 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrStr.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrStr.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md index de8028a..997350c 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.Map<kotlin.String, DataValue>**](DataValue.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md index 1a6e6c5..6be2311 100644 --- a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListACLOut.md b/sdks/kotlin/docs/SuccessResponseListACLOut.md index 30aa0e7..964911e 100644 --- a/sdks/kotlin/docs/SuccessResponseListACLOut.md +++ b/sdks/kotlin/docs/SuccessResponseListACLOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<ACLOut>**](ACLOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md index ff03159..2486f40 100644 --- a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<AuditRecordOut>**](AuditRecordOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md index 4127b1c..c24c0e4 100644 --- a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md +++ b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.String>>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md index e56b8d1..29ee7e2 100644 --- a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md +++ b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<PermissionOut>**](PermissionOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md index 3a24ffc..74ca69f 100644 --- a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md +++ b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<PolicyOut>**](PolicyOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListRoleOut.md b/sdks/kotlin/docs/SuccessResponseListRoleOut.md index a1d01af..34155b4 100644 --- a/sdks/kotlin/docs/SuccessResponseListRoleOut.md +++ b/sdks/kotlin/docs/SuccessResponseListRoleOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<RoleOut>**](RoleOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponsePermissionOut.md b/sdks/kotlin/docs/SuccessResponsePermissionOut.md index ceda82c..21adb21 100644 --- a/sdks/kotlin/docs/SuccessResponsePermissionOut.md +++ b/sdks/kotlin/docs/SuccessResponsePermissionOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**PermissionOut**](PermissionOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponsePolicyOut.md b/sdks/kotlin/docs/SuccessResponsePolicyOut.md index 29f94d6..9f68f50 100644 --- a/sdks/kotlin/docs/SuccessResponsePolicyOut.md +++ b/sdks/kotlin/docs/SuccessResponsePolicyOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**PolicyOut**](PolicyOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md index e43a166..03cf343 100644 --- a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md index 205449d..75a19e3 100644 --- a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md +++ b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**RelationshipOut**](RelationshipOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md index f955022..cae1bae 100644 --- a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md +++ b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**SimulationResponse**](SimulationResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | diff --git a/sdks/kotlin/docs/ValidationError.md b/sdks/kotlin/docs/ValidationError.md index 6c9709d..3d56fa7 100644 --- a/sdks/kotlin/docs/ValidationError.md +++ b/sdks/kotlin/docs/ValidationError.md @@ -8,7 +8,7 @@ | **msg** | **kotlin.String** | | | | **type** | **kotlin.String** | | | | **input** | [**kotlin.Any**](.md) | | [optional] | -| **ctx** | **kotlin.String** | | [optional] | +| **ctx** | [**kotlin.Any**](.md) | | [optional] | diff --git a/sdks/kotlin/gradlew b/sdks/kotlin/gradlew old mode 100644 new mode 100755 diff --git a/sdks/php/docs/Model/SuccessResponseACLOut.md b/sdks/php/docs/Model/SuccessResponseACLOut.md index d9e6534..6413186 100644 --- a/sdks/php/docs/Model/SuccessResponseACLOut.md +++ b/sdks/php/docs/Model/SuccessResponseACLOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\ACLOut**](ACLOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md b/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md index c0df4d4..24198ec 100644 --- a/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md +++ b/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\AccessDecisionResponse**](AccessDecisionResponse.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md b/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md index 333d829..f43cd07 100644 --- a/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md +++ b/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\AdminLoginResponse**](AdminLoginResponse.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAuthModelOut.md b/sdks/php/docs/Model/SuccessResponseAuthModelOut.md index 70f3e6d..1f2be7f 100644 --- a/sdks/php/docs/Model/SuccessResponseAuthModelOut.md +++ b/sdks/php/docs/Model/SuccessResponseAuthModelOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\AuthModelOut**](AuthModelOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md b/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md index bc3bc00..b22dc86 100644 --- a/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md +++ b/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\BatchAccessResponse**](BatchAccessResponse.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrAny.md b/sdks/php/docs/Model/SuccessResponseDictStrAny.md index 4a5f2a5..3ddbe2f 100644 --- a/sdks/php/docs/Model/SuccessResponseDictStrAny.md +++ b/sdks/php/docs/Model/SuccessResponseDictStrAny.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **array** | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrInt.md b/sdks/php/docs/Model/SuccessResponseDictStrInt.md index 6a000c3..3a45c87 100644 --- a/sdks/php/docs/Model/SuccessResponseDictStrInt.md +++ b/sdks/php/docs/Model/SuccessResponseDictStrInt.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **array** | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrObject.md b/sdks/php/docs/Model/SuccessResponseDictStrObject.md index 0cd4461..c1d9804 100644 --- a/sdks/php/docs/Model/SuccessResponseDictStrObject.md +++ b/sdks/php/docs/Model/SuccessResponseDictStrObject.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **array** | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrStr.md b/sdks/php/docs/Model/SuccessResponseDictStrStr.md index f12ffc3..3cbb057 100644 --- a/sdks/php/docs/Model/SuccessResponseDictStrStr.md +++ b/sdks/php/docs/Model/SuccessResponseDictStrStr.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **array** | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md b/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md index ed8c41f..0de5869 100644 --- a/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**array**](DataValue.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md b/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md index 110b619..f13bdca 100644 --- a/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListACLOut.md b/sdks/php/docs/Model/SuccessResponseListACLOut.md index 09c63c6..f265b1e 100644 --- a/sdks/php/docs/Model/SuccessResponseListACLOut.md +++ b/sdks/php/docs/Model/SuccessResponseListACLOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\ACLOut[]**](ACLOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md b/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md index 4c971e0..d4f4fc6 100644 --- a/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md +++ b/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\AuditRecordOut[]**](AuditRecordOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListDictStrStr.md b/sdks/php/docs/Model/SuccessResponseListDictStrStr.md index 56e3970..be44a87 100644 --- a/sdks/php/docs/Model/SuccessResponseListDictStrStr.md +++ b/sdks/php/docs/Model/SuccessResponseListDictStrStr.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **array[]** | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListPermissionOut.md b/sdks/php/docs/Model/SuccessResponseListPermissionOut.md index 56e4d61..ce89e6f 100644 --- a/sdks/php/docs/Model/SuccessResponseListPermissionOut.md +++ b/sdks/php/docs/Model/SuccessResponseListPermissionOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\PermissionOut[]**](PermissionOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListPolicyOut.md b/sdks/php/docs/Model/SuccessResponseListPolicyOut.md index ff8a4b0..64ab5d0 100644 --- a/sdks/php/docs/Model/SuccessResponseListPolicyOut.md +++ b/sdks/php/docs/Model/SuccessResponseListPolicyOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\PolicyOut[]**](PolicyOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListRoleOut.md b/sdks/php/docs/Model/SuccessResponseListRoleOut.md index 6712fa2..fe89db4 100644 --- a/sdks/php/docs/Model/SuccessResponseListRoleOut.md +++ b/sdks/php/docs/Model/SuccessResponseListRoleOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\RoleOut[]**](RoleOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePermissionOut.md b/sdks/php/docs/Model/SuccessResponsePermissionOut.md index 6df1fb7..7ed3d60 100644 --- a/sdks/php/docs/Model/SuccessResponsePermissionOut.md +++ b/sdks/php/docs/Model/SuccessResponsePermissionOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\PermissionOut**](PermissionOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePolicyOut.md b/sdks/php/docs/Model/SuccessResponsePolicyOut.md index 1fb6906..60a45d1 100644 --- a/sdks/php/docs/Model/SuccessResponsePolicyOut.md +++ b/sdks/php/docs/Model/SuccessResponsePolicyOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\PolicyOut**](PolicyOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md b/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md index 68f5d22..def64d3 100644 --- a/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md +++ b/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\PolicySimulationResponse**](PolicySimulationResponse.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseRelationshipOut.md b/sdks/php/docs/Model/SuccessResponseRelationshipOut.md index ad4403f..8397265 100644 --- a/sdks/php/docs/Model/SuccessResponseRelationshipOut.md +++ b/sdks/php/docs/Model/SuccessResponseRelationshipOut.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\RelationshipOut**](RelationshipOut.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseSimulationResponse.md b/sdks/php/docs/Model/SuccessResponseSimulationResponse.md index 1a32394..b4aaa28 100644 --- a/sdks/php/docs/Model/SuccessResponseSimulationResponse.md +++ b/sdks/php/docs/Model/SuccessResponseSimulationResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\KeyNetra\Client\Model\SimulationResponse**](SimulationResponse.md) | | **meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **mixed** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index 5ad657b..34c45e5 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -1,213 +1,49 @@ # keynetra-client -KeyNetra - the Ruby gem for the KeyNetra +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/ruby) -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) +Official Ruby Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ -This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Ruby applications to integrate seamlessly with KeyNetra for access control and policy management. -- API version: 0.1.1 -- Package version: 0.1.1 -- Generator version: 7.21.0 -- Build package: org.openapitools.codegen.languages.RubyClientCodegen +## โœจ Features -## Installation +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. -### Build a gem +## ๐Ÿ“ฆ Installation -To build the Ruby code into a gem: - -```shell -gem build keynetra-client.gemspec -``` - -Then either install the gem locally: - -```shell -gem install ./keynetra-client-0.1.1.gem +```bash +gem install keynetra-client ``` -(for development, run `gem install --dev ./keynetra-client-0.1.1.gem` to install the development dependencies) - -or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). - -Finally add this to the Gemfile: - - gem 'keynetra-client', '~> 0.1.1' - -### Install from Git +## ๐Ÿš€ Quick Start -If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile: - - gem 'keynetra-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git' - -### Include the Ruby code directly +```ruby +require 'keynetra-client' -Include the Ruby code directly using `-I` as follows: +client = KeyNetra::KeyNetraClient.new( + "http://localhost:8080", + "YOUR_API_KEY" +) -```shell -ruby -Ilib script.rb +# Perform an access check +decision = client.access_api.check_access(...) ``` -## Getting Started -Please follow the [installation](#installation) procedure and then run the following code: -```ruby -# Load the gem -require 'keynetra-client' +## ๐Ÿ“š Documentation -# Setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' - # Configure a proc to get access tokens in lieu of the static access_token configuration - config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } -end - -api_instance = KeyNetra::AccessApi.new -batch_access_request = KeyNetra::BatchAccessRequest.new({items: [KeyNetra::BatchAccessItem.new({action: 'action_example'})]}) # BatchAccessRequest | -opts = { - policy_set: 'policy_set_example' # String | -} - -begin - #Check Access Batch - result = api_instance.check_access_batch_check_access_batch_post(batch_access_request, opts) - p result -rescue KeyNetra::ApiError => e - puts "Exception when calling AccessApi->check_access_batch_check_access_batch_post: #{e}" -end +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/ruby). -``` +## ๐Ÿค Support -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*KeyNetra::AccessApi* | [**check_access_batch_check_access_batch_post**](docs/AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch -*KeyNetra::AccessApi* | [**check_access_check_access_post**](docs/AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access -*KeyNetra::AccessApi* | [**simulate_simulate_post**](docs/AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate -*KeyNetra::AuthApi* | [**admin_login_admin_login_post**](docs/AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login -*KeyNetra::AuthApi* | [**admin_login_admin_login_post_0**](docs/AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login -*KeyNetra::DevApi* | [**get_sample_data_dev_sample_data_get**](docs/DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data -*KeyNetra::DevApi* | [**seed_sample_data_dev_sample_data_seed_post**](docs/DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data -*KeyNetra::HealthApi* | [**health_health_get**](docs/HealthApi.md#health_health_get) | **GET** /health | Health -*KeyNetra::HealthApi* | [**liveness_health_live_get**](docs/HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness -*KeyNetra::HealthApi* | [**readiness_health_ready_get**](docs/HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness -*KeyNetra::ManagementApi* | [**add_permission_to_role_roles_role_id_permissions_permission_id_post**](docs/ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -*KeyNetra::ManagementApi* | [**create_acl_entry_acl_post**](docs/ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry -*KeyNetra::ManagementApi* | [**create_auth_model_auth_model_post**](docs/ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model -*KeyNetra::ManagementApi* | [**create_permission_permissions_post**](docs/ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission -*KeyNetra::ManagementApi* | [**create_policy_from_dsl_policies_dsl_post**](docs/ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl -*KeyNetra::ManagementApi* | [**create_policy_policies_post**](docs/ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy -*KeyNetra::ManagementApi* | [**create_relationship_relationships_post**](docs/ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship -*KeyNetra::ManagementApi* | [**create_role_roles_post**](docs/ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role -*KeyNetra::ManagementApi* | [**delete_acl_entry_acl_acl_id_delete**](docs/ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -*KeyNetra::ManagementApi* | [**delete_permission_permissions_permission_id_delete**](docs/ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission -*KeyNetra::ManagementApi* | [**delete_policy_policies_policy_key_delete**](docs/ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy -*KeyNetra::ManagementApi* | [**delete_role_roles_role_id_delete**](docs/ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role -*KeyNetra::ManagementApi* | [**get_auth_model_auth_model_get**](docs/ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model -*KeyNetra::ManagementApi* | [**impact_analysis_impact_analysis_post**](docs/ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis -*KeyNetra::ManagementApi* | [**list_acl_entries_acl_resource_type_resource_id_get**](docs/ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -*KeyNetra::ManagementApi* | [**list_audit_logs_audit_get**](docs/ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs -*KeyNetra::ManagementApi* | [**list_permission_roles_permissions_permission_id_roles_get**](docs/ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles -*KeyNetra::ManagementApi* | [**list_permissions_permissions_get**](docs/ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions -*KeyNetra::ManagementApi* | [**list_policies_policies_get**](docs/ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies -*KeyNetra::ManagementApi* | [**list_relationships_relationships_get**](docs/ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships -*KeyNetra::ManagementApi* | [**list_role_permissions_roles_role_id_permissions_get**](docs/ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions -*KeyNetra::ManagementApi* | [**list_roles_roles_get**](docs/ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles -*KeyNetra::ManagementApi* | [**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](docs/ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -*KeyNetra::ManagementApi* | [**rollback_policy_policies_policy_key_rollback_version_post**](docs/ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -*KeyNetra::ManagementApi* | [**simulate_policy_simulate_policy_post**](docs/ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy -*KeyNetra::ManagementApi* | [**update_permission_permissions_permission_id_put**](docs/ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission -*KeyNetra::ManagementApi* | [**update_policy_policies_policy_key_put**](docs/ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy -*KeyNetra::ManagementApi* | [**update_role_roles_role_id_put**](docs/ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role -*KeyNetra::PlaygroundApi* | [**evaluate_playground_evaluate_post**](docs/PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate - - -## Documentation for Models - - - [KeyNetra::ACLCreate](docs/ACLCreate.md) - - [KeyNetra::ACLOut](docs/ACLOut.md) - - [KeyNetra::AccessDecisionResponse](docs/AccessDecisionResponse.md) - - [KeyNetra::AccessRequest](docs/AccessRequest.md) - - [KeyNetra::AdminLoginRequest](docs/AdminLoginRequest.md) - - [KeyNetra::AdminLoginResponse](docs/AdminLoginResponse.md) - - [KeyNetra::AuditRecordOut](docs/AuditRecordOut.md) - - [KeyNetra::AuthModelCreate](docs/AuthModelCreate.md) - - [KeyNetra::AuthModelOut](docs/AuthModelOut.md) - - [KeyNetra::BatchAccessItem](docs/BatchAccessItem.md) - - [KeyNetra::BatchAccessRequest](docs/BatchAccessRequest.md) - - [KeyNetra::BatchAccessResponse](docs/BatchAccessResponse.md) - - [KeyNetra::BatchAccessResult](docs/BatchAccessResult.md) - - [KeyNetra::DataValue](docs/DataValue.md) - - [KeyNetra::HTTPValidationError](docs/HTTPValidationError.md) - - [KeyNetra::ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) - - [KeyNetra::ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) - - [KeyNetra::LocationInner](docs/LocationInner.md) - - [KeyNetra::MetaBody](docs/MetaBody.md) - - [KeyNetra::PermissionCreate](docs/PermissionCreate.md) - - [KeyNetra::PermissionOut](docs/PermissionOut.md) - - [KeyNetra::PermissionUpdate](docs/PermissionUpdate.md) - - [KeyNetra::PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) - - [KeyNetra::PlaygroundInput](docs/PlaygroundInput.md) - - [KeyNetra::PlaygroundPolicy](docs/PlaygroundPolicy.md) - - [KeyNetra::PolicyCreate](docs/PolicyCreate.md) - - [KeyNetra::PolicyOut](docs/PolicyOut.md) - - [KeyNetra::PolicySimulationInput](docs/PolicySimulationInput.md) - - [KeyNetra::PolicySimulationRequest](docs/PolicySimulationRequest.md) - - [KeyNetra::PolicySimulationResponse](docs/PolicySimulationResponse.md) - - [KeyNetra::RelationshipCreate](docs/RelationshipCreate.md) - - [KeyNetra::RelationshipOut](docs/RelationshipOut.md) - - [KeyNetra::RoleCreate](docs/RoleCreate.md) - - [KeyNetra::RoleOut](docs/RoleOut.md) - - [KeyNetra::RoleUpdate](docs/RoleUpdate.md) - - [KeyNetra::SimulationResponse](docs/SimulationResponse.md) - - [KeyNetra::SuccessResponseACLOut](docs/SuccessResponseACLOut.md) - - [KeyNetra::SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) - - [KeyNetra::SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) - - [KeyNetra::SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) - - [KeyNetra::SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) - - [KeyNetra::SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) - - [KeyNetra::SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) - - [KeyNetra::SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) - - [KeyNetra::SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) - - [KeyNetra::SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) - - [KeyNetra::SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) - - [KeyNetra::SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) - - [KeyNetra::SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) - - [KeyNetra::SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) - - [KeyNetra::SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) - - [KeyNetra::SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) - - [KeyNetra::SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) - - [KeyNetra::SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) - - [KeyNetra::SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) - - [KeyNetra::SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) - - [KeyNetra::SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) - - [KeyNetra::SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) - - [KeyNetra::ValidationError](docs/ValidationError.md) - - -## Documentation for Authorization - - -Authentication schemes defined for the API: -### HTTPBearer - -- **Type**: Bearer authentication - -### APIKeyHeader - - -- **Type**: API key -- **API key parameter name**: X-API-Key -- **Location**: HTTP header +- **Source**: [https://github.com/keynetra/keynetra-client-ruby](https://github.com/keynetra/keynetra-client-ruby) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-ruby/issues) +- **License**: Apache-2.0 diff --git a/sdks/ruby/docs/SuccessResponseACLOut.md b/sdks/ruby/docs/SuccessResponseACLOut.md index 7a2bb8a..4cb0ecd 100644 --- a/sdks/ruby/docs/SuccessResponseACLOut.md +++ b/sdks/ruby/docs/SuccessResponseACLOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**ACLOut**](ACLOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md b/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md index 2e18013..49c3c4b 100644 --- a/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md b/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md index 46352da..fc50e85 100644 --- a/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseAuthModelOut.md b/sdks/ruby/docs/SuccessResponseAuthModelOut.md index 0eaf077..b00fda8 100644 --- a/sdks/ruby/docs/SuccessResponseAuthModelOut.md +++ b/sdks/ruby/docs/SuccessResponseAuthModelOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**AuthModelOut**](AuthModelOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md b/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md index 0f1db33..a528f92 100644 --- a/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseDictStrAny.md b/sdks/ruby/docs/SuccessResponseDictStrAny.md index 90be27b..0f54b16 100644 --- a/sdks/ruby/docs/SuccessResponseDictStrAny.md +++ b/sdks/ruby/docs/SuccessResponseDictStrAny.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | **Hash<String, Object>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseDictStrInt.md b/sdks/ruby/docs/SuccessResponseDictStrInt.md index 6e36ef0..64d64ae 100644 --- a/sdks/ruby/docs/SuccessResponseDictStrInt.md +++ b/sdks/ruby/docs/SuccessResponseDictStrInt.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | **Hash<String, Integer>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseDictStrObject.md b/sdks/ruby/docs/SuccessResponseDictStrObject.md index 84a7e91..dcbf253 100644 --- a/sdks/ruby/docs/SuccessResponseDictStrObject.md +++ b/sdks/ruby/docs/SuccessResponseDictStrObject.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | **Hash<String, Object>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseDictStrStr.md b/sdks/ruby/docs/SuccessResponseDictStrStr.md index 5ee45df..626c9f0 100644 --- a/sdks/ruby/docs/SuccessResponseDictStrStr.md +++ b/sdks/ruby/docs/SuccessResponseDictStrStr.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | **Hash<String, String>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md index 8328113..26f71df 100644 --- a/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**Hash<String, DataValue>**](DataValue.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md index 4e03b35..edb291f 100644 --- a/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseListACLOut.md b/sdks/ruby/docs/SuccessResponseListACLOut.md index 553be55..26d8c1a 100644 --- a/sdks/ruby/docs/SuccessResponseListACLOut.md +++ b/sdks/ruby/docs/SuccessResponseListACLOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**Array<ACLOut>**](ACLOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md b/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md index 367a83e..3f64860 100644 --- a/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**Array<AuditRecordOut>**](AuditRecordOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseListDictStrStr.md b/sdks/ruby/docs/SuccessResponseListDictStrStr.md index a688388..afb46b1 100644 --- a/sdks/ruby/docs/SuccessResponseListDictStrStr.md +++ b/sdks/ruby/docs/SuccessResponseListDictStrStr.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | **Array<Hash<String, String>>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseListPermissionOut.md b/sdks/ruby/docs/SuccessResponseListPermissionOut.md index 5f458dc..5b936d7 100644 --- a/sdks/ruby/docs/SuccessResponseListPermissionOut.md +++ b/sdks/ruby/docs/SuccessResponseListPermissionOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**Array<PermissionOut>**](PermissionOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseListPolicyOut.md b/sdks/ruby/docs/SuccessResponseListPolicyOut.md index d7b014c..a1c8ec9 100644 --- a/sdks/ruby/docs/SuccessResponseListPolicyOut.md +++ b/sdks/ruby/docs/SuccessResponseListPolicyOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**Array<PolicyOut>**](PolicyOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseListRoleOut.md b/sdks/ruby/docs/SuccessResponseListRoleOut.md index fe9926f..ffbd391 100644 --- a/sdks/ruby/docs/SuccessResponseListRoleOut.md +++ b/sdks/ruby/docs/SuccessResponseListRoleOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**Array<RoleOut>**](RoleOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponsePermissionOut.md b/sdks/ruby/docs/SuccessResponsePermissionOut.md index 43a8c0b..f6006d5 100644 --- a/sdks/ruby/docs/SuccessResponsePermissionOut.md +++ b/sdks/ruby/docs/SuccessResponsePermissionOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**PermissionOut**](PermissionOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponsePolicyOut.md b/sdks/ruby/docs/SuccessResponsePolicyOut.md index 0782b34..6aae06e 100644 --- a/sdks/ruby/docs/SuccessResponsePolicyOut.md +++ b/sdks/ruby/docs/SuccessResponsePolicyOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**PolicyOut**](PolicyOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md b/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md index 0333182..7dd8f5f 100644 --- a/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseRelationshipOut.md b/sdks/ruby/docs/SuccessResponseRelationshipOut.md index f87b89f..76af294 100644 --- a/sdks/ruby/docs/SuccessResponseRelationshipOut.md +++ b/sdks/ruby/docs/SuccessResponseRelationshipOut.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**RelationshipOut**](RelationshipOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/docs/SuccessResponseSimulationResponse.md b/sdks/ruby/docs/SuccessResponseSimulationResponse.md index 1cdc7ef..cd1cd0a 100644 --- a/sdks/ruby/docs/SuccessResponseSimulationResponse.md +++ b/sdks/ruby/docs/SuccessResponseSimulationResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **data** | [**SimulationResponse**](SimulationResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**Null**](Null.md) | | [optional] | +| **error** | **Object** | | [optional] | ## Example diff --git a/sdks/ruby/keynetra-client.gemspec b/sdks/ruby/keynetra-client.gemspec index 6f32351..48382aa 100644 --- a/sdks/ruby/keynetra-client.gemspec +++ b/sdks/ruby/keynetra-client.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.authors = ["SainathSapa"] s.email = ["info.djsai@gmail.com"] s.homepage = "https://github.com/keynetra/keynetra-client-ruby" - s.summary = "KeyNetra Ruby Gem" + s.summary = "Official Ruby Client SDK for the KeyNetra authorization platform." s.description = "Official Ruby SDK for the KeyNetra authorization platform." s.license = "Apache-2.0" s.required_ruby_version = ">= 2.7" diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 1e4f437..439a6dc 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -1,10 +1,11 @@ [package] +readme = "README.md" name = "keynetra-client" version = "0.1.1" -authors = ["OpenAPI Generator team and contributors"] -description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" +authors = ["KeyNetra "] +description = "Official Rust Client SDK for the KeyNetra authorization platform." # Override this license by providing a License Object in the OpenAPI. -license = "Unlicense" +license = "Apache-2.0" edition = "2021" [dependencies] diff --git a/sdks/rust/README.md b/sdks/rust/README.md index 0854b45..2661720 100644 --- a/sdks/rust/README.md +++ b/sdks/rust/README.md @@ -1,142 +1,51 @@ -# Rust API client for keynetra-client +# keynetra-client -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/rust) +Official Rust Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ -## Overview +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Rust applications to integrate seamlessly with KeyNetra for access control and policy management. -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. +## โœจ Features -- API version: 0.1.1 -- Package version: 0.1.1 -- Generator version: 7.21.0 -- Build package: `org.openapitools.codegen.languages.RustClientCodegen` +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. -## Installation +## ๐Ÿ“ฆ Installation -Put the package under your project folder in a directory named `keynetra-client` and add the following to `Cargo.toml` under `[dependencies]`: - -``` -keynetra-client = { path = "./keynetra-client" } +```bash +cargo add keynetra-client ``` -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccessApi* | [**check_access_batch_check_access_batch_post**](docs/AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch -*AccessApi* | [**check_access_check_access_post**](docs/AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access -*AccessApi* | [**simulate_simulate_post**](docs/AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate -*AuthApi* | [**admin_login_admin_login_post**](docs/AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login -*AuthApi* | [**admin_login_admin_login_post_0**](docs/AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login -*DevApi* | [**get_sample_data_dev_sample_data_get**](docs/DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data -*DevApi* | [**seed_sample_data_dev_sample_data_seed_post**](docs/DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data -*HealthApi* | [**health_health_get**](docs/HealthApi.md#health_health_get) | **GET** /health | Health -*HealthApi* | [**liveness_health_live_get**](docs/HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness -*HealthApi* | [**readiness_health_ready_get**](docs/HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness -*ManagementApi* | [**add_permission_to_role_roles_role_id_permissions_permission_id_post**](docs/ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -*ManagementApi* | [**create_acl_entry_acl_post**](docs/ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry -*ManagementApi* | [**create_auth_model_auth_model_post**](docs/ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model -*ManagementApi* | [**create_permission_permissions_post**](docs/ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission -*ManagementApi* | [**create_policy_from_dsl_policies_dsl_post**](docs/ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl -*ManagementApi* | [**create_policy_policies_post**](docs/ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy -*ManagementApi* | [**create_relationship_relationships_post**](docs/ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship -*ManagementApi* | [**create_role_roles_post**](docs/ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role -*ManagementApi* | [**delete_acl_entry_acl_acl_id_delete**](docs/ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -*ManagementApi* | [**delete_permission_permissions_permission_id_delete**](docs/ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission -*ManagementApi* | [**delete_policy_policies_policy_key_delete**](docs/ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy -*ManagementApi* | [**delete_role_roles_role_id_delete**](docs/ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role -*ManagementApi* | [**get_auth_model_auth_model_get**](docs/ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model -*ManagementApi* | [**impact_analysis_impact_analysis_post**](docs/ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis -*ManagementApi* | [**list_acl_entries_acl_resource_type_resource_id_get**](docs/ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -*ManagementApi* | [**list_audit_logs_audit_get**](docs/ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs -*ManagementApi* | [**list_permission_roles_permissions_permission_id_roles_get**](docs/ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles -*ManagementApi* | [**list_permissions_permissions_get**](docs/ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions -*ManagementApi* | [**list_policies_policies_get**](docs/ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies -*ManagementApi* | [**list_relationships_relationships_get**](docs/ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships -*ManagementApi* | [**list_role_permissions_roles_role_id_permissions_get**](docs/ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions -*ManagementApi* | [**list_roles_roles_get**](docs/ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles -*ManagementApi* | [**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](docs/ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -*ManagementApi* | [**rollback_policy_policies_policy_key_rollback_version_post**](docs/ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -*ManagementApi* | [**simulate_policy_simulate_policy_post**](docs/ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy -*ManagementApi* | [**update_permission_permissions_permission_id_put**](docs/ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission -*ManagementApi* | [**update_policy_policies_policy_key_put**](docs/ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy -*ManagementApi* | [**update_role_roles_role_id_put**](docs/ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role -*PlaygroundApi* | [**evaluate_playground_evaluate_post**](docs/PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate - - -## Documentation For Models - - - [AccessDecisionResponse](docs/AccessDecisionResponse.md) - - [AccessRequest](docs/AccessRequest.md) - - [AclCreate](docs/AclCreate.md) - - [AclOut](docs/AclOut.md) - - [AdminLoginRequest](docs/AdminLoginRequest.md) - - [AdminLoginResponse](docs/AdminLoginResponse.md) - - [AuditRecordOut](docs/AuditRecordOut.md) - - [AuthModelCreate](docs/AuthModelCreate.md) - - [AuthModelOut](docs/AuthModelOut.md) - - [BatchAccessItem](docs/BatchAccessItem.md) - - [BatchAccessRequest](docs/BatchAccessRequest.md) - - [BatchAccessResponse](docs/BatchAccessResponse.md) - - [BatchAccessResult](docs/BatchAccessResult.md) - - [DataValue](docs/DataValue.md) - - [HttpValidationError](docs/HttpValidationError.md) - - [ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) - - [ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) - - [LocationInner](docs/LocationInner.md) - - [MetaBody](docs/MetaBody.md) - - [PermissionCreate](docs/PermissionCreate.md) - - [PermissionOut](docs/PermissionOut.md) - - [PermissionUpdate](docs/PermissionUpdate.md) - - [PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) - - [PlaygroundInput](docs/PlaygroundInput.md) - - [PlaygroundPolicy](docs/PlaygroundPolicy.md) - - [PolicyCreate](docs/PolicyCreate.md) - - [PolicyOut](docs/PolicyOut.md) - - [PolicySimulationInput](docs/PolicySimulationInput.md) - - [PolicySimulationRequest](docs/PolicySimulationRequest.md) - - [PolicySimulationResponse](docs/PolicySimulationResponse.md) - - [RelationshipCreate](docs/RelationshipCreate.md) - - [RelationshipOut](docs/RelationshipOut.md) - - [RoleCreate](docs/RoleCreate.md) - - [RoleOut](docs/RoleOut.md) - - [RoleUpdate](docs/RoleUpdate.md) - - [SimulationResponse](docs/SimulationResponse.md) - - [SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) - - [SuccessResponseAclOut](docs/SuccessResponseAclOut.md) - - [SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) - - [SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) - - [SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) - - [SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) - - [SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) - - [SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) - - [SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) - - [SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) - - [SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) - - [SuccessResponseListAclOut](docs/SuccessResponseListAclOut.md) - - [SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) - - [SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) - - [SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) - - [SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) - - [SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) - - [SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) - - [SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) - - [SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) - - [SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) - - [SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) - - [ValidationError](docs/ValidationError.md) - - -To get access to the crate's generated documentation, use: +## ๐Ÿš€ Quick Start +```rust +use keynetra_client::keynetra_client::KeyNetraClient; + +let client = KeyNetraClient::new( + "http://localhost:8080", + "YOUR_API_KEY" +); + +// Perform an access check +let decision = client.access() + .check_access(...) + .await?; ``` -cargo doc --open -``` -## Author +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/rust). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-client-rust](https://github.com/keynetra/keynetra-client-rust) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-rust/issues) +- **License**: Apache-2.0 diff --git a/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md b/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md index 4cae6ac..b2f35ae 100644 --- a/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::AccessDecisionResponse**](AccessDecisionResponse.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseAclOut.md b/sdks/rust/docs/SuccessResponseAclOut.md index 90bf87b..75e58a8 100644 --- a/sdks/rust/docs/SuccessResponseAclOut.md +++ b/sdks/rust/docs/SuccessResponseAclOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::AclOut**](ACLOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseAdminLoginResponse.md b/sdks/rust/docs/SuccessResponseAdminLoginResponse.md index 296f4e2..660df9a 100644 --- a/sdks/rust/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/rust/docs/SuccessResponseAdminLoginResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::AdminLoginResponse**](AdminLoginResponse.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseAuthModelOut.md b/sdks/rust/docs/SuccessResponseAuthModelOut.md index daf256f..4d3d807 100644 --- a/sdks/rust/docs/SuccessResponseAuthModelOut.md +++ b/sdks/rust/docs/SuccessResponseAuthModelOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::AuthModelOut**](AuthModelOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseBatchAccessResponse.md b/sdks/rust/docs/SuccessResponseBatchAccessResponse.md index 3ba6d3a..dedd231 100644 --- a/sdks/rust/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/rust/docs/SuccessResponseBatchAccessResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::BatchAccessResponse**](BatchAccessResponse.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseDictStrAny.md b/sdks/rust/docs/SuccessResponseDictStrAny.md index a9d2cbd..032f779 100644 --- a/sdks/rust/docs/SuccessResponseDictStrAny.md +++ b/sdks/rust/docs/SuccessResponseDictStrAny.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **std::collections::HashMap** | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseDictStrInt.md b/sdks/rust/docs/SuccessResponseDictStrInt.md index fb7405a..0ed2d24 100644 --- a/sdks/rust/docs/SuccessResponseDictStrInt.md +++ b/sdks/rust/docs/SuccessResponseDictStrInt.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **std::collections::HashMap** | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseDictStrObject.md b/sdks/rust/docs/SuccessResponseDictStrObject.md index a48b810..3a727dc 100644 --- a/sdks/rust/docs/SuccessResponseDictStrObject.md +++ b/sdks/rust/docs/SuccessResponseDictStrObject.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **std::collections::HashMap** | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseDictStrStr.md b/sdks/rust/docs/SuccessResponseDictStrStr.md index 24d19f5..1cfa1d1 100644 --- a/sdks/rust/docs/SuccessResponseDictStrStr.md +++ b/sdks/rust/docs/SuccessResponseDictStrStr.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **std::collections::HashMap** | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md index 591c32e..d283e9e 100644 --- a/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**std::collections::HashMap**](DataValue.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md index 39741a2..5ff74c4 100644 --- a/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseListAclOut.md b/sdks/rust/docs/SuccessResponseListAclOut.md index b1265d6..a752f94 100644 --- a/sdks/rust/docs/SuccessResponseListAclOut.md +++ b/sdks/rust/docs/SuccessResponseListAclOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Vec**](ACLOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseListAuditRecordOut.md b/sdks/rust/docs/SuccessResponseListAuditRecordOut.md index 54ead90..69975dd 100644 --- a/sdks/rust/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/rust/docs/SuccessResponseListAuditRecordOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Vec**](AuditRecordOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseListDictStrStr.md b/sdks/rust/docs/SuccessResponseListDictStrStr.md index 2ef43ef..de4d089 100644 --- a/sdks/rust/docs/SuccessResponseListDictStrStr.md +++ b/sdks/rust/docs/SuccessResponseListDictStrStr.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **Vec>** | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseListPermissionOut.md b/sdks/rust/docs/SuccessResponseListPermissionOut.md index 832a685..c7f02a2 100644 --- a/sdks/rust/docs/SuccessResponseListPermissionOut.md +++ b/sdks/rust/docs/SuccessResponseListPermissionOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Vec**](PermissionOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseListPolicyOut.md b/sdks/rust/docs/SuccessResponseListPolicyOut.md index bd06ca3..6ffbb68 100644 --- a/sdks/rust/docs/SuccessResponseListPolicyOut.md +++ b/sdks/rust/docs/SuccessResponseListPolicyOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Vec**](PolicyOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseListRoleOut.md b/sdks/rust/docs/SuccessResponseListRoleOut.md index 24bd705..daf6ab2 100644 --- a/sdks/rust/docs/SuccessResponseListRoleOut.md +++ b/sdks/rust/docs/SuccessResponseListRoleOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Vec**](RoleOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponsePermissionOut.md b/sdks/rust/docs/SuccessResponsePermissionOut.md index d9b61c0..770d62a 100644 --- a/sdks/rust/docs/SuccessResponsePermissionOut.md +++ b/sdks/rust/docs/SuccessResponsePermissionOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::PermissionOut**](PermissionOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponsePolicyOut.md b/sdks/rust/docs/SuccessResponsePolicyOut.md index fb99493..e60fbf1 100644 --- a/sdks/rust/docs/SuccessResponsePolicyOut.md +++ b/sdks/rust/docs/SuccessResponsePolicyOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::PolicyOut**](PolicyOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md b/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md index c939470..e35fd8e 100644 --- a/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::PolicySimulationResponse**](PolicySimulationResponse.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseRelationshipOut.md b/sdks/rust/docs/SuccessResponseRelationshipOut.md index 91494f3..eb41e71 100644 --- a/sdks/rust/docs/SuccessResponseRelationshipOut.md +++ b/sdks/rust/docs/SuccessResponseRelationshipOut.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::RelationshipOut**](RelationshipOut.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/docs/SuccessResponseSimulationResponse.md b/sdks/rust/docs/SuccessResponseSimulationResponse.md index 242ea3e..46a52d9 100644 --- a/sdks/rust/docs/SuccessResponseSimulationResponse.md +++ b/sdks/rust/docs/SuccessResponseSimulationResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**models::SimulationResponse**](SimulationResponse.md) | | **meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<[**models::Null**](Null.md)> | | [optional] +**error** | Option<**serde_json::Value**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift deleted file mode 100644 index 7c975bb..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIHelper.swift +++ /dev/null @@ -1,121 +0,0 @@ -// APIHelper.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct APIHelper { - public static func rejectNil(_ source: [String: Any?]) -> [String: Any]? { - let destination = source.reduce(into: [String: Any]()) { result, item in - if let value = item.value { - result[item.key] = value - } - } - - if destination.isEmpty { - return nil - } - return destination - } - - public static func rejectNilHeaders(_ source: [String: Any?]) -> [String: String] { - return source.reduce(into: [String: String]()) { result, item in - if let collection = item.value as? [Any?] { - result[item.key] = collection - .compactMap { value in convertAnyToString(value) } - .joined(separator: ",") - } else if let value: Any = item.value { - result[item.key] = convertAnyToString(value) - } - } - } - - public static func convertBoolToString(_ source: [String: Any]?) -> [String: Any]? { - guard let source = source else { - return nil - } - - return source.reduce(into: [String: Any]()) { result, item in - switch item.value { - case let x as Bool: - result[item.key] = x.description - default: - result[item.key] = item.value - } - } - } - - public static func convertAnyToString(_ value: Any?) -> String? { - guard let value = value else { return nil } - if let value = value as? any RawRepresentable { - return "\(value.rawValue)" - } else { - return "\(value)" - } - } - - public static func mapValueToPathItem(_ source: Any) -> Any { - if let collection = source as? [Any?] { - return collection - .compactMap { value in convertAnyToString(value) } - .joined(separator: ",") - } else if let value = source as? any RawRepresentable { - return "\(value.rawValue)" - } - return source - } - - /// maps all values from source to query parameters - /// - /// explode attribute is respected: collection values might be either joined or split up into separate key value pairs - public static func mapValuesToQueryItems(_ source: [String: (wrappedValue: Any?, isExplode: Bool)]) -> [URLQueryItem]? { - let destination = source.filter { $0.value.wrappedValue != nil }.reduce(into: [URLQueryItem]()) { result, item in - if let collection = item.value.wrappedValue as? [Any?] { - - let collectionValues: [String] = collection.compactMap { value in convertAnyToString(value) } - - if !item.value.isExplode { - result.append(URLQueryItem(name: item.key, value: collectionValues.joined(separator: ","))) - } else { - collectionValues - .forEach { value in - result.append(URLQueryItem(name: item.key, value: value)) - } - } - - } else if let value = item.value.wrappedValue { - result.append(URLQueryItem(name: item.key, value: convertAnyToString(value))) - } - } - - if destination.isEmpty { - return nil - } - return destination.sorted { $0.name < $1.name } - } - - /// maps all values from source to query parameters - /// - /// collection values are always exploded - public static func mapValuesToQueryItems(_ source: [String: Any?]) -> [URLQueryItem]? { - let destination = source.filter { $0.value != nil }.reduce(into: [URLQueryItem]()) { result, item in - if let collection = item.value as? [Any?] { - collection - .compactMap { value in convertAnyToString(value) } - .forEach { value in - result.append(URLQueryItem(name: item.key, value: value)) - } - - } else if let value = item.value { - result.append(URLQueryItem(name: item.key, value: convertAnyToString(value))) - } - } - - if destination.isEmpty { - return nil - } - return destination.sorted { $0.name < $1.name } - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift deleted file mode 100644 index 343e47d..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs.swift +++ /dev/null @@ -1,68 +0,0 @@ -// APIs.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(FoundationNetworking) -import FoundationNetworking -#endif -open class KeyNetraClientAPI { - public static var basePath = "http://localhost" - public static var customHeaders: [String: String] = [:] - public static var credential: URLCredential? - public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory() - public static var apiResponseQueue: DispatchQueue = .main -} - -open class RequestBuilder { - var credential: URLCredential? - var headers: [String: String] - public let parameters: [String: Any]? - public let method: String - public let URLString: String - public let requestTask: RequestTask = RequestTask() - public let requiresAuthentication: Bool - - /// Optional block to obtain a reference to the request's progress instance when available. - public var onProgressReady: ((Progress) -> Void)? - - required public init(method: String, URLString: String, parameters: [String: Any]?, headers: [String: String] = [:], requiresAuthentication: Bool) { - self.method = method - self.URLString = URLString - self.parameters = parameters - self.headers = headers - self.requiresAuthentication = requiresAuthentication - - addHeaders(KeyNetraClientAPI.customHeaders) - addCredential() - } - - open func addHeaders(_ aHeaders: [String: String]) { - for (header, value) in aHeaders { - headers[header] = value - } - } - - @discardableResult - open func execute(_ apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, _ completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) -> RequestTask { - return requestTask - } - - public func addHeader(name: String, value: String) -> Self { - if !value.isEmpty { - headers[name] = value - } - return self - } - - open func addCredential() { - credential = KeyNetraClientAPI.credential - } -} - -public protocol RequestBuilderFactory { - func getNonDecodableBuilder() -> RequestBuilder.Type - func getBuilder() -> RequestBuilder.Type -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift deleted file mode 100644 index 2f04c4e..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AccessAPI.swift +++ /dev/null @@ -1,171 +0,0 @@ -// -// AccessAPI.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -open class AccessAPI { - - /** - Check Access Batch - - - parameter batchAccessRequest: (body) - - parameter policySet: (query) (optional, default to "active") - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func checkAccessBatchCheckAccessBatchPost(batchAccessRequest: BatchAccessRequest, policySet: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseBatchAccessResponse?, _ error: Error?) -> Void)) -> RequestTask { - return checkAccessBatchCheckAccessBatchPostWithRequestBuilder(batchAccessRequest: batchAccessRequest, policySet: policySet).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Check Access Batch - - POST /check-access-batch - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter batchAccessRequest: (body) - - parameter policySet: (query) (optional, default to "active") - - returns: RequestBuilder - */ - open class func checkAccessBatchCheckAccessBatchPostWithRequestBuilder(batchAccessRequest: BatchAccessRequest, policySet: String? = nil) -> RequestBuilder { - let localVariablePath = "/check-access-batch" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: batchAccessRequest) - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "policy_set": (wrappedValue: policySet?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Check Access - - - parameter accessRequest: (body) - - parameter policySet: (query) (optional, default to "active") - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func checkAccessCheckAccessPost(accessRequest: AccessRequest, policySet: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAccessDecisionResponse?, _ error: Error?) -> Void)) -> RequestTask { - return checkAccessCheckAccessPostWithRequestBuilder(accessRequest: accessRequest, policySet: policySet).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Check Access - - POST /check-access - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter accessRequest: (body) - - parameter policySet: (query) (optional, default to "active") - - returns: RequestBuilder - */ - open class func checkAccessCheckAccessPostWithRequestBuilder(accessRequest: AccessRequest, policySet: String? = nil) -> RequestBuilder { - let localVariablePath = "/check-access" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: accessRequest) - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "policy_set": (wrappedValue: policySet?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Simulate - - - parameter accessRequest: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func simulateSimulatePost(accessRequest: AccessRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseSimulationResponse?, _ error: Error?) -> Void)) -> RequestTask { - return simulateSimulatePostWithRequestBuilder(accessRequest: accessRequest).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Simulate - - POST /simulate - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter accessRequest: (body) - - returns: RequestBuilder - */ - open class func simulateSimulatePostWithRequestBuilder(accessRequest: AccessRequest) -> RequestBuilder { - let localVariablePath = "/simulate" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: accessRequest) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift deleted file mode 100644 index 6d808f3..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/AuthAPI.swift +++ /dev/null @@ -1,100 +0,0 @@ -// -// AuthAPI.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -open class AuthAPI { - - /** - Admin Login - - - parameter adminLoginRequest: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func adminLoginAdminLoginPost(adminLoginRequest: AdminLoginRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void)) -> RequestTask { - return adminLoginAdminLoginPostWithRequestBuilder(adminLoginRequest: adminLoginRequest).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Admin Login - - POST /admin/login - - parameter adminLoginRequest: (body) - - returns: RequestBuilder - */ - open class func adminLoginAdminLoginPostWithRequestBuilder(adminLoginRequest: AdminLoginRequest) -> RequestBuilder { - let localVariablePath = "/admin/login" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: adminLoginRequest) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } - - /** - Admin Login - - - parameter adminLoginRequest: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func adminLoginAdminLoginPost_0(adminLoginRequest: AdminLoginRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void)) -> RequestTask { - return adminLoginAdminLoginPost_0WithRequestBuilder(adminLoginRequest: adminLoginRequest).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Admin Login - - POST /admin/login - - parameter adminLoginRequest: (body) - - returns: RequestBuilder - */ - open class func adminLoginAdminLoginPost_0WithRequestBuilder(adminLoginRequest: AdminLoginRequest) -> RequestBuilder { - let localVariablePath = "/admin/login" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: adminLoginRequest) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift deleted file mode 100644 index 4e861c0..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/DevAPI.swift +++ /dev/null @@ -1,101 +0,0 @@ -// -// DevAPI.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -open class DevAPI { - - /** - Get Sample Data - - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func getSampleDataDevSampleDataGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void)) -> RequestTask { - return getSampleDataDevSampleDataGetWithRequestBuilder().execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Get Sample Data - - GET /dev/sample-data - - returns: RequestBuilder - */ - open class func getSampleDataDevSampleDataGetWithRequestBuilder() -> RequestBuilder { - let localVariablePath = "/dev/sample-data" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } - - /** - Seed Sample Data - - - parameter reset: (query) Clear the sample dataset before reseeding it. (optional, default to false) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func seedSampleDataDevSampleDataSeedPost(reset: Bool? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void)) -> RequestTask { - return seedSampleDataDevSampleDataSeedPostWithRequestBuilder(reset: reset).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Seed Sample Data - - POST /dev/sample-data/seed - - parameter reset: (query) Clear the sample dataset before reseeding it. (optional, default to false) - - returns: RequestBuilder - */ - open class func seedSampleDataDevSampleDataSeedPostWithRequestBuilder(reset: Bool? = nil) -> RequestBuilder { - let localVariablePath = "/dev/sample-data/seed" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "reset": (wrappedValue: reset?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift deleted file mode 100644 index 9abcfd5..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/HealthAPI.swift +++ /dev/null @@ -1,137 +0,0 @@ -// -// HealthAPI.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -open class HealthAPI { - - /** - Health - - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func healthHealthGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { - return healthHealthGetWithRequestBuilder().execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Health - - GET /health - - returns: RequestBuilder - */ - open class func healthHealthGetWithRequestBuilder() -> RequestBuilder { - let localVariablePath = "/health" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } - - /** - Liveness - - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func livenessHealthLiveGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { - return livenessHealthLiveGetWithRequestBuilder().execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Liveness - - GET /health/live - - returns: RequestBuilder - */ - open class func livenessHealthLiveGetWithRequestBuilder() -> RequestBuilder { - let localVariablePath = "/health/live" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } - - /** - Readiness - - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func readinessHealthReadyGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void)) -> RequestTask { - return readinessHealthReadyGetWithRequestBuilder().execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Readiness - - GET /health/ready - - returns: RequestBuilder - */ - open class func readinessHealthReadyGetWithRequestBuilder() -> RequestBuilder { - let localVariablePath = "/health/ready" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift deleted file mode 100644 index b2a6443..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/ManagementAPI.swift +++ /dev/null @@ -1,1503 +0,0 @@ -// -// ManagementAPI.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -open class ManagementAPI { - - /** - Add Permission To Role - - - parameter roleId: (path) - - parameter permissionId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId: Int, permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePermissionOut?, _ error: Error?) -> Void)) -> RequestTask { - return addPermissionToRoleRolesRoleIdPermissionsPermissionIdPostWithRequestBuilder(roleId: roleId, permissionId: permissionId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Add Permission To Role - - POST /roles/{role_id}/permissions/{permission_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter roleId: (path) - - parameter permissionId: (path) - - returns: RequestBuilder - */ - open class func addPermissionToRoleRolesRoleIdPermissionsPermissionIdPostWithRequestBuilder(roleId: Int, permissionId: Int) -> RequestBuilder { - var localVariablePath = "/roles/{role_id}/permissions/{permission_id}" - let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" - let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) - let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" - let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Acl Entry - - - parameter aCLCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createAclEntryAclPost(aCLCreate: ACLCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseACLOut?, _ error: Error?) -> Void)) -> RequestTask { - return createAclEntryAclPostWithRequestBuilder(aCLCreate: aCLCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Acl Entry - - POST /acl - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter aCLCreate: (body) - - returns: RequestBuilder - */ - open class func createAclEntryAclPostWithRequestBuilder(aCLCreate: ACLCreate) -> RequestBuilder { - let localVariablePath = "/acl" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: aCLCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Auth Model - - - parameter authModelCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createAuthModelAuthModelPost(authModelCreate: AuthModelCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void)) -> RequestTask { - return createAuthModelAuthModelPostWithRequestBuilder(authModelCreate: authModelCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Auth Model - - POST /auth-model - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter authModelCreate: (body) - - returns: RequestBuilder - */ - open class func createAuthModelAuthModelPostWithRequestBuilder(authModelCreate: AuthModelCreate) -> RequestBuilder { - let localVariablePath = "/auth-model" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: authModelCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Permission - - - parameter permissionCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createPermissionPermissionsPost(permissionCreate: PermissionCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: PermissionOut?, _ error: Error?) -> Void)) -> RequestTask { - return createPermissionPermissionsPostWithRequestBuilder(permissionCreate: permissionCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Permission - - POST /permissions - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter permissionCreate: (body) - - returns: RequestBuilder - */ - open class func createPermissionPermissionsPostWithRequestBuilder(permissionCreate: PermissionCreate) -> RequestBuilder { - let localVariablePath = "/permissions" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: permissionCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Policy From Dsl - - - parameter dsl: (query) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createPolicyFromDslPoliciesDslPost(dsl: String, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void)) -> RequestTask { - return createPolicyFromDslPoliciesDslPostWithRequestBuilder(dsl: dsl).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Policy From Dsl - - POST /policies/dsl - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter dsl: (query) - - returns: RequestBuilder - */ - open class func createPolicyFromDslPoliciesDslPostWithRequestBuilder(dsl: String) -> RequestBuilder { - let localVariablePath = "/policies/dsl" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "dsl": (wrappedValue: dsl.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Policy - - - parameter policyCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createPolicyPoliciesPost(policyCreate: PolicyCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void)) -> RequestTask { - return createPolicyPoliciesPostWithRequestBuilder(policyCreate: policyCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Policy - - POST /policies - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter policyCreate: (body) - - returns: RequestBuilder - */ - open class func createPolicyPoliciesPostWithRequestBuilder(policyCreate: PolicyCreate) -> RequestBuilder { - let localVariablePath = "/policies" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: policyCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Relationship - - - parameter relationshipCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createRelationshipRelationshipsPost(relationshipCreate: RelationshipCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseRelationshipOut?, _ error: Error?) -> Void)) -> RequestTask { - return createRelationshipRelationshipsPostWithRequestBuilder(relationshipCreate: relationshipCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Relationship - - POST /relationships - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter relationshipCreate: (body) - - returns: RequestBuilder - */ - open class func createRelationshipRelationshipsPostWithRequestBuilder(relationshipCreate: RelationshipCreate) -> RequestBuilder { - let localVariablePath = "/relationships" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: relationshipCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Create Role - - - parameter roleCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func createRoleRolesPost(roleCreate: RoleCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: RoleOut?, _ error: Error?) -> Void)) -> RequestTask { - return createRoleRolesPostWithRequestBuilder(roleCreate: roleCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Create Role - - POST /roles - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter roleCreate: (body) - - returns: RequestBuilder - */ - open class func createRoleRolesPostWithRequestBuilder(roleCreate: RoleCreate) -> RequestBuilder { - let localVariablePath = "/roles" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: roleCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Delete Acl Entry - - - parameter aclId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func deleteAclEntryAclAclIdDelete(aclId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { - return deleteAclEntryAclAclIdDeleteWithRequestBuilder(aclId: aclId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Delete Acl Entry - - DELETE /acl/{acl_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter aclId: (path) - - returns: RequestBuilder - */ - open class func deleteAclEntryAclAclIdDeleteWithRequestBuilder(aclId: Int) -> RequestBuilder { - var localVariablePath = "/acl/{acl_id}" - let aclIdPreEscape = "\(APIHelper.mapValueToPathItem(aclId))" - let aclIdPostEscape = aclIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{acl_id}", with: aclIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Delete Permission - - - parameter permissionId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func deletePermissionPermissionsPermissionIdDelete(permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { - return deletePermissionPermissionsPermissionIdDeleteWithRequestBuilder(permissionId: permissionId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Delete Permission - - DELETE /permissions/{permission_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter permissionId: (path) - - returns: RequestBuilder - */ - open class func deletePermissionPermissionsPermissionIdDeleteWithRequestBuilder(permissionId: Int) -> RequestBuilder { - var localVariablePath = "/permissions/{permission_id}" - let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" - let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Delete Policy - - - parameter policyKey: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func deletePolicyPoliciesPolicyKeyDelete(policyKey: String, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { - return deletePolicyPoliciesPolicyKeyDeleteWithRequestBuilder(policyKey: policyKey).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Delete Policy - - DELETE /policies/{policy_key} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter policyKey: (path) - - returns: RequestBuilder - */ - open class func deletePolicyPoliciesPolicyKeyDeleteWithRequestBuilder(policyKey: String) -> RequestBuilder { - var localVariablePath = "/policies/{policy_key}" - let policyKeyPreEscape = "\(APIHelper.mapValueToPathItem(policyKey))" - let policyKeyPostEscape = policyKeyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{policy_key}", with: policyKeyPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Delete Role - - - parameter roleId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func deleteRoleRolesRoleIdDelete(roleId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { - return deleteRoleRolesRoleIdDeleteWithRequestBuilder(roleId: roleId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Delete Role - - DELETE /roles/{role_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter roleId: (path) - - returns: RequestBuilder - */ - open class func deleteRoleRolesRoleIdDeleteWithRequestBuilder(roleId: Int) -> RequestBuilder { - var localVariablePath = "/roles/{role_id}" - let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" - let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Get Auth Model - - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func getAuthModelAuthModelGet(apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void)) -> RequestTask { - return getAuthModelAuthModelGetWithRequestBuilder().execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Get Auth Model - - GET /auth-model - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - returns: RequestBuilder - */ - open class func getAuthModelAuthModelGetWithRequestBuilder() -> RequestBuilder { - let localVariablePath = "/auth-model" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Impact Analysis - - - parameter impactAnalysisRequest: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func impactAnalysisImpactAnalysisPost(impactAnalysisRequest: ImpactAnalysisRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseImpactAnalysisResponse?, _ error: Error?) -> Void)) -> RequestTask { - return impactAnalysisImpactAnalysisPostWithRequestBuilder(impactAnalysisRequest: impactAnalysisRequest).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Impact Analysis - - POST /impact-analysis - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter impactAnalysisRequest: (body) - - returns: RequestBuilder - */ - open class func impactAnalysisImpactAnalysisPostWithRequestBuilder(impactAnalysisRequest: ImpactAnalysisRequest) -> RequestBuilder { - let localVariablePath = "/impact-analysis" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: impactAnalysisRequest) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Acl Entries - - - parameter resourceType: (path) - - parameter resourceId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listAclEntriesAclResourceTypeResourceIdGet(resourceType: String, resourceId: String, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListACLOut?, _ error: Error?) -> Void)) -> RequestTask { - return listAclEntriesAclResourceTypeResourceIdGetWithRequestBuilder(resourceType: resourceType, resourceId: resourceId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Acl Entries - - GET /acl/{resource_type}/{resource_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter resourceType: (path) - - parameter resourceId: (path) - - returns: RequestBuilder - */ - open class func listAclEntriesAclResourceTypeResourceIdGetWithRequestBuilder(resourceType: String, resourceId: String) -> RequestBuilder { - var localVariablePath = "/acl/{resource_type}/{resource_id}" - let resourceTypePreEscape = "\(APIHelper.mapValueToPathItem(resourceType))" - let resourceTypePostEscape = resourceTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{resource_type}", with: resourceTypePostEscape, options: .literal, range: nil) - let resourceIdPreEscape = "\(APIHelper.mapValueToPathItem(resourceId))" - let resourceIdPostEscape = resourceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{resource_id}", with: resourceIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Audit Logs - - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - parameter userId: (query) (optional) - - parameter resourceId: (query) (optional) - - parameter decision: (query) (optional) - - parameter startTime: (query) (optional) - - parameter endTime: (query) (optional) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listAuditLogsAuditGet(limit: Int? = nil, cursor: String? = nil, userId: String? = nil, resourceId: String? = nil, decision: String? = nil, startTime: Date? = nil, endTime: Date? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListAuditRecordOut?, _ error: Error?) -> Void)) -> RequestTask { - return listAuditLogsAuditGetWithRequestBuilder(limit: limit, cursor: cursor, userId: userId, resourceId: resourceId, decision: decision, startTime: startTime, endTime: endTime).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Audit Logs - - GET /audit - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - parameter userId: (query) (optional) - - parameter resourceId: (query) (optional) - - parameter decision: (query) (optional) - - parameter startTime: (query) (optional) - - parameter endTime: (query) (optional) - - returns: RequestBuilder - */ - open class func listAuditLogsAuditGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil, userId: String? = nil, resourceId: String? = nil, decision: String? = nil, startTime: Date? = nil, endTime: Date? = nil) -> RequestBuilder { - let localVariablePath = "/audit" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), - "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), - "user_id": (wrappedValue: userId?.encodeToJSON(), isExplode: true), - "resource_id": (wrappedValue: resourceId?.encodeToJSON(), isExplode: true), - "decision": (wrappedValue: decision?.encodeToJSON(), isExplode: true), - "start_time": (wrappedValue: startTime?.encodeToJSON(), isExplode: true), - "end_time": (wrappedValue: endTime?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Permission Roles - - - parameter permissionId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listPermissionRolesPermissionsPermissionIdRolesGet(permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void)) -> RequestTask { - return listPermissionRolesPermissionsPermissionIdRolesGetWithRequestBuilder(permissionId: permissionId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Permission Roles - - GET /permissions/{permission_id}/roles - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter permissionId: (path) - - returns: RequestBuilder - */ - open class func listPermissionRolesPermissionsPermissionIdRolesGetWithRequestBuilder(permissionId: Int) -> RequestBuilder { - var localVariablePath = "/permissions/{permission_id}/roles" - let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" - let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Permissions - - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listPermissionsPermissionsGet(limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void)) -> RequestTask { - return listPermissionsPermissionsGetWithRequestBuilder(limit: limit, cursor: cursor).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Permissions - - GET /permissions - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - returns: RequestBuilder - */ - open class func listPermissionsPermissionsGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { - let localVariablePath = "/permissions" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), - "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Policies - - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listPoliciesPoliciesGet(limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListPolicyOut?, _ error: Error?) -> Void)) -> RequestTask { - return listPoliciesPoliciesGetWithRequestBuilder(limit: limit, cursor: cursor).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Policies - - GET /policies - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - returns: RequestBuilder - */ - open class func listPoliciesPoliciesGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { - let localVariablePath = "/policies" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), - "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Relationships - - - parameter subjectType: (query) - - parameter subjectId: (query) - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listRelationshipsRelationshipsGet(subjectType: String, subjectId: String, limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListDictStrStr?, _ error: Error?) -> Void)) -> RequestTask { - return listRelationshipsRelationshipsGetWithRequestBuilder(subjectType: subjectType, subjectId: subjectId, limit: limit, cursor: cursor).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Relationships - - GET /relationships - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter subjectType: (query) - - parameter subjectId: (query) - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - returns: RequestBuilder - */ - open class func listRelationshipsRelationshipsGetWithRequestBuilder(subjectType: String, subjectId: String, limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { - let localVariablePath = "/relationships" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "subject_type": (wrappedValue: subjectType.encodeToJSON(), isExplode: true), - "subject_id": (wrappedValue: subjectId.encodeToJSON(), isExplode: true), - "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), - "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Role Permissions - - - parameter roleId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listRolePermissionsRolesRoleIdPermissionsGet(roleId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void)) -> RequestTask { - return listRolePermissionsRolesRoleIdPermissionsGetWithRequestBuilder(roleId: roleId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Role Permissions - - GET /roles/{role_id}/permissions - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter roleId: (path) - - returns: RequestBuilder - */ - open class func listRolePermissionsRolesRoleIdPermissionsGetWithRequestBuilder(roleId: Int) -> RequestBuilder { - var localVariablePath = "/roles/{role_id}/permissions" - let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" - let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - List Roles - - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func listRolesRolesGet(limit: Int? = nil, cursor: String? = nil, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void)) -> RequestTask { - return listRolesRolesGetWithRequestBuilder(limit: limit, cursor: cursor).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - List Roles - - GET /roles - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter limit: (query) (optional, default to 50) - - parameter cursor: (query) (optional) - - returns: RequestBuilder - */ - open class func listRolesRolesGetWithRequestBuilder(limit: Int? = nil, cursor: String? = nil) -> RequestBuilder { - let localVariablePath = "/roles" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - var localVariableUrlComponents = URLComponents(string: localVariableURLString) - localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true), - "cursor": (wrappedValue: cursor?.encodeToJSON(), isExplode: true), - ]) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Remove Permission From Role - - - parameter roleId: (path) - - parameter permissionId: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId: Int, permissionId: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void)) -> RequestTask { - return removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteWithRequestBuilder(roleId: roleId, permissionId: permissionId).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Remove Permission From Role - - DELETE /roles/{role_id}/permissions/{permission_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter roleId: (path) - - parameter permissionId: (path) - - returns: RequestBuilder - */ - open class func removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteWithRequestBuilder(roleId: Int, permissionId: Int) -> RequestBuilder { - var localVariablePath = "/roles/{role_id}/permissions/{permission_id}" - let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" - let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) - let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" - let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Rollback Policy - - - parameter policyKey: (path) - - parameter version: (path) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey: String, version: Int, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrUnionIntStr?, _ error: Error?) -> Void)) -> RequestTask { - return rollbackPolicyPoliciesPolicyKeyRollbackVersionPostWithRequestBuilder(policyKey: policyKey, version: version).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Rollback Policy - - POST /policies/{policy_key}/rollback/{version} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter policyKey: (path) - - parameter version: (path) - - returns: RequestBuilder - */ - open class func rollbackPolicyPoliciesPolicyKeyRollbackVersionPostWithRequestBuilder(policyKey: String, version: Int) -> RequestBuilder { - var localVariablePath = "/policies/{policy_key}/rollback/{version}" - let policyKeyPreEscape = "\(APIHelper.mapValueToPathItem(policyKey))" - let policyKeyPostEscape = policyKeyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{policy_key}", with: policyKeyPostEscape, options: .literal, range: nil) - let versionPreEscape = "\(APIHelper.mapValueToPathItem(version))" - let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters: [String: Any]? = nil - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - : - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Simulate Policy - - - parameter policySimulationRequest: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func simulatePolicySimulatePolicyPost(policySimulationRequest: PolicySimulationRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicySimulationResponse?, _ error: Error?) -> Void)) -> RequestTask { - return simulatePolicySimulatePolicyPostWithRequestBuilder(policySimulationRequest: policySimulationRequest).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Simulate Policy - - POST /simulate-policy - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter policySimulationRequest: (body) - - returns: RequestBuilder - */ - open class func simulatePolicySimulatePolicyPostWithRequestBuilder(policySimulationRequest: PolicySimulationRequest) -> RequestBuilder { - let localVariablePath = "/simulate-policy" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: policySimulationRequest) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Update Permission - - - parameter permissionId: (path) - - parameter permissionUpdate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func updatePermissionPermissionsPermissionIdPut(permissionId: Int, permissionUpdate: PermissionUpdate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: PermissionOut?, _ error: Error?) -> Void)) -> RequestTask { - return updatePermissionPermissionsPermissionIdPutWithRequestBuilder(permissionId: permissionId, permissionUpdate: permissionUpdate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Update Permission - - PUT /permissions/{permission_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter permissionId: (path) - - parameter permissionUpdate: (body) - - returns: RequestBuilder - */ - open class func updatePermissionPermissionsPermissionIdPutWithRequestBuilder(permissionId: Int, permissionUpdate: PermissionUpdate) -> RequestBuilder { - var localVariablePath = "/permissions/{permission_id}" - let permissionIdPreEscape = "\(APIHelper.mapValueToPathItem(permissionId))" - let permissionIdPostEscape = permissionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{permission_id}", with: permissionIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: permissionUpdate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Update Policy - - - parameter policyKey: (path) - - parameter policyCreate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func updatePolicyPoliciesPolicyKeyPut(policyKey: String, policyCreate: PolicyCreate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void)) -> RequestTask { - return updatePolicyPoliciesPolicyKeyPutWithRequestBuilder(policyKey: policyKey, policyCreate: policyCreate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Update Policy - - PUT /policies/{policy_key} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter policyKey: (path) - - parameter policyCreate: (body) - - returns: RequestBuilder - */ - open class func updatePolicyPoliciesPolicyKeyPutWithRequestBuilder(policyKey: String, policyCreate: PolicyCreate) -> RequestBuilder { - var localVariablePath = "/policies/{policy_key}" - let policyKeyPreEscape = "\(APIHelper.mapValueToPathItem(policyKey))" - let policyKeyPostEscape = policyKeyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{policy_key}", with: policyKeyPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: policyCreate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } - - /** - Update Role - - - parameter roleId: (path) - - parameter roleUpdate: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func updateRoleRolesRoleIdPut(roleId: Int, roleUpdate: RoleUpdate, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: RoleOut?, _ error: Error?) -> Void)) -> RequestTask { - return updateRoleRolesRoleIdPutWithRequestBuilder(roleId: roleId, roleUpdate: roleUpdate).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Update Role - - PUT /roles/{role_id} - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter roleId: (path) - - parameter roleUpdate: (body) - - returns: RequestBuilder - */ - open class func updateRoleRolesRoleIdPutWithRequestBuilder(roleId: Int, roleUpdate: RoleUpdate) -> RequestBuilder { - var localVariablePath = "/roles/{role_id}" - let roleIdPreEscape = "\(APIHelper.mapValueToPathItem(roleId))" - let roleIdPostEscape = roleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - localVariablePath = localVariablePath.replacingOccurrences(of: "{role_id}", with: roleIdPostEscape, options: .literal, range: nil) - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: roleUpdate) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift deleted file mode 100644 index 8d5714f..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/APIs/PlaygroundAPI.swift +++ /dev/null @@ -1,63 +0,0 @@ -// -// PlaygroundAPI.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -open class PlaygroundAPI { - - /** - Evaluate - - - parameter playgroundEvaluateRequest: (body) - - parameter apiResponseQueue: The queue on which api response is dispatched. - - parameter completion: completion handler to receive the data and the error objects - */ - @discardableResult - open class func evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest: PlaygroundEvaluateRequest, apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, completion: @escaping ((_ data: SuccessResponseDictStrAny?, _ error: Error?) -> Void)) -> RequestTask { - return evaluatePlaygroundEvaluatePostWithRequestBuilder(playgroundEvaluateRequest: playgroundEvaluateRequest).execute(apiResponseQueue) { result in - switch result { - case let .success(response): - completion(response.body, nil) - case let .failure(error): - completion(nil, error) - } - } - } - - /** - Evaluate - - POST /playground/evaluate - - API Key: - - type: apiKey X-API-Key (HEADER) - - name: APIKeyHeader - - Bearer Token: - - type: http - - name: HTTPBearer - - parameter playgroundEvaluateRequest: (body) - - returns: RequestBuilder - */ - open class func evaluatePlaygroundEvaluatePostWithRequestBuilder(playgroundEvaluateRequest: PlaygroundEvaluateRequest) -> RequestBuilder { - let localVariablePath = "/playground/evaluate" - let localVariableURLString = KeyNetraClientAPI.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: playgroundEvaluateRequest) - - let localVariableUrlComponents = URLComponents(string: localVariableURLString) - - let localVariableNillableHeaders: [String: Any?] = [ - "Content-Type": "application/json", - ] - - let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - - let localVariableRequestBuilder: RequestBuilder.Type = KeyNetraClientAPI.requestBuilderFactory.getBuilder() - - return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift deleted file mode 100644 index 09c82e5..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/CodableHelper.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// CodableHelper.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -open class CodableHelper { - private static var customDateFormatter: DateFormatter? - private static var defaultDateFormatter: DateFormatter = OpenISO8601DateFormatter() - - private static var customJSONDecoder: JSONDecoder? - private static var defaultJSONDecoder: JSONDecoder = { - let decoder = JSONDecoder() - decoder.dateDecodingStrategy = .formatted(CodableHelper.dateFormatter) - return decoder - }() - - private static var customJSONEncoder: JSONEncoder? - private static var defaultJSONEncoder: JSONEncoder = { - let encoder = JSONEncoder() - encoder.dateEncodingStrategy = .formatted(CodableHelper.dateFormatter) - encoder.outputFormatting = .prettyPrinted - return encoder - }() - - public static var dateFormatter: DateFormatter { - get { return customDateFormatter ?? defaultDateFormatter } - set { customDateFormatter = newValue } - } - public static var jsonDecoder: JSONDecoder { - get { return customJSONDecoder ?? defaultJSONDecoder } - set { customJSONDecoder = newValue } - } - public static var jsonEncoder: JSONEncoder { - get { return customJSONEncoder ?? defaultJSONEncoder } - set { customJSONEncoder = newValue } - } - - open class func decode(_ type: T.Type, from data: Data) -> Swift.Result where T: Decodable { - return Swift.Result { try jsonDecoder.decode(type, from: data) } - } - - open class func encode(_ value: T) -> Swift.Result where T: Encodable { - return Swift.Result { try jsonEncoder.encode(value) } - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift deleted file mode 100644 index 0457d99..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Configuration.swift +++ /dev/null @@ -1,18 +0,0 @@ -// Configuration.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(FoundationNetworking) -import FoundationNetworking -#endif - -open class Configuration { - - /// Configures the range of HTTP status codes that will result in a successful response - /// - /// If a HTTP status code is outside of this range the response will be interpreted as failed. - public static var successfulStatusCodeRange: Range = 200..<300 -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift deleted file mode 100644 index 2082fb0..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Extensions.swift +++ /dev/null @@ -1,237 +0,0 @@ -// Extensions.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(FoundationNetworking) -import FoundationNetworking -#endif -#if canImport(AnyCodable) -import AnyCodable -#endif - -extension Bool: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension Float: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension Int: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension Int32: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension Int64: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension Double: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension Decimal: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension String: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension URL: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension UUID: JSONEncodable { - func encodeToJSON() -> Any { self } -} - -extension RawRepresentable where RawValue: JSONEncodable { - func encodeToJSON() -> Any { return self.rawValue } -} - -private func encodeIfPossible(_ object: T) -> Any { - if let encodableObject = object as? JSONEncodable { - return encodableObject.encodeToJSON() - } else { - return object - } -} - -extension Array: JSONEncodable { - func encodeToJSON() -> Any { - return self.map(encodeIfPossible) - } -} - -extension Set: JSONEncodable { - func encodeToJSON() -> Any { - return Array(self).encodeToJSON() - } -} - -extension Dictionary: JSONEncodable { - func encodeToJSON() -> Any { - var dictionary = [AnyHashable: Any]() - for (key, value) in self { - dictionary[key] = encodeIfPossible(value) - } - return dictionary - } -} - -extension Data: JSONEncodable { - func encodeToJSON() -> Any { - return self.base64EncodedString(options: Data.Base64EncodingOptions()) - } -} - -extension Date: JSONEncodable { - func encodeToJSON() -> Any { - return CodableHelper.dateFormatter.string(from: self) - } -} - -extension JSONEncodable where Self: Encodable { - func encodeToJSON() -> Any { - guard let data = try? CodableHelper.jsonEncoder.encode(self) else { - fatalError("Could not encode to json: \(self)") - } - return data.encodeToJSON() - } -} - -extension String: CodingKey { - - public var stringValue: String { - return self - } - - public init?(stringValue: String) { - self.init(stringLiteral: stringValue) - } - - public var intValue: Int? { - return nil - } - - public init?(intValue: Int) { - return nil - } - -} - -extension KeyedEncodingContainerProtocol { - - public mutating func encodeArray(_ values: [T], forKey key: Self.Key) throws where T: Encodable { - var arrayContainer = nestedUnkeyedContainer(forKey: key) - try arrayContainer.encode(contentsOf: values) - } - - public mutating func encodeArrayIfPresent(_ values: [T]?, forKey key: Self.Key) throws where T: Encodable { - if let values = values { - try encodeArray(values, forKey: key) - } - } - - public mutating func encodeMap(_ pairs: [Self.Key: T]) throws where T: Encodable { - for (key, value) in pairs { - try encode(value, forKey: key) - } - } - - public mutating func encodeMapIfPresent(_ pairs: [Self.Key: T]?) throws where T: Encodable { - if let pairs = pairs { - try encodeMap(pairs) - } - } - - public mutating func encode(_ value: Decimal, forKey key: Self.Key) throws { - let decimalNumber = NSDecimalNumber(decimal: value) - let numberFormatter = NumberFormatter() - numberFormatter.numberStyle = .decimal - numberFormatter.locale = Locale(identifier: "en_US") - numberFormatter.usesGroupingSeparator = false - let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)" - try encode(formattedString, forKey: key) - } - - public mutating func encodeIfPresent(_ value: Decimal?, forKey key: Self.Key) throws { - if let value = value { - try encode(value, forKey: key) - } - } -} - -extension KeyedDecodingContainerProtocol { - - public func decodeArray(_ type: T.Type, forKey key: Self.Key) throws -> [T] where T: Decodable { - var tmpArray = [T]() - - var nestedContainer = try nestedUnkeyedContainer(forKey: key) - while !nestedContainer.isAtEnd { - let arrayValue = try nestedContainer.decode(T.self) - tmpArray.append(arrayValue) - } - - return tmpArray - } - - public func decodeArrayIfPresent(_ type: T.Type, forKey key: Self.Key) throws -> [T]? where T: Decodable { - var tmpArray: [T]? - - if contains(key) { - tmpArray = try decodeArray(T.self, forKey: key) - } - - return tmpArray - } - - public func decodeMap(_ type: T.Type, excludedKeys: Set) throws -> [Self.Key: T] where T: Decodable { - var map: [Self.Key: T] = [:] - - for key in allKeys { - if !excludedKeys.contains(key) { - let value = try decode(T.self, forKey: key) - map[key] = value - } - } - - return map - } - - public func decode(_ type: Decimal.Type, forKey key: Self.Key) throws -> Decimal { - let stringValue = try decode(String.self, forKey: key) - guard let decimalValue = Decimal(string: stringValue) else { - let context = DecodingError.Context(codingPath: [key], debugDescription: "The key \(key) couldn't be converted to a Decimal value") - throw DecodingError.typeMismatch(type, context) - } - - return decimalValue - } - - public func decodeIfPresent(_ type: Decimal.Type, forKey key: Self.Key) throws -> Decimal? { - guard let stringValue = try decodeIfPresent(String.self, forKey: key) else { - return nil - } - guard let decimalValue = Decimal(string: stringValue) else { - let context = DecodingError.Context(codingPath: [key], debugDescription: "The key \(key) couldn't be converted to a Decimal value") - throw DecodingError.typeMismatch(type, context) - } - - return decimalValue - } - -} - -extension HTTPURLResponse { - var isStatusCodeSuccessful: Bool { - return Configuration.successfulStatusCodeRange.contains(statusCode) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift deleted file mode 100644 index cb3121a..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONDataEncoding.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// JSONDataEncoding.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(FoundationNetworking) -import FoundationNetworking -#endif - -public struct JSONDataEncoding { - - // MARK: Properties - - private static let jsonDataKey = "jsonData" - - // MARK: Encoding - - /// Creates a URL request by encoding parameters and applying them onto an existing request. - /// - /// - parameter urlRequest: The request to have parameters applied. - /// - parameter parameters: The parameters to apply. This should have a single key/value - /// pair with "jsonData" as the key and a Data object as the value. - /// - /// - throws: An `Error` if the encoding process encounters an error. - /// - /// - returns: The encoded request. - public func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) -> URLRequest { - var urlRequest = urlRequest - - guard let jsonData = parameters?[JSONDataEncoding.jsonDataKey] as? Data, !jsonData.isEmpty else { - return urlRequest - } - - if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { - urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") - } - - urlRequest.httpBody = jsonData - - return urlRequest - } - - public static func encodingParameters(jsonData: Data?) -> [String: Any]? { - var returnedParams: [String: Any]? - if let jsonData = jsonData, !jsonData.isEmpty { - var params: [String: Any] = [:] - params[jsonDataKey] = jsonData - returnedParams = params - } - return returnedParams - } - -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift deleted file mode 100644 index 02f78ff..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/JSONEncodingHelper.swift +++ /dev/null @@ -1,45 +0,0 @@ -// -// JSONEncodingHelper.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -open class JSONEncodingHelper { - - open class func encodingParameters(forEncodableObject encodableObj: T?) -> [String: Any]? { - var params: [String: Any]? - - // Encode the Encodable object - if let encodableObj = encodableObj { - let encodeResult = CodableHelper.encode(encodableObj) - do { - let data = try encodeResult.get() - params = JSONDataEncoding.encodingParameters(jsonData: data) - } catch { - print(error.localizedDescription) - } - } - - return params - } - - open class func encodingParameters(forEncodableObject encodableObj: Any?) -> [String: Any]? { - var params: [String: Any]? - - if let encodableObj = encodableObj { - do { - let data = try JSONSerialization.data(withJSONObject: encodableObj, options: .prettyPrinted) - params = JSONDataEncoding.encodingParameters(jsonData: data) - } catch { - print(error.localizedDescription) - return nil - } - } - - return params - } - -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift deleted file mode 100644 index e6dc494..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models.swift +++ /dev/null @@ -1,129 +0,0 @@ -// Models.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(FoundationNetworking) -import FoundationNetworking -#endif - -protocol JSONEncodable { - func encodeToJSON() -> Any -} - -/// An enum where the last case value can be used as a default catch-all. -protocol CaseIterableDefaultsLast: Decodable & CaseIterable & RawRepresentable -where RawValue: Decodable, AllCases: BidirectionalCollection {} - -extension CaseIterableDefaultsLast { - /// Initializes an enum such that if a known raw value is found, then it is decoded. - /// Otherwise the last case is used. - /// - Parameter decoder: A decoder. - public init(from decoder: Decoder) throws { - if let value = try Self(rawValue: decoder.singleValueContainer().decode(RawValue.self)) { - self = value - } else if let lastValue = Self.allCases.last { - self = lastValue - } else { - throw DecodingError.valueNotFound( - Self.Type.self, - .init(codingPath: decoder.codingPath, debugDescription: "CaseIterableDefaultsLast") - ) - } - } -} - -/// A flexible type that can be encoded (`.encodeNull` or `.encodeValue`) -/// or not encoded (`.encodeNothing`). Intended for request payloads. -public enum NullEncodable: Hashable { - case encodeNothing - case encodeNull - case encodeValue(Wrapped) -} - -extension NullEncodable: Codable where Wrapped: Codable { - public init(from decoder: Decoder) throws { - let container = try decoder.singleValueContainer() - if let value = try? container.decode(Wrapped.self) { - self = .encodeValue(value) - } else if container.decodeNil() { - self = .encodeNull - } else { - self = .encodeNothing - } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.singleValueContainer() - switch self { - case .encodeNothing: return - case .encodeNull: try container.encodeNil() - case .encodeValue(let wrapped): try container.encode(wrapped) - } - } -} - -public enum ErrorResponse: Error { - case error(Int, Data?, URLResponse?, Error) -} - -public enum DownloadException: Error { - case responseDataMissing - case responseFailed - case requestMissing - case requestMissingPath - case requestMissingURL -} - -public enum DecodableRequestBuilderError: Error { - case emptyDataResponse - case nilHTTPResponse - case unsuccessfulHTTPStatusCode - case jsonDecoding(DecodingError) - case generalError(Error) -} - -open class Response { - public let statusCode: Int - public let header: [String: String] - public let body: T - public let bodyData: Data? - - public init(statusCode: Int, header: [String: String], body: T, bodyData: Data?) { - self.statusCode = statusCode - self.header = header - self.body = body - self.bodyData = bodyData - } - - public convenience init(response: HTTPURLResponse, body: T, bodyData: Data?) { - let rawHeader = response.allHeaderFields - var responseHeader = [String: String]() - for (key, value) in rawHeader { - if let key = key.base as? String, let value = value as? String { - responseHeader[key] = value - } - } - self.init(statusCode: response.statusCode, header: responseHeader, body: body, bodyData: bodyData) - } -} - -public final class RequestTask { - private let lock = NSRecursiveLock() - private var task: URLSessionDataTaskProtocol? - - internal func set(task: URLSessionDataTaskProtocol) { - lock.lock() - defer { lock.unlock() } - self.task = task - } - - public func cancel() { - lock.lock() - defer { lock.unlock() } - task?.cancel() - task = nil - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift deleted file mode 100644 index 427e3e7..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLCreate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// ACLCreate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct ACLCreate: Codable, JSONEncodable, Hashable { - - public var subjectType: String - public var subjectId: String - public var resourceType: String - public var resourceId: String - public var action: String - public var effect: String - - public init(subjectType: String, subjectId: String, resourceType: String, resourceId: String, action: String, effect: String) { - self.subjectType = subjectType - self.subjectId = subjectId - self.resourceType = resourceType - self.resourceId = resourceId - self.action = action - self.effect = effect - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case subjectType = "subject_type" - case subjectId = "subject_id" - case resourceType = "resource_type" - case resourceId = "resource_id" - case action - case effect - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(subjectType, forKey: .subjectType) - try container.encode(subjectId, forKey: .subjectId) - try container.encode(resourceType, forKey: .resourceType) - try container.encode(resourceId, forKey: .resourceId) - try container.encode(action, forKey: .action) - try container.encode(effect, forKey: .effect) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift deleted file mode 100644 index 3dcfc57..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ACLOut.swift +++ /dev/null @@ -1,67 +0,0 @@ -// -// ACLOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct ACLOut: Codable, JSONEncodable, Hashable { - - public var subjectType: String - public var subjectId: String - public var resourceType: String - public var resourceId: String - public var action: String - public var effect: String - public var id: Int - public var tenantId: Int - public var createdAt: Date? - - public init(subjectType: String, subjectId: String, resourceType: String, resourceId: String, action: String, effect: String, id: Int, tenantId: Int, createdAt: Date? = nil) { - self.subjectType = subjectType - self.subjectId = subjectId - self.resourceType = resourceType - self.resourceId = resourceId - self.action = action - self.effect = effect - self.id = id - self.tenantId = tenantId - self.createdAt = createdAt - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case subjectType = "subject_type" - case subjectId = "subject_id" - case resourceType = "resource_type" - case resourceId = "resource_id" - case action - case effect - case id - case tenantId = "tenant_id" - case createdAt = "created_at" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(subjectType, forKey: .subjectType) - try container.encode(subjectId, forKey: .subjectId) - try container.encode(resourceType, forKey: .resourceType) - try container.encode(resourceId, forKey: .resourceId) - try container.encode(action, forKey: .action) - try container.encode(effect, forKey: .effect) - try container.encode(id, forKey: .id) - try container.encode(tenantId, forKey: .tenantId) - try container.encodeIfPresent(createdAt, forKey: .createdAt) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension ACLOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift deleted file mode 100644 index a20a3d8..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessDecisionResponse.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// AccessDecisionResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct AccessDecisionResponse: Codable, JSONEncodable, Hashable { - - public var allowed: Bool - public var decision: String - public var matchedPolicies: [String]? - public var reason: String? - public var policyId: String? - public var explainTrace: [[String: AnyCodable]]? - public var revision: Int? - - public init(allowed: Bool, decision: String, matchedPolicies: [String]? = nil, reason: String? = nil, policyId: String? = nil, explainTrace: [[String: AnyCodable]]? = nil, revision: Int? = nil) { - self.allowed = allowed - self.decision = decision - self.matchedPolicies = matchedPolicies - self.reason = reason - self.policyId = policyId - self.explainTrace = explainTrace - self.revision = revision - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case allowed - case decision - case matchedPolicies = "matched_policies" - case reason - case policyId = "policy_id" - case explainTrace = "explain_trace" - case revision - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(allowed, forKey: .allowed) - try container.encode(decision, forKey: .decision) - try container.encodeIfPresent(matchedPolicies, forKey: .matchedPolicies) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(policyId, forKey: .policyId) - try container.encodeIfPresent(explainTrace, forKey: .explainTrace) - try container.encodeIfPresent(revision, forKey: .revision) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift deleted file mode 100644 index c8ea51b..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AccessRequest.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// AccessRequest.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -/** Explicit authorization request passed through the API boundary. */ -public struct AccessRequest: Codable, JSONEncodable, Hashable { - - public var user: [String: AnyCodable]? - public var action: String - public var resource: [String: AnyCodable]? - public var context: [String: AnyCodable]? - public var consistency: String? = "eventual" - public var revision: Int? - - public init(user: [String: AnyCodable]? = nil, action: String, resource: [String: AnyCodable]? = nil, context: [String: AnyCodable]? = nil, consistency: String? = "eventual", revision: Int? = nil) { - self.user = user - self.action = action - self.resource = resource - self.context = context - self.consistency = consistency - self.revision = revision - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case user - case action - case resource - case context - case consistency - case revision - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(user, forKey: .user) - try container.encode(action, forKey: .action) - try container.encodeIfPresent(resource, forKey: .resource) - try container.encodeIfPresent(context, forKey: .context) - try container.encodeIfPresent(consistency, forKey: .consistency) - try container.encodeIfPresent(revision, forKey: .revision) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift deleted file mode 100644 index 24d0681..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginRequest.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// AdminLoginRequest.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct AdminLoginRequest: Codable, JSONEncodable, Hashable { - - public var username: String - public var password: String - - public init(username: String, password: String) { - self.username = username - self.password = password - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case username - case password - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(username, forKey: .username) - try container.encode(password, forKey: .password) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift deleted file mode 100644 index 4c20042..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AdminLoginResponse.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// AdminLoginResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct AdminLoginResponse: Codable, JSONEncodable, Hashable { - - public var accessToken: String - public var tokenType: String? = "bearer" - public var expiresIn: Int - public var role: String? = "admin" - public var tenantKey: String - - public init(accessToken: String, tokenType: String? = "bearer", expiresIn: Int, role: String? = "admin", tenantKey: String) { - self.accessToken = accessToken - self.tokenType = tokenType - self.expiresIn = expiresIn - self.role = role - self.tenantKey = tenantKey - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case accessToken = "access_token" - case tokenType = "token_type" - case expiresIn = "expires_in" - case role - case tenantKey = "tenant_key" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(accessToken, forKey: .accessToken) - try container.encodeIfPresent(tokenType, forKey: .tokenType) - try container.encode(expiresIn, forKey: .expiresIn) - try container.encodeIfPresent(role, forKey: .role) - try container.encode(tenantKey, forKey: .tenantKey) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift deleted file mode 100644 index 26e2fef..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuditRecordOut.swift +++ /dev/null @@ -1,83 +0,0 @@ -// -// AuditRecordOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct AuditRecordOut: Codable, JSONEncodable, Hashable { - - public var id: Int - public var principalType: String - public var principalId: String - public var correlationId: String? - public var user: [String: AnyCodable] - public var action: String - public var resource: [String: AnyCodable] - public var decision: String - public var matchedPolicies: [AnyCodable] - public var reason: String? - public var evaluatedRules: [AnyCodable] - public var failedConditions: [AnyCodable] - public var createdAt: Date - - public init(id: Int, principalType: String, principalId: String, correlationId: String? = nil, user: [String: AnyCodable], action: String, resource: [String: AnyCodable], decision: String, matchedPolicies: [AnyCodable], reason: String? = nil, evaluatedRules: [AnyCodable], failedConditions: [AnyCodable], createdAt: Date) { - self.id = id - self.principalType = principalType - self.principalId = principalId - self.correlationId = correlationId - self.user = user - self.action = action - self.resource = resource - self.decision = decision - self.matchedPolicies = matchedPolicies - self.reason = reason - self.evaluatedRules = evaluatedRules - self.failedConditions = failedConditions - self.createdAt = createdAt - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case id - case principalType = "principal_type" - case principalId = "principal_id" - case correlationId = "correlation_id" - case user - case action - case resource - case decision - case matchedPolicies = "matched_policies" - case reason - case evaluatedRules = "evaluated_rules" - case failedConditions = "failed_conditions" - case createdAt = "created_at" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(id, forKey: .id) - try container.encode(principalType, forKey: .principalType) - try container.encode(principalId, forKey: .principalId) - try container.encodeIfPresent(correlationId, forKey: .correlationId) - try container.encode(user, forKey: .user) - try container.encode(action, forKey: .action) - try container.encode(resource, forKey: .resource) - try container.encode(decision, forKey: .decision) - try container.encode(matchedPolicies, forKey: .matchedPolicies) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encode(evaluatedRules, forKey: .evaluatedRules) - try container.encode(failedConditions, forKey: .failedConditions) - try container.encode(createdAt, forKey: .createdAt) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension AuditRecordOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift deleted file mode 100644 index 6ef8650..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelCreate.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// AuthModelCreate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct AuthModelCreate: Codable, JSONEncodable, Hashable { - - public var schema: String - - public init(schema: String) { - self.schema = schema - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case schema - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(schema, forKey: .schema) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift deleted file mode 100644 index 88ed7c5..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/AuthModelOut.swift +++ /dev/null @@ -1,51 +0,0 @@ -// -// AuthModelOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct AuthModelOut: Codable, JSONEncodable, Hashable { - - public var id: Int - public var tenantId: Int - public var schema: String - public var parsed: [String: AnyCodable] - public var compiled: [String: AnyCodable] - - public init(id: Int, tenantId: Int, schema: String, parsed: [String: AnyCodable], compiled: [String: AnyCodable]) { - self.id = id - self.tenantId = tenantId - self.schema = schema - self.parsed = parsed - self.compiled = compiled - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case id - case tenantId = "tenant_id" - case schema - case parsed - case compiled - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(id, forKey: .id) - try container.encode(tenantId, forKey: .tenantId) - try container.encode(schema, forKey: .schema) - try container.encode(parsed, forKey: .parsed) - try container.encode(compiled, forKey: .compiled) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension AuthModelOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift deleted file mode 100644 index 27ed74c..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessItem.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// BatchAccessItem.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct BatchAccessItem: Codable, JSONEncodable, Hashable { - - public var action: String - public var resource: [String: AnyCodable]? - - public init(action: String, resource: [String: AnyCodable]? = nil) { - self.action = action - self.resource = resource - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - case resource - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(action, forKey: .action) - try container.encodeIfPresent(resource, forKey: .resource) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift deleted file mode 100644 index 52351c7..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessRequest.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// BatchAccessRequest.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct BatchAccessRequest: Codable, JSONEncodable, Hashable { - - public var user: [String: AnyCodable]? - public var items: [BatchAccessItem] - public var consistency: String? = "eventual" - public var revision: Int? - - public init(user: [String: AnyCodable]? = nil, items: [BatchAccessItem], consistency: String? = "eventual", revision: Int? = nil) { - self.user = user - self.items = items - self.consistency = consistency - self.revision = revision - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case user - case items - case consistency - case revision - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(user, forKey: .user) - try container.encode(items, forKey: .items) - try container.encodeIfPresent(consistency, forKey: .consistency) - try container.encodeIfPresent(revision, forKey: .revision) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift deleted file mode 100644 index c0495b2..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResponse.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// BatchAccessResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct BatchAccessResponse: Codable, JSONEncodable, Hashable { - - public var results: [BatchAccessResult] - public var revision: Int? - - public init(results: [BatchAccessResult], revision: Int? = nil) { - self.results = results - self.revision = revision - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case results - case revision - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(results, forKey: .results) - try container.encodeIfPresent(revision, forKey: .revision) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift deleted file mode 100644 index d64244f..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/BatchAccessResult.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// BatchAccessResult.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct BatchAccessResult: Codable, JSONEncodable, Hashable { - - public var action: String - public var allowed: Bool - public var revision: Int? - - public init(action: String, allowed: Bool, revision: Int? = nil) { - self.action = action - self.allowed = allowed - self.revision = revision - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - case allowed - case revision - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(action, forKey: .action) - try container.encode(allowed, forKey: .allowed) - try container.encodeIfPresent(revision, forKey: .revision) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift deleted file mode 100644 index a99b672..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/DataValue.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// DataValue.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct DataValue: Codable, JSONEncodable, Hashable { - - - public enum CodingKeys: CodingKey, CaseIterable { - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift deleted file mode 100644 index 06d590d..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/HTTPValidationError.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// HTTPValidationError.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct HTTPValidationError: Codable, JSONEncodable, Hashable { - - public var detail: [ValidationError]? - - public init(detail: [ValidationError]? = nil) { - self.detail = detail - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case detail - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(detail, forKey: .detail) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift deleted file mode 100644 index f14fecc..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisRequest.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// ImpactAnalysisRequest.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct ImpactAnalysisRequest: Codable, JSONEncodable, Hashable { - - public var policyChange: String - - public init(policyChange: String) { - self.policyChange = policyChange - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case policyChange = "policy_change" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(policyChange, forKey: .policyChange) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift deleted file mode 100644 index bbc7a13..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ImpactAnalysisResponse.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// ImpactAnalysisResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct ImpactAnalysisResponse: Codable, JSONEncodable, Hashable { - - public var gainedAccess: [Int]? - public var lostAccess: [Int]? - - public init(gainedAccess: [Int]? = nil, lostAccess: [Int]? = nil) { - self.gainedAccess = gainedAccess - self.lostAccess = lostAccess - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case gainedAccess = "gained_access" - case lostAccess = "lost_access" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(gainedAccess, forKey: .gainedAccess) - try container.encodeIfPresent(lostAccess, forKey: .lostAccess) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift deleted file mode 100644 index 4e692f6..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/LocationInner.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// LocationInner.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct LocationInner: Codable, JSONEncodable, Hashable { - - - public enum CodingKeys: CodingKey, CaseIterable { - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift deleted file mode 100644 index 0dd546b..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/MetaBody.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// MetaBody.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct MetaBody: Codable, JSONEncodable, Hashable { - - public var requestId: String? - public var limit: Int? - public var nextCursor: String? - public var extra: [String: AnyCodable]? - - public init(requestId: String? = nil, limit: Int? = nil, nextCursor: String? = nil, extra: [String: AnyCodable]? = nil) { - self.requestId = requestId - self.limit = limit - self.nextCursor = nextCursor - self.extra = extra - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case requestId = "request_id" - case limit - case nextCursor = "next_cursor" - case extra - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(requestId, forKey: .requestId) - try container.encodeIfPresent(limit, forKey: .limit) - try container.encodeIfPresent(nextCursor, forKey: .nextCursor) - try container.encodeIfPresent(extra, forKey: .extra) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift deleted file mode 100644 index 4276d63..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionCreate.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// PermissionCreate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PermissionCreate: Codable, JSONEncodable, Hashable { - - public var action: String - - public init(action: String) { - self.action = action - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(action, forKey: .action) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift deleted file mode 100644 index 8c35e48..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionOut.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// PermissionOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PermissionOut: Codable, JSONEncodable, Hashable { - - public var id: Int - public var action: String - - public init(id: Int, action: String) { - self.id = id - self.action = action - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case id - case action - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(id, forKey: .id) - try container.encode(action, forKey: .action) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension PermissionOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift deleted file mode 100644 index 1c8b3d9..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PermissionUpdate.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// PermissionUpdate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PermissionUpdate: Codable, JSONEncodable, Hashable { - - public var action: String - - public init(action: String) { - self.action = action - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(action, forKey: .action) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift deleted file mode 100644 index b9f5baf..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundEvaluateRequest.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// PlaygroundEvaluateRequest.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PlaygroundEvaluateRequest: Codable, JSONEncodable, Hashable { - - public var policies: [PlaygroundPolicy] - public var input: PlaygroundInput - - public init(policies: [PlaygroundPolicy], input: PlaygroundInput) { - self.policies = policies - self.input = input - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case policies - case input - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(policies, forKey: .policies) - try container.encode(input, forKey: .input) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift deleted file mode 100644 index 871f4a6..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundInput.swift +++ /dev/null @@ -1,44 +0,0 @@ -// -// PlaygroundInput.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PlaygroundInput: Codable, JSONEncodable, Hashable { - - public var user: [String: AnyCodable]? - public var resource: [String: AnyCodable]? - public var action: String? = "" - public var context: [String: AnyCodable]? - - public init(user: [String: AnyCodable]? = nil, resource: [String: AnyCodable]? = nil, action: String? = "", context: [String: AnyCodable]? = nil) { - self.user = user - self.resource = resource - self.action = action - self.context = context - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case user - case resource - case action - case context - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(user, forKey: .user) - try container.encodeIfPresent(resource, forKey: .resource) - try container.encodeIfPresent(action, forKey: .action) - try container.encodeIfPresent(context, forKey: .context) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift deleted file mode 100644 index 3b70811..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PlaygroundPolicy.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// PlaygroundPolicy.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PlaygroundPolicy: Codable, JSONEncodable, Hashable { - - public var action: String - public var effect: String? = "allow" - public var priority: Int? = 100 - public var policyId: String? - public var conditions: [String: AnyCodable]? - - public init(action: String, effect: String? = "allow", priority: Int? = 100, policyId: String? = nil, conditions: [String: AnyCodable]? = nil) { - self.action = action - self.effect = effect - self.priority = priority - self.policyId = policyId - self.conditions = conditions - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - case effect - case priority - case policyId = "policy_id" - case conditions - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(action, forKey: .action) - try container.encodeIfPresent(effect, forKey: .effect) - try container.encodeIfPresent(priority, forKey: .priority) - try container.encodeIfPresent(policyId, forKey: .policyId) - try container.encodeIfPresent(conditions, forKey: .conditions) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift deleted file mode 100644 index d02e2ac..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyCreate.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// PolicyCreate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PolicyCreate: Codable, JSONEncodable, Hashable { - - public var action: String - public var effect: String? = "allow" - public var priority: Int? = 100 - public var state: String? = "active" - public var conditions: [String: AnyCodable]? - - public init(action: String, effect: String? = "allow", priority: Int? = 100, state: String? = "active", conditions: [String: AnyCodable]? = nil) { - self.action = action - self.effect = effect - self.priority = priority - self.state = state - self.conditions = conditions - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - case effect - case priority - case state - case conditions - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(action, forKey: .action) - try container.encodeIfPresent(effect, forKey: .effect) - try container.encodeIfPresent(priority, forKey: .priority) - try container.encodeIfPresent(state, forKey: .state) - try container.encodeIfPresent(conditions, forKey: .conditions) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift deleted file mode 100644 index 613087d..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicyOut.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// PolicyOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PolicyOut: Codable, JSONEncodable, Hashable { - - public var id: Int - public var action: String - public var effect: String - public var priority: Int - public var state: String? = "active" - public var conditions: [String: AnyCodable] - - public init(id: Int, action: String, effect: String, priority: Int, state: String? = "active", conditions: [String: AnyCodable]) { - self.id = id - self.action = action - self.effect = effect - self.priority = priority - self.state = state - self.conditions = conditions - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case id - case action - case effect - case priority - case state - case conditions - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(id, forKey: .id) - try container.encode(action, forKey: .action) - try container.encode(effect, forKey: .effect) - try container.encode(priority, forKey: .priority) - try container.encodeIfPresent(state, forKey: .state) - try container.encode(conditions, forKey: .conditions) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension PolicyOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift deleted file mode 100644 index 6ebda15..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationInput.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// PolicySimulationInput.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PolicySimulationInput: Codable, JSONEncodable, Hashable { - - public var policyChange: String? - public var relationshipChange: [String: AnyCodable]? - public var roleChange: [String: AnyCodable]? - - public init(policyChange: String? = nil, relationshipChange: [String: AnyCodable]? = nil, roleChange: [String: AnyCodable]? = nil) { - self.policyChange = policyChange - self.relationshipChange = relationshipChange - self.roleChange = roleChange - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case policyChange = "policy_change" - case relationshipChange = "relationship_change" - case roleChange = "role_change" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(policyChange, forKey: .policyChange) - try container.encodeIfPresent(relationshipChange, forKey: .relationshipChange) - try container.encodeIfPresent(roleChange, forKey: .roleChange) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift deleted file mode 100644 index 00a7568..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationRequest.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// PolicySimulationRequest.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PolicySimulationRequest: Codable, JSONEncodable, Hashable { - - public var simulate: PolicySimulationInput? - public var request: [String: AnyCodable]? - - public init(simulate: PolicySimulationInput? = nil, request: [String: AnyCodable]? = nil) { - self.simulate = simulate - self.request = request - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case simulate - case request - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(simulate, forKey: .simulate) - try container.encodeIfPresent(request, forKey: .request) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift deleted file mode 100644 index 94adaf3..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/PolicySimulationResponse.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// PolicySimulationResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct PolicySimulationResponse: Codable, JSONEncodable, Hashable { - - public var decisionBefore: [String: AnyCodable] - public var decisionAfter: [String: AnyCodable] - - public init(decisionBefore: [String: AnyCodable], decisionAfter: [String: AnyCodable]) { - self.decisionBefore = decisionBefore - self.decisionAfter = decisionAfter - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case decisionBefore = "decision_before" - case decisionAfter = "decision_after" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(decisionBefore, forKey: .decisionBefore) - try container.encode(decisionAfter, forKey: .decisionAfter) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift deleted file mode 100644 index 369206f..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipCreate.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// RelationshipCreate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct RelationshipCreate: Codable, JSONEncodable, Hashable { - - public var subjectType: String - public var subjectId: String - public var relation: String - public var objectType: String - public var objectId: String - - public init(subjectType: String, subjectId: String, relation: String, objectType: String, objectId: String) { - self.subjectType = subjectType - self.subjectId = subjectId - self.relation = relation - self.objectType = objectType - self.objectId = objectId - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case subjectType = "subject_type" - case subjectId = "subject_id" - case relation - case objectType = "object_type" - case objectId = "object_id" - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(subjectType, forKey: .subjectType) - try container.encode(subjectId, forKey: .subjectId) - try container.encode(relation, forKey: .relation) - try container.encode(objectType, forKey: .objectType) - try container.encode(objectId, forKey: .objectId) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift deleted file mode 100644 index b9c12ca..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RelationshipOut.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// RelationshipOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct RelationshipOut: Codable, JSONEncodable, Hashable { - - public var subjectType: String - public var subjectId: String - public var relation: String - public var objectType: String - public var objectId: String - public var id: Int - - public init(subjectType: String, subjectId: String, relation: String, objectType: String, objectId: String, id: Int) { - self.subjectType = subjectType - self.subjectId = subjectId - self.relation = relation - self.objectType = objectType - self.objectId = objectId - self.id = id - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case subjectType = "subject_type" - case subjectId = "subject_id" - case relation - case objectType = "object_type" - case objectId = "object_id" - case id - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(subjectType, forKey: .subjectType) - try container.encode(subjectId, forKey: .subjectId) - try container.encode(relation, forKey: .relation) - try container.encode(objectType, forKey: .objectType) - try container.encode(objectId, forKey: .objectId) - try container.encode(id, forKey: .id) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension RelationshipOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift deleted file mode 100644 index 5676162..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleCreate.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// RoleCreate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct RoleCreate: Codable, JSONEncodable, Hashable { - - public var name: String - - public init(name: String) { - self.name = name - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case name - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(name, forKey: .name) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift deleted file mode 100644 index a63440c..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleOut.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// RoleOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct RoleOut: Codable, JSONEncodable, Hashable { - - public var id: Int - public var name: String - - public init(id: Int, name: String) { - self.id = id - self.name = name - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case id - case name - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(id, forKey: .id) - try container.encode(name, forKey: .name) - } -} - - -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) -extension RoleOut: Identifiable {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift deleted file mode 100644 index bcced4f..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/RoleUpdate.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// RoleUpdate.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct RoleUpdate: Codable, JSONEncodable, Hashable { - - public var name: String - - public init(name: String) { - self.name = name - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case name - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(name, forKey: .name) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift deleted file mode 100644 index 0bd3afe..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SimulationResponse.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// SimulationResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SimulationResponse: Codable, JSONEncodable, Hashable { - - public var decision: String - public var matchedPolicies: [String] - public var reason: String? - public var policyId: String? - public var explainTrace: [[String: AnyCodable]]? - public var failedConditions: [String]? - public var revision: Int? - - public init(decision: String, matchedPolicies: [String], reason: String? = nil, policyId: String? = nil, explainTrace: [[String: AnyCodable]]? = nil, failedConditions: [String]? = nil, revision: Int? = nil) { - self.decision = decision - self.matchedPolicies = matchedPolicies - self.reason = reason - self.policyId = policyId - self.explainTrace = explainTrace - self.failedConditions = failedConditions - self.revision = revision - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case decision - case matchedPolicies = "matched_policies" - case reason - case policyId = "policy_id" - case explainTrace = "explain_trace" - case failedConditions = "failed_conditions" - case revision - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(decision, forKey: .decision) - try container.encode(matchedPolicies, forKey: .matchedPolicies) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(policyId, forKey: .policyId) - try container.encodeIfPresent(explainTrace, forKey: .explainTrace) - try container.encodeIfPresent(failedConditions, forKey: .failedConditions) - try container.encodeIfPresent(revision, forKey: .revision) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift deleted file mode 100644 index 4941cca..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseACLOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseACLOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseACLOut: Codable, JSONEncodable, Hashable { - - public var data: ACLOut - public var meta: MetaBody? - public var error: Null? - - public init(data: ACLOut, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift deleted file mode 100644 index ecb9014..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAccessDecisionResponse.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseAccessDecisionResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseAccessDecisionResponse: Codable, JSONEncodable, Hashable { - - public var data: AccessDecisionResponse - public var meta: MetaBody? - public var error: Null? - - public init(data: AccessDecisionResponse, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift deleted file mode 100644 index 94700dd..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAdminLoginResponse.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseAdminLoginResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseAdminLoginResponse: Codable, JSONEncodable, Hashable { - - public var data: AdminLoginResponse - public var meta: MetaBody? - public var error: Null? - - public init(data: AdminLoginResponse, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift deleted file mode 100644 index 6b55d4d..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseAuthModelOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseAuthModelOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseAuthModelOut: Codable, JSONEncodable, Hashable { - - public var data: AuthModelOut - public var meta: MetaBody? - public var error: Null? - - public init(data: AuthModelOut, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift deleted file mode 100644 index c7a1e8c..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseBatchAccessResponse.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseBatchAccessResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseBatchAccessResponse: Codable, JSONEncodable, Hashable { - - public var data: BatchAccessResponse - public var meta: MetaBody? - public var error: Null? - - public init(data: BatchAccessResponse, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift deleted file mode 100644 index 049b697..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrAny.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseDictStrAny.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseDictStrAny: Codable, JSONEncodable, Hashable { - - public var data: [String: AnyCodable] - public var meta: MetaBody? - public var error: Null? - - public init(data: [String: AnyCodable], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift deleted file mode 100644 index 2b55d2f..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrInt.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseDictStrInt.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseDictStrInt: Codable, JSONEncodable, Hashable { - - public var data: [String: Int] - public var meta: MetaBody? - public var error: Null? - - public init(data: [String: Int], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift deleted file mode 100644 index beda3d1..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrObject.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseDictStrObject.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseDictStrObject: Codable, JSONEncodable, Hashable { - - public var data: [String: AnyCodable] - public var meta: MetaBody? - public var error: Null? - - public init(data: [String: AnyCodable], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift deleted file mode 100644 index 31ad545..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrStr.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseDictStrStr.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseDictStrStr: Codable, JSONEncodable, Hashable { - - public var data: [String: String] - public var meta: MetaBody? - public var error: Null? - - public init(data: [String: String], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift deleted file mode 100644 index e7cd042..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseDictStrUnionIntStr.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseDictStrUnionIntStr.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseDictStrUnionIntStr: Codable, JSONEncodable, Hashable { - - public var data: [String: DataValue] - public var meta: MetaBody? - public var error: Null? - - public init(data: [String: DataValue], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift deleted file mode 100644 index d5924b6..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseImpactAnalysisResponse.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseImpactAnalysisResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseImpactAnalysisResponse: Codable, JSONEncodable, Hashable { - - public var data: ImpactAnalysisResponse - public var meta: MetaBody? - public var error: Null? - - public init(data: ImpactAnalysisResponse, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift deleted file mode 100644 index 72f23d3..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListACLOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseListACLOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseListACLOut: Codable, JSONEncodable, Hashable { - - public var data: [ACLOut] - public var meta: MetaBody? - public var error: Null? - - public init(data: [ACLOut], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift deleted file mode 100644 index 34c142a..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListAuditRecordOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseListAuditRecordOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseListAuditRecordOut: Codable, JSONEncodable, Hashable { - - public var data: [AuditRecordOut] - public var meta: MetaBody? - public var error: Null? - - public init(data: [AuditRecordOut], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift deleted file mode 100644 index 1e956e4..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListDictStrStr.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseListDictStrStr.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseListDictStrStr: Codable, JSONEncodable, Hashable { - - public var data: [[String: String]] - public var meta: MetaBody? - public var error: Null? - - public init(data: [[String: String]], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift deleted file mode 100644 index 780ea78..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPermissionOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseListPermissionOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseListPermissionOut: Codable, JSONEncodable, Hashable { - - public var data: [PermissionOut] - public var meta: MetaBody? - public var error: Null? - - public init(data: [PermissionOut], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift deleted file mode 100644 index 2603685..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListPolicyOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseListPolicyOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseListPolicyOut: Codable, JSONEncodable, Hashable { - - public var data: [PolicyOut] - public var meta: MetaBody? - public var error: Null? - - public init(data: [PolicyOut], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift deleted file mode 100644 index cab16f7..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseListRoleOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseListRoleOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseListRoleOut: Codable, JSONEncodable, Hashable { - - public var data: [RoleOut] - public var meta: MetaBody? - public var error: Null? - - public init(data: [RoleOut], meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift deleted file mode 100644 index 00682ea..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePermissionOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponsePermissionOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponsePermissionOut: Codable, JSONEncodable, Hashable { - - public var data: PermissionOut - public var meta: MetaBody? - public var error: Null? - - public init(data: PermissionOut, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift deleted file mode 100644 index 1031d3a..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicyOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponsePolicyOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponsePolicyOut: Codable, JSONEncodable, Hashable { - - public var data: PolicyOut - public var meta: MetaBody? - public var error: Null? - - public init(data: PolicyOut, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift deleted file mode 100644 index b906ac4..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponsePolicySimulationResponse.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponsePolicySimulationResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponsePolicySimulationResponse: Codable, JSONEncodable, Hashable { - - public var data: PolicySimulationResponse - public var meta: MetaBody? - public var error: Null? - - public init(data: PolicySimulationResponse, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift deleted file mode 100644 index 9295694..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseRelationshipOut.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseRelationshipOut.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseRelationshipOut: Codable, JSONEncodable, Hashable { - - public var data: RelationshipOut - public var meta: MetaBody? - public var error: Null? - - public init(data: RelationshipOut, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift deleted file mode 100644 index 10daefc..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/SuccessResponseSimulationResponse.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// SuccessResponseSimulationResponse.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct SuccessResponseSimulationResponse: Codable, JSONEncodable, Hashable { - - public var data: SimulationResponse - public var meta: MetaBody? - public var error: Null? - - public init(data: SimulationResponse, meta: MetaBody? = nil, error: Null? = nil) { - self.data = data - self.meta = meta - self.error = error - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case data - case meta - case error - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(data, forKey: .data) - try container.encodeIfPresent(meta, forKey: .meta) - try container.encodeIfPresent(error, forKey: .error) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift deleted file mode 100644 index 688dc61..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Models/ValidationError.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// ValidationError.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if canImport(AnyCodable) -import AnyCodable -#endif - -public struct ValidationError: Codable, JSONEncodable, Hashable { - - public var loc: [LocationInner] - public var msg: String - public var type: String - public var input: AnyCodable? - public var ctx: AnyCodable? - - public init(loc: [LocationInner], msg: String, type: String, input: AnyCodable? = nil, ctx: AnyCodable? = nil) { - self.loc = loc - self.msg = msg - self.type = type - self.input = input - self.ctx = ctx - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case loc - case msg - case type - case input - case ctx - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(loc, forKey: .loc) - try container.encode(msg, forKey: .msg) - try container.encode(type, forKey: .type) - try container.encodeIfPresent(input, forKey: .input) - try container.encodeIfPresent(ctx, forKey: .ctx) - } -} - diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift deleted file mode 100644 index cc32888..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/OpenISO8601DateFormatter.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// OpenISO8601DateFormatter.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -// https://stackoverflow.com/a/50281094/976628 -public class OpenISO8601DateFormatter: DateFormatter { - static let withoutSeconds: DateFormatter = { - let formatter = DateFormatter() - formatter.calendar = Calendar(identifier: .iso8601) - formatter.locale = Locale(identifier: "en_US_POSIX") - formatter.timeZone = TimeZone(secondsFromGMT: 0) - formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ" - return formatter - }() - - static let withoutTime: DateFormatter = { - let formatter = DateFormatter() - formatter.calendar = Calendar(identifier: .iso8601) - formatter.locale = Locale(identifier: "en_US_POSIX") - formatter.timeZone = TimeZone(secondsFromGMT: 0) - formatter.dateFormat = "yyyy-MM-dd" - return formatter - }() - - private func setup() { - calendar = Calendar(identifier: .iso8601) - locale = Locale(identifier: "en_US_POSIX") - timeZone = TimeZone(secondsFromGMT: 0) - dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ" - } - - override init() { - super.init() - setup() - } - - required init?(coder aDecoder: NSCoder) { - super.init(coder: aDecoder) - setup() - } - - override public func date(from string: String) -> Date? { - if let result = super.date(from: string) { - return result - } else if let result = OpenISO8601DateFormatter.withoutSeconds.date(from: string) { - return result - } - - return OpenISO8601DateFormatter.withoutTime.date(from: string) - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift deleted file mode 100644 index fbaa624..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/SynchronizedDictionary.swift +++ /dev/null @@ -1,26 +0,0 @@ -// SynchronizedDictionary.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -internal struct SynchronizedDictionary { - - private var dictionary = [K: V]() - private let lock = NSRecursiveLock() - - internal subscript(key: K) -> V? { - get { - lock.lock() - defer { lock.unlock() } - return self.dictionary[key] - } - set { - lock.lock() - defer { lock.unlock() } - self.dictionary[key] = newValue - } - } -} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift deleted file mode 100644 index 4f504da..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/URLSessionImplementations.swift +++ /dev/null @@ -1,682 +0,0 @@ -// URLSessionImplementations.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation -#if !os(macOS) -import MobileCoreServices -#endif -#if canImport(UniformTypeIdentifiers) -import UniformTypeIdentifiers -#endif - -// Protocol defined for a session data task. This allows mocking out the URLSessionProtocol below since -// you may not want to create or return a real URLSessionDataTask. -public protocol URLSessionDataTaskProtocol { - func resume() - - var taskIdentifier: Int { get } - - var progress: Progress { get } - - func cancel() -} - -// Protocol allowing implementations to alter what is returned or to test their implementations. -public protocol URLSessionProtocol { - // Task which performs the network fetch. Expected to be from URLSession.dataTask(with:completionHandler:) such that a network request - // is sent off when `.resume()` is called. - func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol -} - -extension URLSession: URLSessionProtocol { - // Passthrough to URLSession.dataTask(with:completionHandler) since URLSessionDataTask conforms to URLSessionDataTaskProtocol and fetches the network data. - public func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> any URLSessionDataTaskProtocol { - return dataTask(with: request, completionHandler: completionHandler) - } -} - -extension URLSessionDataTask: URLSessionDataTaskProtocol {} - -class URLSessionRequestBuilderFactory: RequestBuilderFactory { - func getNonDecodableBuilder() -> RequestBuilder.Type { - return URLSessionRequestBuilder.self - } - - func getBuilder() -> RequestBuilder.Type { - return URLSessionDecodableRequestBuilder.self - } -} - -public typealias KeyNetraClientAPIChallengeHandler = ((URLSession, URLSessionTask, URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?)) - -// Store the URLSession's delegate to retain its reference -private let sessionDelegate = SessionDelegate() - -// Store the URLSession to retain its reference -private let defaultURLSession = URLSession(configuration: .default, delegate: sessionDelegate, delegateQueue: nil) - -// Store current taskDidReceiveChallenge for every URLSessionTask -private var challengeHandlerStore = SynchronizedDictionary() - -// Store current URLCredential for every URLSessionTask -private var credentialStore = SynchronizedDictionary() - -open class URLSessionRequestBuilder: RequestBuilder { - - /** - May be assigned if you want to control the authentication challenges. - */ - public var taskDidReceiveChallenge: KeyNetraClientAPIChallengeHandler? - - required public init(method: String, URLString: String, parameters: [String: Any]?, headers: [String: String] = [:], requiresAuthentication: Bool) { - super.init(method: method, URLString: URLString, parameters: parameters, headers: headers, requiresAuthentication: requiresAuthentication) - } - - /** - May be overridden by a subclass if you want to control the URLSession - configuration. - */ - open func createURLSession() -> URLSessionProtocol { - return defaultURLSession - } - - /** - May be overridden by a subclass if you want to control the Content-Type - that is given to an uploaded form part. - - Return nil to use the default behavior (inferring the Content-Type from - the file extension). Return the desired Content-Type otherwise. - */ - open func contentTypeForFormPart(fileURL: URL) -> String? { - return nil - } - - /** - May be overridden by a subclass if you want to control the URLRequest - configuration (e.g. to override the cache policy). - */ - open func createURLRequest(urlSession: URLSessionProtocol, method: HTTPMethod, encoding: ParameterEncoding, headers: [String: String]) throws -> URLRequest { - - guard let url = URL(string: URLString) else { - throw DownloadException.requestMissingURL - } - - var originalRequest = URLRequest(url: url) - - originalRequest.httpMethod = method.rawValue - - buildHeaders().forEach { key, value in - originalRequest.setValue(value, forHTTPHeaderField: key) - } - - let modifiedRequest = try encoding.encode(originalRequest, with: parameters) - - return modifiedRequest - } - - @discardableResult - override open func execute(_ apiResponseQueue: DispatchQueue = KeyNetraClientAPI.apiResponseQueue, _ completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) -> RequestTask { - let urlSession = createURLSession() - - guard let xMethod = HTTPMethod(rawValue: method) else { - fatalError("Unsupported Http method - \(method)") - } - - let encoding: ParameterEncoding - - switch xMethod { - case .get, .head: - encoding = URLEncoding() - - case .options, .post, .put, .patch, .delete, .trace, .connect: - let contentType = headers["Content-Type"] ?? "application/json" - - if contentType.hasPrefix("application/") && contentType.contains("json") { - encoding = JSONDataEncoding() - } else if contentType.hasPrefix("multipart/form-data") { - encoding = FormDataEncoding(contentTypeForFormPart: contentTypeForFormPart(fileURL:)) - } else if contentType.hasPrefix("application/x-www-form-urlencoded") { - encoding = FormURLEncoding() - } else if contentType.hasPrefix("application/octet-stream") || contentType.hasPrefix("image/") { - encoding = OctetStreamEncoding() - } else { - fatalError("Unsupported Media Type - \(contentType)") - } - } - - do { - let request = try createURLRequest(urlSession: urlSession, method: xMethod, encoding: encoding, headers: headers) - - var taskIdentifier: Int? - let cleanupRequest = { - if let taskIdentifier = taskIdentifier { - challengeHandlerStore[taskIdentifier] = nil - credentialStore[taskIdentifier] = nil - } - } - - let dataTask = urlSession.dataTaskFromProtocol(with: request) { data, response, error in - apiResponseQueue.async { - self.processRequestResponse(urlRequest: request, data: data, response: response, error: error, completion: completion) - cleanupRequest() - } - } - - onProgressReady?(dataTask.progress) - - taskIdentifier = dataTask.taskIdentifier - challengeHandlerStore[dataTask.taskIdentifier] = taskDidReceiveChallenge - credentialStore[dataTask.taskIdentifier] = credential - - dataTask.resume() - - requestTask.set(task: dataTask) - } catch { - apiResponseQueue.async { - completion(.failure(ErrorResponse.error(415, nil, nil, error))) - } - } - - return requestTask - } - - fileprivate func processRequestResponse(urlRequest: URLRequest, data: Data?, response: URLResponse?, error: Error?, completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { - - if let error = error { - completion(.failure(ErrorResponse.error(-1, data, response, error))) - return - } - - guard let httpResponse = response as? HTTPURLResponse else { - completion(.failure(ErrorResponse.error(-2, data, response, DecodableRequestBuilderError.nilHTTPResponse))) - return - } - - guard httpResponse.isStatusCodeSuccessful else { - completion(.failure(ErrorResponse.error(httpResponse.statusCode, data, response, DecodableRequestBuilderError.unsuccessfulHTTPStatusCode))) - return - } - - switch T.self { - case is Void.Type: - - completion(.success(Response(response: httpResponse, body: () as! T, bodyData: data))) - - default: - fatalError("Unsupported Response Body Type - \(String(describing: T.self))") - } - - } - - open func buildHeaders() -> [String: String] { - var httpHeaders: [String: String] = [:] - for (key, value) in KeyNetraClientAPI.customHeaders { - httpHeaders[key] = value - } - for (key, value) in headers { - httpHeaders[key] = value - } - return httpHeaders - } - - fileprivate func getFileName(fromContentDisposition contentDisposition: String?) -> String? { - - guard let contentDisposition = contentDisposition else { - return nil - } - - let items = contentDisposition.components(separatedBy: ";") - - var filename: String? - - for contentItem in items { - - let filenameKey = "filename=" - guard let range = contentItem.range(of: filenameKey) else { - continue - } - - filename = contentItem - return filename? - .replacingCharacters(in: range, with: "") - .replacingOccurrences(of: "\"", with: "") - .trimmingCharacters(in: .whitespacesAndNewlines) - } - - return filename - - } - - fileprivate func getPath(from url: URL) throws -> String { - - guard var path = URLComponents(url: url, resolvingAgainstBaseURL: true)?.path else { - throw DownloadException.requestMissingPath - } - - if path.hasPrefix("/") { - path.remove(at: path.startIndex) - } - - return path - - } - - fileprivate func getURL(from urlRequest: URLRequest) throws -> URL { - - guard let url = urlRequest.url else { - throw DownloadException.requestMissingURL - } - - return url - } - -} - -open class URLSessionDecodableRequestBuilder: URLSessionRequestBuilder { - override fileprivate func processRequestResponse(urlRequest: URLRequest, data: Data?, response: URLResponse?, error: Error?, completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { - - if let error = error { - completion(.failure(ErrorResponse.error(-1, data, response, error))) - return - } - - guard let httpResponse = response as? HTTPURLResponse else { - completion(.failure(ErrorResponse.error(-2, data, response, DecodableRequestBuilderError.nilHTTPResponse))) - return - } - - guard httpResponse.isStatusCodeSuccessful else { - completion(.failure(ErrorResponse.error(httpResponse.statusCode, data, response, DecodableRequestBuilderError.unsuccessfulHTTPStatusCode))) - return - } - - switch T.self { - case is String.Type: - - let body = data.flatMap { String(data: $0, encoding: .utf8) } ?? "" - - completion(.success(Response(response: httpResponse, body: body as! T, bodyData: data))) - - case is URL.Type: - do { - - guard error == nil else { - throw DownloadException.responseFailed - } - - guard let data = data else { - throw DownloadException.responseDataMissing - } - - let fileManager = FileManager.default - let cachesDirectory = fileManager.urls(for: .cachesDirectory, in: .userDomainMask)[0] - let requestURL = try getURL(from: urlRequest) - - var requestPath = try getPath(from: requestURL) - - if let headerFileName = getFileName(fromContentDisposition: httpResponse.allHeaderFields["Content-Disposition"] as? String) { - requestPath = requestPath.appending("/\(headerFileName)") - } else { - requestPath = requestPath.appending("/tmp.KeyNetraClient.\(UUID().uuidString)") - } - - let filePath = cachesDirectory.appendingPathComponent(requestPath) - let directoryPath = filePath.deletingLastPathComponent().path - - try fileManager.createDirectory(atPath: directoryPath, withIntermediateDirectories: true, attributes: nil) - try data.write(to: filePath, options: .atomic) - - completion(.success(Response(response: httpResponse, body: filePath as! T, bodyData: data))) - - } catch let requestParserError as DownloadException { - completion(.failure(ErrorResponse.error(400, data, response, requestParserError))) - } catch { - completion(.failure(ErrorResponse.error(400, data, response, error))) - } - - case is Void.Type: - - completion(.success(Response(response: httpResponse, body: () as! T, bodyData: data))) - - case is Data.Type: - - completion(.success(Response(response: httpResponse, body: data as! T, bodyData: data))) - - default: - - guard let unwrappedData = data, !unwrappedData.isEmpty else { - if let expressibleByNilLiteralType = T.self as? ExpressibleByNilLiteral.Type { - completion(.success(Response(response: httpResponse, body: expressibleByNilLiteralType.init(nilLiteral: ()) as! T, bodyData: data))) - } else { - completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, response, DecodableRequestBuilderError.emptyDataResponse))) - } - return - } - - let decodeResult = CodableHelper.decode(T.self, from: unwrappedData) - - switch decodeResult { - case let .success(decodableObj): - completion(.success(Response(response: httpResponse, body: decodableObj, bodyData: unwrappedData))) - case let .failure(error): - completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, response, error))) - } - } - } -} - -private class SessionDelegate: NSObject, URLSessionTaskDelegate { - func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { - - var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling - - var credential: URLCredential? - - if let taskDidReceiveChallenge = challengeHandlerStore[task.taskIdentifier] { - (disposition, credential) = taskDidReceiveChallenge(session, task, challenge) - } else { - if challenge.previousFailureCount > 0 { - disposition = .rejectProtectionSpace - } else { - credential = credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace) - - if credential != nil { - disposition = .useCredential - } - } - } - - completionHandler(disposition, credential) - } -} - -public enum HTTPMethod: String { - case options = "OPTIONS" - case get = "GET" - case head = "HEAD" - case post = "POST" - case put = "PUT" - case patch = "PATCH" - case delete = "DELETE" - case trace = "TRACE" - case connect = "CONNECT" -} - -public protocol ParameterEncoding { - func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest -} - -private class URLEncoding: ParameterEncoding { - func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { - - var urlRequest = urlRequest - - guard let parameters = parameters else { return urlRequest } - - guard let url = urlRequest.url else { - throw DownloadException.requestMissingURL - } - - if var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false), !parameters.isEmpty { - urlComponents.queryItems = APIHelper.mapValuesToQueryItems(parameters) - urlRequest.url = urlComponents.url - } - - return urlRequest - } -} - -private class FormDataEncoding: ParameterEncoding { - - let contentTypeForFormPart: (_ fileURL: URL) -> String? - - init(contentTypeForFormPart: @escaping (_ fileURL: URL) -> String?) { - self.contentTypeForFormPart = contentTypeForFormPart - } - - func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { - - var urlRequest = urlRequest - - guard let parameters = parameters, !parameters.isEmpty else { - return urlRequest - } - - let boundary = "Boundary-\(UUID().uuidString)" - - urlRequest.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type") - - for (key, value) in parameters { - for value in (value as? Array ?? [value]) { - switch value { - case let fileURL as URL: - - urlRequest = try configureFileUploadRequest( - urlRequest: urlRequest, - boundary: boundary, - name: key, - fileURL: fileURL - ) - - case let string as String: - - if let data = string.data(using: .utf8) { - urlRequest = configureDataUploadRequest( - urlRequest: urlRequest, - boundary: boundary, - name: key, - data: data - ) - } - - case let number as NSNumber: - - if let data = number.stringValue.data(using: .utf8) { - urlRequest = configureDataUploadRequest( - urlRequest: urlRequest, - boundary: boundary, - name: key, - data: data - ) - } - - case let data as Data: - - urlRequest = configureDataUploadRequest( - urlRequest: urlRequest, - boundary: boundary, - name: key, - data: data - ) - - case let uuid as UUID: - - if let data = uuid.uuidString.data(using: .utf8) { - urlRequest = configureDataUploadRequest( - urlRequest: urlRequest, - boundary: boundary, - name: key, - data: data - ) - } - - default: - fatalError("Unprocessable value \(value) with key \(key)") - } - } - } - - var body = urlRequest.httpBody.orEmpty - - body.append("\r\n--\(boundary)--\r\n") - - urlRequest.httpBody = body - - return urlRequest - } - - private func configureFileUploadRequest(urlRequest: URLRequest, boundary: String, name: String, fileURL: URL) throws -> URLRequest { - - var urlRequest = urlRequest - - var body = urlRequest.httpBody.orEmpty - - let fileData = try Data(contentsOf: fileURL) - - let mimetype = contentTypeForFormPart(fileURL) ?? mimeType(for: fileURL) - - let fileName = fileURL.lastPathComponent - - // If we already added something then we need an additional newline. - if body.count > 0 { - body.append("\r\n") - } - - // Value boundary. - body.append("--\(boundary)\r\n") - - // Value headers. - body.append("Content-Disposition: form-data; name=\"\(name)\"; filename=\"\(fileName)\"\r\n") - body.append("Content-Type: \(mimetype)\r\n") - - // Separate headers and body. - body.append("\r\n") - - // The value data. - body.append(fileData) - - urlRequest.httpBody = body - - return urlRequest - } - - private func configureDataUploadRequest(urlRequest: URLRequest, boundary: String, name: String, data: Data) -> URLRequest { - - var urlRequest = urlRequest - - var body = urlRequest.httpBody.orEmpty - - // If we already added something then we need an additional newline. - if body.count > 0 { - body.append("\r\n") - } - - // Value boundary. - body.append("--\(boundary)\r\n") - - // Value headers. - body.append("Content-Disposition: form-data; name=\"\(name)\"\r\n") - - // Separate headers and body. - body.append("\r\n") - - // The value data. - body.append(data) - - urlRequest.httpBody = body - - return urlRequest - - } - - func mimeType(for url: URL) -> String { - let pathExtension = url.pathExtension - - if #available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) { - #if canImport(UniformTypeIdentifiers) - if let utType = UTType(filenameExtension: pathExtension) { - return utType.preferredMIMEType ?? "application/octet-stream" - } - #else - return "application/octet-stream" - #endif - } else { - if let uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as NSString, nil)?.takeRetainedValue(), - let mimetype = UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType)?.takeRetainedValue() { - return mimetype as String - } - return "application/octet-stream" - } - return "application/octet-stream" - } - -} - -private class FormURLEncoding: ParameterEncoding { - func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { - - var urlRequest = urlRequest - - var requestBodyComponents = URLComponents() - let queryItems = APIHelper.mapValuesToQueryItems(parameters ?? [:]) - - /// `httpBody` needs to be percent encoded - /// -> https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST - /// "application/x-www-form-urlencoded: [...] Non-alphanumeric characters in both keys and values are percent-encoded" - let percentEncodedQueryItems = queryItems?.compactMap { queryItem in - return URLQueryItem( - name: queryItem.name.addingPercentEncoding(withAllowedCharacters: .alphanumerics) ?? queryItem.name, - value: queryItem.value?.addingPercentEncoding(withAllowedCharacters: .alphanumerics) ?? queryItem.value) - } - requestBodyComponents.queryItems = percentEncodedQueryItems - - if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { - urlRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") - } - - /// We can't use `requestBodyComponents.percentEncodedQuery` since this does NOT percent encode the `+` sign - /// that is why we do the percent encoding manually for each key/value pair - urlRequest.httpBody = requestBodyComponents.query?.data(using: .utf8) - - return urlRequest - } -} - -private class OctetStreamEncoding: ParameterEncoding { - func encode(_ urlRequest: URLRequest, with parameters: [String: Any]?) throws -> URLRequest { - - var urlRequest = urlRequest - - guard let body = parameters?["body"] else { return urlRequest } - - if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { - urlRequest.setValue("application/octet-stream", forHTTPHeaderField: "Content-Type") - } - - switch body { - case let fileURL as URL: - urlRequest.httpBody = try Data(contentsOf: fileURL) - case let data as Data: - urlRequest.httpBody = data - default: - fatalError("Unprocessable body \(body)") - } - - return urlRequest - } -} - -private extension Data { - /// Append string to Data - /// - /// Rather than littering my code with calls to `dataUsingEncoding` to convert strings to Data, and then add that data to the Data, this wraps it in a nice convenient little extension to Data. This converts using UTF-8. - /// - /// - parameter string: The string to be added to the `Data`. - - mutating func append(_ string: String) { - if let data = string.data(using: .utf8) { - append(data) - } - } -} - -private extension Optional where Wrapped == Data { - var orEmpty: Data { - self ?? Data() - } -} - -extension JSONDataEncoding: ParameterEncoding {} diff --git a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift b/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift deleted file mode 100644 index 3bf4ec0..0000000 --- a/sdks/swift/KeyNetraClient/Classes/OpenAPIs/Validation.swift +++ /dev/null @@ -1,161 +0,0 @@ -// Validation.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct StringRule { - public var minLength: Int? - public var maxLength: Int? - public var pattern: String? -} - -public struct NumericRule { - public var minimum: T? - public var exclusiveMinimum = false - public var maximum: T? - public var exclusiveMaximum = false - public var multipleOf: T? -} - -public struct ArrayRule { - public var minItems: Int? - public var maxItems: Int? - public var uniqueItems: Bool -} - -public enum StringValidationErrorKind: Error { - case minLength, maxLength, pattern -} - -public enum NumericValidationErrorKind: Error { - case minimum, maximum, multipleOf -} - -public enum ArrayValidationErrorKind: Error { - case minItems, maxItems, uniqueItems -} - -public struct ValidationError: Error { - public fileprivate(set) var kinds: Set -} - -public struct Validator { - /// Validate a string against a rule. - /// - Parameter string: The String you wish to validate. - /// - Parameter rule: The StringRule you wish to use for validation. - /// - Returns: A validated string. - /// - Throws: `ValidationError` if the string is invalid against the rule, - /// `NSError` if the rule.pattern is invalid. - public static func validate(_ string: String, against rule: StringRule) throws -> String { - var error = ValidationError(kinds: []) - if let minLength = rule.minLength, !(minLength <= string.count) { - error.kinds.insert(.minLength) - } - if let maxLength = rule.maxLength, !(string.count <= maxLength) { - error.kinds.insert(.maxLength) - } - if let pattern = rule.pattern { - let matches = try NSRegularExpression(pattern: pattern, options: .caseInsensitive) - .matches(in: string, range: .init(location: 0, length: string.utf16.count)) - if matches.isEmpty { - error.kinds.insert(.pattern) - } - } - guard error.kinds.isEmpty else { - throw error - } - return string - } - - /// Validate a integer against a rule. - /// - Parameter numeric: The integer you wish to validate. - /// - Parameter rule: The NumericRule you wish to use for validation. - /// - Returns: A validated integer. - /// - Throws: `ValidationError` if the numeric is invalid against the rule. - public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { - var error = ValidationError(kinds: []) - if let minimum = rule.minimum { - if !rule.exclusiveMinimum, minimum > numeric { - error.kinds.insert(.minimum) - } - if rule.exclusiveMinimum, minimum >= numeric { - error.kinds.insert(.minimum) - } - } - if let maximum = rule.maximum { - if !rule.exclusiveMaximum, numeric > maximum { - error.kinds.insert(.maximum) - } - if rule.exclusiveMaximum, numeric >= maximum { - error.kinds.insert(.maximum) - } - } - if let multipleOf = rule.multipleOf, !numeric.isMultiple(of: multipleOf) { - error.kinds.insert(.multipleOf) - } - guard error.kinds.isEmpty else { - throw error - } - return numeric - } - - /// Validate a fractional number against a rule. - /// - Parameter numeric: The fractional number you wish to validate. - /// - Parameter rule: The NumericRule you wish to use for validation. - /// - Returns: A validated fractional number. - /// - Throws: `ValidationError` if the numeric is invalid against the rule. - public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { - var error = ValidationError(kinds: []) - if let minimum = rule.minimum { - if !rule.exclusiveMinimum, minimum > numeric { - error.kinds.insert(.minimum) - } - if rule.exclusiveMinimum, minimum >= numeric { - error.kinds.insert(.minimum) - } - } - if let maximum = rule.maximum { - if !rule.exclusiveMaximum, numeric > maximum { - error.kinds.insert(.maximum) - } - if rule.exclusiveMaximum, numeric >= maximum { - error.kinds.insert(.maximum) - } - } - if let multipleOf = rule.multipleOf, numeric.remainder(dividingBy: multipleOf) != 0 { - error.kinds.insert(.multipleOf) - } - guard error.kinds.isEmpty else { - throw error - } - return numeric - } - - /// Validate a array against a rule. - /// - Parameter array: The Array you wish to validate. - /// - Parameter rule: The ArrayRule you wish to use for validation. - /// - Returns: A validated array. - /// - Throws: `ValidationError` if the string is invalid against the rule. - public static func validate(_ array: Array, against rule: ArrayRule) throws -> Array { - var error = ValidationError(kinds: []) - if let minItems = rule.minItems, !(minItems <= array.count) { - error.kinds.insert(.minItems) - } - if let maxItems = rule.maxItems, !(array.count <= maxItems) { - error.kinds.insert(.maxItems) - } - if rule.uniqueItems { - let unique = Set(array) - if unique.count != array.count { - error.kinds.insert(.uniqueItems) - } - } - guard error.kinds.isEmpty else { - throw error - } - return array - } -} diff --git a/sdks/swift/README.md b/sdks/swift/README.md index 481648e..597c44d 100644 --- a/sdks/swift/README.md +++ b/sdks/swift/README.md @@ -1,162 +1,51 @@ -# Swift6 API client for KeyNetraClient - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client. - -- API version: 0.1.1 -- Package version: -- Generator version: 7.21.0 -- Build package: org.openapitools.codegen.languages.Swift6ClientCodegen - -## Installation - -### Carthage - -Run `carthage update` - -### CocoaPods - -Run `pod install` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccessAPI* | [**checkAccessBatchCheckAccessBatchPost**](docs/AccessAPI.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch -*AccessAPI* | [**checkAccessCheckAccessPost**](docs/AccessAPI.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access -*AccessAPI* | [**simulateSimulatePost**](docs/AccessAPI.md#simulatesimulatepost) | **POST** /simulate | Simulate -*AuthAPI* | [**adminLoginAdminLoginPost**](docs/AuthAPI.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login -*AuthAPI* | [**adminLoginAdminLoginPost_0**](docs/AuthAPI.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login -*DevAPI* | [**getSampleDataDevSampleDataGet**](docs/DevAPI.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data -*DevAPI* | [**seedSampleDataDevSampleDataSeedPost**](docs/DevAPI.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data -*HealthAPI* | [**healthHealthGet**](docs/HealthAPI.md#healthhealthget) | **GET** /health | Health -*HealthAPI* | [**livenessHealthLiveGet**](docs/HealthAPI.md#livenesshealthliveget) | **GET** /health/live | Liveness -*HealthAPI* | [**readinessHealthReadyGet**](docs/HealthAPI.md#readinesshealthreadyget) | **GET** /health/ready | Readiness -*ManagementAPI* | [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](docs/ManagementAPI.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -*ManagementAPI* | [**createAclEntryAclPost**](docs/ManagementAPI.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry -*ManagementAPI* | [**createAuthModelAuthModelPost**](docs/ManagementAPI.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model -*ManagementAPI* | [**createPermissionPermissionsPost**](docs/ManagementAPI.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission -*ManagementAPI* | [**createPolicyFromDslPoliciesDslPost**](docs/ManagementAPI.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl -*ManagementAPI* | [**createPolicyPoliciesPost**](docs/ManagementAPI.md#createpolicypoliciespost) | **POST** /policies | Create Policy -*ManagementAPI* | [**createRelationshipRelationshipsPost**](docs/ManagementAPI.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship -*ManagementAPI* | [**createRoleRolesPost**](docs/ManagementAPI.md#createrolerolespost) | **POST** /roles | Create Role -*ManagementAPI* | [**deleteAclEntryAclAclIdDelete**](docs/ManagementAPI.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -*ManagementAPI* | [**deletePermissionPermissionsPermissionIdDelete**](docs/ManagementAPI.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission -*ManagementAPI* | [**deletePolicyPoliciesPolicyKeyDelete**](docs/ManagementAPI.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy -*ManagementAPI* | [**deleteRoleRolesRoleIdDelete**](docs/ManagementAPI.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role -*ManagementAPI* | [**getAuthModelAuthModelGet**](docs/ManagementAPI.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model -*ManagementAPI* | [**impactAnalysisImpactAnalysisPost**](docs/ManagementAPI.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis -*ManagementAPI* | [**listAclEntriesAclResourceTypeResourceIdGet**](docs/ManagementAPI.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -*ManagementAPI* | [**listAuditLogsAuditGet**](docs/ManagementAPI.md#listauditlogsauditget) | **GET** /audit | List Audit Logs -*ManagementAPI* | [**listPermissionRolesPermissionsPermissionIdRolesGet**](docs/ManagementAPI.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles -*ManagementAPI* | [**listPermissionsPermissionsGet**](docs/ManagementAPI.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions -*ManagementAPI* | [**listPoliciesPoliciesGet**](docs/ManagementAPI.md#listpoliciespoliciesget) | **GET** /policies | List Policies -*ManagementAPI* | [**listRelationshipsRelationshipsGet**](docs/ManagementAPI.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships -*ManagementAPI* | [**listRolePermissionsRolesRoleIdPermissionsGet**](docs/ManagementAPI.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions -*ManagementAPI* | [**listRolesRolesGet**](docs/ManagementAPI.md#listrolesrolesget) | **GET** /roles | List Roles -*ManagementAPI* | [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](docs/ManagementAPI.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -*ManagementAPI* | [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](docs/ManagementAPI.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -*ManagementAPI* | [**simulatePolicySimulatePolicyPost**](docs/ManagementAPI.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy -*ManagementAPI* | [**updatePermissionPermissionsPermissionIdPut**](docs/ManagementAPI.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission -*ManagementAPI* | [**updatePolicyPoliciesPolicyKeyPut**](docs/ManagementAPI.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy -*ManagementAPI* | [**updateRoleRolesRoleIdPut**](docs/ManagementAPI.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role -*PlaygroundAPI* | [**evaluatePlaygroundEvaluatePost**](docs/PlaygroundAPI.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate - - -## Documentation For Models - - - [ACLCreate](docs/ACLCreate.md) - - [ACLOut](docs/ACLOut.md) - - [AccessDecisionResponse](docs/AccessDecisionResponse.md) - - [AccessRequest](docs/AccessRequest.md) - - [AdminLoginRequest](docs/AdminLoginRequest.md) - - [AdminLoginResponse](docs/AdminLoginResponse.md) - - [AuditRecordOut](docs/AuditRecordOut.md) - - [AuthModelCreate](docs/AuthModelCreate.md) - - [AuthModelOut](docs/AuthModelOut.md) - - [BatchAccessItem](docs/BatchAccessItem.md) - - [BatchAccessRequest](docs/BatchAccessRequest.md) - - [BatchAccessResponse](docs/BatchAccessResponse.md) - - [BatchAccessResult](docs/BatchAccessResult.md) - - [DataValue](docs/DataValue.md) - - [HTTPValidationError](docs/HTTPValidationError.md) - - [ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) - - [ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) - - [LocationInner](docs/LocationInner.md) - - [MetaBody](docs/MetaBody.md) - - [PermissionCreate](docs/PermissionCreate.md) - - [PermissionOut](docs/PermissionOut.md) - - [PermissionUpdate](docs/PermissionUpdate.md) - - [PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) - - [PlaygroundInput](docs/PlaygroundInput.md) - - [PlaygroundPolicy](docs/PlaygroundPolicy.md) - - [PolicyCreate](docs/PolicyCreate.md) - - [PolicyOut](docs/PolicyOut.md) - - [PolicySimulationInput](docs/PolicySimulationInput.md) - - [PolicySimulationRequest](docs/PolicySimulationRequest.md) - - [PolicySimulationResponse](docs/PolicySimulationResponse.md) - - [RelationshipCreate](docs/RelationshipCreate.md) - - [RelationshipOut](docs/RelationshipOut.md) - - [RoleCreate](docs/RoleCreate.md) - - [RoleOut](docs/RoleOut.md) - - [RoleUpdate](docs/RoleUpdate.md) - - [SimulationResponse](docs/SimulationResponse.md) - - [SuccessResponseACLOut](docs/SuccessResponseACLOut.md) - - [SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) - - [SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) - - [SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) - - [SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) - - [SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) - - [SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) - - [SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) - - [SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) - - [SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) - - [SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) - - [SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) - - [SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) - - [SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) - - [SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) - - [SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) - - [SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) - - [SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) - - [SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) - - [SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) - - [SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) - - [SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) - - [ValidationError](docs/ValidationError.md) - - - -## Documentation For Authorization - - -Authentication schemes defined for the API: - -### HTTPBearer - -- **Type**: HTTP Bearer Token authentication - - -### APIKeyHeader - -- **Type**: API key -- **API key parameter name**: X-API-Key -- **Location**: HTTP header - - -# How do I migrate from the Swift 5 generator to the swift 6 generator? - -https://openapi-generator.tech/docs/faq-generators#how-do-i-migrate-from-the-swift-5-generator-to-the-swift-6-generator - -### How do I implement bearer token authentication with URLSession on the Swift 6 API client? - -https://openapi-generator.tech/docs/faq-generators#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-6-api-client - -## Author +# KeyNetraClient +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/swift) +Official Swift Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ + +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Swift applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation + +```bash +dependencies: [ + .package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.1") +] +``` + +## ๐Ÿš€ Quick Start + +```swift +import KeyNetraClient + +let client = KeyNetraClient( + baseUrl: "http://localhost:8080", + apiKey: "YOUR_API_KEY" +) + +// Perform an access check +client.accessApi.checkAccess(...) +``` + + + +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/swift). + +## ๐Ÿค Support + +- **Source**: [https://github.com/keynetra/keynetra-client-swift](https://github.com/keynetra/keynetra-client-swift) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-swift/issues) +- **License**: Apache-2.0 diff --git a/sdks/swift/docs/SuccessResponseACLOut.md b/sdks/swift/docs/SuccessResponseACLOut.md index 3dfd791..4e1466f 100644 --- a/sdks/swift/docs/SuccessResponseACLOut.md +++ b/sdks/swift/docs/SuccessResponseACLOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ACLOut**](ACLOut.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md b/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md index 84b0c39..c11e8f1 100644 --- a/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseAdminLoginResponse.md b/sdks/swift/docs/SuccessResponseAdminLoginResponse.md index 6c3c600..c855867 100644 --- a/sdks/swift/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/swift/docs/SuccessResponseAdminLoginResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseAuthModelOut.md b/sdks/swift/docs/SuccessResponseAuthModelOut.md index 8f27b09..9db0e8b 100644 --- a/sdks/swift/docs/SuccessResponseAuthModelOut.md +++ b/sdks/swift/docs/SuccessResponseAuthModelOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AuthModelOut**](AuthModelOut.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseBatchAccessResponse.md b/sdks/swift/docs/SuccessResponseBatchAccessResponse.md index 8551483..1f2bff7 100644 --- a/sdks/swift/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/swift/docs/SuccessResponseBatchAccessResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseDictStrAny.md b/sdks/swift/docs/SuccessResponseDictStrAny.md index 5b78fa5..d21cd6c 100644 --- a/sdks/swift/docs/SuccessResponseDictStrAny.md +++ b/sdks/swift/docs/SuccessResponseDictStrAny.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **[String: JSONValue]** | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseDictStrInt.md b/sdks/swift/docs/SuccessResponseDictStrInt.md index 35addec..4d93b09 100644 --- a/sdks/swift/docs/SuccessResponseDictStrInt.md +++ b/sdks/swift/docs/SuccessResponseDictStrInt.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **[String: Int]** | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseDictStrObject.md b/sdks/swift/docs/SuccessResponseDictStrObject.md index fff508d..126b9d7 100644 --- a/sdks/swift/docs/SuccessResponseDictStrObject.md +++ b/sdks/swift/docs/SuccessResponseDictStrObject.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **[String: JSONValue]** | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseDictStrStr.md b/sdks/swift/docs/SuccessResponseDictStrStr.md index f930900..c8aeb7f 100644 --- a/sdks/swift/docs/SuccessResponseDictStrStr.md +++ b/sdks/swift/docs/SuccessResponseDictStrStr.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **[String: String]** | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md index ff96a45..c019142 100644 --- a/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [String: DataValue] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md index 209e8db..a17ee7f 100644 --- a/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseListACLOut.md b/sdks/swift/docs/SuccessResponseListACLOut.md index 15a97f7..1cde044 100644 --- a/sdks/swift/docs/SuccessResponseListACLOut.md +++ b/sdks/swift/docs/SuccessResponseListACLOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [ACLOut] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseListAuditRecordOut.md b/sdks/swift/docs/SuccessResponseListAuditRecordOut.md index db60737..4919032 100644 --- a/sdks/swift/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/swift/docs/SuccessResponseListAuditRecordOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [AuditRecordOut] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseListDictStrStr.md b/sdks/swift/docs/SuccessResponseListDictStrStr.md index 0ba50d3..004cf66 100644 --- a/sdks/swift/docs/SuccessResponseListDictStrStr.md +++ b/sdks/swift/docs/SuccessResponseListDictStrStr.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [[String: String]] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseListPermissionOut.md b/sdks/swift/docs/SuccessResponseListPermissionOut.md index 720bfbd..ff71000 100644 --- a/sdks/swift/docs/SuccessResponseListPermissionOut.md +++ b/sdks/swift/docs/SuccessResponseListPermissionOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [PermissionOut] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseListPolicyOut.md b/sdks/swift/docs/SuccessResponseListPolicyOut.md index 573db6d..99e755b 100644 --- a/sdks/swift/docs/SuccessResponseListPolicyOut.md +++ b/sdks/swift/docs/SuccessResponseListPolicyOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [PolicyOut] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseListRoleOut.md b/sdks/swift/docs/SuccessResponseListRoleOut.md index 2dfec76..2352682 100644 --- a/sdks/swift/docs/SuccessResponseListRoleOut.md +++ b/sdks/swift/docs/SuccessResponseListRoleOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [RoleOut] | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponsePermissionOut.md b/sdks/swift/docs/SuccessResponsePermissionOut.md index 6724903..3a4ebc1 100644 --- a/sdks/swift/docs/SuccessResponsePermissionOut.md +++ b/sdks/swift/docs/SuccessResponsePermissionOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PermissionOut**](PermissionOut.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponsePolicyOut.md b/sdks/swift/docs/SuccessResponsePolicyOut.md index f67debb..f95a928 100644 --- a/sdks/swift/docs/SuccessResponsePolicyOut.md +++ b/sdks/swift/docs/SuccessResponsePolicyOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PolicyOut**](PolicyOut.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md b/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md index 67da6dc..855cd34 100644 --- a/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseRelationshipOut.md b/sdks/swift/docs/SuccessResponseRelationshipOut.md index f597b13..0403314 100644 --- a/sdks/swift/docs/SuccessResponseRelationshipOut.md +++ b/sdks/swift/docs/SuccessResponseRelationshipOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**RelationshipOut**](RelationshipOut.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/swift/docs/SuccessResponseSimulationResponse.md b/sdks/swift/docs/SuccessResponseSimulationResponse.md index acc00e4..5d82f7d 100644 --- a/sdks/swift/docs/SuccessResponseSimulationResponse.md +++ b/sdks/swift/docs/SuccessResponseSimulationResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**SimulationResponse**](SimulationResponse.md) | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Null**](Null.md) | | [optional] +**error** | **Any** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index d9872d9..456b9e2 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -1,228 +1,53 @@ -# @keynetra/client@0.1.1 +# @keynetra/client -A TypeScript SDK client for the localhost API. +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() +[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/typescript) -## Usage +Official TypeScript Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ -First, install the SDK from npm. +KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your TypeScript applications to integrate seamlessly with KeyNetra for access control and policy management. + +## โœจ Features + +- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. +- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. +- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. +- **โšก Performance**: Optimized for low-latency authorization checks. + +## ๐Ÿ“ฆ Installation ```bash -npm install @keynetra/client --save +npm install @keynetra/client ``` -Next, try it out. - - -```ts -import { - Configuration, - AccessApi, -} from '@keynetra/client'; -import type { CheckAccessBatchCheckAccessBatchPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new AccessApi(config); - - const body = { - // BatchAccessRequest - batchAccessRequest: ..., - // string (optional) - policySet: policySet_example, - } satisfies CheckAccessBatchCheckAccessBatchPostRequest; - - try { - const data = await api.checkAccessBatchCheckAccessBatchPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` +## ๐Ÿš€ Quick Start +```typescript +import { KeyNetraClient } from "@keynetra/client"; -## Documentation - -### API Endpoints - -All URIs are relative to *http://localhost* - -| Class | Method | HTTP request | Description -| ----- | ------ | ------------ | ------------- -*AccessApi* | [**checkAccessBatchCheckAccessBatchPost**](docs/AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch -*AccessApi* | [**checkAccessCheckAccessPost**](docs/AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access -*AccessApi* | [**simulateSimulatePost**](docs/AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate -*AuthApi* | [**adminLoginAdminLoginPost**](docs/AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login -*AuthApi* | [**adminLoginAdminLoginPost_0**](docs/AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login -*DevApi* | [**getSampleDataDevSampleDataGet**](docs/DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data -*DevApi* | [**seedSampleDataDevSampleDataSeedPost**](docs/DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data -*HealthApi* | [**healthHealthGet**](docs/HealthApi.md#healthhealthget) | **GET** /health | Health -*HealthApi* | [**livenessHealthLiveGet**](docs/HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness -*HealthApi* | [**readinessHealthReadyGet**](docs/HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness -*ManagementApi* | [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](docs/ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -*ManagementApi* | [**createAclEntryAclPost**](docs/ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry -*ManagementApi* | [**createAuthModelAuthModelPost**](docs/ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model -*ManagementApi* | [**createPermissionPermissionsPost**](docs/ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission -*ManagementApi* | [**createPolicyFromDslPoliciesDslPost**](docs/ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl -*ManagementApi* | [**createPolicyPoliciesPost**](docs/ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy -*ManagementApi* | [**createRelationshipRelationshipsPost**](docs/ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship -*ManagementApi* | [**createRoleRolesPost**](docs/ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role -*ManagementApi* | [**deleteAclEntryAclAclIdDelete**](docs/ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -*ManagementApi* | [**deletePermissionPermissionsPermissionIdDelete**](docs/ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission -*ManagementApi* | [**deletePolicyPoliciesPolicyKeyDelete**](docs/ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy -*ManagementApi* | [**deleteRoleRolesRoleIdDelete**](docs/ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role -*ManagementApi* | [**getAuthModelAuthModelGet**](docs/ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model -*ManagementApi* | [**impactAnalysisImpactAnalysisPost**](docs/ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis -*ManagementApi* | [**listAclEntriesAclResourceTypeResourceIdGet**](docs/ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -*ManagementApi* | [**listAuditLogsAuditGet**](docs/ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs -*ManagementApi* | [**listPermissionRolesPermissionsPermissionIdRolesGet**](docs/ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles -*ManagementApi* | [**listPermissionsPermissionsGet**](docs/ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions -*ManagementApi* | [**listPoliciesPoliciesGet**](docs/ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies -*ManagementApi* | [**listRelationshipsRelationshipsGet**](docs/ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships -*ManagementApi* | [**listRolePermissionsRolesRoleIdPermissionsGet**](docs/ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions -*ManagementApi* | [**listRolesRolesGet**](docs/ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles -*ManagementApi* | [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](docs/ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -*ManagementApi* | [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](docs/ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -*ManagementApi* | [**simulatePolicySimulatePolicyPost**](docs/ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy -*ManagementApi* | [**updatePermissionPermissionsPermissionIdPut**](docs/ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission -*ManagementApi* | [**updatePolicyPoliciesPolicyKeyPut**](docs/ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy -*ManagementApi* | [**updateRoleRolesRoleIdPut**](docs/ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role -*PlaygroundApi* | [**evaluatePlaygroundEvaluatePost**](docs/PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate - - -### Models - -- [ACLCreate](docs/ACLCreate.md) -- [ACLOut](docs/ACLOut.md) -- [AccessDecisionResponse](docs/AccessDecisionResponse.md) -- [AccessRequest](docs/AccessRequest.md) -- [AdminLoginRequest](docs/AdminLoginRequest.md) -- [AdminLoginResponse](docs/AdminLoginResponse.md) -- [AuditRecordOut](docs/AuditRecordOut.md) -- [AuthModelCreate](docs/AuthModelCreate.md) -- [AuthModelOut](docs/AuthModelOut.md) -- [BatchAccessItem](docs/BatchAccessItem.md) -- [BatchAccessRequest](docs/BatchAccessRequest.md) -- [BatchAccessResponse](docs/BatchAccessResponse.md) -- [BatchAccessResult](docs/BatchAccessResult.md) -- [DataValue](docs/DataValue.md) -- [HTTPValidationError](docs/HTTPValidationError.md) -- [ImpactAnalysisRequest](docs/ImpactAnalysisRequest.md) -- [ImpactAnalysisResponse](docs/ImpactAnalysisResponse.md) -- [LocationInner](docs/LocationInner.md) -- [MetaBody](docs/MetaBody.md) -- [PermissionCreate](docs/PermissionCreate.md) -- [PermissionOut](docs/PermissionOut.md) -- [PermissionUpdate](docs/PermissionUpdate.md) -- [PlaygroundEvaluateRequest](docs/PlaygroundEvaluateRequest.md) -- [PlaygroundInput](docs/PlaygroundInput.md) -- [PlaygroundPolicy](docs/PlaygroundPolicy.md) -- [PolicyCreate](docs/PolicyCreate.md) -- [PolicyOut](docs/PolicyOut.md) -- [PolicySimulationInput](docs/PolicySimulationInput.md) -- [PolicySimulationRequest](docs/PolicySimulationRequest.md) -- [PolicySimulationResponse](docs/PolicySimulationResponse.md) -- [RelationshipCreate](docs/RelationshipCreate.md) -- [RelationshipOut](docs/RelationshipOut.md) -- [RoleCreate](docs/RoleCreate.md) -- [RoleOut](docs/RoleOut.md) -- [RoleUpdate](docs/RoleUpdate.md) -- [SimulationResponse](docs/SimulationResponse.md) -- [SuccessResponseACLOut](docs/SuccessResponseACLOut.md) -- [SuccessResponseAccessDecisionResponse](docs/SuccessResponseAccessDecisionResponse.md) -- [SuccessResponseAdminLoginResponse](docs/SuccessResponseAdminLoginResponse.md) -- [SuccessResponseAuthModelOut](docs/SuccessResponseAuthModelOut.md) -- [SuccessResponseBatchAccessResponse](docs/SuccessResponseBatchAccessResponse.md) -- [SuccessResponseDictStrAny](docs/SuccessResponseDictStrAny.md) -- [SuccessResponseDictStrInt](docs/SuccessResponseDictStrInt.md) -- [SuccessResponseDictStrObject](docs/SuccessResponseDictStrObject.md) -- [SuccessResponseDictStrStr](docs/SuccessResponseDictStrStr.md) -- [SuccessResponseDictStrUnionIntStr](docs/SuccessResponseDictStrUnionIntStr.md) -- [SuccessResponseImpactAnalysisResponse](docs/SuccessResponseImpactAnalysisResponse.md) -- [SuccessResponseListACLOut](docs/SuccessResponseListACLOut.md) -- [SuccessResponseListAuditRecordOut](docs/SuccessResponseListAuditRecordOut.md) -- [SuccessResponseListDictStrStr](docs/SuccessResponseListDictStrStr.md) -- [SuccessResponseListPermissionOut](docs/SuccessResponseListPermissionOut.md) -- [SuccessResponseListPolicyOut](docs/SuccessResponseListPolicyOut.md) -- [SuccessResponseListRoleOut](docs/SuccessResponseListRoleOut.md) -- [SuccessResponsePermissionOut](docs/SuccessResponsePermissionOut.md) -- [SuccessResponsePolicyOut](docs/SuccessResponsePolicyOut.md) -- [SuccessResponsePolicySimulationResponse](docs/SuccessResponsePolicySimulationResponse.md) -- [SuccessResponseRelationshipOut](docs/SuccessResponseRelationshipOut.md) -- [SuccessResponseSimulationResponse](docs/SuccessResponseSimulationResponse.md) -- [ValidationError](docs/ValidationError.md) - -### Authorization - - -Authentication schemes defined for the API: - -#### HTTPBearer - - -- **Type**: HTTP Bearer Token authentication - -#### APIKeyHeader - - -- **Type**: API key -- **API key parameter name**: `X-API-Key` -- **Location**: HTTP header - -## About - -This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/) -and is automatically generated by the -[OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: `0.1.1` -- Package version: `0.1.1` -- Generator version: `7.21.0` -- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen` - -The generated npm module supports the following: - -- Environments - * Node.js - * Webpack - * Browserify -- Language levels - * ES5 - you must have a Promises/A+ library installed - * ES6 -- Module systems - * CommonJS - * ES6 module system - - -## Development - -### Building - -To build the TypeScript source code, you need to have Node.js and npm installed. -After cloning the repository, navigate to the project directory and run: +const client = new KeyNetraClient( + "http://localhost:8080", + "YOUR_API_KEY" +); -```bash -npm install -npm run build +// Perform an access check +const decision = await client.access.checkAccess({ + subject: "user:123", + action: "read", + resource: "document:456" +}); ``` -### Publishing -Once you've built the package, you can publish it to npm: -```bash -npm publish -``` +## ๐Ÿ“š Documentation + +For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/typescript). + +## ๐Ÿค Support -## License +- **Source**: [https://github.com/keynetra/keynetra-client-typescript](https://github.com/keynetra/keynetra-client-typescript) +- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-typescript/issues) +- **License**: Apache-2.0 -[]() diff --git a/sdks/typescript/docs/SuccessResponseACLOut.md b/sdks/typescript/docs/SuccessResponseACLOut.md index 298c9aa..2838460 100644 --- a/sdks/typescript/docs/SuccessResponseACLOut.md +++ b/sdks/typescript/docs/SuccessResponseACLOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [ACLOut](ACLOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md b/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md index 6d11754..dfbc3f1 100644 --- a/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [AccessDecisionResponse](AccessDecisionResponse.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md b/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md index 86faaed..44fe722 100644 --- a/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [AdminLoginResponse](AdminLoginResponse.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseAuthModelOut.md b/sdks/typescript/docs/SuccessResponseAuthModelOut.md index 5af257a..222d6f4 100644 --- a/sdks/typescript/docs/SuccessResponseAuthModelOut.md +++ b/sdks/typescript/docs/SuccessResponseAuthModelOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [AuthModelOut](AuthModelOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md b/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md index a3bd585..3d4fafa 100644 --- a/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [BatchAccessResponse](BatchAccessResponse.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseDictStrAny.md b/sdks/typescript/docs/SuccessResponseDictStrAny.md index 1efe98a..294fb20 100644 --- a/sdks/typescript/docs/SuccessResponseDictStrAny.md +++ b/sdks/typescript/docs/SuccessResponseDictStrAny.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | { [key: string]: any; } `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseDictStrInt.md b/sdks/typescript/docs/SuccessResponseDictStrInt.md index e80f211..6a291c5 100644 --- a/sdks/typescript/docs/SuccessResponseDictStrInt.md +++ b/sdks/typescript/docs/SuccessResponseDictStrInt.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | { [key: string]: number; } `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseDictStrObject.md b/sdks/typescript/docs/SuccessResponseDictStrObject.md index 6ebd245..60c491f 100644 --- a/sdks/typescript/docs/SuccessResponseDictStrObject.md +++ b/sdks/typescript/docs/SuccessResponseDictStrObject.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | { [key: string]: any; } `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseDictStrStr.md b/sdks/typescript/docs/SuccessResponseDictStrStr.md index df89c39..3a455f8 100644 --- a/sdks/typescript/docs/SuccessResponseDictStrStr.md +++ b/sdks/typescript/docs/SuccessResponseDictStrStr.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | { [key: string]: string; } `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md index 176ddbd..e9a591d 100644 --- a/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [{ [key: string]: DataValue; }](DataValue.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md index 8a075b7..fde9984 100644 --- a/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [ImpactAnalysisResponse](ImpactAnalysisResponse.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseListACLOut.md b/sdks/typescript/docs/SuccessResponseListACLOut.md index 17a9b7c..f4c0172 100644 --- a/sdks/typescript/docs/SuccessResponseListACLOut.md +++ b/sdks/typescript/docs/SuccessResponseListACLOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [Array<ACLOut>](ACLOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md b/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md index bfaaa70..83b45c2 100644 --- a/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [Array<AuditRecordOut>](AuditRecordOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseListDictStrStr.md b/sdks/typescript/docs/SuccessResponseListDictStrStr.md index b1917b1..f02cc86 100644 --- a/sdks/typescript/docs/SuccessResponseListDictStrStr.md +++ b/sdks/typescript/docs/SuccessResponseListDictStrStr.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | Array<{ [key: string]: string; }> `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseListPermissionOut.md b/sdks/typescript/docs/SuccessResponseListPermissionOut.md index 3c15e2e..05718a5 100644 --- a/sdks/typescript/docs/SuccessResponseListPermissionOut.md +++ b/sdks/typescript/docs/SuccessResponseListPermissionOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [Array<PermissionOut>](PermissionOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseListPolicyOut.md b/sdks/typescript/docs/SuccessResponseListPolicyOut.md index 50d770a..51789b9 100644 --- a/sdks/typescript/docs/SuccessResponseListPolicyOut.md +++ b/sdks/typescript/docs/SuccessResponseListPolicyOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [Array<PolicyOut>](PolicyOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseListRoleOut.md b/sdks/typescript/docs/SuccessResponseListRoleOut.md index c906b01..8b9cc87 100644 --- a/sdks/typescript/docs/SuccessResponseListRoleOut.md +++ b/sdks/typescript/docs/SuccessResponseListRoleOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [Array<RoleOut>](RoleOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponsePermissionOut.md b/sdks/typescript/docs/SuccessResponsePermissionOut.md index c855561..7013546 100644 --- a/sdks/typescript/docs/SuccessResponsePermissionOut.md +++ b/sdks/typescript/docs/SuccessResponsePermissionOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [PermissionOut](PermissionOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponsePolicyOut.md b/sdks/typescript/docs/SuccessResponsePolicyOut.md index 64634de..5531b2e 100644 --- a/sdks/typescript/docs/SuccessResponsePolicyOut.md +++ b/sdks/typescript/docs/SuccessResponsePolicyOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [PolicyOut](PolicyOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md b/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md index 7f5f54d..ba88bd7 100644 --- a/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [PolicySimulationResponse](PolicySimulationResponse.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseRelationshipOut.md b/sdks/typescript/docs/SuccessResponseRelationshipOut.md index 8439ff8..350535e 100644 --- a/sdks/typescript/docs/SuccessResponseRelationshipOut.md +++ b/sdks/typescript/docs/SuccessResponseRelationshipOut.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [RelationshipOut](RelationshipOut.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/docs/SuccessResponseSimulationResponse.md b/sdks/typescript/docs/SuccessResponseSimulationResponse.md index 8cf26f9..141ff9a 100644 --- a/sdks/typescript/docs/SuccessResponseSimulationResponse.md +++ b/sdks/typescript/docs/SuccessResponseSimulationResponse.md @@ -8,7 +8,7 @@ Name | Type ------------ | ------------- `data` | [SimulationResponse](SimulationResponse.md) `meta` | [MetaBody](MetaBody.md) -`error` | [Null](Null.md) +`error` | any ## Example diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 5f7132e..4420e8a 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,21 +1,26 @@ { "name": "@keynetra/client", "version": "0.1.1", - "description": "OpenAPI client for @keynetra/client", - "author": "OpenAPI-Generator", + "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", + "license": "Apache-2.0", + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "files": [ + "dist", + "src", + "README.md" + ], + "author": "KeyNetra ", "repository": { "type": "git", - "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" + "url": "git+https://github.com/keynetra/keynetra-client-typescript.git" }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "module": "./dist/esm/index.js", - "sideEffects": false, + "homepage": "https://github.com/keynetra/keynetra-client-typescript", "scripts": { - "build": "tsc && tsc -p tsconfig.esm.json", - "prepare": "npm run build" + "build": "tsc -p tsconfig.json" }, "devDependencies": { - "typescript": "^4.0 || ^5.0" + "typescript": "^5.0.0" } } diff --git a/sdks/typescript/tsconfig.json b/sdks/typescript/tsconfig.json index 250280d..6f11d0e 100644 --- a/sdks/typescript/tsconfig.json +++ b/sdks/typescript/tsconfig.json @@ -1,16 +1,14 @@ { "compilerOptions": { + "target": "ES2022", + "module": "CommonJS", + "moduleResolution": "Node", "declaration": true, - "target": "es6", - "module": "commonjs", - "moduleResolution": "node", "outDir": "dist", - "typeRoots": [ - "node_modules/@types" - ] + "rootDir": "src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true }, - "exclude": [ - "dist", - "node_modules" - ] + "include": ["src/**/*.ts"] } From 5b2b26f29ab0f8b6d83cc81db7ea8f8efc128b11 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 03:01:58 +0530 Subject: [PATCH 17/40] fix: resolve Go syntax and Kotlin serialization errors in SDK generation --- README.md | 161 ++++++++++++++++++++++++---------------- scripts/generate-all.sh | 8 +- 2 files changed, 101 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 323c3c1..5feb4bc 100644 --- a/README.md +++ b/README.md @@ -1,100 +1,131 @@ -# KeyNetra SDKs +
-Official client libraries for the [KeyNetra](https://keynetra.com) authorization platform. +# ๐Ÿ›ก๏ธ KeyNetra SDKs +### High-Performance Distributed Authorization at Your Fingertips -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![OpenAPI](https://img.shields.io/badge/OpenAPI-3.1-green.svg)](https://www.openapis.org/) -[![Status](https://img.shields.io/badge/Status-Production--Ready-brightgreen.svg)]() -KeyNetra is a high-performance, distributed authorization as a service. This repository contains the official SDKs for 10 major programming languages, all generated from the canonical KeyNetra OpenAPI specification. -## ๐Ÿš€ Supported SDKs & Installation +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=for-the-badge)](https://opensource.org/licenses/Apache-2.0) +[![OpenAPI](https://img.shields.io/badge/OpenAPI-3.1-green.svg?style=for-the-badge)](https://www.openapis.org/) +[![Status](https://img.shields.io/badge/Status-Production--Ready-brightgreen.svg?style=for-the-badge)]() +[![Pipeline](https://github.com/keynetra/keynetra-sdks/actions/workflows/release.yml/badge.svg?style=for-the-badge)](https://github.com/keynetra/keynetra-sdks/actions) +[![Releases](https://img.shields.io/github/v/tag/keynetra/keynetra-sdks?label=Latest%20SDK&style=for-the-badge&color=orange)](https://github.com/keynetra/keynetra-sdks/releases) -| Language | Package Name | Installation | -| :--- | :--- | :--- | -| **Python** | `keynetra-client` | `pip install keynetra-client` | -| **TypeScript** | `@keynetra/client` | `npm install @keynetra/client` | -| **Go** | `keynetra-client-go` | `go get github.com/keynetra/keynetra-client-go` | -| **Rust** | `keynetra-client` | `cargo add keynetra-client` | -| **Java** | `keynetra-client` | `...` | -| **C#** | `KeyNetra.Client` | `dotnet add package KeyNetra.Client` | -| **PHP** | `keynetra/client` | `composer require keynetra/client` | -| **Ruby** | `keynetra-client` | `gem install keynetra-client` | -| **Kotlin** | `keynetra-client-kotlin` | `implementation("io.keynetra:keynetra-client-kotlin:0.1.1")` | -| **Swift** | `KeyNetraClient` | `.package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.1")` | +[**KeyNetra Home**](https://keynetra.com) | [**Documentation**](https://docs.keynetra.com) | [**KeyNetra Core**](https://github.com/keynetra/keynetra) -## โœจ Key Features +
-- **Unified Interface**: Normalized `KeyNetraClient` entry point across all languages. -- **Type-Safe**: Full IDE support with generated models and service interfaces. -- **Multi-Auth Support**: Support for both API Key and Bearer Token authentication. -- **Modern Standards**: Built on OpenAPI 3.1 and language-specific best practices. -- **CI/CD Integrated**: Automatically updated whenever the API specification changes. -## ๐Ÿ› ๏ธ Unified Client Usage +
-Every SDK exposes a unified `KeyNetraClient` with a consistent constructor shape, making it easy to switch between languages or use multiple SDKs in a polyglot environment. +### ๐Ÿ›ก๏ธ Why Choose KeyNetra? -```text -KeyNetraClient( - base_url: string, - api_key: string -) -``` +*High-performance, distributed authorization made simple.* + +
+ +

+ +

+ +## ๐ŸŒ The SDK Ecosystem + +KeyNetra is built for the polyglot developer. This repository is the **source of truth** for all 10 official KeyNetra client libraries. Every SDK is generated from our canonical [OpenAPI Specification](openapi/keynetra.yaml) and automatically hardened through our multi-stage CI/CD pipeline. + +### ๐Ÿš€ Quick Directory & Installation -### Example (TypeScript) +| Language | Icon | Dedicated Repository | Installation | +| :--- | :---: | :--- | :--- | +| **Python** | ๐Ÿ | [keynetra-client-python](https://github.com/keynetra/keynetra-client-python) | `pip install keynetra-client` | +| **TypeScript** | ๐Ÿ“˜ | [keynetra-client-typescript](https://github.com/keynetra/keynetra-client-typescript) | `npm install @keynetra/client` | +| **Go** | ๐Ÿน | [keynetra-client-go](https://github.com/keynetra/keynetra-client-go) | `go get github.com/keynetra/keynetra-client-go` | +| **Rust** | ๐Ÿฆ€ | [keynetra-client-rust](https://github.com/keynetra/keynetra-client-rust) | `cargo add keynetra-client` | +| **Java** | โ˜• | [keynetra-client-java](https://github.com/keynetra/keynetra-client-java) | [Maven Central Link]() | +| **C#** | ๐Ÿ’Ž | [keynetra-client-csharp](https://github.com/keynetra/keynetra-client-csharp) | `dotnet add package KeyNetra.Client` | +| **PHP** | ๐Ÿ˜ | [keynetra-client-php](https://github.com/keynetra/keynetra-client-php) | `composer require keynetra/client` | +| **Ruby** | ๐Ÿ’Ž | [keynetra-client-ruby](https://github.com/keynetra/keynetra-client-ruby) | `gem install keynetra-client` | +| **Kotlin** | ๐Ÿ“ฑ | [keynetra-client-kotlin](https://github.com/keynetra/keynetra-client-kotlin) | `implementation("io.keynetra:keynetra-client-kotlin:0.1.1")` | +| **Swift** | ๐ŸŽ | [keynetra-client-swift](https://github.com/keynetra/keynetra-client-swift) | `Swift Package Manager` | + +--- + +## โœจ Professional Features + +
+ +| ๐Ÿš€ Unified Entry | ๐Ÿ›ก๏ธ Type Safety | โšก High Performance | +| :---: | :---: | :---: | +| Single `KeyNetraClient` wrapper for all 10 languages. | Generated models ensure 100% type-safe integration. | Built-in support for high-concurrency auth checks. | + +| ๐Ÿ”‘ Multi-Auth | ๐Ÿ“ฆ Auto-Updated | ๐Ÿงช Battle Tested | +| :---: | :---: | :---: | +| Seamless API Key & JWT/Bearer Token support. | Automatically regenerated on every API change. | Verified against live containers in CI/CD. | + +
+ +--- + +## ๐Ÿ› ๏ธ Unified Client Usage + +Switching between languages is effortless. The `KeyNetraClient` maintains a consistent shape across the entire ecosystem. ```typescript +// Example: Unified Instantiation (TypeScript) import { KeyNetraClient } from "@keynetra/client"; -const client = new KeyNetraClient("https://api.keynetra.com", "your-api-key"); +const client = new KeyNetraClient({ + baseUrl: "https://api.keynetra.com", + apiKey: "kn_live_..." +}); -const decision = await client.defaultApi.checkAccess({ +// Perform an Access Check +const { allowed } = await client.access.checkAccess({ subject: "user:alice", action: "write", resource: "doc:123" }); ``` -## ๐Ÿ—๏ธ Repository Structure +--- + +## ๐Ÿ—๏ธ Repository Architecture ```text keynetra-sdks/ -โ”œโ”€โ”€ openapi/ # Canonical OpenAPI 3.1 Specification -โ”œโ”€โ”€ scripts/ # Generation and packaging automation scripts -โ”œโ”€โ”€ sdks/ # Generated SDK source code (10 languages) -โ”œโ”€โ”€ templates/ # OpenAPI Generator configuration templates -โ””โ”€โ”€ tests/ # Cross-language verification tests +โ”œโ”€โ”€ ๐Ÿ“„ openapi/ # Canonical OpenAPI 3.1 Specification (Source of Truth) +โ”œโ”€โ”€ โš™๏ธ scripts/ # Parallel generation & package hardening automation +โ”œโ”€โ”€ ๐Ÿ“ฆ sdks/ # Generated SDK source code for 10 languages +โ”œโ”€โ”€ ๐ŸŽจ templates/ # Professional language-specific generator templates +โ””โ”€โ”€ ๐Ÿงช tests/ # Cross-language functional verification tests ``` -## ๐Ÿ”„ Development & Release - -### Regenerate SDKs -To regenerate all SDKs from the OpenAPI spec: -```bash -./scripts/generate-all.sh -``` +--- -### Release Flow -1. Update `openapi/keynetra.yaml`. -2. Push to `main` (triggers automatic SDK regeneration). -3. Push a tag `sdk-v*` to trigger multi-registry publication (PyPI, npm, Maven, etc.) and Git mirroring. +## ๐Ÿ Automated Release Pipeline -## ๐Ÿ” CI/CD Secrets +Our release workflow is a professional-grade distribution system that ensures reliability across all registries. -To enable the automated release workflow, the following GitHub Secrets must be configured in this repository: +1. **๐Ÿ—๏ธ Build**: 10 SDKs generated in parallel using `swift6`, `go 1.23`, and modern toolchains. +2. **๐Ÿงช Pre-Publish**: Local artifacts are verified against a live `keynetra` service container. +3. **๐Ÿš€ Publish**: Verified code is pushed to **PyPI, npm, NuGet, crates.io, Maven**, and mirrored to dedicated repos. +4. **๐Ÿ Post-Publish**: Public packages are downloaded and re-verified to ensure zero-day installation success. -- `SDK_MIRROR_TOKEN`: A GitHub PAT with `repo` scope to push to dedicated SDK repositories. -- `PYPI_API_TOKEN`: For publishing the Python SDK. -- `NPM_TOKEN`: For publishing the TypeScript SDK. -- `MAVEN_USERNAME` / `MAVEN_PASSWORD`: For Java distribution. -- `CARGO_REGISTRY_TOKEN`: For Rust crates.io distribution. -- `NUGET_API_KEY`: For C# NuGet distribution. -- `RUBYGEMS_API_KEY`: For RubyGem distribution. +--- -## ๐Ÿ“„ License +## ๐Ÿค Related Repositories -This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details. +- [**KeyNetra Core**](https://github.com/keynetra/keynetra): The high-performance authorization engine itself. +- [**KeyNetra Dashboard**](https://github.com/keynetra/dashboard): Manage policies, keys, and audit logs visually. +- [**KeyNetra Examples**](https://github.com/keynetra/examples): Sample integrations for various frameworks. --- -ยฉ 2024 KeyNetra Engineering. All rights reserved. + +
+ +### ๐Ÿ“„ License +This project is licensed under the **Apache-2.0 License**. + +**ยฉ 2024 KeyNetra Engineering. All rights reserved.** +*Empowering developers with distributed authorization.* + +
diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 8b3f941..73972dd 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -116,12 +116,13 @@ generate_sdk_go() { mkdir -p "${output_dir}" # Go-specific mappings and flags to handle anyOf and untyped fields + # Using interface{} instead of any to avoid composite literal issues if openapi-generator-cli generate \ -i "${SPEC_FILE}" \ -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=interface{},object=interface{} \ + --type-mappings=null=interface{},object=interface{},AnyOf=interface{},OneOf=interface{} \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" @@ -144,13 +145,14 @@ generate_sdk_kotlin() { rm -rf "${output_dir}" mkdir -p "${output_dir}" - # Kotlin-specific mappings to handle @Contextual for Any? + # Kotlin-specific mappings to handle serialization of Any types + # Using kotlinx.serialization.json.JsonElement for better compatibility with KMP if openapi-generator-cli generate \ -i "${SPEC_FILE}" \ -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=kotlin.Any,Any=kotlin.Any,object=kotlin.Any \ + --type-mappings=null=kotlinx.serialization.json.JsonElement,Any=kotlinx.serialization.json.JsonElement,object=kotlinx.serialization.json.JsonElement \ --additional-properties=enumPropertyNaming=original,library=multiplatform \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." From 9f89e76f010013f04bea9a42d515c65a73fc8bfb Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 03:15:09 +0530 Subject: [PATCH 18/40] fix: resolve Go syntax and Kotlin serialization errors via generator config --- .github/workflows/release.yml | 3 ++- scripts/generate-all.sh | 10 +++++++--- scripts/prepare-packages.sh | 26 +++++++++++++++++++++----- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8037e4..aa76fc7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -171,6 +171,7 @@ jobs: if: matrix.id == 'go' run: | cd sdks/go + go mod init github.com/keynetra/keynetra-client-go || true go mod tidy go build ./... @@ -219,7 +220,7 @@ jobs: run: | cd sdks/kotlin chmod +x ./gradlew - ./gradlew build + ./gradlew build --stacktrace - name: ๐ŸŽ Test Swift (Local) if: matrix.id == 'swift' diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 73972dd..5345f61 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -117,12 +117,14 @@ generate_sdk_go() { # Go-specific mappings and flags to handle anyOf and untyped fields # Using interface{} instead of any to avoid composite literal issues + # We use disallowAdditionalPropertiesIfNotPresent=false to avoid syntax errors with unexpected fields if openapi-generator-cli generate \ -i "${SPEC_FILE}" \ -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=interface{},object=interface{},AnyOf=interface{},OneOf=interface{} \ + --type-mappings=null=interface{},object=interface{},any=interface{},Any=interface{},AnyOf=interface{},OneOf=interface{} \ + --additional-properties=disallowAdditionalPropertiesIfNotPresent=false \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" @@ -147,13 +149,15 @@ generate_sdk_kotlin() { # Kotlin-specific mappings to handle serialization of Any types # Using kotlinx.serialization.json.JsonElement for better compatibility with KMP + # We also add import mappings to ensure the generator knows where JsonElement comes from if openapi-generator-cli generate \ -i "${SPEC_FILE}" \ -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=kotlinx.serialization.json.JsonElement,Any=kotlinx.serialization.json.JsonElement,object=kotlinx.serialization.json.JsonElement \ - --additional-properties=enumPropertyNaming=original,library=multiplatform \ + --type-mappings=null=kotlinx.serialization.json.JsonElement,Any=kotlinx.serialization.json.JsonElement,object=kotlinx.serialization.json.JsonElement,JsonElement=kotlinx.serialization.json.JsonElement \ + --import-mappings=JsonElement=kotlinx.serialization.json.JsonElement \ + --additional-properties=enumPropertyNaming=original,library=multiplatform,serializationLibrary=kotlinx-serialization \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 8db8f93..216c252 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -162,10 +162,10 @@ prepare_typescript() { generate_readme "TypeScript" "@keynetra/client" "npm install @keynetra/client" "import { KeyNetraClient } from \"@keynetra/client\"; -const client = new KeyNetraClient( - \"http://localhost:8080\", - \"YOUR_API_KEY\" -); +const client = new KeyNetraClient({ + baseUrl: \"http://localhost:8080\", + apiKey: \"YOUR_API_KEY\" +}); // Perform an access check const decision = await client.access.checkAccess({ @@ -259,8 +259,11 @@ export class KeyNetraClient { EOF # Ensure the wrapper is exported in the main index + # We use a temporary file to avoid issues with concurrent reads/writes if [ -f "${ROOT_DIR}/sdks/typescript/src/index.ts" ]; then - echo "export * from './keynetra-client';" >> "${ROOT_DIR}/sdks/typescript/src/index.ts" + if ! grep -q "keynetra-client" "${ROOT_DIR}/sdks/typescript/src/index.ts"; then + echo "export * from './keynetra-client';" >> "${ROOT_DIR}/sdks/typescript/src/index.ts" + fi fi } @@ -582,6 +585,19 @@ prepare_kotlin() { if [ -f "${ROOT_DIR}/sdks/kotlin/gradlew" ]; then chmod +x "${ROOT_DIR}/sdks/kotlin/gradlew" fi + + # Add missing kotlinx-serialization-json dependency to build.gradle.kts + if [ -f "${ROOT_DIR}/sdks/kotlin/build.gradle.kts" ]; then + if ! grep -q "kotlinx-serialization-json" "${ROOT_DIR}/sdks/kotlin/build.gradle.kts"; then + # Find the dependencies block or a similar serialization core line + perl -i -pe 's/(implementation\("org.jetbrains.kotlinx:kotlinx-serialization-core:\$serialization_version"\))/$1\n implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:\$serialization_version")/' "${ROOT_DIR}/sdks/kotlin/build.gradle.kts" + fi + # Also ensure the serialization plugin is applied if missing + if ! grep -q "plugin.serialization" "${ROOT_DIR}/sdks/kotlin/build.gradle.kts"; then + perl -i -pe 's/(kotlin\("multiplatform"\))/$1\n kotlin("plugin.serialization") version "1.9.21"/' "${ROOT_DIR}/sdks/kotlin/build.gradle.kts" + fi + fi + generate_readme "Kotlin" "keynetra-client-kotlin" "implementation(\"io.keynetra:keynetra-client-kotlin:${SDK_VERSION}\")" "import io.keynetra.client.KeyNetraClient val client = KeyNetraClient( From 5be65ccb8df410be54af4d6c8767633b58c34872 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 03:22:38 +0530 Subject: [PATCH 19/40] fix: resolve Go syntax and Kotlin serialization errors via generator config --- scripts/generate-all.sh | 2 +- sdks/csharp/KeyNetra.Client.sln | 10 +++--- sdks/go/model_access_decision_response.go | 24 +++++++++++--- sdks/go/model_access_request.go | 23 ++++++++++--- sdks/go/model_acl_create.go | 23 ++++++++++--- sdks/go/model_acl_out.go | 26 ++++++++++++--- sdks/go/model_admin_login_request.go | 19 ++++++++--- sdks/go/model_admin_login_response.go | 22 ++++++++++--- sdks/go/model_audit_record_out.go | 30 ++++++++++++++--- sdks/go/model_auth_model_create.go | 18 ++++++++--- sdks/go/model_auth_model_out.go | 22 ++++++++++--- sdks/go/model_batch_access_item.go | 19 ++++++++--- sdks/go/model_batch_access_request.go | 21 +++++++++--- sdks/go/model_batch_access_response.go | 19 ++++++++--- sdks/go/model_batch_access_result.go | 20 +++++++++--- sdks/go/model_http_validation_error.go | 29 +++++++++++++++++ sdks/go/model_impact_analysis_request.go | 18 ++++++++--- sdks/go/model_impact_analysis_response.go | 30 +++++++++++++++++ sdks/go/model_meta_body.go | 32 +++++++++++++++++++ sdks/go/model_permission_create.go | 18 ++++++++--- sdks/go/model_permission_out.go | 19 ++++++++--- sdks/go/model_permission_update.go | 18 ++++++++--- sdks/go/model_playground_evaluate_request.go | 19 ++++++++--- sdks/go/model_playground_input.go | 32 +++++++++++++++++++ sdks/go/model_playground_policy.go | 22 ++++++++++--- sdks/go/model_policy_create.go | 22 ++++++++++--- sdks/go/model_policy_out.go | 23 ++++++++++--- sdks/go/model_policy_simulation_input.go | 31 ++++++++++++++++++ sdks/go/model_policy_simulation_request.go | 30 +++++++++++++++++ sdks/go/model_policy_simulation_response.go | 19 ++++++++--- sdks/go/model_relationship_create.go | 22 ++++++++++--- sdks/go/model_relationship_out.go | 23 ++++++++++--- sdks/go/model_role_create.go | 18 ++++++++--- sdks/go/model_role_out.go | 19 ++++++++--- sdks/go/model_role_update.go | 18 ++++++++--- sdks/go/model_simulation_response.go | 24 +++++++++++--- ...cess_response_access_decision_response_.go | 20 +++++++++--- sdks/go/model_success_response_acl_out_.go | 20 +++++++++--- ..._success_response_admin_login_response_.go | 20 +++++++++--- .../model_success_response_auth_model_out_.go | 20 +++++++++--- ...success_response_batch_access_response_.go | 20 +++++++++--- .../model_success_response_dict_str__any__.go | 20 +++++++++--- .../model_success_response_dict_str__int__.go | 20 +++++++++--- ...del_success_response_dict_str__object__.go | 20 +++++++++--- .../model_success_response_dict_str__str__.go | 20 +++++++++--- ...ss_response_dict_str__union_int__str___.go | 20 +++++++++--- ...cess_response_impact_analysis_response_.go | 20 +++++++++--- .../model_success_response_list_acl_out__.go | 20 +++++++++--- ...uccess_response_list_audit_record_out__.go | 20 +++++++++--- ..._success_response_list_dict_str__str___.go | 20 +++++++++--- ..._success_response_list_permission_out__.go | 20 +++++++++--- ...odel_success_response_list_policy_out__.go | 20 +++++++++--- .../model_success_response_list_role_out__.go | 20 +++++++++--- .../model_success_response_permission_out_.go | 20 +++++++++--- sdks/go/model_success_response_policy_out_.go | 20 +++++++++--- ...ss_response_policy_simulation_response_.go | 20 +++++++++--- ...odel_success_response_relationship_out_.go | 20 +++++++++--- ...l_success_response_simulation_response_.go | 20 +++++++++--- sdks/go/model_validation_error.go | 22 ++++++++++--- sdks/kotlin/build.gradle.kts | 1 + sdks/kotlin/docs/SuccessResponseACLOut.md | 2 +- .../SuccessResponseAccessDecisionResponse.md | 2 +- .../docs/SuccessResponseAdminLoginResponse.md | 2 +- .../docs/SuccessResponseAuthModelOut.md | 2 +- .../SuccessResponseBatchAccessResponse.md | 2 +- sdks/kotlin/docs/SuccessResponseDictStrAny.md | 2 +- sdks/kotlin/docs/SuccessResponseDictStrInt.md | 2 +- .../docs/SuccessResponseDictStrObject.md | 2 +- sdks/kotlin/docs/SuccessResponseDictStrStr.md | 2 +- .../docs/SuccessResponseDictStrUnionIntStr.md | 2 +- .../SuccessResponseImpactAnalysisResponse.md | 2 +- sdks/kotlin/docs/SuccessResponseListACLOut.md | 2 +- .../docs/SuccessResponseListAuditRecordOut.md | 2 +- .../docs/SuccessResponseListDictStrStr.md | 2 +- .../docs/SuccessResponseListPermissionOut.md | 2 +- .../docs/SuccessResponseListPolicyOut.md | 2 +- .../kotlin/docs/SuccessResponseListRoleOut.md | 2 +- .../docs/SuccessResponsePermissionOut.md | 2 +- sdks/kotlin/docs/SuccessResponsePolicyOut.md | 2 +- ...SuccessResponsePolicySimulationResponse.md | 2 +- .../docs/SuccessResponseRelationshipOut.md | 2 +- .../docs/SuccessResponseSimulationResponse.md | 2 +- sdks/kotlin/docs/ValidationError.md | 2 +- sdks/typescript/README.md | 8 ++--- 84 files changed, 1064 insertions(+), 237 deletions(-) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 5345f61..a0a3dac 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -157,7 +157,7 @@ generate_sdk_kotlin() { -c "${config_file}" \ --type-mappings=null=kotlinx.serialization.json.JsonElement,Any=kotlinx.serialization.json.JsonElement,object=kotlinx.serialization.json.JsonElement,JsonElement=kotlinx.serialization.json.JsonElement \ --import-mappings=JsonElement=kotlinx.serialization.json.JsonElement \ - --additional-properties=enumPropertyNaming=original,library=multiplatform,serializationLibrary=kotlinx-serialization \ +--additional-properties=enumPropertyNaming=original,library=multiplatform,serializationLibrary=kotlinx_serialization \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." rm -f "${log_file}" diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln index 4a6f260..2eec445 100644 --- a/sdks/csharp/KeyNetra.Client.sln +++ b/sdks/csharp/KeyNetra.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{50DF9BBB-96B8-469C-8C82-45A003981807}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {269FA50D-79E0-4460-9CA6-4B9EEAB3CE0F}.Release|Any CPU.Build.0 = Release|Any CPU + {50DF9BBB-96B8-469C-8C82-45A003981807}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {50DF9BBB-96B8-469C-8C82-45A003981807}.Debug|Any CPU.Build.0 = Debug|Any CPU + {50DF9BBB-96B8-469C-8C82-45A003981807}.Release|Any CPU.ActiveCfg = Release|Any CPU + {50DF9BBB-96B8-469C-8C82-45A003981807}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/sdks/go/model_access_decision_response.go b/sdks/go/model_access_decision_response.go index 2948d7b..7760978 100644 --- a/sdks/go/model_access_decision_response.go +++ b/sdks/go/model_access_decision_response.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -28,6 +27,7 @@ type AccessDecisionResponse struct { PolicyId NullableString `json:"policy_id,omitempty"` ExplainTrace []map[string]interface{} `json:"explain_trace,omitempty"` Revision NullableInt32 `json:"revision,omitempty"` + AdditionalProperties map[string]interface{} } type _AccessDecisionResponse AccessDecisionResponse @@ -316,6 +316,11 @@ func (o AccessDecisionResponse) ToMap() (map[string]interface{}, error) { if o.Revision.IsSet() { toSerialize["revision"] = o.Revision.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -344,9 +349,7 @@ func (o *AccessDecisionResponse) UnmarshalJSON(data []byte) (err error) { varAccessDecisionResponse := _AccessDecisionResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccessDecisionResponse) + err = json.Unmarshal(data, &varAccessDecisionResponse) if err != nil { return err @@ -354,6 +357,19 @@ func (o *AccessDecisionResponse) UnmarshalJSON(data []byte) (err error) { *o = AccessDecisionResponse(varAccessDecisionResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "allowed") + delete(additionalProperties, "decision") + delete(additionalProperties, "matched_policies") + delete(additionalProperties, "reason") + delete(additionalProperties, "policy_id") + delete(additionalProperties, "explain_trace") + delete(additionalProperties, "revision") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_access_request.go b/sdks/go/model_access_request.go index ac89c8e..3899bd1 100644 --- a/sdks/go/model_access_request.go +++ b/sdks/go/model_access_request.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -27,6 +26,7 @@ type AccessRequest struct { Context map[string]interface{} `json:"context,omitempty"` Consistency *string `json:"consistency,omitempty"` Revision NullableInt32 `json:"revision,omitempty"` + AdditionalProperties map[string]interface{} } type _AccessRequest AccessRequest @@ -273,6 +273,11 @@ func (o AccessRequest) ToMap() (map[string]interface{}, error) { if o.Revision.IsSet() { toSerialize["revision"] = o.Revision.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -300,9 +305,7 @@ func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { varAccessRequest := _AccessRequest{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccessRequest) + err = json.Unmarshal(data, &varAccessRequest) if err != nil { return err @@ -310,6 +313,18 @@ func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { *o = AccessRequest(varAccessRequest) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "user") + delete(additionalProperties, "action") + delete(additionalProperties, "resource") + delete(additionalProperties, "context") + delete(additionalProperties, "consistency") + delete(additionalProperties, "revision") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_acl_create.go b/sdks/go/model_acl_create.go index 57e3ce8..ef96a82 100644 --- a/sdks/go/model_acl_create.go +++ b/sdks/go/model_acl_create.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -27,6 +26,7 @@ type ACLCreate struct { ResourceId string `json:"resource_id"` Action string `json:"action"` Effect string `json:"effect"` + AdditionalProperties map[string]interface{} } type _ACLCreate ACLCreate @@ -214,6 +214,11 @@ func (o ACLCreate) ToMap() (map[string]interface{}, error) { toSerialize["resource_id"] = o.ResourceId toSerialize["action"] = o.Action toSerialize["effect"] = o.Effect + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -246,9 +251,7 @@ func (o *ACLCreate) UnmarshalJSON(data []byte) (err error) { varACLCreate := _ACLCreate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varACLCreate) + err = json.Unmarshal(data, &varACLCreate) if err != nil { return err @@ -256,6 +259,18 @@ func (o *ACLCreate) UnmarshalJSON(data []byte) (err error) { *o = ACLCreate(varACLCreate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "subject_type") + delete(additionalProperties, "subject_id") + delete(additionalProperties, "resource_type") + delete(additionalProperties, "resource_id") + delete(additionalProperties, "action") + delete(additionalProperties, "effect") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_acl_out.go b/sdks/go/model_acl_out.go index 824ec34..b6444d0 100644 --- a/sdks/go/model_acl_out.go +++ b/sdks/go/model_acl_out.go @@ -13,7 +13,6 @@ package keynetra import ( "encoding/json" "time" - "bytes" "fmt" ) @@ -31,6 +30,7 @@ type ACLOut struct { Id int32 `json:"id"` TenantId int32 `json:"tenant_id"` CreatedAt NullableTime `json:"created_at,omitempty"` + AdditionalProperties map[string]interface{} } type _ACLOut ACLOut @@ -315,6 +315,11 @@ func (o ACLOut) ToMap() (map[string]interface{}, error) { if o.CreatedAt.IsSet() { toSerialize["created_at"] = o.CreatedAt.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -349,9 +354,7 @@ func (o *ACLOut) UnmarshalJSON(data []byte) (err error) { varACLOut := _ACLOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varACLOut) + err = json.Unmarshal(data, &varACLOut) if err != nil { return err @@ -359,6 +362,21 @@ func (o *ACLOut) UnmarshalJSON(data []byte) (err error) { *o = ACLOut(varACLOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "subject_type") + delete(additionalProperties, "subject_id") + delete(additionalProperties, "resource_type") + delete(additionalProperties, "resource_id") + delete(additionalProperties, "action") + delete(additionalProperties, "effect") + delete(additionalProperties, "id") + delete(additionalProperties, "tenant_id") + delete(additionalProperties, "created_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_admin_login_request.go b/sdks/go/model_admin_login_request.go index d1b1e8d..d33b112 100644 --- a/sdks/go/model_admin_login_request.go +++ b/sdks/go/model_admin_login_request.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &AdminLoginRequest{} type AdminLoginRequest struct { Username string `json:"username"` Password string `json:"password"` + AdditionalProperties map[string]interface{} } type _AdminLoginRequest AdminLoginRequest @@ -106,6 +106,11 @@ func (o AdminLoginRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["username"] = o.Username toSerialize["password"] = o.Password + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -134,9 +139,7 @@ func (o *AdminLoginRequest) UnmarshalJSON(data []byte) (err error) { varAdminLoginRequest := _AdminLoginRequest{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAdminLoginRequest) + err = json.Unmarshal(data, &varAdminLoginRequest) if err != nil { return err @@ -144,6 +147,14 @@ func (o *AdminLoginRequest) UnmarshalJSON(data []byte) (err error) { *o = AdminLoginRequest(varAdminLoginRequest) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "password") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_admin_login_response.go b/sdks/go/model_admin_login_response.go index f4bf410..b652c26 100644 --- a/sdks/go/model_admin_login_response.go +++ b/sdks/go/model_admin_login_response.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -26,6 +25,7 @@ type AdminLoginResponse struct { ExpiresIn int32 `json:"expires_in"` Role *string `json:"role,omitempty"` TenantKey string `json:"tenant_key"` + AdditionalProperties map[string]interface{} } type _AdminLoginResponse AdminLoginResponse @@ -213,6 +213,11 @@ func (o AdminLoginResponse) ToMap() (map[string]interface{}, error) { toSerialize["role"] = o.Role } toSerialize["tenant_key"] = o.TenantKey + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -242,9 +247,7 @@ func (o *AdminLoginResponse) UnmarshalJSON(data []byte) (err error) { varAdminLoginResponse := _AdminLoginResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAdminLoginResponse) + err = json.Unmarshal(data, &varAdminLoginResponse) if err != nil { return err @@ -252,6 +255,17 @@ func (o *AdminLoginResponse) UnmarshalJSON(data []byte) (err error) { *o = AdminLoginResponse(varAdminLoginResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_token") + delete(additionalProperties, "token_type") + delete(additionalProperties, "expires_in") + delete(additionalProperties, "role") + delete(additionalProperties, "tenant_key") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_audit_record_out.go b/sdks/go/model_audit_record_out.go index ed8430c..7ee99da 100644 --- a/sdks/go/model_audit_record_out.go +++ b/sdks/go/model_audit_record_out.go @@ -13,7 +13,6 @@ package keynetra import ( "encoding/json" "time" - "bytes" "fmt" ) @@ -35,6 +34,7 @@ type AuditRecordOut struct { EvaluatedRules []interface{} `json:"evaluated_rules"` FailedConditions []interface{} `json:"failed_conditions"` CreatedAt time.Time `json:"created_at"` + AdditionalProperties map[string]interface{} } type _AuditRecordOut AuditRecordOut @@ -442,6 +442,11 @@ func (o AuditRecordOut) ToMap() (map[string]interface{}, error) { toSerialize["evaluated_rules"] = o.EvaluatedRules toSerialize["failed_conditions"] = o.FailedConditions toSerialize["created_at"] = o.CreatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -479,9 +484,7 @@ func (o *AuditRecordOut) UnmarshalJSON(data []byte) (err error) { varAuditRecordOut := _AuditRecordOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAuditRecordOut) + err = json.Unmarshal(data, &varAuditRecordOut) if err != nil { return err @@ -489,6 +492,25 @@ func (o *AuditRecordOut) UnmarshalJSON(data []byte) (err error) { *o = AuditRecordOut(varAuditRecordOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "principal_type") + delete(additionalProperties, "principal_id") + delete(additionalProperties, "correlation_id") + delete(additionalProperties, "user") + delete(additionalProperties, "action") + delete(additionalProperties, "resource") + delete(additionalProperties, "decision") + delete(additionalProperties, "matched_policies") + delete(additionalProperties, "reason") + delete(additionalProperties, "evaluated_rules") + delete(additionalProperties, "failed_conditions") + delete(additionalProperties, "created_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_auth_model_create.go b/sdks/go/model_auth_model_create.go index c1bf1a3..8d49dd0 100644 --- a/sdks/go/model_auth_model_create.go +++ b/sdks/go/model_auth_model_create.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -22,6 +21,7 @@ var _ MappedNullable = &AuthModelCreate{} // AuthModelCreate struct for AuthModelCreate type AuthModelCreate struct { Schema string `json:"schema"` + AdditionalProperties map[string]interface{} } type _AuthModelCreate AuthModelCreate @@ -79,6 +79,11 @@ func (o AuthModelCreate) MarshalJSON() ([]byte, error) { func (o AuthModelCreate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["schema"] = o.Schema + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -106,9 +111,7 @@ func (o *AuthModelCreate) UnmarshalJSON(data []byte) (err error) { varAuthModelCreate := _AuthModelCreate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAuthModelCreate) + err = json.Unmarshal(data, &varAuthModelCreate) if err != nil { return err @@ -116,6 +119,13 @@ func (o *AuthModelCreate) UnmarshalJSON(data []byte) (err error) { *o = AuthModelCreate(varAuthModelCreate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "schema") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_auth_model_out.go b/sdks/go/model_auth_model_out.go index fe0709e..a828fd2 100644 --- a/sdks/go/model_auth_model_out.go +++ b/sdks/go/model_auth_model_out.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -26,6 +25,7 @@ type AuthModelOut struct { Schema string `json:"schema"` Parsed map[string]interface{} `json:"parsed"` Compiled map[string]interface{} `json:"compiled"` + AdditionalProperties map[string]interface{} } type _AuthModelOut AuthModelOut @@ -187,6 +187,11 @@ func (o AuthModelOut) ToMap() (map[string]interface{}, error) { toSerialize["schema"] = o.Schema toSerialize["parsed"] = o.Parsed toSerialize["compiled"] = o.Compiled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -218,9 +223,7 @@ func (o *AuthModelOut) UnmarshalJSON(data []byte) (err error) { varAuthModelOut := _AuthModelOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAuthModelOut) + err = json.Unmarshal(data, &varAuthModelOut) if err != nil { return err @@ -228,6 +231,17 @@ func (o *AuthModelOut) UnmarshalJSON(data []byte) (err error) { *o = AuthModelOut(varAuthModelOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "tenant_id") + delete(additionalProperties, "schema") + delete(additionalProperties, "parsed") + delete(additionalProperties, "compiled") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_batch_access_item.go b/sdks/go/model_batch_access_item.go index 1bfc1dc..bb1f7a0 100644 --- a/sdks/go/model_batch_access_item.go +++ b/sdks/go/model_batch_access_item.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &BatchAccessItem{} type BatchAccessItem struct { Action string `json:"action"` Resource map[string]interface{} `json:"resource,omitempty"` + AdditionalProperties map[string]interface{} } type _BatchAccessItem BatchAccessItem @@ -115,6 +115,11 @@ func (o BatchAccessItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.Resource) { toSerialize["resource"] = o.Resource } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -142,9 +147,7 @@ func (o *BatchAccessItem) UnmarshalJSON(data []byte) (err error) { varBatchAccessItem := _BatchAccessItem{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varBatchAccessItem) + err = json.Unmarshal(data, &varBatchAccessItem) if err != nil { return err @@ -152,6 +155,14 @@ func (o *BatchAccessItem) UnmarshalJSON(data []byte) (err error) { *o = BatchAccessItem(varBatchAccessItem) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "resource") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_batch_access_request.go b/sdks/go/model_batch_access_request.go index 5347ab4..1989e44 100644 --- a/sdks/go/model_batch_access_request.go +++ b/sdks/go/model_batch_access_request.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -25,6 +24,7 @@ type BatchAccessRequest struct { Items []BatchAccessItem `json:"items"` Consistency *string `json:"consistency,omitempty"` Revision NullableInt32 `json:"revision,omitempty"` + AdditionalProperties map[string]interface{} } type _BatchAccessRequest BatchAccessRequest @@ -201,6 +201,11 @@ func (o BatchAccessRequest) ToMap() (map[string]interface{}, error) { if o.Revision.IsSet() { toSerialize["revision"] = o.Revision.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -228,9 +233,7 @@ func (o *BatchAccessRequest) UnmarshalJSON(data []byte) (err error) { varBatchAccessRequest := _BatchAccessRequest{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varBatchAccessRequest) + err = json.Unmarshal(data, &varBatchAccessRequest) if err != nil { return err @@ -238,6 +241,16 @@ func (o *BatchAccessRequest) UnmarshalJSON(data []byte) (err error) { *o = BatchAccessRequest(varBatchAccessRequest) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "user") + delete(additionalProperties, "items") + delete(additionalProperties, "consistency") + delete(additionalProperties, "revision") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_batch_access_response.go b/sdks/go/model_batch_access_response.go index e0e2286..222d841 100644 --- a/sdks/go/model_batch_access_response.go +++ b/sdks/go/model_batch_access_response.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &BatchAccessResponse{} type BatchAccessResponse struct { Results []BatchAccessResult `json:"results"` Revision NullableInt32 `json:"revision,omitempty"` + AdditionalProperties map[string]interface{} } type _BatchAccessResponse BatchAccessResponse @@ -125,6 +125,11 @@ func (o BatchAccessResponse) ToMap() (map[string]interface{}, error) { if o.Revision.IsSet() { toSerialize["revision"] = o.Revision.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -152,9 +157,7 @@ func (o *BatchAccessResponse) UnmarshalJSON(data []byte) (err error) { varBatchAccessResponse := _BatchAccessResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varBatchAccessResponse) + err = json.Unmarshal(data, &varBatchAccessResponse) if err != nil { return err @@ -162,6 +165,14 @@ func (o *BatchAccessResponse) UnmarshalJSON(data []byte) (err error) { *o = BatchAccessResponse(varBatchAccessResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + delete(additionalProperties, "revision") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_batch_access_result.go b/sdks/go/model_batch_access_result.go index 10054b6..94a4334 100644 --- a/sdks/go/model_batch_access_result.go +++ b/sdks/go/model_batch_access_result.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type BatchAccessResult struct { Action string `json:"action"` Allowed bool `json:"allowed"` Revision NullableInt32 `json:"revision,omitempty"` + AdditionalProperties map[string]interface{} } type _BatchAccessResult BatchAccessResult @@ -152,6 +152,11 @@ func (o BatchAccessResult) ToMap() (map[string]interface{}, error) { if o.Revision.IsSet() { toSerialize["revision"] = o.Revision.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -180,9 +185,7 @@ func (o *BatchAccessResult) UnmarshalJSON(data []byte) (err error) { varBatchAccessResult := _BatchAccessResult{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varBatchAccessResult) + err = json.Unmarshal(data, &varBatchAccessResult) if err != nil { return err @@ -190,6 +193,15 @@ func (o *BatchAccessResult) UnmarshalJSON(data []byte) (err error) { *o = BatchAccessResult(varBatchAccessResult) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allowed") + delete(additionalProperties, "revision") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_http_validation_error.go b/sdks/go/model_http_validation_error.go index 6bad133..9f2de5e 100644 --- a/sdks/go/model_http_validation_error.go +++ b/sdks/go/model_http_validation_error.go @@ -20,8 +20,11 @@ var _ MappedNullable = &HTTPValidationError{} // HTTPValidationError struct for HTTPValidationError type HTTPValidationError struct { Detail []ValidationError `json:"detail,omitempty"` + AdditionalProperties map[string]interface{} } +type _HTTPValidationError HTTPValidationError + // NewHTTPValidationError instantiates a new HTTPValidationError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o HTTPValidationError) ToMap() (map[string]interface{}, error) { if !IsNil(o.Detail) { toSerialize["detail"] = o.Detail } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HTTPValidationError) UnmarshalJSON(data []byte) (err error) { + varHTTPValidationError := _HTTPValidationError{} + + err = json.Unmarshal(data, &varHTTPValidationError) + + if err != nil { + return err + } + + *o = HTTPValidationError(varHTTPValidationError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "detail") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHTTPValidationError struct { value *HTTPValidationError isSet bool diff --git a/sdks/go/model_impact_analysis_request.go b/sdks/go/model_impact_analysis_request.go index 077a252..8aa4989 100644 --- a/sdks/go/model_impact_analysis_request.go +++ b/sdks/go/model_impact_analysis_request.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -22,6 +21,7 @@ var _ MappedNullable = &ImpactAnalysisRequest{} // ImpactAnalysisRequest struct for ImpactAnalysisRequest type ImpactAnalysisRequest struct { PolicyChange string `json:"policy_change"` + AdditionalProperties map[string]interface{} } type _ImpactAnalysisRequest ImpactAnalysisRequest @@ -79,6 +79,11 @@ func (o ImpactAnalysisRequest) MarshalJSON() ([]byte, error) { func (o ImpactAnalysisRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["policy_change"] = o.PolicyChange + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -106,9 +111,7 @@ func (o *ImpactAnalysisRequest) UnmarshalJSON(data []byte) (err error) { varImpactAnalysisRequest := _ImpactAnalysisRequest{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varImpactAnalysisRequest) + err = json.Unmarshal(data, &varImpactAnalysisRequest) if err != nil { return err @@ -116,6 +119,13 @@ func (o *ImpactAnalysisRequest) UnmarshalJSON(data []byte) (err error) { *o = ImpactAnalysisRequest(varImpactAnalysisRequest) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "policy_change") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_impact_analysis_response.go b/sdks/go/model_impact_analysis_response.go index ac74446..14b4a0d 100644 --- a/sdks/go/model_impact_analysis_response.go +++ b/sdks/go/model_impact_analysis_response.go @@ -21,8 +21,11 @@ var _ MappedNullable = &ImpactAnalysisResponse{} type ImpactAnalysisResponse struct { GainedAccess []int32 `json:"gained_access,omitempty"` LostAccess []int32 `json:"lost_access,omitempty"` + AdditionalProperties map[string]interface{} } +type _ImpactAnalysisResponse ImpactAnalysisResponse + // NewImpactAnalysisResponse instantiates a new ImpactAnalysisResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ImpactAnalysisResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.LostAccess) { toSerialize["lost_access"] = o.LostAccess } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ImpactAnalysisResponse) UnmarshalJSON(data []byte) (err error) { + varImpactAnalysisResponse := _ImpactAnalysisResponse{} + + err = json.Unmarshal(data, &varImpactAnalysisResponse) + + if err != nil { + return err + } + + *o = ImpactAnalysisResponse(varImpactAnalysisResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "gained_access") + delete(additionalProperties, "lost_access") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableImpactAnalysisResponse struct { value *ImpactAnalysisResponse isSet bool diff --git a/sdks/go/model_meta_body.go b/sdks/go/model_meta_body.go index 0dd4bd0..db07aca 100644 --- a/sdks/go/model_meta_body.go +++ b/sdks/go/model_meta_body.go @@ -23,8 +23,11 @@ type MetaBody struct { Limit NullableInt32 `json:"limit,omitempty"` NextCursor NullableString `json:"next_cursor,omitempty"` Extra map[string]interface{} `json:"extra,omitempty"` + AdditionalProperties map[string]interface{} } +type _MetaBody MetaBody + // NewMetaBody instantiates a new MetaBody object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -222,9 +225,38 @@ func (o MetaBody) ToMap() (map[string]interface{}, error) { if !IsNil(o.Extra) { toSerialize["extra"] = o.Extra } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *MetaBody) UnmarshalJSON(data []byte) (err error) { + varMetaBody := _MetaBody{} + + err = json.Unmarshal(data, &varMetaBody) + + if err != nil { + return err + } + + *o = MetaBody(varMetaBody) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "request_id") + delete(additionalProperties, "limit") + delete(additionalProperties, "next_cursor") + delete(additionalProperties, "extra") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableMetaBody struct { value *MetaBody isSet bool diff --git a/sdks/go/model_permission_create.go b/sdks/go/model_permission_create.go index 08475dc..e28009f 100644 --- a/sdks/go/model_permission_create.go +++ b/sdks/go/model_permission_create.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -22,6 +21,7 @@ var _ MappedNullable = &PermissionCreate{} // PermissionCreate struct for PermissionCreate type PermissionCreate struct { Action string `json:"action"` + AdditionalProperties map[string]interface{} } type _PermissionCreate PermissionCreate @@ -79,6 +79,11 @@ func (o PermissionCreate) MarshalJSON() ([]byte, error) { func (o PermissionCreate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["action"] = o.Action + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -106,9 +111,7 @@ func (o *PermissionCreate) UnmarshalJSON(data []byte) (err error) { varPermissionCreate := _PermissionCreate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPermissionCreate) + err = json.Unmarshal(data, &varPermissionCreate) if err != nil { return err @@ -116,6 +119,13 @@ func (o *PermissionCreate) UnmarshalJSON(data []byte) (err error) { *o = PermissionCreate(varPermissionCreate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_permission_out.go b/sdks/go/model_permission_out.go index 390ee09..a0041b3 100644 --- a/sdks/go/model_permission_out.go +++ b/sdks/go/model_permission_out.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &PermissionOut{} type PermissionOut struct { Id int32 `json:"id"` Action string `json:"action"` + AdditionalProperties map[string]interface{} } type _PermissionOut PermissionOut @@ -106,6 +106,11 @@ func (o PermissionOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["action"] = o.Action + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -134,9 +139,7 @@ func (o *PermissionOut) UnmarshalJSON(data []byte) (err error) { varPermissionOut := _PermissionOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPermissionOut) + err = json.Unmarshal(data, &varPermissionOut) if err != nil { return err @@ -144,6 +147,14 @@ func (o *PermissionOut) UnmarshalJSON(data []byte) (err error) { *o = PermissionOut(varPermissionOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "action") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_permission_update.go b/sdks/go/model_permission_update.go index 02f465f..c558f4d 100644 --- a/sdks/go/model_permission_update.go +++ b/sdks/go/model_permission_update.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -22,6 +21,7 @@ var _ MappedNullable = &PermissionUpdate{} // PermissionUpdate struct for PermissionUpdate type PermissionUpdate struct { Action string `json:"action"` + AdditionalProperties map[string]interface{} } type _PermissionUpdate PermissionUpdate @@ -79,6 +79,11 @@ func (o PermissionUpdate) MarshalJSON() ([]byte, error) { func (o PermissionUpdate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["action"] = o.Action + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -106,9 +111,7 @@ func (o *PermissionUpdate) UnmarshalJSON(data []byte) (err error) { varPermissionUpdate := _PermissionUpdate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPermissionUpdate) + err = json.Unmarshal(data, &varPermissionUpdate) if err != nil { return err @@ -116,6 +119,13 @@ func (o *PermissionUpdate) UnmarshalJSON(data []byte) (err error) { *o = PermissionUpdate(varPermissionUpdate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_playground_evaluate_request.go b/sdks/go/model_playground_evaluate_request.go index 9984f9b..2628cfe 100644 --- a/sdks/go/model_playground_evaluate_request.go +++ b/sdks/go/model_playground_evaluate_request.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &PlaygroundEvaluateRequest{} type PlaygroundEvaluateRequest struct { Policies []PlaygroundPolicy `json:"policies"` Input PlaygroundInput `json:"input"` + AdditionalProperties map[string]interface{} } type _PlaygroundEvaluateRequest PlaygroundEvaluateRequest @@ -106,6 +106,11 @@ func (o PlaygroundEvaluateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["policies"] = o.Policies toSerialize["input"] = o.Input + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -134,9 +139,7 @@ func (o *PlaygroundEvaluateRequest) UnmarshalJSON(data []byte) (err error) { varPlaygroundEvaluateRequest := _PlaygroundEvaluateRequest{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPlaygroundEvaluateRequest) + err = json.Unmarshal(data, &varPlaygroundEvaluateRequest) if err != nil { return err @@ -144,6 +147,14 @@ func (o *PlaygroundEvaluateRequest) UnmarshalJSON(data []byte) (err error) { *o = PlaygroundEvaluateRequest(varPlaygroundEvaluateRequest) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "policies") + delete(additionalProperties, "input") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_playground_input.go b/sdks/go/model_playground_input.go index a9080dd..14fe215 100644 --- a/sdks/go/model_playground_input.go +++ b/sdks/go/model_playground_input.go @@ -23,8 +23,11 @@ type PlaygroundInput struct { Resource map[string]interface{} `json:"resource,omitempty"` Action *string `json:"action,omitempty"` Context map[string]interface{} `json:"context,omitempty"` + AdditionalProperties map[string]interface{} } +type _PlaygroundInput PlaygroundInput + // NewPlaygroundInput instantiates a new PlaygroundInput object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o PlaygroundInput) ToMap() (map[string]interface{}, error) { if !IsNil(o.Context) { toSerialize["context"] = o.Context } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *PlaygroundInput) UnmarshalJSON(data []byte) (err error) { + varPlaygroundInput := _PlaygroundInput{} + + err = json.Unmarshal(data, &varPlaygroundInput) + + if err != nil { + return err + } + + *o = PlaygroundInput(varPlaygroundInput) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "user") + delete(additionalProperties, "resource") + delete(additionalProperties, "action") + delete(additionalProperties, "context") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePlaygroundInput struct { value *PlaygroundInput isSet bool diff --git a/sdks/go/model_playground_policy.go b/sdks/go/model_playground_policy.go index 48b8e9b..8fcf743 100644 --- a/sdks/go/model_playground_policy.go +++ b/sdks/go/model_playground_policy.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -26,6 +25,7 @@ type PlaygroundPolicy struct { Priority *int32 `json:"priority,omitempty"` PolicyId NullableString `json:"policy_id,omitempty"` Conditions map[string]interface{} `json:"conditions,omitempty"` + AdditionalProperties map[string]interface{} } type _PlaygroundPolicy PlaygroundPolicy @@ -241,6 +241,11 @@ func (o PlaygroundPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.Conditions) { toSerialize["conditions"] = o.Conditions } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -268,9 +273,7 @@ func (o *PlaygroundPolicy) UnmarshalJSON(data []byte) (err error) { varPlaygroundPolicy := _PlaygroundPolicy{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPlaygroundPolicy) + err = json.Unmarshal(data, &varPlaygroundPolicy) if err != nil { return err @@ -278,6 +281,17 @@ func (o *PlaygroundPolicy) UnmarshalJSON(data []byte) (err error) { *o = PlaygroundPolicy(varPlaygroundPolicy) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "effect") + delete(additionalProperties, "priority") + delete(additionalProperties, "policy_id") + delete(additionalProperties, "conditions") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_policy_create.go b/sdks/go/model_policy_create.go index d9440fc..5de9a19 100644 --- a/sdks/go/model_policy_create.go +++ b/sdks/go/model_policy_create.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -26,6 +25,7 @@ type PolicyCreate struct { Priority *int32 `json:"priority,omitempty"` State *string `json:"state,omitempty"` Conditions map[string]interface{} `json:"conditions,omitempty"` + AdditionalProperties map[string]interface{} } type _PolicyCreate PolicyCreate @@ -235,6 +235,11 @@ func (o PolicyCreate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Conditions) { toSerialize["conditions"] = o.Conditions } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -262,9 +267,7 @@ func (o *PolicyCreate) UnmarshalJSON(data []byte) (err error) { varPolicyCreate := _PolicyCreate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPolicyCreate) + err = json.Unmarshal(data, &varPolicyCreate) if err != nil { return err @@ -272,6 +275,17 @@ func (o *PolicyCreate) UnmarshalJSON(data []byte) (err error) { *o = PolicyCreate(varPolicyCreate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "effect") + delete(additionalProperties, "priority") + delete(additionalProperties, "state") + delete(additionalProperties, "conditions") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_policy_out.go b/sdks/go/model_policy_out.go index e7b69bd..a128fda 100644 --- a/sdks/go/model_policy_out.go +++ b/sdks/go/model_policy_out.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -27,6 +26,7 @@ type PolicyOut struct { Priority int32 `json:"priority"` State *string `json:"state,omitempty"` Conditions map[string]interface{} `json:"conditions"` + AdditionalProperties map[string]interface{} } type _PolicyOut PolicyOut @@ -227,6 +227,11 @@ func (o PolicyOut) ToMap() (map[string]interface{}, error) { toSerialize["state"] = o.State } toSerialize["conditions"] = o.Conditions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -258,9 +263,7 @@ func (o *PolicyOut) UnmarshalJSON(data []byte) (err error) { varPolicyOut := _PolicyOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPolicyOut) + err = json.Unmarshal(data, &varPolicyOut) if err != nil { return err @@ -268,6 +271,18 @@ func (o *PolicyOut) UnmarshalJSON(data []byte) (err error) { *o = PolicyOut(varPolicyOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "action") + delete(additionalProperties, "effect") + delete(additionalProperties, "priority") + delete(additionalProperties, "state") + delete(additionalProperties, "conditions") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_policy_simulation_input.go b/sdks/go/model_policy_simulation_input.go index 26bb824..3b59126 100644 --- a/sdks/go/model_policy_simulation_input.go +++ b/sdks/go/model_policy_simulation_input.go @@ -22,8 +22,11 @@ type PolicySimulationInput struct { PolicyChange NullableString `json:"policy_change,omitempty"` RelationshipChange map[string]interface{} `json:"relationship_change,omitempty"` RoleChange map[string]interface{} `json:"role_change,omitempty"` + AdditionalProperties map[string]interface{} } +type _PolicySimulationInput PolicySimulationInput + // NewPolicySimulationInput instantiates a new PolicySimulationInput object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -168,9 +171,37 @@ func (o PolicySimulationInput) ToMap() (map[string]interface{}, error) { if o.RoleChange != nil { toSerialize["role_change"] = o.RoleChange } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *PolicySimulationInput) UnmarshalJSON(data []byte) (err error) { + varPolicySimulationInput := _PolicySimulationInput{} + + err = json.Unmarshal(data, &varPolicySimulationInput) + + if err != nil { + return err + } + + *o = PolicySimulationInput(varPolicySimulationInput) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "policy_change") + delete(additionalProperties, "relationship_change") + delete(additionalProperties, "role_change") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePolicySimulationInput struct { value *PolicySimulationInput isSet bool diff --git a/sdks/go/model_policy_simulation_request.go b/sdks/go/model_policy_simulation_request.go index 2f732e2..2da60c6 100644 --- a/sdks/go/model_policy_simulation_request.go +++ b/sdks/go/model_policy_simulation_request.go @@ -21,8 +21,11 @@ var _ MappedNullable = &PolicySimulationRequest{} type PolicySimulationRequest struct { Simulate *PolicySimulationInput `json:"simulate,omitempty"` Request map[string]interface{} `json:"request,omitempty"` + AdditionalProperties map[string]interface{} } +type _PolicySimulationRequest PolicySimulationRequest + // NewPolicySimulationRequest instantiates a new PolicySimulationRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o PolicySimulationRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Request) { toSerialize["request"] = o.Request } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *PolicySimulationRequest) UnmarshalJSON(data []byte) (err error) { + varPolicySimulationRequest := _PolicySimulationRequest{} + + err = json.Unmarshal(data, &varPolicySimulationRequest) + + if err != nil { + return err + } + + *o = PolicySimulationRequest(varPolicySimulationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "simulate") + delete(additionalProperties, "request") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePolicySimulationRequest struct { value *PolicySimulationRequest isSet bool diff --git a/sdks/go/model_policy_simulation_response.go b/sdks/go/model_policy_simulation_response.go index 9a09a4a..6b73ab5 100644 --- a/sdks/go/model_policy_simulation_response.go +++ b/sdks/go/model_policy_simulation_response.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &PolicySimulationResponse{} type PolicySimulationResponse struct { DecisionBefore map[string]interface{} `json:"decision_before"` DecisionAfter map[string]interface{} `json:"decision_after"` + AdditionalProperties map[string]interface{} } type _PolicySimulationResponse PolicySimulationResponse @@ -106,6 +106,11 @@ func (o PolicySimulationResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["decision_before"] = o.DecisionBefore toSerialize["decision_after"] = o.DecisionAfter + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -134,9 +139,7 @@ func (o *PolicySimulationResponse) UnmarshalJSON(data []byte) (err error) { varPolicySimulationResponse := _PolicySimulationResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPolicySimulationResponse) + err = json.Unmarshal(data, &varPolicySimulationResponse) if err != nil { return err @@ -144,6 +147,14 @@ func (o *PolicySimulationResponse) UnmarshalJSON(data []byte) (err error) { *o = PolicySimulationResponse(varPolicySimulationResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "decision_before") + delete(additionalProperties, "decision_after") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_relationship_create.go b/sdks/go/model_relationship_create.go index e839caf..3701317 100644 --- a/sdks/go/model_relationship_create.go +++ b/sdks/go/model_relationship_create.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -26,6 +25,7 @@ type RelationshipCreate struct { Relation string `json:"relation"` ObjectType string `json:"object_type"` ObjectId string `json:"object_id"` + AdditionalProperties map[string]interface{} } type _RelationshipCreate RelationshipCreate @@ -187,6 +187,11 @@ func (o RelationshipCreate) ToMap() (map[string]interface{}, error) { toSerialize["relation"] = o.Relation toSerialize["object_type"] = o.ObjectType toSerialize["object_id"] = o.ObjectId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -218,9 +223,7 @@ func (o *RelationshipCreate) UnmarshalJSON(data []byte) (err error) { varRelationshipCreate := _RelationshipCreate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRelationshipCreate) + err = json.Unmarshal(data, &varRelationshipCreate) if err != nil { return err @@ -228,6 +231,17 @@ func (o *RelationshipCreate) UnmarshalJSON(data []byte) (err error) { *o = RelationshipCreate(varRelationshipCreate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "subject_type") + delete(additionalProperties, "subject_id") + delete(additionalProperties, "relation") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_relationship_out.go b/sdks/go/model_relationship_out.go index 429fe11..04dc9f9 100644 --- a/sdks/go/model_relationship_out.go +++ b/sdks/go/model_relationship_out.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -27,6 +26,7 @@ type RelationshipOut struct { ObjectType string `json:"object_type"` ObjectId string `json:"object_id"` Id int32 `json:"id"` + AdditionalProperties map[string]interface{} } type _RelationshipOut RelationshipOut @@ -214,6 +214,11 @@ func (o RelationshipOut) ToMap() (map[string]interface{}, error) { toSerialize["object_type"] = o.ObjectType toSerialize["object_id"] = o.ObjectId toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -246,9 +251,7 @@ func (o *RelationshipOut) UnmarshalJSON(data []byte) (err error) { varRelationshipOut := _RelationshipOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRelationshipOut) + err = json.Unmarshal(data, &varRelationshipOut) if err != nil { return err @@ -256,6 +259,18 @@ func (o *RelationshipOut) UnmarshalJSON(data []byte) (err error) { *o = RelationshipOut(varRelationshipOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "subject_type") + delete(additionalProperties, "subject_id") + delete(additionalProperties, "relation") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_role_create.go b/sdks/go/model_role_create.go index e1e00f8..a7c9b1e 100644 --- a/sdks/go/model_role_create.go +++ b/sdks/go/model_role_create.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -22,6 +21,7 @@ var _ MappedNullable = &RoleCreate{} // RoleCreate struct for RoleCreate type RoleCreate struct { Name string `json:"name"` + AdditionalProperties map[string]interface{} } type _RoleCreate RoleCreate @@ -79,6 +79,11 @@ func (o RoleCreate) MarshalJSON() ([]byte, error) { func (o RoleCreate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -106,9 +111,7 @@ func (o *RoleCreate) UnmarshalJSON(data []byte) (err error) { varRoleCreate := _RoleCreate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRoleCreate) + err = json.Unmarshal(data, &varRoleCreate) if err != nil { return err @@ -116,6 +119,13 @@ func (o *RoleCreate) UnmarshalJSON(data []byte) (err error) { *o = RoleCreate(varRoleCreate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_role_out.go b/sdks/go/model_role_out.go index 0ac09da..a70cfc5 100644 --- a/sdks/go/model_role_out.go +++ b/sdks/go/model_role_out.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -23,6 +22,7 @@ var _ MappedNullable = &RoleOut{} type RoleOut struct { Id int32 `json:"id"` Name string `json:"name"` + AdditionalProperties map[string]interface{} } type _RoleOut RoleOut @@ -106,6 +106,11 @@ func (o RoleOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -134,9 +139,7 @@ func (o *RoleOut) UnmarshalJSON(data []byte) (err error) { varRoleOut := _RoleOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRoleOut) + err = json.Unmarshal(data, &varRoleOut) if err != nil { return err @@ -144,6 +147,14 @@ func (o *RoleOut) UnmarshalJSON(data []byte) (err error) { *o = RoleOut(varRoleOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_role_update.go b/sdks/go/model_role_update.go index 025729f..13a167c 100644 --- a/sdks/go/model_role_update.go +++ b/sdks/go/model_role_update.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -22,6 +21,7 @@ var _ MappedNullable = &RoleUpdate{} // RoleUpdate struct for RoleUpdate type RoleUpdate struct { Name string `json:"name"` + AdditionalProperties map[string]interface{} } type _RoleUpdate RoleUpdate @@ -79,6 +79,11 @@ func (o RoleUpdate) MarshalJSON() ([]byte, error) { func (o RoleUpdate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -106,9 +111,7 @@ func (o *RoleUpdate) UnmarshalJSON(data []byte) (err error) { varRoleUpdate := _RoleUpdate{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRoleUpdate) + err = json.Unmarshal(data, &varRoleUpdate) if err != nil { return err @@ -116,6 +119,13 @@ func (o *RoleUpdate) UnmarshalJSON(data []byte) (err error) { *o = RoleUpdate(varRoleUpdate) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_simulation_response.go b/sdks/go/model_simulation_response.go index ea8577c..2de2683 100644 --- a/sdks/go/model_simulation_response.go +++ b/sdks/go/model_simulation_response.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -28,6 +27,7 @@ type SimulationResponse struct { ExplainTrace []map[string]interface{} `json:"explain_trace,omitempty"` FailedConditions []string `json:"failed_conditions,omitempty"` Revision NullableInt32 `json:"revision,omitempty"` + AdditionalProperties map[string]interface{} } type _SimulationResponse SimulationResponse @@ -316,6 +316,11 @@ func (o SimulationResponse) ToMap() (map[string]interface{}, error) { if o.Revision.IsSet() { toSerialize["revision"] = o.Revision.Get() } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -344,9 +349,7 @@ func (o *SimulationResponse) UnmarshalJSON(data []byte) (err error) { varSimulationResponse := _SimulationResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSimulationResponse) + err = json.Unmarshal(data, &varSimulationResponse) if err != nil { return err @@ -354,6 +357,19 @@ func (o *SimulationResponse) UnmarshalJSON(data []byte) (err error) { *o = SimulationResponse(varSimulationResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "decision") + delete(additionalProperties, "matched_policies") + delete(additionalProperties, "reason") + delete(additionalProperties, "policy_id") + delete(additionalProperties, "explain_trace") + delete(additionalProperties, "failed_conditions") + delete(additionalProperties, "revision") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_access_decision_response_.go b/sdks/go/model_success_response_access_decision_response_.go index fd640d2..395c9c6 100644 --- a/sdks/go/model_success_response_access_decision_response_.go +++ b/sdks/go/model_success_response_access_decision_response_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseAccessDecisionResponse struct { Data AccessDecisionResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseAccessDecisionResponse SuccessResponseAccessDecisionResponse @@ -151,6 +151,11 @@ func (o SuccessResponseAccessDecisionResponse) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseAccessDecisionResponse) UnmarshalJSON(data []byte) (err varSuccessResponseAccessDecisionResponse := _SuccessResponseAccessDecisionResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseAccessDecisionResponse) + err = json.Unmarshal(data, &varSuccessResponseAccessDecisionResponse) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseAccessDecisionResponse) UnmarshalJSON(data []byte) (err *o = SuccessResponseAccessDecisionResponse(varSuccessResponseAccessDecisionResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_acl_out_.go b/sdks/go/model_success_response_acl_out_.go index 9b6dc63..e0544c2 100644 --- a/sdks/go/model_success_response_acl_out_.go +++ b/sdks/go/model_success_response_acl_out_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseACLOut struct { Data ACLOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseACLOut SuccessResponseACLOut @@ -151,6 +151,11 @@ func (o SuccessResponseACLOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseACLOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponseACLOut := _SuccessResponseACLOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseACLOut) + err = json.Unmarshal(data, &varSuccessResponseACLOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseACLOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseACLOut(varSuccessResponseACLOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_admin_login_response_.go b/sdks/go/model_success_response_admin_login_response_.go index a480c38..4c0fdda 100644 --- a/sdks/go/model_success_response_admin_login_response_.go +++ b/sdks/go/model_success_response_admin_login_response_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseAdminLoginResponse struct { Data AdminLoginResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseAdminLoginResponse SuccessResponseAdminLoginResponse @@ -151,6 +151,11 @@ func (o SuccessResponseAdminLoginResponse) ToMap() (map[string]interface{}, erro if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseAdminLoginResponse) UnmarshalJSON(data []byte) (err erro varSuccessResponseAdminLoginResponse := _SuccessResponseAdminLoginResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseAdminLoginResponse) + err = json.Unmarshal(data, &varSuccessResponseAdminLoginResponse) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseAdminLoginResponse) UnmarshalJSON(data []byte) (err erro *o = SuccessResponseAdminLoginResponse(varSuccessResponseAdminLoginResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_auth_model_out_.go b/sdks/go/model_success_response_auth_model_out_.go index e3587b8..949d6bd 100644 --- a/sdks/go/model_success_response_auth_model_out_.go +++ b/sdks/go/model_success_response_auth_model_out_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseAuthModelOut struct { Data AuthModelOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseAuthModelOut SuccessResponseAuthModelOut @@ -151,6 +151,11 @@ func (o SuccessResponseAuthModelOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseAuthModelOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponseAuthModelOut := _SuccessResponseAuthModelOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseAuthModelOut) + err = json.Unmarshal(data, &varSuccessResponseAuthModelOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseAuthModelOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseAuthModelOut(varSuccessResponseAuthModelOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_batch_access_response_.go b/sdks/go/model_success_response_batch_access_response_.go index 6209c06..327a963 100644 --- a/sdks/go/model_success_response_batch_access_response_.go +++ b/sdks/go/model_success_response_batch_access_response_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseBatchAccessResponse struct { Data BatchAccessResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseBatchAccessResponse SuccessResponseBatchAccessResponse @@ -151,6 +151,11 @@ func (o SuccessResponseBatchAccessResponse) ToMap() (map[string]interface{}, err if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseBatchAccessResponse) UnmarshalJSON(data []byte) (err err varSuccessResponseBatchAccessResponse := _SuccessResponseBatchAccessResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseBatchAccessResponse) + err = json.Unmarshal(data, &varSuccessResponseBatchAccessResponse) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseBatchAccessResponse) UnmarshalJSON(data []byte) (err err *o = SuccessResponseBatchAccessResponse(varSuccessResponseBatchAccessResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_dict_str__any__.go b/sdks/go/model_success_response_dict_str__any__.go index 70f1996..e1663d5 100644 --- a/sdks/go/model_success_response_dict_str__any__.go +++ b/sdks/go/model_success_response_dict_str__any__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseDictStrAny struct { Data map[string]interface{} `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseDictStrAny SuccessResponseDictStrAny @@ -151,6 +151,11 @@ func (o SuccessResponseDictStrAny) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseDictStrAny) UnmarshalJSON(data []byte) (err error) { varSuccessResponseDictStrAny := _SuccessResponseDictStrAny{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseDictStrAny) + err = json.Unmarshal(data, &varSuccessResponseDictStrAny) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseDictStrAny) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseDictStrAny(varSuccessResponseDictStrAny) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_dict_str__int__.go b/sdks/go/model_success_response_dict_str__int__.go index de7d935..069a91c 100644 --- a/sdks/go/model_success_response_dict_str__int__.go +++ b/sdks/go/model_success_response_dict_str__int__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseDictStrInt struct { Data map[string]int32 `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseDictStrInt SuccessResponseDictStrInt @@ -151,6 +151,11 @@ func (o SuccessResponseDictStrInt) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseDictStrInt) UnmarshalJSON(data []byte) (err error) { varSuccessResponseDictStrInt := _SuccessResponseDictStrInt{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseDictStrInt) + err = json.Unmarshal(data, &varSuccessResponseDictStrInt) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseDictStrInt) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseDictStrInt(varSuccessResponseDictStrInt) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_dict_str__object__.go b/sdks/go/model_success_response_dict_str__object__.go index 9dd2038..83ff0ff 100644 --- a/sdks/go/model_success_response_dict_str__object__.go +++ b/sdks/go/model_success_response_dict_str__object__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseDictStrObject struct { Data map[string]interface{} `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseDictStrObject SuccessResponseDictStrObject @@ -151,6 +151,11 @@ func (o SuccessResponseDictStrObject) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseDictStrObject) UnmarshalJSON(data []byte) (err error) { varSuccessResponseDictStrObject := _SuccessResponseDictStrObject{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseDictStrObject) + err = json.Unmarshal(data, &varSuccessResponseDictStrObject) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseDictStrObject) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseDictStrObject(varSuccessResponseDictStrObject) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_dict_str__str__.go b/sdks/go/model_success_response_dict_str__str__.go index 070089e..0ea4766 100644 --- a/sdks/go/model_success_response_dict_str__str__.go +++ b/sdks/go/model_success_response_dict_str__str__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseDictStrStr struct { Data map[string]string `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseDictStrStr SuccessResponseDictStrStr @@ -151,6 +151,11 @@ func (o SuccessResponseDictStrStr) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseDictStrStr) UnmarshalJSON(data []byte) (err error) { varSuccessResponseDictStrStr := _SuccessResponseDictStrStr{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseDictStrStr) + err = json.Unmarshal(data, &varSuccessResponseDictStrStr) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseDictStrStr) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseDictStrStr(varSuccessResponseDictStrStr) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_dict_str__union_int__str___.go b/sdks/go/model_success_response_dict_str__union_int__str___.go index b10de3a..3d48fbb 100644 --- a/sdks/go/model_success_response_dict_str__union_int__str___.go +++ b/sdks/go/model_success_response_dict_str__union_int__str___.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseDictStrUnionIntStr struct { Data map[string]DataValue `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseDictStrUnionIntStr SuccessResponseDictStrUnionIntStr @@ -151,6 +151,11 @@ func (o SuccessResponseDictStrUnionIntStr) ToMap() (map[string]interface{}, erro if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseDictStrUnionIntStr) UnmarshalJSON(data []byte) (err erro varSuccessResponseDictStrUnionIntStr := _SuccessResponseDictStrUnionIntStr{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseDictStrUnionIntStr) + err = json.Unmarshal(data, &varSuccessResponseDictStrUnionIntStr) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseDictStrUnionIntStr) UnmarshalJSON(data []byte) (err erro *o = SuccessResponseDictStrUnionIntStr(varSuccessResponseDictStrUnionIntStr) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_impact_analysis_response_.go b/sdks/go/model_success_response_impact_analysis_response_.go index cf428e1..8700535 100644 --- a/sdks/go/model_success_response_impact_analysis_response_.go +++ b/sdks/go/model_success_response_impact_analysis_response_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseImpactAnalysisResponse struct { Data ImpactAnalysisResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseImpactAnalysisResponse SuccessResponseImpactAnalysisResponse @@ -151,6 +151,11 @@ func (o SuccessResponseImpactAnalysisResponse) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseImpactAnalysisResponse) UnmarshalJSON(data []byte) (err varSuccessResponseImpactAnalysisResponse := _SuccessResponseImpactAnalysisResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseImpactAnalysisResponse) + err = json.Unmarshal(data, &varSuccessResponseImpactAnalysisResponse) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseImpactAnalysisResponse) UnmarshalJSON(data []byte) (err *o = SuccessResponseImpactAnalysisResponse(varSuccessResponseImpactAnalysisResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_list_acl_out__.go b/sdks/go/model_success_response_list_acl_out__.go index 11d60cd..b7622af 100644 --- a/sdks/go/model_success_response_list_acl_out__.go +++ b/sdks/go/model_success_response_list_acl_out__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseListACLOut struct { Data []ACLOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseListACLOut SuccessResponseListACLOut @@ -151,6 +151,11 @@ func (o SuccessResponseListACLOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseListACLOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponseListACLOut := _SuccessResponseListACLOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseListACLOut) + err = json.Unmarshal(data, &varSuccessResponseListACLOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseListACLOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseListACLOut(varSuccessResponseListACLOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_list_audit_record_out__.go b/sdks/go/model_success_response_list_audit_record_out__.go index a6b135e..4d6b799 100644 --- a/sdks/go/model_success_response_list_audit_record_out__.go +++ b/sdks/go/model_success_response_list_audit_record_out__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseListAuditRecordOut struct { Data []AuditRecordOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseListAuditRecordOut SuccessResponseListAuditRecordOut @@ -151,6 +151,11 @@ func (o SuccessResponseListAuditRecordOut) ToMap() (map[string]interface{}, erro if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseListAuditRecordOut) UnmarshalJSON(data []byte) (err erro varSuccessResponseListAuditRecordOut := _SuccessResponseListAuditRecordOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseListAuditRecordOut) + err = json.Unmarshal(data, &varSuccessResponseListAuditRecordOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseListAuditRecordOut) UnmarshalJSON(data []byte) (err erro *o = SuccessResponseListAuditRecordOut(varSuccessResponseListAuditRecordOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_list_dict_str__str___.go b/sdks/go/model_success_response_list_dict_str__str___.go index ab34ed3..243f1b6 100644 --- a/sdks/go/model_success_response_list_dict_str__str___.go +++ b/sdks/go/model_success_response_list_dict_str__str___.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseListDictStrStr struct { Data []map[string]string `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseListDictStrStr SuccessResponseListDictStrStr @@ -151,6 +151,11 @@ func (o SuccessResponseListDictStrStr) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseListDictStrStr) UnmarshalJSON(data []byte) (err error) { varSuccessResponseListDictStrStr := _SuccessResponseListDictStrStr{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseListDictStrStr) + err = json.Unmarshal(data, &varSuccessResponseListDictStrStr) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseListDictStrStr) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseListDictStrStr(varSuccessResponseListDictStrStr) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_list_permission_out__.go b/sdks/go/model_success_response_list_permission_out__.go index 1b3a570..e34f006 100644 --- a/sdks/go/model_success_response_list_permission_out__.go +++ b/sdks/go/model_success_response_list_permission_out__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseListPermissionOut struct { Data []PermissionOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseListPermissionOut SuccessResponseListPermissionOut @@ -151,6 +151,11 @@ func (o SuccessResponseListPermissionOut) ToMap() (map[string]interface{}, error if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseListPermissionOut) UnmarshalJSON(data []byte) (err error varSuccessResponseListPermissionOut := _SuccessResponseListPermissionOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseListPermissionOut) + err = json.Unmarshal(data, &varSuccessResponseListPermissionOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseListPermissionOut) UnmarshalJSON(data []byte) (err error *o = SuccessResponseListPermissionOut(varSuccessResponseListPermissionOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_list_policy_out__.go b/sdks/go/model_success_response_list_policy_out__.go index 1cb2d05..0b98a31 100644 --- a/sdks/go/model_success_response_list_policy_out__.go +++ b/sdks/go/model_success_response_list_policy_out__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseListPolicyOut struct { Data []PolicyOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseListPolicyOut SuccessResponseListPolicyOut @@ -151,6 +151,11 @@ func (o SuccessResponseListPolicyOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseListPolicyOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponseListPolicyOut := _SuccessResponseListPolicyOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseListPolicyOut) + err = json.Unmarshal(data, &varSuccessResponseListPolicyOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseListPolicyOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseListPolicyOut(varSuccessResponseListPolicyOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_list_role_out__.go b/sdks/go/model_success_response_list_role_out__.go index 2b02d06..960a2bd 100644 --- a/sdks/go/model_success_response_list_role_out__.go +++ b/sdks/go/model_success_response_list_role_out__.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseListRoleOut struct { Data []RoleOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseListRoleOut SuccessResponseListRoleOut @@ -151,6 +151,11 @@ func (o SuccessResponseListRoleOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseListRoleOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponseListRoleOut := _SuccessResponseListRoleOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseListRoleOut) + err = json.Unmarshal(data, &varSuccessResponseListRoleOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseListRoleOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponseListRoleOut(varSuccessResponseListRoleOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_permission_out_.go b/sdks/go/model_success_response_permission_out_.go index 572c17a..57304e3 100644 --- a/sdks/go/model_success_response_permission_out_.go +++ b/sdks/go/model_success_response_permission_out_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponsePermissionOut struct { Data PermissionOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponsePermissionOut SuccessResponsePermissionOut @@ -151,6 +151,11 @@ func (o SuccessResponsePermissionOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponsePermissionOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponsePermissionOut := _SuccessResponsePermissionOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponsePermissionOut) + err = json.Unmarshal(data, &varSuccessResponsePermissionOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponsePermissionOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponsePermissionOut(varSuccessResponsePermissionOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_policy_out_.go b/sdks/go/model_success_response_policy_out_.go index 106d987..712db5e 100644 --- a/sdks/go/model_success_response_policy_out_.go +++ b/sdks/go/model_success_response_policy_out_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponsePolicyOut struct { Data PolicyOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponsePolicyOut SuccessResponsePolicyOut @@ -151,6 +151,11 @@ func (o SuccessResponsePolicyOut) ToMap() (map[string]interface{}, error) { if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponsePolicyOut) UnmarshalJSON(data []byte) (err error) { varSuccessResponsePolicyOut := _SuccessResponsePolicyOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponsePolicyOut) + err = json.Unmarshal(data, &varSuccessResponsePolicyOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponsePolicyOut) UnmarshalJSON(data []byte) (err error) { *o = SuccessResponsePolicyOut(varSuccessResponsePolicyOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_policy_simulation_response_.go b/sdks/go/model_success_response_policy_simulation_response_.go index 1f653f6..2e584bc 100644 --- a/sdks/go/model_success_response_policy_simulation_response_.go +++ b/sdks/go/model_success_response_policy_simulation_response_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponsePolicySimulationResponse struct { Data PolicySimulationResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponsePolicySimulationResponse SuccessResponsePolicySimulationResponse @@ -151,6 +151,11 @@ func (o SuccessResponsePolicySimulationResponse) ToMap() (map[string]interface{} if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponsePolicySimulationResponse) UnmarshalJSON(data []byte) (er varSuccessResponsePolicySimulationResponse := _SuccessResponsePolicySimulationResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponsePolicySimulationResponse) + err = json.Unmarshal(data, &varSuccessResponsePolicySimulationResponse) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponsePolicySimulationResponse) UnmarshalJSON(data []byte) (er *o = SuccessResponsePolicySimulationResponse(varSuccessResponsePolicySimulationResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_relationship_out_.go b/sdks/go/model_success_response_relationship_out_.go index e70eb8a..5461a1d 100644 --- a/sdks/go/model_success_response_relationship_out_.go +++ b/sdks/go/model_success_response_relationship_out_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseRelationshipOut struct { Data RelationshipOut `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseRelationshipOut SuccessResponseRelationshipOut @@ -151,6 +151,11 @@ func (o SuccessResponseRelationshipOut) ToMap() (map[string]interface{}, error) if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseRelationshipOut) UnmarshalJSON(data []byte) (err error) varSuccessResponseRelationshipOut := _SuccessResponseRelationshipOut{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseRelationshipOut) + err = json.Unmarshal(data, &varSuccessResponseRelationshipOut) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseRelationshipOut) UnmarshalJSON(data []byte) (err error) *o = SuccessResponseRelationshipOut(varSuccessResponseRelationshipOut) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_success_response_simulation_response_.go b/sdks/go/model_success_response_simulation_response_.go index 8312912..4bc2c49 100644 --- a/sdks/go/model_success_response_simulation_response_.go +++ b/sdks/go/model_success_response_simulation_response_.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -24,6 +23,7 @@ type SuccessResponseSimulationResponse struct { Data SimulationResponse `json:"data"` Meta *MetaBody `json:"meta,omitempty"` Error *interface{} `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } type _SuccessResponseSimulationResponse SuccessResponseSimulationResponse @@ -151,6 +151,11 @@ func (o SuccessResponseSimulationResponse) ToMap() (map[string]interface{}, erro if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -178,9 +183,7 @@ func (o *SuccessResponseSimulationResponse) UnmarshalJSON(data []byte) (err erro varSuccessResponseSimulationResponse := _SuccessResponseSimulationResponse{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSuccessResponseSimulationResponse) + err = json.Unmarshal(data, &varSuccessResponseSimulationResponse) if err != nil { return err @@ -188,6 +191,15 @@ func (o *SuccessResponseSimulationResponse) UnmarshalJSON(data []byte) (err erro *o = SuccessResponseSimulationResponse(varSuccessResponseSimulationResponse) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/go/model_validation_error.go b/sdks/go/model_validation_error.go index 14b2575..52c5bb8 100644 --- a/sdks/go/model_validation_error.go +++ b/sdks/go/model_validation_error.go @@ -12,7 +12,6 @@ package keynetra import ( "encoding/json" - "bytes" "fmt" ) @@ -26,6 +25,7 @@ type ValidationError struct { Type string `json:"type"` Input interface{} `json:"input,omitempty"` Ctx interface{} `json:"ctx,omitempty"` + AdditionalProperties map[string]interface{} } type _ValidationError ValidationError @@ -206,6 +206,11 @@ func (o ValidationError) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ctx) { toSerialize["ctx"] = o.Ctx } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -235,9 +240,7 @@ func (o *ValidationError) UnmarshalJSON(data []byte) (err error) { varValidationError := _ValidationError{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varValidationError) + err = json.Unmarshal(data, &varValidationError) if err != nil { return err @@ -245,6 +248,17 @@ func (o *ValidationError) UnmarshalJSON(data []byte) (err error) { *o = ValidationError(varValidationError) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "loc") + delete(additionalProperties, "msg") + delete(additionalProperties, "type") + delete(additionalProperties, "input") + delete(additionalProperties, "ctx") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/sdks/kotlin/build.gradle.kts b/sdks/kotlin/build.gradle.kts index d0bc2ae..f09c9d0 100644 --- a/sdks/kotlin/build.gradle.kts +++ b/sdks/kotlin/build.gradle.kts @@ -32,6 +32,7 @@ kotlin { dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version") implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serialization_version") api("io.ktor:ktor-client-core:$ktor_version") api("io.ktor:ktor-client-serialization:$ktor_version") diff --git a/sdks/kotlin/docs/SuccessResponseACLOut.md b/sdks/kotlin/docs/SuccessResponseACLOut.md index 2c15d9a..39e5178 100644 --- a/sdks/kotlin/docs/SuccessResponseACLOut.md +++ b/sdks/kotlin/docs/SuccessResponseACLOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**ACLOut**](ACLOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md index 7154ef9..2b81c7e 100644 --- a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md +++ b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md index 7c224da..7e5bb8f 100644 --- a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md +++ b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md index de5705a..9aba610 100644 --- a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md +++ b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**AuthModelOut**](AuthModelOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md index c8d1809..96377a6 100644 --- a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md +++ b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrAny.md b/sdks/kotlin/docs/SuccessResponseDictStrAny.md index 63994ce..86ec0f6 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrAny.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrAny.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrInt.md b/sdks/kotlin/docs/SuccessResponseDictStrInt.md index 8bd4281..1b156ac 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrInt.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrInt.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.Int>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrObject.md b/sdks/kotlin/docs/SuccessResponseDictStrObject.md index 7d7d485..3678873 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrObject.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrObject.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrStr.md b/sdks/kotlin/docs/SuccessResponseDictStrStr.md index 4c4ba7b..0868957 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrStr.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrStr.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md index 997350c..77fc409 100644 --- a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md +++ b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.Map<kotlin.String, DataValue>**](DataValue.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md index 6be2311..4170d13 100644 --- a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md +++ b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListACLOut.md b/sdks/kotlin/docs/SuccessResponseListACLOut.md index 964911e..f2f5f7d 100644 --- a/sdks/kotlin/docs/SuccessResponseListACLOut.md +++ b/sdks/kotlin/docs/SuccessResponseListACLOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<ACLOut>**](ACLOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md index 2486f40..3ea0257 100644 --- a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md +++ b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<AuditRecordOut>**](AuditRecordOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md index c24c0e4..2170c27 100644 --- a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md +++ b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.String>>** | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md index 29ee7e2..cfa5fd0 100644 --- a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md +++ b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<PermissionOut>**](PermissionOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md index 74ca69f..d915e7b 100644 --- a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md +++ b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<PolicyOut>**](PolicyOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseListRoleOut.md b/sdks/kotlin/docs/SuccessResponseListRoleOut.md index 34155b4..dcf3856 100644 --- a/sdks/kotlin/docs/SuccessResponseListRoleOut.md +++ b/sdks/kotlin/docs/SuccessResponseListRoleOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**kotlin.collections.List<RoleOut>**](RoleOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponsePermissionOut.md b/sdks/kotlin/docs/SuccessResponsePermissionOut.md index 21adb21..b736c2e 100644 --- a/sdks/kotlin/docs/SuccessResponsePermissionOut.md +++ b/sdks/kotlin/docs/SuccessResponsePermissionOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**PermissionOut**](PermissionOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponsePolicyOut.md b/sdks/kotlin/docs/SuccessResponsePolicyOut.md index 9f68f50..cc10bbd 100644 --- a/sdks/kotlin/docs/SuccessResponsePolicyOut.md +++ b/sdks/kotlin/docs/SuccessResponsePolicyOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**PolicyOut**](PolicyOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md index 03cf343..cc1038d 100644 --- a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md +++ b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md index 75a19e3..5ac0b18 100644 --- a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md +++ b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**RelationshipOut**](RelationshipOut.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md index cae1bae..d2fbe0a 100644 --- a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md +++ b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md @@ -6,7 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **`data`** | [**SimulationResponse**](SimulationResponse.md) | | | | **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**kotlin.Any**](kotlin.Any.md) | | [optional] | +| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | diff --git a/sdks/kotlin/docs/ValidationError.md b/sdks/kotlin/docs/ValidationError.md index 3d56fa7..bc0be30 100644 --- a/sdks/kotlin/docs/ValidationError.md +++ b/sdks/kotlin/docs/ValidationError.md @@ -8,7 +8,7 @@ | **msg** | **kotlin.String** | | | | **type** | **kotlin.String** | | | | **input** | [**kotlin.Any**](.md) | | [optional] | -| **ctx** | [**kotlin.Any**](.md) | | [optional] | +| **ctx** | [**KotlinxserializationjsonJsonElement**](.md) | | [optional] | diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 456b9e2..a2cced2 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -26,10 +26,10 @@ npm install @keynetra/client ```typescript import { KeyNetraClient } from "@keynetra/client"; -const client = new KeyNetraClient( - "http://localhost:8080", - "YOUR_API_KEY" -); +const client = new KeyNetraClient({ + baseUrl: "http://localhost:8080", + apiKey: "YOUR_API_KEY" +}); // Perform an access check const decision = await client.access.checkAccess({ From 64350a3a96029266b868a5d66f045b0dd29b30a4 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 03:29:46 +0530 Subject: [PATCH 20/40] fix: resolve Go syntax and Kotlin serialization errors via generator config --- sdks/csharp/.gitignore | 362 - sdks/csharp/KeyNetra.Client.sln | 27 - sdks/csharp/README.md | 53 - sdks/csharp/api/openapi.yaml | 2811 ------ sdks/csharp/appveyor.yml | 9 - sdks/go/.gitignore | 24 - sdks/go/.travis.yml | 8 - sdks/go/README.md | 54 - sdks/go/api/openapi.yaml | 2810 ------ sdks/go/api_access.go | 484 - sdks/go/api_auth.go | 286 - sdks/go/api_dev.go | 268 - sdks/go/api_health.go | 353 - sdks/go/api_management.go | 4133 --------- sdks/go/api_playground.go | 170 - sdks/go/client.go | 673 -- sdks/go/configuration.go | 221 - sdks/go/docs/ACLCreate.md | 156 - sdks/go/docs/ACLOut.md | 234 - sdks/go/docs/AccessAPI.md | 207 - sdks/go/docs/AccessDecisionResponse.md | 232 - sdks/go/docs/AccessRequest.md | 191 - sdks/go/docs/AdminLoginRequest.md | 72 - sdks/go/docs/AdminLoginResponse.md | 145 - sdks/go/docs/AuditRecordOut.md | 333 - sdks/go/docs/AuthAPI.md | 138 - sdks/go/docs/AuthModelCreate.md | 51 - sdks/go/docs/AuthModelOut.md | 135 - sdks/go/docs/BatchAccessItem.md | 77 - sdks/go/docs/BatchAccessRequest.md | 139 - sdks/go/docs/BatchAccessResponse.md | 87 - sdks/go/docs/BatchAccessResult.md | 108 - sdks/go/docs/DataValue.md | 30 - sdks/go/docs/DevAPI.md | 133 - sdks/go/docs/HTTPValidationError.md | 56 - sdks/go/docs/HealthAPI.md | 188 - sdks/go/docs/ImpactAnalysisRequest.md | 51 - sdks/go/docs/ImpactAnalysisResponse.md | 82 - sdks/go/docs/LocationInner.md | 30 - sdks/go/docs/ManagementAPI.md | 1918 ---- sdks/go/docs/MetaBody.md | 164 - sdks/go/docs/PermissionCreate.md | 51 - sdks/go/docs/PermissionOut.md | 72 - sdks/go/docs/PermissionUpdate.md | 51 - sdks/go/docs/PlaygroundAPI.md | 73 - sdks/go/docs/PlaygroundEvaluateRequest.md | 72 - sdks/go/docs/PlaygroundInput.md | 134 - sdks/go/docs/PlaygroundPolicy.md | 165 - sdks/go/docs/PolicyCreate.md | 155 - sdks/go/docs/PolicyOut.md | 161 - sdks/go/docs/PolicySimulationInput.md | 138 - sdks/go/docs/PolicySimulationRequest.md | 82 - sdks/go/docs/PolicySimulationResponse.md | 72 - sdks/go/docs/RelationshipCreate.md | 135 - sdks/go/docs/RelationshipOut.md | 156 - sdks/go/docs/RoleCreate.md | 51 - sdks/go/docs/RoleOut.md | 72 - sdks/go/docs/RoleUpdate.md | 51 - sdks/go/docs/SimulationResponse.md | 232 - sdks/go/docs/SuccessResponseACLOut.md | 103 - .../SuccessResponseAccessDecisionResponse.md | 103 - .../docs/SuccessResponseAdminLoginResponse.md | 103 - sdks/go/docs/SuccessResponseAuthModelOut.md | 103 - .../SuccessResponseBatchAccessResponse.md | 103 - sdks/go/docs/SuccessResponseDictStrAny.md | 103 - sdks/go/docs/SuccessResponseDictStrInt.md | 103 - sdks/go/docs/SuccessResponseDictStrObject.md | 103 - sdks/go/docs/SuccessResponseDictStrStr.md | 103 - .../docs/SuccessResponseDictStrUnionIntStr.md | 103 - .../SuccessResponseImpactAnalysisResponse.md | 103 - sdks/go/docs/SuccessResponseListACLOut.md | 103 - .../docs/SuccessResponseListAuditRecordOut.md | 103 - sdks/go/docs/SuccessResponseListDictStrStr.md | 103 - .../docs/SuccessResponseListPermissionOut.md | 103 - sdks/go/docs/SuccessResponseListPolicyOut.md | 103 - sdks/go/docs/SuccessResponseListRoleOut.md | 103 - sdks/go/docs/SuccessResponsePermissionOut.md | 103 - sdks/go/docs/SuccessResponsePolicyOut.md | 103 - ...SuccessResponsePolicySimulationResponse.md | 103 - .../go/docs/SuccessResponseRelationshipOut.md | 103 - .../docs/SuccessResponseSimulationResponse.md | 103 - sdks/go/docs/ValidationError.md | 155 - sdks/go/git_push.sh | 57 - sdks/go/go.mod | 6 - sdks/go/go.sum | 11 - sdks/go/keynetra_client.go | 30 - sdks/go/model_access_decision_response.go | 412 - sdks/go/model_access_request.go | 367 - sdks/go/model_acl_create.go | 313 - sdks/go/model_acl_out.go | 419 - sdks/go/model_admin_login_request.go | 197 - sdks/go/model_admin_login_response.go | 308 - sdks/go/model_audit_record_out.go | 553 -- sdks/go/model_auth_model_create.go | 168 - sdks/go/model_auth_model_out.go | 284 - sdks/go/model_batch_access_item.go | 205 - sdks/go/model_batch_access_request.go | 293 - sdks/go/model_batch_access_response.go | 215 - sdks/go/model_batch_access_result.go | 244 - sdks/go/model_data_value.go | 107 - sdks/go/model_http_validation_error.go | 155 - sdks/go/model_impact_analysis_request.go | 168 - sdks/go/model_impact_analysis_response.go | 192 - sdks/go/model_location_inner.go | 107 - sdks/go/model_meta_body.go | 296 - sdks/go/model_permission_create.go | 168 - sdks/go/model_permission_out.go | 197 - sdks/go/model_permission_update.go | 168 - sdks/go/model_playground_evaluate_request.go | 197 - sdks/go/model_playground_input.go | 270 - sdks/go/model_playground_policy.go | 334 - sdks/go/model_policy_create.go | 328 - sdks/go/model_policy_out.go | 325 - sdks/go/model_policy_simulation_input.go | 241 - sdks/go/model_policy_simulation_request.go | 192 - sdks/go/model_policy_simulation_response.go | 197 - sdks/go/model_relationship_create.go | 284 - sdks/go/model_relationship_out.go | 313 - sdks/go/model_role_create.go | 168 - sdks/go/model_role_out.go | 197 - sdks/go/model_role_update.go | 168 - sdks/go/model_simulation_response.go | 412 - ...cess_response_access_decision_response_.go | 242 - sdks/go/model_success_response_acl_out_.go | 242 - ..._success_response_admin_login_response_.go | 242 - .../model_success_response_auth_model_out_.go | 242 - ...success_response_batch_access_response_.go | 242 - .../model_success_response_dict_str__any__.go | 242 - .../model_success_response_dict_str__int__.go | 242 - ...del_success_response_dict_str__object__.go | 242 - .../model_success_response_dict_str__str__.go | 242 - ...ss_response_dict_str__union_int__str___.go | 242 - ...cess_response_impact_analysis_response_.go | 242 - .../model_success_response_list_acl_out__.go | 242 - ...uccess_response_list_audit_record_out__.go | 242 - ..._success_response_list_dict_str__str___.go | 242 - ..._success_response_list_permission_out__.go | 242 - ...odel_success_response_list_policy_out__.go | 242 - .../model_success_response_list_role_out__.go | 242 - .../model_success_response_permission_out_.go | 242 - sdks/go/model_success_response_policy_out_.go | 242 - ...ss_response_policy_simulation_response_.go | 242 - ...odel_success_response_relationship_out_.go | 242 - ...l_success_response_simulation_response_.go | 242 - sdks/go/model_validation_error.go | 301 - sdks/go/response.go | 47 - sdks/go/test/api_access_test.go | 61 - sdks/go/test/api_auth_test.go | 49 - sdks/go/test/api_dev_test.go | 49 - sdks/go/test/api_health_test.go | 61 - sdks/go/test/api_management_test.go | 391 - sdks/go/test/api_playground_test.go | 37 - sdks/go/utils.go | 361 - sdks/java/.github/workflows/maven.yml | 30 - sdks/java/.gitignore | 21 - sdks/java/.travis.yml | 22 - sdks/java/README.md | 59 - sdks/java/api/openapi.yaml | 2903 ------ sdks/java/build.gradle | 166 - sdks/java/build.sbt | 27 - sdks/java/docs/ACLCreate.md | 18 - sdks/java/docs/ACLOut.md | 21 - sdks/java/docs/AccessApi.md | 231 - sdks/java/docs/AccessDecisionResponse.md | 19 - sdks/java/docs/AccessRequest.md | 19 - sdks/java/docs/AdminLoginRequest.md | 14 - sdks/java/docs/AdminLoginResponse.md | 17 - sdks/java/docs/AuditRecordOut.md | 25 - sdks/java/docs/AuthApi.md | 132 - sdks/java/docs/AuthModelCreate.md | 13 - sdks/java/docs/AuthModelOut.md | 17 - sdks/java/docs/BatchAccessItem.md | 14 - sdks/java/docs/BatchAccessRequest.md | 16 - sdks/java/docs/BatchAccessResponse.md | 14 - sdks/java/docs/BatchAccessResult.md | 15 - sdks/java/docs/DataValue.md | 12 - sdks/java/docs/DevApi.md | 127 - sdks/java/docs/HTTPValidationError.md | 13 - sdks/java/docs/HealthApi.md | 179 - sdks/java/docs/ImpactAnalysisRequest.md | 13 - sdks/java/docs/ImpactAnalysisResponse.md | 14 - sdks/java/docs/LocationInner.md | 12 - sdks/java/docs/ManagementApi.md | 2085 ----- sdks/java/docs/MetaBody.md | 16 - sdks/java/docs/PermissionCreate.md | 13 - sdks/java/docs/PermissionOut.md | 14 - sdks/java/docs/PermissionUpdate.md | 13 - sdks/java/docs/PlaygroundApi.md | 81 - sdks/java/docs/PlaygroundEvaluateRequest.md | 14 - sdks/java/docs/PlaygroundInput.md | 16 - sdks/java/docs/PlaygroundPolicy.md | 17 - sdks/java/docs/PolicyCreate.md | 17 - sdks/java/docs/PolicyOut.md | 18 - sdks/java/docs/PolicySimulationInput.md | 15 - sdks/java/docs/PolicySimulationRequest.md | 14 - sdks/java/docs/PolicySimulationResponse.md | 14 - sdks/java/docs/RelationshipCreate.md | 17 - sdks/java/docs/RelationshipOut.md | 18 - sdks/java/docs/RoleCreate.md | 13 - sdks/java/docs/RoleOut.md | 14 - sdks/java/docs/RoleUpdate.md | 13 - sdks/java/docs/SimulationResponse.md | 19 - sdks/java/docs/SuccessResponseACLOut.md | 15 - .../SuccessResponseAccessDecisionResponse.md | 15 - .../docs/SuccessResponseAdminLoginResponse.md | 15 - sdks/java/docs/SuccessResponseAuthModelOut.md | 15 - .../SuccessResponseBatchAccessResponse.md | 15 - sdks/java/docs/SuccessResponseDictStrAny.md | 15 - sdks/java/docs/SuccessResponseDictStrInt.md | 15 - .../java/docs/SuccessResponseDictStrObject.md | 15 - sdks/java/docs/SuccessResponseDictStrStr.md | 15 - .../docs/SuccessResponseDictStrUnionIntStr.md | 15 - .../SuccessResponseImpactAnalysisResponse.md | 15 - sdks/java/docs/SuccessResponseListACLOut.md | 15 - .../docs/SuccessResponseListAuditRecordOut.md | 15 - .../docs/SuccessResponseListDictStrStr.md | 15 - .../docs/SuccessResponseListPermissionOut.md | 15 - .../java/docs/SuccessResponseListPolicyOut.md | 15 - sdks/java/docs/SuccessResponseListRoleOut.md | 15 - .../java/docs/SuccessResponsePermissionOut.md | 15 - sdks/java/docs/SuccessResponsePolicyOut.md | 15 - ...SuccessResponsePolicySimulationResponse.md | 15 - .../docs/SuccessResponseRelationshipOut.md | 15 - .../docs/SuccessResponseSimulationResponse.md | 15 - sdks/java/docs/ValidationError.md | 17 - sdks/java/git_push.sh | 57 - sdks/java/gradle.properties | 6 - sdks/java/gradle/wrapper/gradle-wrapper.jar | Bin 43453 -> 0 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 - sdks/java/gradlew | 249 - sdks/java/gradlew.bat | 92 - sdks/java/pom.xml | 340 - sdks/java/settings.gradle | 1 - sdks/kotlin/README.md | 49 - sdks/kotlin/build.gradle.kts | 98 - sdks/kotlin/docs/ACLCreate.md | 15 - sdks/kotlin/docs/ACLOut.md | 18 - sdks/kotlin/docs/AccessApi.md | 162 - sdks/kotlin/docs/AccessDecisionResponse.md | 16 - sdks/kotlin/docs/AccessRequest.md | 15 - sdks/kotlin/docs/AdminLoginRequest.md | 11 - sdks/kotlin/docs/AdminLoginResponse.md | 14 - sdks/kotlin/docs/AuditRecordOut.md | 22 - sdks/kotlin/docs/AuthApi.md | 98 - sdks/kotlin/docs/AuthModelCreate.md | 10 - sdks/kotlin/docs/AuthModelOut.md | 14 - sdks/kotlin/docs/BatchAccessItem.md | 11 - sdks/kotlin/docs/BatchAccessRequest.md | 13 - sdks/kotlin/docs/BatchAccessResponse.md | 11 - sdks/kotlin/docs/BatchAccessResult.md | 12 - sdks/kotlin/docs/DataValue.md | 9 - sdks/kotlin/docs/DevApi.md | 95 - sdks/kotlin/docs/HTTPValidationError.md | 10 - sdks/kotlin/docs/HealthApi.md | 134 - sdks/kotlin/docs/ImpactAnalysisRequest.md | 10 - sdks/kotlin/docs/ImpactAnalysisResponse.md | 11 - sdks/kotlin/docs/LocationInner.md | 9 - sdks/kotlin/docs/ManagementApi.md | 1443 --- sdks/kotlin/docs/MetaBody.md | 13 - sdks/kotlin/docs/PermissionCreate.md | 10 - sdks/kotlin/docs/PermissionOut.md | 11 - sdks/kotlin/docs/PermissionUpdate.md | 10 - sdks/kotlin/docs/PlaygroundApi.md | 58 - sdks/kotlin/docs/PlaygroundEvaluateRequest.md | 11 - sdks/kotlin/docs/PlaygroundInput.md | 13 - sdks/kotlin/docs/PlaygroundPolicy.md | 14 - sdks/kotlin/docs/PolicyCreate.md | 14 - sdks/kotlin/docs/PolicyOut.md | 15 - sdks/kotlin/docs/PolicySimulationInput.md | 12 - sdks/kotlin/docs/PolicySimulationRequest.md | 11 - sdks/kotlin/docs/PolicySimulationResponse.md | 11 - sdks/kotlin/docs/RelationshipCreate.md | 14 - sdks/kotlin/docs/RelationshipOut.md | 15 - sdks/kotlin/docs/RoleCreate.md | 10 - sdks/kotlin/docs/RoleOut.md | 11 - sdks/kotlin/docs/RoleUpdate.md | 10 - sdks/kotlin/docs/SimulationResponse.md | 16 - sdks/kotlin/docs/SuccessResponseACLOut.md | 12 - .../SuccessResponseAccessDecisionResponse.md | 12 - .../docs/SuccessResponseAdminLoginResponse.md | 12 - .../docs/SuccessResponseAuthModelOut.md | 12 - .../SuccessResponseBatchAccessResponse.md | 12 - sdks/kotlin/docs/SuccessResponseDictStrAny.md | 12 - sdks/kotlin/docs/SuccessResponseDictStrInt.md | 12 - .../docs/SuccessResponseDictStrObject.md | 12 - sdks/kotlin/docs/SuccessResponseDictStrStr.md | 12 - .../docs/SuccessResponseDictStrUnionIntStr.md | 12 - .../SuccessResponseImpactAnalysisResponse.md | 12 - sdks/kotlin/docs/SuccessResponseListACLOut.md | 12 - .../docs/SuccessResponseListAuditRecordOut.md | 12 - .../docs/SuccessResponseListDictStrStr.md | 12 - .../docs/SuccessResponseListPermissionOut.md | 12 - .../docs/SuccessResponseListPolicyOut.md | 12 - .../kotlin/docs/SuccessResponseListRoleOut.md | 12 - .../docs/SuccessResponsePermissionOut.md | 12 - sdks/kotlin/docs/SuccessResponsePolicyOut.md | 12 - ...SuccessResponsePolicySimulationResponse.md | 12 - .../docs/SuccessResponseRelationshipOut.md | 12 - .../docs/SuccessResponseSimulationResponse.md | 12 - sdks/kotlin/docs/ValidationError.md | 14 - sdks/kotlin/gradle/wrapper/gradle-wrapper.jar | Bin 43504 -> 0 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 - sdks/kotlin/gradlew | 252 - sdks/kotlin/gradlew.bat | 94 - sdks/kotlin/settings.gradle.kts | 1 - sdks/php/.gitignore | 15 - sdks/php/.php-cs-fixer.dist.php | 29 - sdks/php/.travis.yml | 8 - sdks/php/README.md | 49 - sdks/php/composer.json | 39 - sdks/php/docs/Api/AccessApi.md | 205 - sdks/php/docs/Api/AuthApi.md | 119 - sdks/php/docs/Api/DevApi.md | 116 - sdks/php/docs/Api/HealthApi.md | 165 - sdks/php/docs/Api/ManagementApi.md | 1836 ---- sdks/php/docs/Api/PlaygroundApi.md | 73 - sdks/php/docs/Model/ACLCreate.md | 14 - sdks/php/docs/Model/ACLOut.md | 17 - sdks/php/docs/Model/AccessDecisionResponse.md | 15 - sdks/php/docs/Model/AccessRequest.md | 14 - sdks/php/docs/Model/AdminLoginRequest.md | 10 - sdks/php/docs/Model/AdminLoginResponse.md | 13 - sdks/php/docs/Model/AuditRecordOut.md | 21 - sdks/php/docs/Model/AuthModelCreate.md | 9 - sdks/php/docs/Model/AuthModelOut.md | 13 - sdks/php/docs/Model/BatchAccessItem.md | 10 - sdks/php/docs/Model/BatchAccessRequest.md | 12 - sdks/php/docs/Model/BatchAccessResponse.md | 10 - sdks/php/docs/Model/BatchAccessResult.md | 11 - sdks/php/docs/Model/DataValue.md | 8 - sdks/php/docs/Model/HTTPValidationError.md | 9 - sdks/php/docs/Model/ImpactAnalysisRequest.md | 9 - sdks/php/docs/Model/ImpactAnalysisResponse.md | 10 - sdks/php/docs/Model/LocationInner.md | 8 - sdks/php/docs/Model/MetaBody.md | 12 - sdks/php/docs/Model/PermissionCreate.md | 9 - sdks/php/docs/Model/PermissionOut.md | 10 - sdks/php/docs/Model/PermissionUpdate.md | 9 - .../docs/Model/PlaygroundEvaluateRequest.md | 10 - sdks/php/docs/Model/PlaygroundInput.md | 12 - sdks/php/docs/Model/PlaygroundPolicy.md | 13 - sdks/php/docs/Model/PolicyCreate.md | 13 - sdks/php/docs/Model/PolicyOut.md | 14 - sdks/php/docs/Model/PolicySimulationInput.md | 11 - .../php/docs/Model/PolicySimulationRequest.md | 10 - .../docs/Model/PolicySimulationResponse.md | 10 - sdks/php/docs/Model/RelationshipCreate.md | 13 - sdks/php/docs/Model/RelationshipOut.md | 14 - sdks/php/docs/Model/RoleCreate.md | 9 - sdks/php/docs/Model/RoleOut.md | 10 - sdks/php/docs/Model/RoleUpdate.md | 9 - sdks/php/docs/Model/SimulationResponse.md | 15 - sdks/php/docs/Model/SuccessResponseACLOut.md | 11 - .../SuccessResponseAccessDecisionResponse.md | 11 - .../SuccessResponseAdminLoginResponse.md | 11 - .../docs/Model/SuccessResponseAuthModelOut.md | 11 - .../SuccessResponseBatchAccessResponse.md | 11 - .../docs/Model/SuccessResponseDictStrAny.md | 11 - .../docs/Model/SuccessResponseDictStrInt.md | 11 - .../Model/SuccessResponseDictStrObject.md | 11 - .../docs/Model/SuccessResponseDictStrStr.md | 11 - .../SuccessResponseDictStrUnionIntStr.md | 11 - .../SuccessResponseImpactAnalysisResponse.md | 11 - .../docs/Model/SuccessResponseListACLOut.md | 11 - .../SuccessResponseListAuditRecordOut.md | 11 - .../Model/SuccessResponseListDictStrStr.md | 11 - .../Model/SuccessResponseListPermissionOut.md | 11 - .../Model/SuccessResponseListPolicyOut.md | 11 - .../docs/Model/SuccessResponseListRoleOut.md | 11 - .../Model/SuccessResponsePermissionOut.md | 11 - .../docs/Model/SuccessResponsePolicyOut.md | 11 - ...SuccessResponsePolicySimulationResponse.md | 11 - .../Model/SuccessResponseRelationshipOut.md | 11 - .../SuccessResponseSimulationResponse.md | 11 - sdks/php/docs/Model/ValidationError.md | 13 - sdks/php/git_push.sh | 57 - sdks/php/phpunit.xml.dist | 18 - sdks/php/test/Api/AccessApiTest.php | 109 - sdks/php/test/Api/AuthApiTest.php | 97 - sdks/php/test/Api/DevApiTest.php | 97 - sdks/php/test/Api/HealthApiTest.php | 109 - sdks/php/test/Api/ManagementApiTest.php | 409 - sdks/php/test/Api/PlaygroundApiTest.php | 85 - sdks/php/test/Model/ACLCreateTest.php | 135 - sdks/php/test/Model/ACLOutTest.php | 162 - .../test/Model/AccessDecisionResponseTest.php | 144 - sdks/php/test/Model/AccessRequestTest.php | 135 - sdks/php/test/Model/AdminLoginRequestTest.php | 99 - .../php/test/Model/AdminLoginResponseTest.php | 126 - sdks/php/test/Model/AuditRecordOutTest.php | 198 - sdks/php/test/Model/AuthModelCreateTest.php | 90 - sdks/php/test/Model/AuthModelOutTest.php | 126 - sdks/php/test/Model/BatchAccessItemTest.php | 99 - .../php/test/Model/BatchAccessRequestTest.php | 117 - .../test/Model/BatchAccessResponseTest.php | 99 - sdks/php/test/Model/BatchAccessResultTest.php | 108 - sdks/php/test/Model/DataValueTest.php | 81 - .../test/Model/HTTPValidationErrorTest.php | 90 - .../test/Model/ImpactAnalysisRequestTest.php | 90 - .../test/Model/ImpactAnalysisResponseTest.php | 99 - sdks/php/test/Model/LocationInnerTest.php | 81 - sdks/php/test/Model/MetaBodyTest.php | 117 - sdks/php/test/Model/PermissionCreateTest.php | 90 - sdks/php/test/Model/PermissionOutTest.php | 99 - sdks/php/test/Model/PermissionUpdateTest.php | 90 - .../Model/PlaygroundEvaluateRequestTest.php | 99 - sdks/php/test/Model/PlaygroundInputTest.php | 117 - sdks/php/test/Model/PlaygroundPolicyTest.php | 126 - sdks/php/test/Model/PolicyCreateTest.php | 126 - sdks/php/test/Model/PolicyOutTest.php | 135 - .../test/Model/PolicySimulationInputTest.php | 108 - .../Model/PolicySimulationRequestTest.php | 99 - .../Model/PolicySimulationResponseTest.php | 99 - .../php/test/Model/RelationshipCreateTest.php | 126 - sdks/php/test/Model/RelationshipOutTest.php | 135 - sdks/php/test/Model/RoleCreateTest.php | 90 - sdks/php/test/Model/RoleOutTest.php | 99 - sdks/php/test/Model/RoleUpdateTest.php | 90 - .../php/test/Model/SimulationResponseTest.php | 144 - .../test/Model/SuccessResponseACLOutTest.php | 108 - ...cessResponseAccessDecisionResponseTest.php | 108 - .../SuccessResponseAdminLoginResponseTest.php | 108 - .../Model/SuccessResponseAuthModelOutTest.php | 108 - ...SuccessResponseBatchAccessResponseTest.php | 108 - .../Model/SuccessResponseDictStrAnyTest.php | 108 - .../Model/SuccessResponseDictStrIntTest.php | 108 - .../SuccessResponseDictStrObjectTest.php | 108 - .../Model/SuccessResponseDictStrStrTest.php | 108 - .../SuccessResponseDictStrUnionIntStrTest.php | 108 - ...cessResponseImpactAnalysisResponseTest.php | 108 - .../Model/SuccessResponseListACLOutTest.php | 108 - .../SuccessResponseListAuditRecordOutTest.php | 108 - .../SuccessResponseListDictStrStrTest.php | 108 - .../SuccessResponseListPermissionOutTest.php | 108 - .../SuccessResponseListPolicyOutTest.php | 108 - .../Model/SuccessResponseListRoleOutTest.php | 108 - .../SuccessResponsePermissionOutTest.php | 108 - .../Model/SuccessResponsePolicyOutTest.php | 108 - ...ssResponsePolicySimulationResponseTest.php | 108 - .../SuccessResponseRelationshipOutTest.php | 108 - .../SuccessResponseSimulationResponseTest.php | 108 - sdks/php/test/Model/ValidationErrorTest.php | 126 - sdks/python/.github/workflows/python.yml | 34 - sdks/python/.gitignore | 66 - sdks/python/.gitlab-ci.yml | 31 - sdks/python/.travis.yml | 17 - sdks/python/README.md | 53 - sdks/python/docs/ACLCreate.md | 34 - sdks/python/docs/ACLOut.md | 37 - sdks/python/docs/AccessApi.md | 270 - sdks/python/docs/AccessDecisionResponse.md | 35 - sdks/python/docs/AccessRequest.md | 35 - sdks/python/docs/AdminLoginRequest.md | 30 - sdks/python/docs/AdminLoginResponse.md | 33 - sdks/python/docs/AuditRecordOut.md | 41 - sdks/python/docs/AuthApi.md | 146 - sdks/python/docs/AuthModelCreate.md | 29 - sdks/python/docs/AuthModelOut.md | 33 - sdks/python/docs/BatchAccessItem.md | 30 - sdks/python/docs/BatchAccessRequest.md | 32 - sdks/python/docs/BatchAccessResponse.md | 30 - sdks/python/docs/BatchAccessResult.md | 31 - sdks/python/docs/DataValue.md | 28 - sdks/python/docs/DevApi.md | 139 - sdks/python/docs/HTTPValidationError.md | 29 - sdks/python/docs/HealthApi.md | 197 - sdks/python/docs/ImpactAnalysisRequest.md | 29 - sdks/python/docs/ImpactAnalysisResponse.md | 30 - sdks/python/docs/LocationInner.md | 28 - sdks/python/docs/ManagementApi.md | 2432 ----- sdks/python/docs/MetaBody.md | 32 - sdks/python/docs/PermissionCreate.md | 29 - sdks/python/docs/PermissionOut.md | 30 - sdks/python/docs/PermissionUpdate.md | 29 - sdks/python/docs/PlaygroundApi.md | 94 - sdks/python/docs/PlaygroundEvaluateRequest.md | 30 - sdks/python/docs/PlaygroundInput.md | 32 - sdks/python/docs/PlaygroundPolicy.md | 33 - sdks/python/docs/PolicyCreate.md | 33 - sdks/python/docs/PolicyOut.md | 34 - sdks/python/docs/PolicySimulationInput.md | 31 - sdks/python/docs/PolicySimulationRequest.md | 30 - sdks/python/docs/PolicySimulationResponse.md | 30 - sdks/python/docs/RelationshipCreate.md | 33 - sdks/python/docs/RelationshipOut.md | 34 - sdks/python/docs/RoleCreate.md | 29 - sdks/python/docs/RoleOut.md | 30 - sdks/python/docs/RoleUpdate.md | 29 - sdks/python/docs/SimulationResponse.md | 35 - sdks/python/docs/SuccessResponseACLOut.md | 31 - .../SuccessResponseAccessDecisionResponse.md | 31 - .../docs/SuccessResponseAdminLoginResponse.md | 31 - .../docs/SuccessResponseAuthModelOut.md | 31 - .../SuccessResponseBatchAccessResponse.md | 31 - sdks/python/docs/SuccessResponseDictStrAny.md | 31 - sdks/python/docs/SuccessResponseDictStrInt.md | 31 - .../docs/SuccessResponseDictStrObject.md | 31 - sdks/python/docs/SuccessResponseDictStrStr.md | 31 - .../docs/SuccessResponseDictStrUnionIntStr.md | 31 - .../SuccessResponseImpactAnalysisResponse.md | 31 - sdks/python/docs/SuccessResponseListACLOut.md | 31 - .../docs/SuccessResponseListAuditRecordOut.md | 31 - .../docs/SuccessResponseListDictStrStr.md | 31 - .../docs/SuccessResponseListPermissionOut.md | 31 - .../docs/SuccessResponseListPolicyOut.md | 31 - .../python/docs/SuccessResponseListRoleOut.md | 31 - .../docs/SuccessResponsePermissionOut.md | 31 - sdks/python/docs/SuccessResponsePolicyOut.md | 31 - ...SuccessResponsePolicySimulationResponse.md | 31 - .../docs/SuccessResponseRelationshipOut.md | 31 - .../docs/SuccessResponseSimulationResponse.md | 31 - sdks/python/docs/ValidationError.md | 33 - sdks/python/git_push.sh | 57 - sdks/python/keynetra_client/__init__.py | 3 - sdks/python/keynetra_client/api/__init__.py | 10 - sdks/python/keynetra_client/api/access_api.py | 900 -- sdks/python/keynetra_client/api/auth_api.py | 582 -- sdks/python/keynetra_client/api/dev_api.py | 542 -- sdks/python/keynetra_client/api/health_api.py | 762 -- .../keynetra_client/api/management_api.py | 7865 ----------------- .../keynetra_client/api/playground_api.py | 311 - sdks/python/keynetra_client/api_client.py | 808 -- sdks/python/keynetra_client/api_response.py | 21 - sdks/python/keynetra_client/client.py | 25 - sdks/python/keynetra_client/configuration.py | 634 -- sdks/python/keynetra_client/exceptions.py | 218 - .../python/keynetra_client/models/__init__.py | 75 - .../models/access_decision_response.py | 115 - .../keynetra_client/models/access_request.py | 103 - .../keynetra_client/models/acl_create.py | 98 - sdks/python/keynetra_client/models/acl_out.py | 110 - .../models/admin_login_request.py | 90 - .../models/admin_login_response.py | 96 - .../models/audit_record_out.py | 123 - .../models/auth_model_create.py | 88 - .../keynetra_client/models/auth_model_out.py | 96 - .../models/batch_access_item.py | 90 - .../models/batch_access_request.py | 107 - .../models/batch_access_response.py | 103 - .../models/batch_access_result.py | 97 - .../keynetra_client/models/data_value.py | 138 - .../models/http_validation_error.py | 96 - .../models/impact_analysis_request.py | 88 - .../models/impact_analysis_response.py | 90 - .../keynetra_client/models/location_inner.py | 138 - .../keynetra_client/models/meta_body.py | 109 - .../models/permission_create.py | 88 - .../keynetra_client/models/permission_out.py | 90 - .../models/permission_update.py | 88 - .../models/playground_evaluate_request.py | 102 - .../models/playground_input.py | 94 - .../models/playground_policy.py | 101 - .../keynetra_client/models/policy_create.py | 96 - .../keynetra_client/models/policy_out.py | 98 - .../models/policy_simulation_input.py | 107 - .../models/policy_simulation_request.py | 94 - .../models/policy_simulation_response.py | 90 - .../models/relationship_create.py | 96 - .../models/relationship_out.py | 98 - .../keynetra_client/models/role_create.py | 88 - .../python/keynetra_client/models/role_out.py | 90 - .../keynetra_client/models/role_update.py | 88 - .../models/simulation_response.py | 115 - ...ccess_response_access_decision_response.py | 103 - .../models/success_response_acl_out.py | 103 - .../success_response_admin_login_response.py | 103 - .../models/success_response_auth_model_out.py | 103 - .../success_response_batch_access_response.py | 103 - .../models/success_response_dict_str_any.py | 99 - .../models/success_response_dict_str_int.py | 99 - .../success_response_dict_str_object.py | 99 - .../models/success_response_dict_str_str.py | 99 - ...success_response_dict_str_union_int_str.py | 112 - ...ccess_response_impact_analysis_response.py | 103 - .../models/success_response_list_acl_out.py | 107 - .../success_response_list_audit_record_out.py | 107 - .../success_response_list_dict_str_str.py | 99 - .../success_response_list_permission_out.py | 107 - .../success_response_list_policy_out.py | 107 - .../models/success_response_list_role_out.py | 107 - .../models/success_response_permission_out.py | 103 - .../models/success_response_policy_out.py | 103 - ...ess_response_policy_simulation_response.py | 103 - .../success_response_relationship_out.py | 103 - .../success_response_simulation_response.py | 103 - .../models/validation_error.py | 109 - sdks/python/keynetra_client/py.typed | 0 sdks/python/keynetra_client/rest.py | 263 - sdks/python/pyproject.toml | 26 - sdks/python/requirements.txt | 4 - sdks/python/setup.cfg | 2 - sdks/python/setup.py | 47 - sdks/python/test-requirements.txt | 6 - sdks/python/test/__init__.py | 0 sdks/python/test/test_access_api.py | 52 - .../test/test_access_decision_response.py | 63 - sdks/python/test/test_access_request.py | 57 - sdks/python/test/test_acl_create.py | 62 - sdks/python/test/test_acl_out.py | 67 - sdks/python/test/test_admin_login_request.py | 54 - sdks/python/test/test_admin_login_response.py | 58 - sdks/python/test/test_audit_record_out.py | 86 - sdks/python/test/test_auth_api.py | 45 - sdks/python/test/test_auth_model_create.py | 52 - sdks/python/test/test_auth_model_out.py | 60 - sdks/python/test/test_batch_access_item.py | 53 - sdks/python/test/test_batch_access_request.py | 63 - .../python/test/test_batch_access_response.py | 63 - sdks/python/test/test_batch_access_result.py | 55 - sdks/python/test/test_data_value.py | 50 - sdks/python/test/test_dev_api.py | 45 - sdks/python/test/test_health_api.py | 52 - .../python/test/test_http_validation_error.py | 60 - .../test/test_impact_analysis_request.py | 52 - .../test/test_impact_analysis_response.py | 56 - sdks/python/test/test_location_inner.py | 50 - sdks/python/test/test_management_api.py | 227 - sdks/python/test/test_meta_body.py | 54 - sdks/python/test/test_permission_create.py | 52 - sdks/python/test/test_permission_out.py | 54 - sdks/python/test/test_permission_update.py | 52 - sdks/python/test/test_playground_api.py | 38 - .../test/test_playground_evaluate_request.py | 76 - sdks/python/test/test_playground_input.py | 54 - sdks/python/test/test_playground_policy.py | 56 - sdks/python/test/test_policy_create.py | 56 - sdks/python/test/test_policy_out.py | 61 - .../test/test_policy_simulation_input.py | 53 - .../test/test_policy_simulation_request.py | 55 - .../test/test_policy_simulation_response.py | 54 - sdks/python/test/test_relationship_create.py | 60 - sdks/python/test/test_relationship_out.py | 62 - sdks/python/test/test_role_create.py | 52 - sdks/python/test/test_role_out.py | 54 - sdks/python/test/test_role_update.py | 52 - sdks/python/test/test_simulation_response.py | 67 - ...ccess_response_access_decision_response.py | 80 - .../test/test_success_response_acl_out.py | 76 - ...t_success_response_admin_login_response.py | 68 - .../test_success_response_auth_model_out.py | 68 - ..._success_response_batch_access_response.py | 72 - .../test_success_response_dict_str_any.py | 58 - .../test_success_response_dict_str_int.py | 62 - .../test_success_response_dict_str_object.py | 58 - .../test_success_response_dict_str_str.py | 62 - ...success_response_dict_str_union_int_str.py | 62 - ...ccess_response_impact_analysis_response.py | 70 - .../test_success_response_list_acl_out.py | 80 - ..._success_response_list_audit_record_out.py | 100 - ...test_success_response_list_dict_str_str.py | 66 - ...st_success_response_list_permission_out.py | 66 - .../test_success_response_list_policy_out.py | 74 - .../test_success_response_list_role_out.py | 66 - .../test_success_response_permission_out.py | 62 - .../test/test_success_response_policy_out.py | 70 - ...ess_response_policy_simulation_response.py | 62 - .../test_success_response_relationship_out.py | 70 - ...st_success_response_simulation_response.py | 84 - sdks/python/test/test_validation_error.py | 62 - sdks/python/tox.ini | 9 - sdks/ruby/.gitignore | 39 - sdks/ruby/.gitlab-ci.yml | 26 - sdks/ruby/.rspec | 2 - sdks/ruby/.rubocop.yml | 148 - sdks/ruby/.travis.yml | 11 - sdks/ruby/Gemfile | 9 - sdks/ruby/README.md | 49 - sdks/ruby/Rakefile | 10 - sdks/ruby/docs/ACLCreate.md | 28 - sdks/ruby/docs/ACLOut.md | 34 - sdks/ruby/docs/AccessApi.md | 234 - sdks/ruby/docs/AccessDecisionResponse.md | 30 - sdks/ruby/docs/AccessRequest.md | 28 - sdks/ruby/docs/AdminLoginRequest.md | 20 - sdks/ruby/docs/AdminLoginResponse.md | 26 - sdks/ruby/docs/AuditRecordOut.md | 42 - sdks/ruby/docs/AuthApi.md | 133 - sdks/ruby/docs/AuthModelCreate.md | 18 - sdks/ruby/docs/AuthModelOut.md | 26 - sdks/ruby/docs/BatchAccessItem.md | 20 - sdks/ruby/docs/BatchAccessRequest.md | 24 - sdks/ruby/docs/BatchAccessResponse.md | 20 - sdks/ruby/docs/BatchAccessResult.md | 22 - sdks/ruby/docs/DataValue.md | 15 - sdks/ruby/docs/DevApi.md | 132 - sdks/ruby/docs/HTTPValidationError.md | 18 - sdks/ruby/docs/HealthApi.md | 187 - sdks/ruby/docs/ImpactAnalysisRequest.md | 18 - sdks/ruby/docs/ImpactAnalysisResponse.md | 20 - sdks/ruby/docs/LocationInner.md | 15 - sdks/ruby/docs/ManagementApi.md | 2096 ----- sdks/ruby/docs/MetaBody.md | 24 - sdks/ruby/docs/PermissionCreate.md | 18 - sdks/ruby/docs/PermissionOut.md | 20 - sdks/ruby/docs/PermissionUpdate.md | 18 - sdks/ruby/docs/PlaygroundApi.md | 80 - sdks/ruby/docs/PlaygroundEvaluateRequest.md | 20 - sdks/ruby/docs/PlaygroundInput.md | 24 - sdks/ruby/docs/PlaygroundPolicy.md | 26 - sdks/ruby/docs/PolicyCreate.md | 26 - sdks/ruby/docs/PolicyOut.md | 28 - sdks/ruby/docs/PolicySimulationInput.md | 22 - sdks/ruby/docs/PolicySimulationRequest.md | 20 - sdks/ruby/docs/PolicySimulationResponse.md | 20 - sdks/ruby/docs/RelationshipCreate.md | 26 - sdks/ruby/docs/RelationshipOut.md | 28 - sdks/ruby/docs/RoleCreate.md | 18 - sdks/ruby/docs/RoleOut.md | 20 - sdks/ruby/docs/RoleUpdate.md | 18 - sdks/ruby/docs/SimulationResponse.md | 30 - sdks/ruby/docs/SuccessResponseACLOut.md | 22 - .../SuccessResponseAccessDecisionResponse.md | 22 - .../docs/SuccessResponseAdminLoginResponse.md | 22 - sdks/ruby/docs/SuccessResponseAuthModelOut.md | 22 - .../SuccessResponseBatchAccessResponse.md | 22 - sdks/ruby/docs/SuccessResponseDictStrAny.md | 22 - sdks/ruby/docs/SuccessResponseDictStrInt.md | 22 - .../ruby/docs/SuccessResponseDictStrObject.md | 22 - sdks/ruby/docs/SuccessResponseDictStrStr.md | 22 - .../docs/SuccessResponseDictStrUnionIntStr.md | 22 - .../SuccessResponseImpactAnalysisResponse.md | 22 - sdks/ruby/docs/SuccessResponseListACLOut.md | 22 - .../docs/SuccessResponseListAuditRecordOut.md | 22 - .../docs/SuccessResponseListDictStrStr.md | 22 - .../docs/SuccessResponseListPermissionOut.md | 22 - .../ruby/docs/SuccessResponseListPolicyOut.md | 22 - sdks/ruby/docs/SuccessResponseListRoleOut.md | 22 - .../ruby/docs/SuccessResponsePermissionOut.md | 22 - sdks/ruby/docs/SuccessResponsePolicyOut.md | 22 - ...SuccessResponsePolicySimulationResponse.md | 22 - .../docs/SuccessResponseRelationshipOut.md | 22 - .../docs/SuccessResponseSimulationResponse.md | 22 - sdks/ruby/docs/ValidationError.md | 26 - sdks/ruby/git_push.sh | 57 - sdks/ruby/keynetra-client.gemspec | 39 - sdks/ruby/spec/api/access_api_spec.rb | 70 - sdks/ruby/spec/api/auth_api_spec.rb | 57 - sdks/ruby/spec/api/dev_api_spec.rb | 56 - sdks/ruby/spec/api/health_api_spec.rb | 65 - sdks/ruby/spec/api/management_api_spec.rb | 361 - sdks/ruby/spec/api/playground_api_spec.rb | 46 - .../models/access_decision_response_spec.rb | 72 - sdks/ruby/spec/models/access_request_spec.rb | 66 - sdks/ruby/spec/models/acl_create_spec.rb | 66 - sdks/ruby/spec/models/acl_out_spec.rb | 84 - .../spec/models/admin_login_request_spec.rb | 42 - .../spec/models/admin_login_response_spec.rb | 60 - .../ruby/spec/models/audit_record_out_spec.rb | 108 - .../spec/models/auth_model_create_spec.rb | 36 - sdks/ruby/spec/models/auth_model_out_spec.rb | 60 - .../spec/models/batch_access_item_spec.rb | 42 - .../spec/models/batch_access_request_spec.rb | 54 - .../spec/models/batch_access_response_spec.rb | 42 - .../spec/models/batch_access_result_spec.rb | 48 - sdks/ruby/spec/models/data_value_spec.rb | 21 - .../spec/models/http_validation_error_spec.rb | 36 - .../models/impact_analysis_request_spec.rb | 36 - .../models/impact_analysis_response_spec.rb | 42 - sdks/ruby/spec/models/location_inner_spec.rb | 21 - sdks/ruby/spec/models/meta_body_spec.rb | 54 - .../spec/models/permission_create_spec.rb | 36 - sdks/ruby/spec/models/permission_out_spec.rb | 42 - .../spec/models/permission_update_spec.rb | 36 - .../playground_evaluate_request_spec.rb | 42 - .../ruby/spec/models/playground_input_spec.rb | 54 - .../spec/models/playground_policy_spec.rb | 60 - sdks/ruby/spec/models/policy_create_spec.rb | 60 - sdks/ruby/spec/models/policy_out_spec.rb | 66 - .../models/policy_simulation_input_spec.rb | 48 - .../models/policy_simulation_request_spec.rb | 42 - .../models/policy_simulation_response_spec.rb | 42 - .../spec/models/relationship_create_spec.rb | 60 - .../ruby/spec/models/relationship_out_spec.rb | 66 - sdks/ruby/spec/models/role_create_spec.rb | 36 - sdks/ruby/spec/models/role_out_spec.rb | 42 - sdks/ruby/spec/models/role_update_spec.rb | 36 - .../spec/models/simulation_response_spec.rb | 72 - ..._response_access_decision_response_spec.rb | 48 - .../models/success_response_acl_out_spec.rb | 48 - ...cess_response_admin_login_response_spec.rb | 48 - .../success_response_auth_model_out_spec.rb | 48 - ...ess_response_batch_access_response_spec.rb | 48 - .../success_response_dict_str_any_spec.rb | 48 - .../success_response_dict_str_int_spec.rb | 48 - .../success_response_dict_str_object_spec.rb | 48 - .../success_response_dict_str_str_spec.rb | 48 - ...ss_response_dict_str_union_int_str_spec.rb | 48 - ..._response_impact_analysis_response_spec.rb | 48 - .../success_response_list_acl_out_spec.rb | 48 - ...ess_response_list_audit_record_out_spec.rb | 48 - ...success_response_list_dict_str_str_spec.rb | 48 - ...ccess_response_list_permission_out_spec.rb | 48 - .../success_response_list_policy_out_spec.rb | 48 - .../success_response_list_role_out_spec.rb | 48 - .../success_response_permission_out_spec.rb | 48 - .../success_response_policy_out_spec.rb | 48 - ...esponse_policy_simulation_response_spec.rb | 48 - .../success_response_relationship_out_spec.rb | 48 - ...ccess_response_simulation_response_spec.rb | 48 - .../ruby/spec/models/validation_error_spec.rb | 60 - sdks/ruby/spec/spec_helper.rb | 111 - sdks/rust/.gitignore | 3 - sdks/rust/.travis.yml | 1 - sdks/rust/Cargo.toml | 22 - sdks/rust/README.md | 51 - sdks/rust/docs/AccessApi.md | 97 - sdks/rust/docs/AccessDecisionResponse.md | 17 - sdks/rust/docs/AccessRequest.md | 16 - sdks/rust/docs/AclCreate.md | 16 - sdks/rust/docs/AclOut.md | 19 - sdks/rust/docs/AdminLoginRequest.md | 12 - sdks/rust/docs/AdminLoginResponse.md | 15 - sdks/rust/docs/AuditRecordOut.md | 23 - sdks/rust/docs/AuthApi.md | 66 - sdks/rust/docs/AuthModelCreate.md | 11 - sdks/rust/docs/AuthModelOut.md | 15 - sdks/rust/docs/BatchAccessItem.md | 12 - sdks/rust/docs/BatchAccessRequest.md | 14 - sdks/rust/docs/BatchAccessResponse.md | 12 - sdks/rust/docs/BatchAccessResult.md | 13 - sdks/rust/docs/DataValue.md | 10 - sdks/rust/docs/DevApi.md | 63 - sdks/rust/docs/HealthApi.md | 86 - sdks/rust/docs/HttpValidationError.md | 11 - sdks/rust/docs/ImpactAnalysisRequest.md | 11 - sdks/rust/docs/ImpactAnalysisResponse.md | 12 - sdks/rust/docs/LocationInner.md | 10 - sdks/rust/docs/ManagementApi.md | 836 -- sdks/rust/docs/MetaBody.md | 14 - sdks/rust/docs/PermissionCreate.md | 11 - sdks/rust/docs/PermissionOut.md | 12 - sdks/rust/docs/PermissionUpdate.md | 11 - sdks/rust/docs/PlaygroundApi.md | 37 - sdks/rust/docs/PlaygroundEvaluateRequest.md | 12 - sdks/rust/docs/PlaygroundInput.md | 14 - sdks/rust/docs/PlaygroundPolicy.md | 15 - sdks/rust/docs/PolicyCreate.md | 15 - sdks/rust/docs/PolicyOut.md | 16 - sdks/rust/docs/PolicySimulationInput.md | 13 - sdks/rust/docs/PolicySimulationRequest.md | 12 - sdks/rust/docs/PolicySimulationResponse.md | 12 - sdks/rust/docs/RelationshipCreate.md | 15 - sdks/rust/docs/RelationshipOut.md | 16 - sdks/rust/docs/RoleCreate.md | 11 - sdks/rust/docs/RoleOut.md | 12 - sdks/rust/docs/RoleUpdate.md | 11 - sdks/rust/docs/SimulationResponse.md | 17 - .../SuccessResponseAccessDecisionResponse.md | 13 - sdks/rust/docs/SuccessResponseAclOut.md | 13 - .../docs/SuccessResponseAdminLoginResponse.md | 13 - sdks/rust/docs/SuccessResponseAuthModelOut.md | 13 - .../SuccessResponseBatchAccessResponse.md | 13 - sdks/rust/docs/SuccessResponseDictStrAny.md | 13 - sdks/rust/docs/SuccessResponseDictStrInt.md | 13 - .../rust/docs/SuccessResponseDictStrObject.md | 13 - sdks/rust/docs/SuccessResponseDictStrStr.md | 13 - .../docs/SuccessResponseDictStrUnionIntStr.md | 13 - .../SuccessResponseImpactAnalysisResponse.md | 13 - sdks/rust/docs/SuccessResponseListAclOut.md | 13 - .../docs/SuccessResponseListAuditRecordOut.md | 13 - .../docs/SuccessResponseListDictStrStr.md | 13 - .../docs/SuccessResponseListPermissionOut.md | 13 - .../rust/docs/SuccessResponseListPolicyOut.md | 13 - sdks/rust/docs/SuccessResponseListRoleOut.md | 13 - .../rust/docs/SuccessResponsePermissionOut.md | 13 - sdks/rust/docs/SuccessResponsePolicyOut.md | 13 - ...SuccessResponsePolicySimulationResponse.md | 13 - .../docs/SuccessResponseRelationshipOut.md | 13 - .../docs/SuccessResponseSimulationResponse.md | 13 - sdks/rust/docs/ValidationError.md | 15 - sdks/rust/git_push.sh | 57 - sdks/swift/.gitignore | 100 - sdks/swift/.swiftformat | 45 - sdks/swift/Cartfile | 1 - sdks/swift/KeyNetraClient.podspec | 15 - sdks/swift/Package.swift | 33 - sdks/swift/README.md | 51 - sdks/swift/docs/ACLCreate.md | 15 - sdks/swift/docs/ACLOut.md | 18 - sdks/swift/docs/AccessAPI.md | 159 - sdks/swift/docs/AccessDecisionResponse.md | 16 - sdks/swift/docs/AccessRequest.md | 15 - sdks/swift/docs/AdminLoginRequest.md | 11 - sdks/swift/docs/AdminLoginResponse.md | 14 - sdks/swift/docs/AuditRecordOut.md | 22 - sdks/swift/docs/AuthAPI.md | 106 - sdks/swift/docs/AuthModelCreate.md | 10 - sdks/swift/docs/AuthModelOut.md | 14 - sdks/swift/docs/BatchAccessItem.md | 11 - sdks/swift/docs/BatchAccessRequest.md | 13 - sdks/swift/docs/BatchAccessResponse.md | 11 - sdks/swift/docs/BatchAccessResult.md | 12 - sdks/swift/docs/DataValue.md | 9 - sdks/swift/docs/DevAPI.md | 102 - sdks/swift/docs/HTTPValidationError.md | 10 - sdks/swift/docs/HealthAPI.md | 143 - sdks/swift/docs/ImpactAnalysisRequest.md | 10 - sdks/swift/docs/ImpactAnalysisResponse.md | 11 - sdks/swift/docs/LocationInner.md | 9 - sdks/swift/docs/ManagementAPI.md | 1414 --- sdks/swift/docs/MetaBody.md | 13 - sdks/swift/docs/PermissionCreate.md | 10 - sdks/swift/docs/PermissionOut.md | 11 - sdks/swift/docs/PermissionUpdate.md | 10 - sdks/swift/docs/PlaygroundAPI.md | 57 - sdks/swift/docs/PlaygroundEvaluateRequest.md | 11 - sdks/swift/docs/PlaygroundInput.md | 13 - sdks/swift/docs/PlaygroundPolicy.md | 14 - sdks/swift/docs/PolicyCreate.md | 14 - sdks/swift/docs/PolicyOut.md | 15 - sdks/swift/docs/PolicySimulationInput.md | 12 - sdks/swift/docs/PolicySimulationRequest.md | 11 - sdks/swift/docs/PolicySimulationResponse.md | 11 - sdks/swift/docs/RelationshipCreate.md | 14 - sdks/swift/docs/RelationshipOut.md | 15 - sdks/swift/docs/RoleCreate.md | 10 - sdks/swift/docs/RoleOut.md | 11 - sdks/swift/docs/RoleUpdate.md | 10 - sdks/swift/docs/SimulationResponse.md | 16 - sdks/swift/docs/SuccessResponseACLOut.md | 12 - .../SuccessResponseAccessDecisionResponse.md | 12 - .../docs/SuccessResponseAdminLoginResponse.md | 12 - .../swift/docs/SuccessResponseAuthModelOut.md | 12 - .../SuccessResponseBatchAccessResponse.md | 12 - sdks/swift/docs/SuccessResponseDictStrAny.md | 12 - sdks/swift/docs/SuccessResponseDictStrInt.md | 12 - .../docs/SuccessResponseDictStrObject.md | 12 - sdks/swift/docs/SuccessResponseDictStrStr.md | 12 - .../docs/SuccessResponseDictStrUnionIntStr.md | 12 - .../SuccessResponseImpactAnalysisResponse.md | 12 - sdks/swift/docs/SuccessResponseListACLOut.md | 12 - .../docs/SuccessResponseListAuditRecordOut.md | 12 - .../docs/SuccessResponseListDictStrStr.md | 12 - .../docs/SuccessResponseListPermissionOut.md | 12 - .../docs/SuccessResponseListPolicyOut.md | 12 - sdks/swift/docs/SuccessResponseListRoleOut.md | 12 - .../docs/SuccessResponsePermissionOut.md | 12 - sdks/swift/docs/SuccessResponsePolicyOut.md | 12 - ...SuccessResponsePolicySimulationResponse.md | 12 - .../docs/SuccessResponseRelationshipOut.md | 12 - .../docs/SuccessResponseSimulationResponse.md | 12 - sdks/swift/docs/ValidationError.md | 14 - sdks/swift/git_push.sh | 57 - sdks/swift/project.yml | 14 - sdks/typescript/.gitignore | 4 - sdks/typescript/.npmignore | 1 - sdks/typescript/README.md | 53 - sdks/typescript/docs/ACLCreate.md | 44 - sdks/typescript/docs/ACLOut.md | 50 - sdks/typescript/docs/AccessApi.md | 233 - .../typescript/docs/AccessDecisionResponse.md | 46 - sdks/typescript/docs/AccessRequest.md | 45 - sdks/typescript/docs/AdminLoginRequest.md | 36 - sdks/typescript/docs/AdminLoginResponse.md | 42 - sdks/typescript/docs/AuditRecordOut.md | 58 - sdks/typescript/docs/AuthApi.md | 142 - sdks/typescript/docs/AuthModelCreate.md | 34 - sdks/typescript/docs/AuthModelOut.md | 42 - sdks/typescript/docs/BatchAccessItem.md | 36 - sdks/typescript/docs/BatchAccessRequest.md | 40 - sdks/typescript/docs/BatchAccessResponse.md | 36 - sdks/typescript/docs/BatchAccessResult.md | 38 - sdks/typescript/docs/DataValue.md | 32 - sdks/typescript/docs/DevApi.md | 133 - sdks/typescript/docs/HTTPValidationError.md | 34 - sdks/typescript/docs/HealthApi.md | 182 - sdks/typescript/docs/ImpactAnalysisRequest.md | 34 - .../typescript/docs/ImpactAnalysisResponse.md | 36 - sdks/typescript/docs/LocationInner.md | 32 - sdks/typescript/docs/ManagementApi.md | 2100 ----- sdks/typescript/docs/MetaBody.md | 40 - sdks/typescript/docs/PermissionCreate.md | 34 - sdks/typescript/docs/PermissionOut.md | 36 - sdks/typescript/docs/PermissionUpdate.md | 34 - sdks/typescript/docs/PlaygroundApi.md | 81 - .../docs/PlaygroundEvaluateRequest.md | 36 - sdks/typescript/docs/PlaygroundInput.md | 40 - sdks/typescript/docs/PlaygroundPolicy.md | 42 - sdks/typescript/docs/PolicyCreate.md | 42 - sdks/typescript/docs/PolicyOut.md | 44 - sdks/typescript/docs/PolicySimulationInput.md | 38 - .../docs/PolicySimulationRequest.md | 36 - .../docs/PolicySimulationResponse.md | 36 - sdks/typescript/docs/RelationshipCreate.md | 42 - sdks/typescript/docs/RelationshipOut.md | 44 - sdks/typescript/docs/RoleCreate.md | 34 - sdks/typescript/docs/RoleOut.md | 36 - sdks/typescript/docs/RoleUpdate.md | 34 - sdks/typescript/docs/SimulationResponse.md | 46 - sdks/typescript/docs/SuccessResponseACLOut.md | 38 - .../SuccessResponseAccessDecisionResponse.md | 38 - .../docs/SuccessResponseAdminLoginResponse.md | 38 - .../docs/SuccessResponseAuthModelOut.md | 38 - .../SuccessResponseBatchAccessResponse.md | 38 - .../docs/SuccessResponseDictStrAny.md | 38 - .../docs/SuccessResponseDictStrInt.md | 38 - .../docs/SuccessResponseDictStrObject.md | 38 - .../docs/SuccessResponseDictStrStr.md | 38 - .../docs/SuccessResponseDictStrUnionIntStr.md | 38 - .../SuccessResponseImpactAnalysisResponse.md | 38 - .../docs/SuccessResponseListACLOut.md | 38 - .../docs/SuccessResponseListAuditRecordOut.md | 38 - .../docs/SuccessResponseListDictStrStr.md | 38 - .../docs/SuccessResponseListPermissionOut.md | 38 - .../docs/SuccessResponseListPolicyOut.md | 38 - .../docs/SuccessResponseListRoleOut.md | 38 - .../docs/SuccessResponsePermissionOut.md | 38 - .../docs/SuccessResponsePolicyOut.md | 38 - ...SuccessResponsePolicySimulationResponse.md | 38 - .../docs/SuccessResponseRelationshipOut.md | 38 - .../docs/SuccessResponseSimulationResponse.md | 38 - sdks/typescript/docs/ValidationError.md | 42 - sdks/typescript/package.json | 26 - sdks/typescript/tsconfig.esm.json | 7 - sdks/typescript/tsconfig.json | 14 - 1015 files changed, 107141 deletions(-) delete mode 100644 sdks/csharp/.gitignore delete mode 100644 sdks/csharp/KeyNetra.Client.sln delete mode 100644 sdks/csharp/README.md delete mode 100644 sdks/csharp/api/openapi.yaml delete mode 100644 sdks/csharp/appveyor.yml delete mode 100644 sdks/go/.gitignore delete mode 100644 sdks/go/.travis.yml delete mode 100644 sdks/go/README.md delete mode 100644 sdks/go/api/openapi.yaml delete mode 100644 sdks/go/api_access.go delete mode 100644 sdks/go/api_auth.go delete mode 100644 sdks/go/api_dev.go delete mode 100644 sdks/go/api_health.go delete mode 100644 sdks/go/api_management.go delete mode 100644 sdks/go/api_playground.go delete mode 100644 sdks/go/client.go delete mode 100644 sdks/go/configuration.go delete mode 100644 sdks/go/docs/ACLCreate.md delete mode 100644 sdks/go/docs/ACLOut.md delete mode 100644 sdks/go/docs/AccessAPI.md delete mode 100644 sdks/go/docs/AccessDecisionResponse.md delete mode 100644 sdks/go/docs/AccessRequest.md delete mode 100644 sdks/go/docs/AdminLoginRequest.md delete mode 100644 sdks/go/docs/AdminLoginResponse.md delete mode 100644 sdks/go/docs/AuditRecordOut.md delete mode 100644 sdks/go/docs/AuthAPI.md delete mode 100644 sdks/go/docs/AuthModelCreate.md delete mode 100644 sdks/go/docs/AuthModelOut.md delete mode 100644 sdks/go/docs/BatchAccessItem.md delete mode 100644 sdks/go/docs/BatchAccessRequest.md delete mode 100644 sdks/go/docs/BatchAccessResponse.md delete mode 100644 sdks/go/docs/BatchAccessResult.md delete mode 100644 sdks/go/docs/DataValue.md delete mode 100644 sdks/go/docs/DevAPI.md delete mode 100644 sdks/go/docs/HTTPValidationError.md delete mode 100644 sdks/go/docs/HealthAPI.md delete mode 100644 sdks/go/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/go/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/go/docs/LocationInner.md delete mode 100644 sdks/go/docs/ManagementAPI.md delete mode 100644 sdks/go/docs/MetaBody.md delete mode 100644 sdks/go/docs/PermissionCreate.md delete mode 100644 sdks/go/docs/PermissionOut.md delete mode 100644 sdks/go/docs/PermissionUpdate.md delete mode 100644 sdks/go/docs/PlaygroundAPI.md delete mode 100644 sdks/go/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/go/docs/PlaygroundInput.md delete mode 100644 sdks/go/docs/PlaygroundPolicy.md delete mode 100644 sdks/go/docs/PolicyCreate.md delete mode 100644 sdks/go/docs/PolicyOut.md delete mode 100644 sdks/go/docs/PolicySimulationInput.md delete mode 100644 sdks/go/docs/PolicySimulationRequest.md delete mode 100644 sdks/go/docs/PolicySimulationResponse.md delete mode 100644 sdks/go/docs/RelationshipCreate.md delete mode 100644 sdks/go/docs/RelationshipOut.md delete mode 100644 sdks/go/docs/RoleCreate.md delete mode 100644 sdks/go/docs/RoleOut.md delete mode 100644 sdks/go/docs/RoleUpdate.md delete mode 100644 sdks/go/docs/SimulationResponse.md delete mode 100644 sdks/go/docs/SuccessResponseACLOut.md delete mode 100644 sdks/go/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/go/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/go/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/go/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/go/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/go/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/go/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/go/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/go/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/go/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/go/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/go/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/go/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/go/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/go/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/go/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/go/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/go/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/go/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/go/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/go/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/go/docs/ValidationError.md delete mode 100644 sdks/go/git_push.sh delete mode 100644 sdks/go/go.mod delete mode 100644 sdks/go/go.sum delete mode 100644 sdks/go/keynetra_client.go delete mode 100644 sdks/go/model_access_decision_response.go delete mode 100644 sdks/go/model_access_request.go delete mode 100644 sdks/go/model_acl_create.go delete mode 100644 sdks/go/model_acl_out.go delete mode 100644 sdks/go/model_admin_login_request.go delete mode 100644 sdks/go/model_admin_login_response.go delete mode 100644 sdks/go/model_audit_record_out.go delete mode 100644 sdks/go/model_auth_model_create.go delete mode 100644 sdks/go/model_auth_model_out.go delete mode 100644 sdks/go/model_batch_access_item.go delete mode 100644 sdks/go/model_batch_access_request.go delete mode 100644 sdks/go/model_batch_access_response.go delete mode 100644 sdks/go/model_batch_access_result.go delete mode 100644 sdks/go/model_data_value.go delete mode 100644 sdks/go/model_http_validation_error.go delete mode 100644 sdks/go/model_impact_analysis_request.go delete mode 100644 sdks/go/model_impact_analysis_response.go delete mode 100644 sdks/go/model_location_inner.go delete mode 100644 sdks/go/model_meta_body.go delete mode 100644 sdks/go/model_permission_create.go delete mode 100644 sdks/go/model_permission_out.go delete mode 100644 sdks/go/model_permission_update.go delete mode 100644 sdks/go/model_playground_evaluate_request.go delete mode 100644 sdks/go/model_playground_input.go delete mode 100644 sdks/go/model_playground_policy.go delete mode 100644 sdks/go/model_policy_create.go delete mode 100644 sdks/go/model_policy_out.go delete mode 100644 sdks/go/model_policy_simulation_input.go delete mode 100644 sdks/go/model_policy_simulation_request.go delete mode 100644 sdks/go/model_policy_simulation_response.go delete mode 100644 sdks/go/model_relationship_create.go delete mode 100644 sdks/go/model_relationship_out.go delete mode 100644 sdks/go/model_role_create.go delete mode 100644 sdks/go/model_role_out.go delete mode 100644 sdks/go/model_role_update.go delete mode 100644 sdks/go/model_simulation_response.go delete mode 100644 sdks/go/model_success_response_access_decision_response_.go delete mode 100644 sdks/go/model_success_response_acl_out_.go delete mode 100644 sdks/go/model_success_response_admin_login_response_.go delete mode 100644 sdks/go/model_success_response_auth_model_out_.go delete mode 100644 sdks/go/model_success_response_batch_access_response_.go delete mode 100644 sdks/go/model_success_response_dict_str__any__.go delete mode 100644 sdks/go/model_success_response_dict_str__int__.go delete mode 100644 sdks/go/model_success_response_dict_str__object__.go delete mode 100644 sdks/go/model_success_response_dict_str__str__.go delete mode 100644 sdks/go/model_success_response_dict_str__union_int__str___.go delete mode 100644 sdks/go/model_success_response_impact_analysis_response_.go delete mode 100644 sdks/go/model_success_response_list_acl_out__.go delete mode 100644 sdks/go/model_success_response_list_audit_record_out__.go delete mode 100644 sdks/go/model_success_response_list_dict_str__str___.go delete mode 100644 sdks/go/model_success_response_list_permission_out__.go delete mode 100644 sdks/go/model_success_response_list_policy_out__.go delete mode 100644 sdks/go/model_success_response_list_role_out__.go delete mode 100644 sdks/go/model_success_response_permission_out_.go delete mode 100644 sdks/go/model_success_response_policy_out_.go delete mode 100644 sdks/go/model_success_response_policy_simulation_response_.go delete mode 100644 sdks/go/model_success_response_relationship_out_.go delete mode 100644 sdks/go/model_success_response_simulation_response_.go delete mode 100644 sdks/go/model_validation_error.go delete mode 100644 sdks/go/response.go delete mode 100644 sdks/go/test/api_access_test.go delete mode 100644 sdks/go/test/api_auth_test.go delete mode 100644 sdks/go/test/api_dev_test.go delete mode 100644 sdks/go/test/api_health_test.go delete mode 100644 sdks/go/test/api_management_test.go delete mode 100644 sdks/go/test/api_playground_test.go delete mode 100644 sdks/go/utils.go delete mode 100644 sdks/java/.github/workflows/maven.yml delete mode 100644 sdks/java/.gitignore delete mode 100644 sdks/java/.travis.yml delete mode 100644 sdks/java/README.md delete mode 100644 sdks/java/api/openapi.yaml delete mode 100644 sdks/java/build.gradle delete mode 100644 sdks/java/build.sbt delete mode 100644 sdks/java/docs/ACLCreate.md delete mode 100644 sdks/java/docs/ACLOut.md delete mode 100644 sdks/java/docs/AccessApi.md delete mode 100644 sdks/java/docs/AccessDecisionResponse.md delete mode 100644 sdks/java/docs/AccessRequest.md delete mode 100644 sdks/java/docs/AdminLoginRequest.md delete mode 100644 sdks/java/docs/AdminLoginResponse.md delete mode 100644 sdks/java/docs/AuditRecordOut.md delete mode 100644 sdks/java/docs/AuthApi.md delete mode 100644 sdks/java/docs/AuthModelCreate.md delete mode 100644 sdks/java/docs/AuthModelOut.md delete mode 100644 sdks/java/docs/BatchAccessItem.md delete mode 100644 sdks/java/docs/BatchAccessRequest.md delete mode 100644 sdks/java/docs/BatchAccessResponse.md delete mode 100644 sdks/java/docs/BatchAccessResult.md delete mode 100644 sdks/java/docs/DataValue.md delete mode 100644 sdks/java/docs/DevApi.md delete mode 100644 sdks/java/docs/HTTPValidationError.md delete mode 100644 sdks/java/docs/HealthApi.md delete mode 100644 sdks/java/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/java/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/java/docs/LocationInner.md delete mode 100644 sdks/java/docs/ManagementApi.md delete mode 100644 sdks/java/docs/MetaBody.md delete mode 100644 sdks/java/docs/PermissionCreate.md delete mode 100644 sdks/java/docs/PermissionOut.md delete mode 100644 sdks/java/docs/PermissionUpdate.md delete mode 100644 sdks/java/docs/PlaygroundApi.md delete mode 100644 sdks/java/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/java/docs/PlaygroundInput.md delete mode 100644 sdks/java/docs/PlaygroundPolicy.md delete mode 100644 sdks/java/docs/PolicyCreate.md delete mode 100644 sdks/java/docs/PolicyOut.md delete mode 100644 sdks/java/docs/PolicySimulationInput.md delete mode 100644 sdks/java/docs/PolicySimulationRequest.md delete mode 100644 sdks/java/docs/PolicySimulationResponse.md delete mode 100644 sdks/java/docs/RelationshipCreate.md delete mode 100644 sdks/java/docs/RelationshipOut.md delete mode 100644 sdks/java/docs/RoleCreate.md delete mode 100644 sdks/java/docs/RoleOut.md delete mode 100644 sdks/java/docs/RoleUpdate.md delete mode 100644 sdks/java/docs/SimulationResponse.md delete mode 100644 sdks/java/docs/SuccessResponseACLOut.md delete mode 100644 sdks/java/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/java/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/java/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/java/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/java/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/java/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/java/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/java/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/java/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/java/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/java/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/java/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/java/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/java/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/java/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/java/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/java/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/java/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/java/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/java/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/java/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/java/docs/ValidationError.md delete mode 100644 sdks/java/git_push.sh delete mode 100644 sdks/java/gradle.properties delete mode 100644 sdks/java/gradle/wrapper/gradle-wrapper.jar delete mode 100644 sdks/java/gradle/wrapper/gradle-wrapper.properties delete mode 100755 sdks/java/gradlew delete mode 100644 sdks/java/gradlew.bat delete mode 100644 sdks/java/pom.xml delete mode 100644 sdks/java/settings.gradle delete mode 100644 sdks/kotlin/README.md delete mode 100644 sdks/kotlin/build.gradle.kts delete mode 100644 sdks/kotlin/docs/ACLCreate.md delete mode 100644 sdks/kotlin/docs/ACLOut.md delete mode 100644 sdks/kotlin/docs/AccessApi.md delete mode 100644 sdks/kotlin/docs/AccessDecisionResponse.md delete mode 100644 sdks/kotlin/docs/AccessRequest.md delete mode 100644 sdks/kotlin/docs/AdminLoginRequest.md delete mode 100644 sdks/kotlin/docs/AdminLoginResponse.md delete mode 100644 sdks/kotlin/docs/AuditRecordOut.md delete mode 100644 sdks/kotlin/docs/AuthApi.md delete mode 100644 sdks/kotlin/docs/AuthModelCreate.md delete mode 100644 sdks/kotlin/docs/AuthModelOut.md delete mode 100644 sdks/kotlin/docs/BatchAccessItem.md delete mode 100644 sdks/kotlin/docs/BatchAccessRequest.md delete mode 100644 sdks/kotlin/docs/BatchAccessResponse.md delete mode 100644 sdks/kotlin/docs/BatchAccessResult.md delete mode 100644 sdks/kotlin/docs/DataValue.md delete mode 100644 sdks/kotlin/docs/DevApi.md delete mode 100644 sdks/kotlin/docs/HTTPValidationError.md delete mode 100644 sdks/kotlin/docs/HealthApi.md delete mode 100644 sdks/kotlin/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/kotlin/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/kotlin/docs/LocationInner.md delete mode 100644 sdks/kotlin/docs/ManagementApi.md delete mode 100644 sdks/kotlin/docs/MetaBody.md delete mode 100644 sdks/kotlin/docs/PermissionCreate.md delete mode 100644 sdks/kotlin/docs/PermissionOut.md delete mode 100644 sdks/kotlin/docs/PermissionUpdate.md delete mode 100644 sdks/kotlin/docs/PlaygroundApi.md delete mode 100644 sdks/kotlin/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/kotlin/docs/PlaygroundInput.md delete mode 100644 sdks/kotlin/docs/PlaygroundPolicy.md delete mode 100644 sdks/kotlin/docs/PolicyCreate.md delete mode 100644 sdks/kotlin/docs/PolicyOut.md delete mode 100644 sdks/kotlin/docs/PolicySimulationInput.md delete mode 100644 sdks/kotlin/docs/PolicySimulationRequest.md delete mode 100644 sdks/kotlin/docs/PolicySimulationResponse.md delete mode 100644 sdks/kotlin/docs/RelationshipCreate.md delete mode 100644 sdks/kotlin/docs/RelationshipOut.md delete mode 100644 sdks/kotlin/docs/RoleCreate.md delete mode 100644 sdks/kotlin/docs/RoleOut.md delete mode 100644 sdks/kotlin/docs/RoleUpdate.md delete mode 100644 sdks/kotlin/docs/SimulationResponse.md delete mode 100644 sdks/kotlin/docs/SuccessResponseACLOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/kotlin/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/kotlin/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/kotlin/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/kotlin/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/kotlin/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/kotlin/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/kotlin/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/kotlin/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/kotlin/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/kotlin/docs/ValidationError.md delete mode 100644 sdks/kotlin/gradle/wrapper/gradle-wrapper.jar delete mode 100644 sdks/kotlin/gradle/wrapper/gradle-wrapper.properties delete mode 100755 sdks/kotlin/gradlew delete mode 100644 sdks/kotlin/gradlew.bat delete mode 100644 sdks/kotlin/settings.gradle.kts delete mode 100644 sdks/php/.gitignore delete mode 100644 sdks/php/.php-cs-fixer.dist.php delete mode 100644 sdks/php/.travis.yml delete mode 100644 sdks/php/README.md delete mode 100644 sdks/php/composer.json delete mode 100644 sdks/php/docs/Api/AccessApi.md delete mode 100644 sdks/php/docs/Api/AuthApi.md delete mode 100644 sdks/php/docs/Api/DevApi.md delete mode 100644 sdks/php/docs/Api/HealthApi.md delete mode 100644 sdks/php/docs/Api/ManagementApi.md delete mode 100644 sdks/php/docs/Api/PlaygroundApi.md delete mode 100644 sdks/php/docs/Model/ACLCreate.md delete mode 100644 sdks/php/docs/Model/ACLOut.md delete mode 100644 sdks/php/docs/Model/AccessDecisionResponse.md delete mode 100644 sdks/php/docs/Model/AccessRequest.md delete mode 100644 sdks/php/docs/Model/AdminLoginRequest.md delete mode 100644 sdks/php/docs/Model/AdminLoginResponse.md delete mode 100644 sdks/php/docs/Model/AuditRecordOut.md delete mode 100644 sdks/php/docs/Model/AuthModelCreate.md delete mode 100644 sdks/php/docs/Model/AuthModelOut.md delete mode 100644 sdks/php/docs/Model/BatchAccessItem.md delete mode 100644 sdks/php/docs/Model/BatchAccessRequest.md delete mode 100644 sdks/php/docs/Model/BatchAccessResponse.md delete mode 100644 sdks/php/docs/Model/BatchAccessResult.md delete mode 100644 sdks/php/docs/Model/DataValue.md delete mode 100644 sdks/php/docs/Model/HTTPValidationError.md delete mode 100644 sdks/php/docs/Model/ImpactAnalysisRequest.md delete mode 100644 sdks/php/docs/Model/ImpactAnalysisResponse.md delete mode 100644 sdks/php/docs/Model/LocationInner.md delete mode 100644 sdks/php/docs/Model/MetaBody.md delete mode 100644 sdks/php/docs/Model/PermissionCreate.md delete mode 100644 sdks/php/docs/Model/PermissionOut.md delete mode 100644 sdks/php/docs/Model/PermissionUpdate.md delete mode 100644 sdks/php/docs/Model/PlaygroundEvaluateRequest.md delete mode 100644 sdks/php/docs/Model/PlaygroundInput.md delete mode 100644 sdks/php/docs/Model/PlaygroundPolicy.md delete mode 100644 sdks/php/docs/Model/PolicyCreate.md delete mode 100644 sdks/php/docs/Model/PolicyOut.md delete mode 100644 sdks/php/docs/Model/PolicySimulationInput.md delete mode 100644 sdks/php/docs/Model/PolicySimulationRequest.md delete mode 100644 sdks/php/docs/Model/PolicySimulationResponse.md delete mode 100644 sdks/php/docs/Model/RelationshipCreate.md delete mode 100644 sdks/php/docs/Model/RelationshipOut.md delete mode 100644 sdks/php/docs/Model/RoleCreate.md delete mode 100644 sdks/php/docs/Model/RoleOut.md delete mode 100644 sdks/php/docs/Model/RoleUpdate.md delete mode 100644 sdks/php/docs/Model/SimulationResponse.md delete mode 100644 sdks/php/docs/Model/SuccessResponseACLOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/php/docs/Model/SuccessResponseAuthModelOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/php/docs/Model/SuccessResponseDictStrAny.md delete mode 100644 sdks/php/docs/Model/SuccessResponseDictStrInt.md delete mode 100644 sdks/php/docs/Model/SuccessResponseDictStrObject.md delete mode 100644 sdks/php/docs/Model/SuccessResponseDictStrStr.md delete mode 100644 sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/php/docs/Model/SuccessResponseListACLOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseListDictStrStr.md delete mode 100644 sdks/php/docs/Model/SuccessResponseListPermissionOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseListPolicyOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseListRoleOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponsePermissionOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponsePolicyOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/php/docs/Model/SuccessResponseRelationshipOut.md delete mode 100644 sdks/php/docs/Model/SuccessResponseSimulationResponse.md delete mode 100644 sdks/php/docs/Model/ValidationError.md delete mode 100644 sdks/php/git_push.sh delete mode 100644 sdks/php/phpunit.xml.dist delete mode 100644 sdks/php/test/Api/AccessApiTest.php delete mode 100644 sdks/php/test/Api/AuthApiTest.php delete mode 100644 sdks/php/test/Api/DevApiTest.php delete mode 100644 sdks/php/test/Api/HealthApiTest.php delete mode 100644 sdks/php/test/Api/ManagementApiTest.php delete mode 100644 sdks/php/test/Api/PlaygroundApiTest.php delete mode 100644 sdks/php/test/Model/ACLCreateTest.php delete mode 100644 sdks/php/test/Model/ACLOutTest.php delete mode 100644 sdks/php/test/Model/AccessDecisionResponseTest.php delete mode 100644 sdks/php/test/Model/AccessRequestTest.php delete mode 100644 sdks/php/test/Model/AdminLoginRequestTest.php delete mode 100644 sdks/php/test/Model/AdminLoginResponseTest.php delete mode 100644 sdks/php/test/Model/AuditRecordOutTest.php delete mode 100644 sdks/php/test/Model/AuthModelCreateTest.php delete mode 100644 sdks/php/test/Model/AuthModelOutTest.php delete mode 100644 sdks/php/test/Model/BatchAccessItemTest.php delete mode 100644 sdks/php/test/Model/BatchAccessRequestTest.php delete mode 100644 sdks/php/test/Model/BatchAccessResponseTest.php delete mode 100644 sdks/php/test/Model/BatchAccessResultTest.php delete mode 100644 sdks/php/test/Model/DataValueTest.php delete mode 100644 sdks/php/test/Model/HTTPValidationErrorTest.php delete mode 100644 sdks/php/test/Model/ImpactAnalysisRequestTest.php delete mode 100644 sdks/php/test/Model/ImpactAnalysisResponseTest.php delete mode 100644 sdks/php/test/Model/LocationInnerTest.php delete mode 100644 sdks/php/test/Model/MetaBodyTest.php delete mode 100644 sdks/php/test/Model/PermissionCreateTest.php delete mode 100644 sdks/php/test/Model/PermissionOutTest.php delete mode 100644 sdks/php/test/Model/PermissionUpdateTest.php delete mode 100644 sdks/php/test/Model/PlaygroundEvaluateRequestTest.php delete mode 100644 sdks/php/test/Model/PlaygroundInputTest.php delete mode 100644 sdks/php/test/Model/PlaygroundPolicyTest.php delete mode 100644 sdks/php/test/Model/PolicyCreateTest.php delete mode 100644 sdks/php/test/Model/PolicyOutTest.php delete mode 100644 sdks/php/test/Model/PolicySimulationInputTest.php delete mode 100644 sdks/php/test/Model/PolicySimulationRequestTest.php delete mode 100644 sdks/php/test/Model/PolicySimulationResponseTest.php delete mode 100644 sdks/php/test/Model/RelationshipCreateTest.php delete mode 100644 sdks/php/test/Model/RelationshipOutTest.php delete mode 100644 sdks/php/test/Model/RoleCreateTest.php delete mode 100644 sdks/php/test/Model/RoleOutTest.php delete mode 100644 sdks/php/test/Model/RoleUpdateTest.php delete mode 100644 sdks/php/test/Model/SimulationResponseTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseACLOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseAccessDecisionResponseTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseAdminLoginResponseTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseAuthModelOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseBatchAccessResponseTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseDictStrAnyTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseDictStrIntTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseDictStrObjectTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseDictStrStrTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseDictStrUnionIntStrTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseImpactAnalysisResponseTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseListACLOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseListAuditRecordOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseListDictStrStrTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseListPermissionOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseListPolicyOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseListRoleOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponsePermissionOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponsePolicyOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponsePolicySimulationResponseTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseRelationshipOutTest.php delete mode 100644 sdks/php/test/Model/SuccessResponseSimulationResponseTest.php delete mode 100644 sdks/php/test/Model/ValidationErrorTest.php delete mode 100644 sdks/python/.github/workflows/python.yml delete mode 100644 sdks/python/.gitignore delete mode 100644 sdks/python/.gitlab-ci.yml delete mode 100644 sdks/python/.travis.yml delete mode 100644 sdks/python/README.md delete mode 100644 sdks/python/docs/ACLCreate.md delete mode 100644 sdks/python/docs/ACLOut.md delete mode 100644 sdks/python/docs/AccessApi.md delete mode 100644 sdks/python/docs/AccessDecisionResponse.md delete mode 100644 sdks/python/docs/AccessRequest.md delete mode 100644 sdks/python/docs/AdminLoginRequest.md delete mode 100644 sdks/python/docs/AdminLoginResponse.md delete mode 100644 sdks/python/docs/AuditRecordOut.md delete mode 100644 sdks/python/docs/AuthApi.md delete mode 100644 sdks/python/docs/AuthModelCreate.md delete mode 100644 sdks/python/docs/AuthModelOut.md delete mode 100644 sdks/python/docs/BatchAccessItem.md delete mode 100644 sdks/python/docs/BatchAccessRequest.md delete mode 100644 sdks/python/docs/BatchAccessResponse.md delete mode 100644 sdks/python/docs/BatchAccessResult.md delete mode 100644 sdks/python/docs/DataValue.md delete mode 100644 sdks/python/docs/DevApi.md delete mode 100644 sdks/python/docs/HTTPValidationError.md delete mode 100644 sdks/python/docs/HealthApi.md delete mode 100644 sdks/python/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/python/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/python/docs/LocationInner.md delete mode 100644 sdks/python/docs/ManagementApi.md delete mode 100644 sdks/python/docs/MetaBody.md delete mode 100644 sdks/python/docs/PermissionCreate.md delete mode 100644 sdks/python/docs/PermissionOut.md delete mode 100644 sdks/python/docs/PermissionUpdate.md delete mode 100644 sdks/python/docs/PlaygroundApi.md delete mode 100644 sdks/python/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/python/docs/PlaygroundInput.md delete mode 100644 sdks/python/docs/PlaygroundPolicy.md delete mode 100644 sdks/python/docs/PolicyCreate.md delete mode 100644 sdks/python/docs/PolicyOut.md delete mode 100644 sdks/python/docs/PolicySimulationInput.md delete mode 100644 sdks/python/docs/PolicySimulationRequest.md delete mode 100644 sdks/python/docs/PolicySimulationResponse.md delete mode 100644 sdks/python/docs/RelationshipCreate.md delete mode 100644 sdks/python/docs/RelationshipOut.md delete mode 100644 sdks/python/docs/RoleCreate.md delete mode 100644 sdks/python/docs/RoleOut.md delete mode 100644 sdks/python/docs/RoleUpdate.md delete mode 100644 sdks/python/docs/SimulationResponse.md delete mode 100644 sdks/python/docs/SuccessResponseACLOut.md delete mode 100644 sdks/python/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/python/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/python/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/python/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/python/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/python/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/python/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/python/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/python/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/python/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/python/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/python/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/python/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/python/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/python/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/python/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/python/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/python/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/python/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/python/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/python/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/python/docs/ValidationError.md delete mode 100644 sdks/python/git_push.sh delete mode 100644 sdks/python/keynetra_client/__init__.py delete mode 100644 sdks/python/keynetra_client/api/__init__.py delete mode 100644 sdks/python/keynetra_client/api/access_api.py delete mode 100644 sdks/python/keynetra_client/api/auth_api.py delete mode 100644 sdks/python/keynetra_client/api/dev_api.py delete mode 100644 sdks/python/keynetra_client/api/health_api.py delete mode 100644 sdks/python/keynetra_client/api/management_api.py delete mode 100644 sdks/python/keynetra_client/api/playground_api.py delete mode 100644 sdks/python/keynetra_client/api_client.py delete mode 100644 sdks/python/keynetra_client/api_response.py delete mode 100644 sdks/python/keynetra_client/client.py delete mode 100644 sdks/python/keynetra_client/configuration.py delete mode 100644 sdks/python/keynetra_client/exceptions.py delete mode 100644 sdks/python/keynetra_client/models/__init__.py delete mode 100644 sdks/python/keynetra_client/models/access_decision_response.py delete mode 100644 sdks/python/keynetra_client/models/access_request.py delete mode 100644 sdks/python/keynetra_client/models/acl_create.py delete mode 100644 sdks/python/keynetra_client/models/acl_out.py delete mode 100644 sdks/python/keynetra_client/models/admin_login_request.py delete mode 100644 sdks/python/keynetra_client/models/admin_login_response.py delete mode 100644 sdks/python/keynetra_client/models/audit_record_out.py delete mode 100644 sdks/python/keynetra_client/models/auth_model_create.py delete mode 100644 sdks/python/keynetra_client/models/auth_model_out.py delete mode 100644 sdks/python/keynetra_client/models/batch_access_item.py delete mode 100644 sdks/python/keynetra_client/models/batch_access_request.py delete mode 100644 sdks/python/keynetra_client/models/batch_access_response.py delete mode 100644 sdks/python/keynetra_client/models/batch_access_result.py delete mode 100644 sdks/python/keynetra_client/models/data_value.py delete mode 100644 sdks/python/keynetra_client/models/http_validation_error.py delete mode 100644 sdks/python/keynetra_client/models/impact_analysis_request.py delete mode 100644 sdks/python/keynetra_client/models/impact_analysis_response.py delete mode 100644 sdks/python/keynetra_client/models/location_inner.py delete mode 100644 sdks/python/keynetra_client/models/meta_body.py delete mode 100644 sdks/python/keynetra_client/models/permission_create.py delete mode 100644 sdks/python/keynetra_client/models/permission_out.py delete mode 100644 sdks/python/keynetra_client/models/permission_update.py delete mode 100644 sdks/python/keynetra_client/models/playground_evaluate_request.py delete mode 100644 sdks/python/keynetra_client/models/playground_input.py delete mode 100644 sdks/python/keynetra_client/models/playground_policy.py delete mode 100644 sdks/python/keynetra_client/models/policy_create.py delete mode 100644 sdks/python/keynetra_client/models/policy_out.py delete mode 100644 sdks/python/keynetra_client/models/policy_simulation_input.py delete mode 100644 sdks/python/keynetra_client/models/policy_simulation_request.py delete mode 100644 sdks/python/keynetra_client/models/policy_simulation_response.py delete mode 100644 sdks/python/keynetra_client/models/relationship_create.py delete mode 100644 sdks/python/keynetra_client/models/relationship_out.py delete mode 100644 sdks/python/keynetra_client/models/role_create.py delete mode 100644 sdks/python/keynetra_client/models/role_out.py delete mode 100644 sdks/python/keynetra_client/models/role_update.py delete mode 100644 sdks/python/keynetra_client/models/simulation_response.py delete mode 100644 sdks/python/keynetra_client/models/success_response_access_decision_response.py delete mode 100644 sdks/python/keynetra_client/models/success_response_acl_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_admin_login_response.py delete mode 100644 sdks/python/keynetra_client/models/success_response_auth_model_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_batch_access_response.py delete mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_any.py delete mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_int.py delete mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_object.py delete mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_str.py delete mode 100644 sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py delete mode 100644 sdks/python/keynetra_client/models/success_response_impact_analysis_response.py delete mode 100644 sdks/python/keynetra_client/models/success_response_list_acl_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_list_audit_record_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_list_dict_str_str.py delete mode 100644 sdks/python/keynetra_client/models/success_response_list_permission_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_list_policy_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_list_role_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_permission_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_policy_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_policy_simulation_response.py delete mode 100644 sdks/python/keynetra_client/models/success_response_relationship_out.py delete mode 100644 sdks/python/keynetra_client/models/success_response_simulation_response.py delete mode 100644 sdks/python/keynetra_client/models/validation_error.py delete mode 100644 sdks/python/keynetra_client/py.typed delete mode 100644 sdks/python/keynetra_client/rest.py delete mode 100644 sdks/python/pyproject.toml delete mode 100644 sdks/python/requirements.txt delete mode 100644 sdks/python/setup.cfg delete mode 100644 sdks/python/setup.py delete mode 100644 sdks/python/test-requirements.txt delete mode 100644 sdks/python/test/__init__.py delete mode 100644 sdks/python/test/test_access_api.py delete mode 100644 sdks/python/test/test_access_decision_response.py delete mode 100644 sdks/python/test/test_access_request.py delete mode 100644 sdks/python/test/test_acl_create.py delete mode 100644 sdks/python/test/test_acl_out.py delete mode 100644 sdks/python/test/test_admin_login_request.py delete mode 100644 sdks/python/test/test_admin_login_response.py delete mode 100644 sdks/python/test/test_audit_record_out.py delete mode 100644 sdks/python/test/test_auth_api.py delete mode 100644 sdks/python/test/test_auth_model_create.py delete mode 100644 sdks/python/test/test_auth_model_out.py delete mode 100644 sdks/python/test/test_batch_access_item.py delete mode 100644 sdks/python/test/test_batch_access_request.py delete mode 100644 sdks/python/test/test_batch_access_response.py delete mode 100644 sdks/python/test/test_batch_access_result.py delete mode 100644 sdks/python/test/test_data_value.py delete mode 100644 sdks/python/test/test_dev_api.py delete mode 100644 sdks/python/test/test_health_api.py delete mode 100644 sdks/python/test/test_http_validation_error.py delete mode 100644 sdks/python/test/test_impact_analysis_request.py delete mode 100644 sdks/python/test/test_impact_analysis_response.py delete mode 100644 sdks/python/test/test_location_inner.py delete mode 100644 sdks/python/test/test_management_api.py delete mode 100644 sdks/python/test/test_meta_body.py delete mode 100644 sdks/python/test/test_permission_create.py delete mode 100644 sdks/python/test/test_permission_out.py delete mode 100644 sdks/python/test/test_permission_update.py delete mode 100644 sdks/python/test/test_playground_api.py delete mode 100644 sdks/python/test/test_playground_evaluate_request.py delete mode 100644 sdks/python/test/test_playground_input.py delete mode 100644 sdks/python/test/test_playground_policy.py delete mode 100644 sdks/python/test/test_policy_create.py delete mode 100644 sdks/python/test/test_policy_out.py delete mode 100644 sdks/python/test/test_policy_simulation_input.py delete mode 100644 sdks/python/test/test_policy_simulation_request.py delete mode 100644 sdks/python/test/test_policy_simulation_response.py delete mode 100644 sdks/python/test/test_relationship_create.py delete mode 100644 sdks/python/test/test_relationship_out.py delete mode 100644 sdks/python/test/test_role_create.py delete mode 100644 sdks/python/test/test_role_out.py delete mode 100644 sdks/python/test/test_role_update.py delete mode 100644 sdks/python/test/test_simulation_response.py delete mode 100644 sdks/python/test/test_success_response_access_decision_response.py delete mode 100644 sdks/python/test/test_success_response_acl_out.py delete mode 100644 sdks/python/test/test_success_response_admin_login_response.py delete mode 100644 sdks/python/test/test_success_response_auth_model_out.py delete mode 100644 sdks/python/test/test_success_response_batch_access_response.py delete mode 100644 sdks/python/test/test_success_response_dict_str_any.py delete mode 100644 sdks/python/test/test_success_response_dict_str_int.py delete mode 100644 sdks/python/test/test_success_response_dict_str_object.py delete mode 100644 sdks/python/test/test_success_response_dict_str_str.py delete mode 100644 sdks/python/test/test_success_response_dict_str_union_int_str.py delete mode 100644 sdks/python/test/test_success_response_impact_analysis_response.py delete mode 100644 sdks/python/test/test_success_response_list_acl_out.py delete mode 100644 sdks/python/test/test_success_response_list_audit_record_out.py delete mode 100644 sdks/python/test/test_success_response_list_dict_str_str.py delete mode 100644 sdks/python/test/test_success_response_list_permission_out.py delete mode 100644 sdks/python/test/test_success_response_list_policy_out.py delete mode 100644 sdks/python/test/test_success_response_list_role_out.py delete mode 100644 sdks/python/test/test_success_response_permission_out.py delete mode 100644 sdks/python/test/test_success_response_policy_out.py delete mode 100644 sdks/python/test/test_success_response_policy_simulation_response.py delete mode 100644 sdks/python/test/test_success_response_relationship_out.py delete mode 100644 sdks/python/test/test_success_response_simulation_response.py delete mode 100644 sdks/python/test/test_validation_error.py delete mode 100644 sdks/python/tox.ini delete mode 100644 sdks/ruby/.gitignore delete mode 100644 sdks/ruby/.gitlab-ci.yml delete mode 100644 sdks/ruby/.rspec delete mode 100644 sdks/ruby/.rubocop.yml delete mode 100644 sdks/ruby/.travis.yml delete mode 100644 sdks/ruby/Gemfile delete mode 100644 sdks/ruby/README.md delete mode 100644 sdks/ruby/Rakefile delete mode 100644 sdks/ruby/docs/ACLCreate.md delete mode 100644 sdks/ruby/docs/ACLOut.md delete mode 100644 sdks/ruby/docs/AccessApi.md delete mode 100644 sdks/ruby/docs/AccessDecisionResponse.md delete mode 100644 sdks/ruby/docs/AccessRequest.md delete mode 100644 sdks/ruby/docs/AdminLoginRequest.md delete mode 100644 sdks/ruby/docs/AdminLoginResponse.md delete mode 100644 sdks/ruby/docs/AuditRecordOut.md delete mode 100644 sdks/ruby/docs/AuthApi.md delete mode 100644 sdks/ruby/docs/AuthModelCreate.md delete mode 100644 sdks/ruby/docs/AuthModelOut.md delete mode 100644 sdks/ruby/docs/BatchAccessItem.md delete mode 100644 sdks/ruby/docs/BatchAccessRequest.md delete mode 100644 sdks/ruby/docs/BatchAccessResponse.md delete mode 100644 sdks/ruby/docs/BatchAccessResult.md delete mode 100644 sdks/ruby/docs/DataValue.md delete mode 100644 sdks/ruby/docs/DevApi.md delete mode 100644 sdks/ruby/docs/HTTPValidationError.md delete mode 100644 sdks/ruby/docs/HealthApi.md delete mode 100644 sdks/ruby/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/ruby/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/ruby/docs/LocationInner.md delete mode 100644 sdks/ruby/docs/ManagementApi.md delete mode 100644 sdks/ruby/docs/MetaBody.md delete mode 100644 sdks/ruby/docs/PermissionCreate.md delete mode 100644 sdks/ruby/docs/PermissionOut.md delete mode 100644 sdks/ruby/docs/PermissionUpdate.md delete mode 100644 sdks/ruby/docs/PlaygroundApi.md delete mode 100644 sdks/ruby/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/ruby/docs/PlaygroundInput.md delete mode 100644 sdks/ruby/docs/PlaygroundPolicy.md delete mode 100644 sdks/ruby/docs/PolicyCreate.md delete mode 100644 sdks/ruby/docs/PolicyOut.md delete mode 100644 sdks/ruby/docs/PolicySimulationInput.md delete mode 100644 sdks/ruby/docs/PolicySimulationRequest.md delete mode 100644 sdks/ruby/docs/PolicySimulationResponse.md delete mode 100644 sdks/ruby/docs/RelationshipCreate.md delete mode 100644 sdks/ruby/docs/RelationshipOut.md delete mode 100644 sdks/ruby/docs/RoleCreate.md delete mode 100644 sdks/ruby/docs/RoleOut.md delete mode 100644 sdks/ruby/docs/RoleUpdate.md delete mode 100644 sdks/ruby/docs/SimulationResponse.md delete mode 100644 sdks/ruby/docs/SuccessResponseACLOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/ruby/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/ruby/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/ruby/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/ruby/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/ruby/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/ruby/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/ruby/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/ruby/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/ruby/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/ruby/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/ruby/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/ruby/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/ruby/docs/ValidationError.md delete mode 100644 sdks/ruby/git_push.sh delete mode 100644 sdks/ruby/keynetra-client.gemspec delete mode 100644 sdks/ruby/spec/api/access_api_spec.rb delete mode 100644 sdks/ruby/spec/api/auth_api_spec.rb delete mode 100644 sdks/ruby/spec/api/dev_api_spec.rb delete mode 100644 sdks/ruby/spec/api/health_api_spec.rb delete mode 100644 sdks/ruby/spec/api/management_api_spec.rb delete mode 100644 sdks/ruby/spec/api/playground_api_spec.rb delete mode 100644 sdks/ruby/spec/models/access_decision_response_spec.rb delete mode 100644 sdks/ruby/spec/models/access_request_spec.rb delete mode 100644 sdks/ruby/spec/models/acl_create_spec.rb delete mode 100644 sdks/ruby/spec/models/acl_out_spec.rb delete mode 100644 sdks/ruby/spec/models/admin_login_request_spec.rb delete mode 100644 sdks/ruby/spec/models/admin_login_response_spec.rb delete mode 100644 sdks/ruby/spec/models/audit_record_out_spec.rb delete mode 100644 sdks/ruby/spec/models/auth_model_create_spec.rb delete mode 100644 sdks/ruby/spec/models/auth_model_out_spec.rb delete mode 100644 sdks/ruby/spec/models/batch_access_item_spec.rb delete mode 100644 sdks/ruby/spec/models/batch_access_request_spec.rb delete mode 100644 sdks/ruby/spec/models/batch_access_response_spec.rb delete mode 100644 sdks/ruby/spec/models/batch_access_result_spec.rb delete mode 100644 sdks/ruby/spec/models/data_value_spec.rb delete mode 100644 sdks/ruby/spec/models/http_validation_error_spec.rb delete mode 100644 sdks/ruby/spec/models/impact_analysis_request_spec.rb delete mode 100644 sdks/ruby/spec/models/impact_analysis_response_spec.rb delete mode 100644 sdks/ruby/spec/models/location_inner_spec.rb delete mode 100644 sdks/ruby/spec/models/meta_body_spec.rb delete mode 100644 sdks/ruby/spec/models/permission_create_spec.rb delete mode 100644 sdks/ruby/spec/models/permission_out_spec.rb delete mode 100644 sdks/ruby/spec/models/permission_update_spec.rb delete mode 100644 sdks/ruby/spec/models/playground_evaluate_request_spec.rb delete mode 100644 sdks/ruby/spec/models/playground_input_spec.rb delete mode 100644 sdks/ruby/spec/models/playground_policy_spec.rb delete mode 100644 sdks/ruby/spec/models/policy_create_spec.rb delete mode 100644 sdks/ruby/spec/models/policy_out_spec.rb delete mode 100644 sdks/ruby/spec/models/policy_simulation_input_spec.rb delete mode 100644 sdks/ruby/spec/models/policy_simulation_request_spec.rb delete mode 100644 sdks/ruby/spec/models/policy_simulation_response_spec.rb delete mode 100644 sdks/ruby/spec/models/relationship_create_spec.rb delete mode 100644 sdks/ruby/spec/models/relationship_out_spec.rb delete mode 100644 sdks/ruby/spec/models/role_create_spec.rb delete mode 100644 sdks/ruby/spec/models/role_out_spec.rb delete mode 100644 sdks/ruby/spec/models/role_update_spec.rb delete mode 100644 sdks/ruby/spec/models/simulation_response_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_access_decision_response_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_acl_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_admin_login_response_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_auth_model_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_batch_access_response_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_dict_str_any_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_dict_str_int_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_dict_str_object_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_dict_str_str_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_list_acl_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_list_permission_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_list_policy_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_list_role_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_permission_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_policy_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_relationship_out_spec.rb delete mode 100644 sdks/ruby/spec/models/success_response_simulation_response_spec.rb delete mode 100644 sdks/ruby/spec/models/validation_error_spec.rb delete mode 100644 sdks/ruby/spec/spec_helper.rb delete mode 100644 sdks/rust/.gitignore delete mode 100644 sdks/rust/.travis.yml delete mode 100644 sdks/rust/Cargo.toml delete mode 100644 sdks/rust/README.md delete mode 100644 sdks/rust/docs/AccessApi.md delete mode 100644 sdks/rust/docs/AccessDecisionResponse.md delete mode 100644 sdks/rust/docs/AccessRequest.md delete mode 100644 sdks/rust/docs/AclCreate.md delete mode 100644 sdks/rust/docs/AclOut.md delete mode 100644 sdks/rust/docs/AdminLoginRequest.md delete mode 100644 sdks/rust/docs/AdminLoginResponse.md delete mode 100644 sdks/rust/docs/AuditRecordOut.md delete mode 100644 sdks/rust/docs/AuthApi.md delete mode 100644 sdks/rust/docs/AuthModelCreate.md delete mode 100644 sdks/rust/docs/AuthModelOut.md delete mode 100644 sdks/rust/docs/BatchAccessItem.md delete mode 100644 sdks/rust/docs/BatchAccessRequest.md delete mode 100644 sdks/rust/docs/BatchAccessResponse.md delete mode 100644 sdks/rust/docs/BatchAccessResult.md delete mode 100644 sdks/rust/docs/DataValue.md delete mode 100644 sdks/rust/docs/DevApi.md delete mode 100644 sdks/rust/docs/HealthApi.md delete mode 100644 sdks/rust/docs/HttpValidationError.md delete mode 100644 sdks/rust/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/rust/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/rust/docs/LocationInner.md delete mode 100644 sdks/rust/docs/ManagementApi.md delete mode 100644 sdks/rust/docs/MetaBody.md delete mode 100644 sdks/rust/docs/PermissionCreate.md delete mode 100644 sdks/rust/docs/PermissionOut.md delete mode 100644 sdks/rust/docs/PermissionUpdate.md delete mode 100644 sdks/rust/docs/PlaygroundApi.md delete mode 100644 sdks/rust/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/rust/docs/PlaygroundInput.md delete mode 100644 sdks/rust/docs/PlaygroundPolicy.md delete mode 100644 sdks/rust/docs/PolicyCreate.md delete mode 100644 sdks/rust/docs/PolicyOut.md delete mode 100644 sdks/rust/docs/PolicySimulationInput.md delete mode 100644 sdks/rust/docs/PolicySimulationRequest.md delete mode 100644 sdks/rust/docs/PolicySimulationResponse.md delete mode 100644 sdks/rust/docs/RelationshipCreate.md delete mode 100644 sdks/rust/docs/RelationshipOut.md delete mode 100644 sdks/rust/docs/RoleCreate.md delete mode 100644 sdks/rust/docs/RoleOut.md delete mode 100644 sdks/rust/docs/RoleUpdate.md delete mode 100644 sdks/rust/docs/SimulationResponse.md delete mode 100644 sdks/rust/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/rust/docs/SuccessResponseAclOut.md delete mode 100644 sdks/rust/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/rust/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/rust/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/rust/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/rust/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/rust/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/rust/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/rust/docs/SuccessResponseListAclOut.md delete mode 100644 sdks/rust/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/rust/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/rust/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/rust/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/rust/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/rust/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/rust/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/rust/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/rust/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/rust/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/rust/docs/ValidationError.md delete mode 100644 sdks/rust/git_push.sh delete mode 100644 sdks/swift/.gitignore delete mode 100644 sdks/swift/.swiftformat delete mode 100644 sdks/swift/Cartfile delete mode 100644 sdks/swift/KeyNetraClient.podspec delete mode 100644 sdks/swift/Package.swift delete mode 100644 sdks/swift/README.md delete mode 100644 sdks/swift/docs/ACLCreate.md delete mode 100644 sdks/swift/docs/ACLOut.md delete mode 100644 sdks/swift/docs/AccessAPI.md delete mode 100644 sdks/swift/docs/AccessDecisionResponse.md delete mode 100644 sdks/swift/docs/AccessRequest.md delete mode 100644 sdks/swift/docs/AdminLoginRequest.md delete mode 100644 sdks/swift/docs/AdminLoginResponse.md delete mode 100644 sdks/swift/docs/AuditRecordOut.md delete mode 100644 sdks/swift/docs/AuthAPI.md delete mode 100644 sdks/swift/docs/AuthModelCreate.md delete mode 100644 sdks/swift/docs/AuthModelOut.md delete mode 100644 sdks/swift/docs/BatchAccessItem.md delete mode 100644 sdks/swift/docs/BatchAccessRequest.md delete mode 100644 sdks/swift/docs/BatchAccessResponse.md delete mode 100644 sdks/swift/docs/BatchAccessResult.md delete mode 100644 sdks/swift/docs/DataValue.md delete mode 100644 sdks/swift/docs/DevAPI.md delete mode 100644 sdks/swift/docs/HTTPValidationError.md delete mode 100644 sdks/swift/docs/HealthAPI.md delete mode 100644 sdks/swift/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/swift/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/swift/docs/LocationInner.md delete mode 100644 sdks/swift/docs/ManagementAPI.md delete mode 100644 sdks/swift/docs/MetaBody.md delete mode 100644 sdks/swift/docs/PermissionCreate.md delete mode 100644 sdks/swift/docs/PermissionOut.md delete mode 100644 sdks/swift/docs/PermissionUpdate.md delete mode 100644 sdks/swift/docs/PlaygroundAPI.md delete mode 100644 sdks/swift/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/swift/docs/PlaygroundInput.md delete mode 100644 sdks/swift/docs/PlaygroundPolicy.md delete mode 100644 sdks/swift/docs/PolicyCreate.md delete mode 100644 sdks/swift/docs/PolicyOut.md delete mode 100644 sdks/swift/docs/PolicySimulationInput.md delete mode 100644 sdks/swift/docs/PolicySimulationRequest.md delete mode 100644 sdks/swift/docs/PolicySimulationResponse.md delete mode 100644 sdks/swift/docs/RelationshipCreate.md delete mode 100644 sdks/swift/docs/RelationshipOut.md delete mode 100644 sdks/swift/docs/RoleCreate.md delete mode 100644 sdks/swift/docs/RoleOut.md delete mode 100644 sdks/swift/docs/RoleUpdate.md delete mode 100644 sdks/swift/docs/SimulationResponse.md delete mode 100644 sdks/swift/docs/SuccessResponseACLOut.md delete mode 100644 sdks/swift/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/swift/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/swift/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/swift/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/swift/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/swift/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/swift/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/swift/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/swift/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/swift/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/swift/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/swift/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/swift/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/swift/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/swift/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/swift/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/swift/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/swift/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/swift/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/swift/docs/ValidationError.md delete mode 100644 sdks/swift/git_push.sh delete mode 100644 sdks/swift/project.yml delete mode 100644 sdks/typescript/.gitignore delete mode 100644 sdks/typescript/.npmignore delete mode 100644 sdks/typescript/README.md delete mode 100644 sdks/typescript/docs/ACLCreate.md delete mode 100644 sdks/typescript/docs/ACLOut.md delete mode 100644 sdks/typescript/docs/AccessApi.md delete mode 100644 sdks/typescript/docs/AccessDecisionResponse.md delete mode 100644 sdks/typescript/docs/AccessRequest.md delete mode 100644 sdks/typescript/docs/AdminLoginRequest.md delete mode 100644 sdks/typescript/docs/AdminLoginResponse.md delete mode 100644 sdks/typescript/docs/AuditRecordOut.md delete mode 100644 sdks/typescript/docs/AuthApi.md delete mode 100644 sdks/typescript/docs/AuthModelCreate.md delete mode 100644 sdks/typescript/docs/AuthModelOut.md delete mode 100644 sdks/typescript/docs/BatchAccessItem.md delete mode 100644 sdks/typescript/docs/BatchAccessRequest.md delete mode 100644 sdks/typescript/docs/BatchAccessResponse.md delete mode 100644 sdks/typescript/docs/BatchAccessResult.md delete mode 100644 sdks/typescript/docs/DataValue.md delete mode 100644 sdks/typescript/docs/DevApi.md delete mode 100644 sdks/typescript/docs/HTTPValidationError.md delete mode 100644 sdks/typescript/docs/HealthApi.md delete mode 100644 sdks/typescript/docs/ImpactAnalysisRequest.md delete mode 100644 sdks/typescript/docs/ImpactAnalysisResponse.md delete mode 100644 sdks/typescript/docs/LocationInner.md delete mode 100644 sdks/typescript/docs/ManagementApi.md delete mode 100644 sdks/typescript/docs/MetaBody.md delete mode 100644 sdks/typescript/docs/PermissionCreate.md delete mode 100644 sdks/typescript/docs/PermissionOut.md delete mode 100644 sdks/typescript/docs/PermissionUpdate.md delete mode 100644 sdks/typescript/docs/PlaygroundApi.md delete mode 100644 sdks/typescript/docs/PlaygroundEvaluateRequest.md delete mode 100644 sdks/typescript/docs/PlaygroundInput.md delete mode 100644 sdks/typescript/docs/PlaygroundPolicy.md delete mode 100644 sdks/typescript/docs/PolicyCreate.md delete mode 100644 sdks/typescript/docs/PolicyOut.md delete mode 100644 sdks/typescript/docs/PolicySimulationInput.md delete mode 100644 sdks/typescript/docs/PolicySimulationRequest.md delete mode 100644 sdks/typescript/docs/PolicySimulationResponse.md delete mode 100644 sdks/typescript/docs/RelationshipCreate.md delete mode 100644 sdks/typescript/docs/RelationshipOut.md delete mode 100644 sdks/typescript/docs/RoleCreate.md delete mode 100644 sdks/typescript/docs/RoleOut.md delete mode 100644 sdks/typescript/docs/RoleUpdate.md delete mode 100644 sdks/typescript/docs/SimulationResponse.md delete mode 100644 sdks/typescript/docs/SuccessResponseACLOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md delete mode 100644 sdks/typescript/docs/SuccessResponseAdminLoginResponse.md delete mode 100644 sdks/typescript/docs/SuccessResponseAuthModelOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseBatchAccessResponse.md delete mode 100644 sdks/typescript/docs/SuccessResponseDictStrAny.md delete mode 100644 sdks/typescript/docs/SuccessResponseDictStrInt.md delete mode 100644 sdks/typescript/docs/SuccessResponseDictStrObject.md delete mode 100644 sdks/typescript/docs/SuccessResponseDictStrStr.md delete mode 100644 sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md delete mode 100644 sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md delete mode 100644 sdks/typescript/docs/SuccessResponseListACLOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseListAuditRecordOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseListDictStrStr.md delete mode 100644 sdks/typescript/docs/SuccessResponseListPermissionOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseListPolicyOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseListRoleOut.md delete mode 100644 sdks/typescript/docs/SuccessResponsePermissionOut.md delete mode 100644 sdks/typescript/docs/SuccessResponsePolicyOut.md delete mode 100644 sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md delete mode 100644 sdks/typescript/docs/SuccessResponseRelationshipOut.md delete mode 100644 sdks/typescript/docs/SuccessResponseSimulationResponse.md delete mode 100644 sdks/typescript/docs/ValidationError.md delete mode 100644 sdks/typescript/package.json delete mode 100644 sdks/typescript/tsconfig.esm.json delete mode 100644 sdks/typescript/tsconfig.json diff --git a/sdks/csharp/.gitignore b/sdks/csharp/.gitignore deleted file mode 100644 index 1ee5385..0000000 --- a/sdks/csharp/.gitignore +++ /dev/null @@ -1,362 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd diff --git a/sdks/csharp/KeyNetra.Client.sln b/sdks/csharp/KeyNetra.Client.sln deleted file mode 100644 index 2eec445..0000000 --- a/sdks/csharp/KeyNetra.Client.sln +++ /dev/null @@ -1,27 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -VisualStudioVersion = 12.0.0.0 -MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client", "src\KeyNetra.Client\KeyNetra.Client.csproj", "{50DF9BBB-96B8-469C-8C82-45A003981807}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyNetra.Client.Test", "src\KeyNetra.Client.Test\KeyNetra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {50DF9BBB-96B8-469C-8C82-45A003981807}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {50DF9BBB-96B8-469C-8C82-45A003981807}.Debug|Any CPU.Build.0 = Debug|Any CPU - {50DF9BBB-96B8-469C-8C82-45A003981807}.Release|Any CPU.ActiveCfg = Release|Any CPU - {50DF9BBB-96B8-469C-8C82-45A003981807}.Release|Any CPU.Build.0 = Release|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal \ No newline at end of file diff --git a/sdks/csharp/README.md b/sdks/csharp/README.md deleted file mode 100644 index 54752e6..0000000 --- a/sdks/csharp/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# KeyNetra.Client - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/csharp) - -Official C# Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your C# applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -dotnet add package KeyNetra.Client -``` - -## ๐Ÿš€ Quick Start - -```c# -using KeyNetra.Client; - -var client = new KeyNetraClient( - "http://localhost:8080", - "YOUR_API_KEY" -); - -// Perform an access check -var decision = await client.Access.CheckAccessAsync(new AccessRequest { - Subject = "user:123", - Action = "read", - Resource = "document:456" -}); -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/csharp). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-csharp](https://github.com/keynetra/keynetra-client-csharp) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-csharp/issues) -- **License**: Apache-2.0 - diff --git a/sdks/csharp/api/openapi.yaml b/sdks/csharp/api/openapi.yaml deleted file mode 100644 index 2195953..0000000 --- a/sdks/csharp/api/openapi.yaml +++ /dev/null @@ -1,2811 +0,0 @@ -openapi: 3.1.0 -info: - title: KeyNetra - version: 0.1.1 -servers: -- url: / -paths: - /health: - get: - operationId: health_health_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - summary: Health - tags: - - health - /health/live: - get: - operationId: liveness_health_live_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - summary: Liveness - tags: - - health - /health/ready: - get: - operationId: readiness_health_ready_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - summary: Readiness - tags: - - health - /check-access: - post: - operationId: check_access_check_access_post - parameters: - - explode: true - in: query - name: policy_set - required: false - schema: - default: active - title: Policy Set - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AccessDecisionResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Check Access - tags: - - access - /simulate: - post: - operationId: simulate_simulate_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_SimulationResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Simulate - tags: - - access - /check-access-batch: - post: - operationId: check_access_batch_check_access_batch_post - parameters: - - explode: true - in: query - name: policy_set - required: false - schema: - default: active - title: Policy Set - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BatchAccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_BatchAccessResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Check Access Batch - tags: - - access - /admin/login: - post: - operationId: admin_login_admin_login_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AdminLoginRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AdminLoginResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - summary: Admin Login - tags: - - auth - - auth - /policies: - get: - operationId: list_policies_policies_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PolicyOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Policies - tags: - - management - post: - operationId: create_policy_policies_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Policy - tags: - - management - /policies/{policy_key}: - delete: - operationId: delete_policy_policies__policy_key__delete - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Policy - tags: - - management - put: - operationId: update_policy_policies__policy_key__put - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyCreate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Policy - tags: - - management - /policies/dsl: - post: - operationId: create_policy_from_dsl_policies_dsl_post - parameters: - - explode: true - in: query - name: dsl - required: true - schema: - title: Dsl - type: string - style: form - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Policy From Dsl - tags: - - management - /policies/{policy_key}/rollback/{version}: - post: - operationId: rollback_policy_policies__policy_key__rollback__version__post - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - - explode: false - in: path - name: version - required: true - schema: - title: Version - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Rollback Policy - tags: - - management - /acl: - post: - operationId: create_acl_entry_acl_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ACLCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_ACLOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Acl Entry - tags: - - management - /acl/{resource_type}/{resource_id}: - get: - operationId: list_acl_entries_acl__resource_type___resource_id__get - parameters: - - explode: false - in: path - name: resource_type - required: true - schema: - title: Resource Type - type: string - style: simple - - explode: false - in: path - name: resource_id - required: true - schema: - title: Resource Id - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_ACLOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Acl Entries - tags: - - management - /acl/{acl_id}: - delete: - operationId: delete_acl_entry_acl__acl_id__delete - parameters: - - explode: false - in: path - name: acl_id - required: true - schema: - title: Acl Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Acl Entry - tags: - - management - /auth-model: - get: - operationId: get_auth_model_auth_model_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" - description: Successful Response - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Get Auth Model - tags: - - management - post: - operationId: create_auth_model_auth_model_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AuthModelCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Auth Model - tags: - - management - /simulate-policy: - post: - operationId: simulate_policy_simulate_policy_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicySimulationRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicySimulationResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Simulate Policy - tags: - - management - /impact-analysis: - post: - operationId: impact_analysis_impact_analysis_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImpactAnalysisRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Impact Analysis - tags: - - management - /roles: - get: - operationId: list_roles_roles_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Roles - tags: - - management - post: - operationId: create_role_roles_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/RoleOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Role - tags: - - management - /roles/{role_id}: - delete: - operationId: delete_role_roles__role_id__delete - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Role - tags: - - management - put: - operationId: update_role_roles__role_id__put - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleUpdate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/RoleOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Role - tags: - - management - /roles/{role_id}/permissions: - get: - operationId: list_role_permissions_roles__role_id__permissions_get - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Role Permissions - tags: - - management - /roles/{role_id}/permissions/{permission_id}: - delete: - operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Remove Permission From Role - tags: - - management - post: - operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PermissionOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Add Permission To Role - tags: - - management - /permissions: - get: - operationId: list_permissions_permissions_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Permissions - tags: - - management - post: - operationId: create_permission_permissions_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Permission - tags: - - management - /permissions/{permission_id}: - delete: - operationId: delete_permission_permissions__permission_id__delete - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Permission - tags: - - management - put: - operationId: update_permission_permissions__permission_id__put - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionUpdate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Permission - tags: - - management - /permissions/{permission_id}/roles: - get: - operationId: list_permission_roles_permissions__permission_id__roles_get - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Permission Roles - tags: - - management - /relationships: - get: - operationId: list_relationships_relationships_get - parameters: - - explode: true - in: query - name: subject_type - required: true - schema: - title: Subject Type - type: string - style: form - - explode: true - in: query - name: subject_id - required: true - schema: - title: Subject Id - type: string - style: form - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_dict_str__str___" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Relationships - tags: - - management - post: - operationId: create_relationship_relationships_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RelationshipCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_RelationshipOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Relationship - tags: - - management - /audit: - get: - operationId: list_audit_logs_audit_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: user_id - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: resource_id - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: decision - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: start_time - required: false - schema: - format: date-time - nullable: true - type: string - style: form - - explode: true - in: query - name: end_time - required: false - schema: - format: date-time - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_AuditRecordOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Audit Logs - tags: - - management - /playground/evaluate: - post: - operationId: evaluate_playground_evaluate_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PlaygroundEvaluateRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__Any__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Evaluate - tags: - - playground - /dev/sample-data: - get: - operationId: get_sample_data_dev_sample_data_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - summary: Get Sample Data - tags: - - dev - /dev/sample-data/seed: - post: - operationId: seed_sample_data_dev_sample_data_seed_post - parameters: - - description: Clear the sample dataset before reseeding it. - explode: true - in: query - name: reset - required: false - schema: - default: false - description: Clear the sample dataset before reseeding it. - title: Reset - type: boolean - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - summary: Seed Sample Data - tags: - - dev -components: - schemas: - ACLCreate: - example: - subject_id: subject_id - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - resource_type: - title: Resource Type - type: string - resource_id: - title: Resource Id - type: string - action: - title: Action - type: string - effect: - title: Effect - type: string - required: - - action - - effect - - resource_id - - resource_type - - subject_id - - subject_type - title: ACLCreate - ACLOut: - example: - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - resource_type: - title: Resource Type - type: string - resource_id: - title: Resource Id - type: string - action: - title: Action - type: string - effect: - title: Effect - type: string - id: - title: Id - type: integer - tenant_id: - title: Tenant Id - type: integer - created_at: - format: date-time - nullable: true - type: string - required: - - action - - effect - - id - - resource_id - - resource_type - - subject_id - - subject_type - - tenant_id - title: ACLOut - AccessDecisionResponse: - example: - reason: reason - explain_trace: - - key: "" - - key: "" - decision: decision - policy_id: policy_id - allowed: true - matched_policies: - - matched_policies - - matched_policies - revision: 0 - properties: - allowed: - title: Allowed - type: boolean - decision: - title: Decision - type: string - matched_policies: - items: - type: string - title: Matched Policies - type: array - reason: - nullable: true - type: string - policy_id: - nullable: true - type: string - explain_trace: - items: - additionalProperties: true - type: object - title: Explain Trace - type: array - revision: - nullable: true - type: integer - required: - - allowed - - decision - title: AccessDecisionResponse - AccessRequest: - description: Explicit authorization request passed through the API boundary. - example: - resource: - key: "" - context: - key: "" - action: action - user: - key: "" - consistency: eventual - revision: 0 - properties: - user: - additionalProperties: true - title: User - type: object - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - context: - additionalProperties: true - title: Context - type: object - consistency: - default: eventual - title: Consistency - type: string - revision: - nullable: true - type: integer - required: - - action - title: AccessRequest - AdminLoginRequest: - example: - password: password - username: username - properties: - username: - title: Username - type: string - password: - title: Password - type: string - required: - - password - - username - title: AdminLoginRequest - AdminLoginResponse: - example: - access_token: access_token - role: admin - tenant_key: tenant_key - token_type: bearer - expires_in: 0 - properties: - access_token: - title: Access Token - type: string - token_type: - default: bearer - title: Token Type - type: string - expires_in: - title: Expires In - type: integer - role: - default: admin - title: Role - type: string - tenant_key: - title: Tenant Key - type: string - required: - - access_token - - expires_in - - tenant_key - title: AdminLoginResponse - AuditRecordOut: - example: - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - properties: - id: - title: Id - type: integer - principal_type: - title: Principal Type - type: string - principal_id: - title: Principal Id - type: string - correlation_id: - nullable: true - type: string - user: - additionalProperties: true - title: User - type: object - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - decision: - title: Decision - type: string - matched_policies: - items: {} - title: Matched Policies - type: array - reason: - nullable: true - type: string - evaluated_rules: - items: {} - title: Evaluated Rules - type: array - failed_conditions: - items: {} - title: Failed Conditions - type: array - created_at: - format: date-time - title: Created At - type: string - required: - - action - - created_at - - decision - - evaluated_rules - - failed_conditions - - id - - matched_policies - - principal_id - - principal_type - - resource - - user - title: AuditRecordOut - AuthModelCreate: - example: - schema: schema - properties: - schema: - title: Schema - type: string - required: - - schema - title: AuthModelCreate - AuthModelOut: - example: - tenant_id: 6 - schema: schema - compiled: - key: "" - parsed: - key: "" - id: 0 - properties: - id: - title: Id - type: integer - tenant_id: - title: Tenant Id - type: integer - schema: - title: Schema - type: string - parsed: - additionalProperties: true - title: Parsed - type: object - compiled: - additionalProperties: true - title: Compiled - type: object - required: - - compiled - - id - - parsed - - schema - - tenant_id - title: AuthModelOut - BatchAccessItem: - example: - resource: - key: "" - action: action - properties: - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - required: - - action - title: BatchAccessItem - BatchAccessRequest: - example: - user: - key: "" - items: - - resource: - key: "" - action: action - - resource: - key: "" - action: action - consistency: eventual - revision: 0 - properties: - user: - additionalProperties: true - title: User - type: object - items: - items: - $ref: "#/components/schemas/BatchAccessItem" - title: Items - type: array - consistency: - default: eventual - title: Consistency - type: string - revision: - nullable: true - type: integer - required: - - items - title: BatchAccessRequest - BatchAccessResponse: - example: - results: - - allowed: true - action: action - revision: 0 - - allowed: true - action: action - revision: 0 - revision: 6 - properties: - results: - items: - $ref: "#/components/schemas/BatchAccessResult" - title: Results - type: array - revision: - nullable: true - type: integer - required: - - results - title: BatchAccessResponse - BatchAccessResult: - example: - allowed: true - action: action - revision: 0 - properties: - action: - title: Action - type: string - allowed: - title: Allowed - type: boolean - revision: - nullable: true - type: integer - required: - - action - - allowed - title: BatchAccessResult - HTTPValidationError: - example: - detail: - - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - properties: - detail: - items: - $ref: "#/components/schemas/ValidationError" - title: Detail - type: array - title: HTTPValidationError - ImpactAnalysisRequest: - example: - policy_change: policy_change - properties: - policy_change: - title: Policy Change - type: string - required: - - policy_change - title: ImpactAnalysisRequest - ImpactAnalysisResponse: - example: - gained_access: - - 0 - - 0 - lost_access: - - 6 - - 6 - properties: - gained_access: - items: - type: integer - title: Gained Access - type: array - lost_access: - items: - type: integer - title: Lost Access - type: array - title: ImpactAnalysisResponse - MetaBody: - example: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - properties: - request_id: - nullable: true - type: string - limit: - nullable: true - type: integer - next_cursor: - nullable: true - type: string - extra: - additionalProperties: true - title: Extra - type: object - title: MetaBody - PermissionCreate: - example: - action: action - properties: - action: - title: Action - type: string - required: - - action - title: PermissionCreate - PermissionOut: - example: - action: action - id: 0 - properties: - id: - title: Id - type: integer - action: - title: Action - type: string - required: - - action - - id - title: PermissionOut - PermissionUpdate: - example: - action: action - properties: - action: - title: Action - type: string - required: - - action - title: PermissionUpdate - PlaygroundEvaluateRequest: - example: - input: - resource: - key: "" - context: - key: "" - action: "" - user: - key: "" - policies: - - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - properties: - policies: - items: - $ref: "#/components/schemas/PlaygroundPolicy" - title: Policies - type: array - input: - $ref: "#/components/schemas/PlaygroundInput" - required: - - input - - policies - title: PlaygroundEvaluateRequest - PlaygroundInput: - example: - resource: - key: "" - context: - key: "" - action: "" - user: - key: "" - properties: - user: - additionalProperties: true - title: User - type: object - resource: - additionalProperties: true - title: Resource - type: object - action: - default: "" - title: Action - type: string - context: - additionalProperties: true - title: Context - type: object - title: PlaygroundInput - PlaygroundPolicy: - example: - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - properties: - action: - title: Action - type: string - effect: - default: allow - title: Effect - type: string - priority: - default: 100 - title: Priority - type: integer - policy_id: - nullable: true - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - title: PlaygroundPolicy - PolicyCreate: - example: - effect: allow - action: action - state: active - priority: 0 - conditions: - key: "" - properties: - action: - title: Action - type: string - effect: - default: allow - title: Effect - type: string - priority: - default: 100 - title: Priority - type: integer - state: - default: active - title: State - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - title: PolicyCreate - PolicyOut: - example: - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - properties: - id: - title: Id - type: integer - action: - title: Action - type: string - effect: - title: Effect - type: string - priority: - title: Priority - type: integer - state: - default: active - title: State - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - - conditions - - effect - - id - - priority - title: PolicyOut - PolicySimulationInput: - example: - relationship_change: - key: "" - role_change: - key: "" - policy_change: policy_change - properties: - policy_change: - nullable: true - type: string - relationship_change: - additionalProperties: true - nullable: true - type: object - role_change: - additionalProperties: true - nullable: true - type: object - title: PolicySimulationInput - PolicySimulationRequest: - example: - request: - key: "" - simulate: - relationship_change: - key: "" - role_change: - key: "" - policy_change: policy_change - properties: - simulate: - $ref: "#/components/schemas/PolicySimulationInput" - request: - additionalProperties: true - title: Request - type: object - title: PolicySimulationRequest - PolicySimulationResponse: - example: - decision_before: - key: "" - decision_after: - key: "" - properties: - decision_before: - additionalProperties: true - title: Decision Before - type: object - decision_after: - additionalProperties: true - title: Decision After - type: object - required: - - decision_after - - decision_before - title: PolicySimulationResponse - RelationshipCreate: - example: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - object_id: object_id - relation: relation - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - relation: - title: Relation - type: string - object_type: - title: Object Type - type: string - object_id: - title: Object Id - type: string - required: - - object_id - - object_type - - relation - - subject_id - - subject_type - title: RelationshipCreate - RelationshipOut: - example: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - id: 0 - object_id: object_id - relation: relation - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - relation: - title: Relation - type: string - object_type: - title: Object Type - type: string - object_id: - title: Object Id - type: string - id: - title: Id - type: integer - required: - - id - - object_id - - object_type - - relation - - subject_id - - subject_type - title: RelationshipOut - RoleCreate: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: RoleCreate - RoleOut: - example: - name: name - id: 0 - properties: - id: - title: Id - type: integer - name: - title: Name - type: string - required: - - id - - name - title: RoleOut - RoleUpdate: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: RoleUpdate - SimulationResponse: - example: - reason: reason - explain_trace: - - key: "" - - key: "" - failed_conditions: - - failed_conditions - - failed_conditions - decision: decision - policy_id: policy_id - matched_policies: - - matched_policies - - matched_policies - revision: 0 - properties: - decision: - title: Decision - type: string - matched_policies: - items: - type: string - title: Matched Policies - type: array - reason: - nullable: true - type: string - policy_id: - nullable: true - type: string - explain_trace: - items: - additionalProperties: true - type: object - title: Explain Trace - type: array - failed_conditions: - items: - type: string - title: Failed Conditions - type: array - revision: - nullable: true - type: integer - required: - - decision - - matched_policies - title: SimulationResponse - SuccessResponse_ACLOut_: - example: - data: - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/ACLOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[ACLOut]" - SuccessResponse_AccessDecisionResponse_: - example: - data: - reason: reason - explain_trace: - - key: "" - - key: "" - decision: decision - policy_id: policy_id - allowed: true - matched_policies: - - matched_policies - - matched_policies - revision: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AccessDecisionResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AccessDecisionResponse]" - SuccessResponse_AdminLoginResponse_: - example: - data: - access_token: access_token - role: admin - tenant_key: tenant_key - token_type: bearer - expires_in: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AdminLoginResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AdminLoginResponse]" - SuccessResponse_AuthModelOut_: - example: - data: - tenant_id: 6 - schema: schema - compiled: - key: "" - parsed: - key: "" - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AuthModelOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AuthModelOut]" - SuccessResponse_BatchAccessResponse_: - example: - data: - results: - - allowed: true - action: action - revision: 0 - - allowed: true - action: action - revision: 0 - revision: 6 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/BatchAccessResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[BatchAccessResponse]" - SuccessResponse_ImpactAnalysisResponse_: - example: - data: - gained_access: - - 0 - - 0 - lost_access: - - 6 - - 6 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/ImpactAnalysisResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[ImpactAnalysisResponse]" - SuccessResponse_PermissionOut_: - example: - data: - action: action - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PermissionOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PermissionOut]" - SuccessResponse_PolicyOut_: - example: - data: - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PolicyOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PolicyOut]" - SuccessResponse_PolicySimulationResponse_: - example: - data: - decision_before: - key: "" - decision_after: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PolicySimulationResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PolicySimulationResponse]" - SuccessResponse_RelationshipOut_: - example: - data: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - id: 0 - object_id: object_id - relation: relation - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/RelationshipOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[RelationshipOut]" - SuccessResponse_SimulationResponse_: - example: - data: - reason: reason - explain_trace: - - key: "" - - key: "" - failed_conditions: - - failed_conditions - - failed_conditions - decision: decision - policy_id: policy_id - matched_policies: - - matched_policies - - matched_policies - revision: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/SimulationResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[SimulationResponse]" - SuccessResponse_dict_str__Any__: - example: - data: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: true - title: Data - type: object - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, Any]]" - SuccessResponse_dict_str__Union_int__str___: - example: - data: - key: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - $ref: "#/components/schemas/Data_value" - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, Union[int, str]]]" - SuccessResponse_dict_str__int__: - example: - data: - key: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - type: integer - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, int]]" - SuccessResponse_dict_str__object__: - example: - data: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: true - title: Data - type: object - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, object]]" - SuccessResponse_dict_str__str__: - example: - data: - key: data - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - type: string - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, str]]" - SuccessResponse_list_ACLOut__: - example: - data: - - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/ACLOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[ACLOut]]" - SuccessResponse_list_AuditRecordOut__: - example: - data: - - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/AuditRecordOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[AuditRecordOut]]" - SuccessResponse_list_PermissionOut__: - example: - data: - - action: action - id: 0 - - action: action - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/PermissionOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[PermissionOut]]" - SuccessResponse_list_PolicyOut__: - example: - data: - - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/PolicyOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[PolicyOut]]" - SuccessResponse_list_RoleOut__: - example: - data: - - name: name - id: 0 - - name: name - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/RoleOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[RoleOut]]" - SuccessResponse_list_dict_str__str___: - example: - data: - - key: data - - key: data - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - additionalProperties: - type: string - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[dict[str, str]]]" - ValidationError: - example: - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - properties: - loc: - items: - $ref: "#/components/schemas/Location_inner" - title: Location - type: array - msg: - title: Message - type: string - type: - title: Error Type - type: string - input: - title: Input - ctx: - title: Context - type: object - required: - - loc - - msg - - type - title: ValidationError - Data_value: - anyOf: - - type: integer - - type: string - Location_inner: - anyOf: - - type: string - - type: integer - securitySchemes: - HTTPBearer: - scheme: bearer - type: http - APIKeyHeader: - in: header - name: X-API-Key - type: apiKey - diff --git a/sdks/csharp/appveyor.yml b/sdks/csharp/appveyor.yml deleted file mode 100644 index 109c7c6..0000000 --- a/sdks/csharp/appveyor.yml +++ /dev/null @@ -1,9 +0,0 @@ -# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator) -# -image: Visual Studio 2019 -clone_depth: 1 -build_script: -- dotnet build -c Release -- dotnet test -c Release -after_build: -- dotnet pack .\src\KeyNetra.Client\KeyNetra.Client.csproj -o ../../output -c Release --no-build diff --git a/sdks/go/.gitignore b/sdks/go/.gitignore deleted file mode 100644 index daf913b..0000000 --- a/sdks/go/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/sdks/go/.travis.yml b/sdks/go/.travis.yml deleted file mode 100644 index f5cb2ce..0000000 --- a/sdks/go/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/sdks/go/README.md b/sdks/go/README.md deleted file mode 100644 index d1c0adc..0000000 --- a/sdks/go/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# keynetra-client-go - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/go) - -Official Go Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Go applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -go get github.com/keynetra/keynetra-client-go -``` - -## ๐Ÿš€ Quick Start - -```go -import "github.com/keynetra/keynetra-client-go" - -client := keynetra.NewKeyNetraClient( - "http://localhost:8080", - "YOUR_API_KEY", -) - -// Perform an access check -decision, _, err := client.Access.CheckAccess(context.Background()). - AccessRequest(keynetra.AccessRequest{ - Subject: "user:123", - Action: "read", - Resource: "document:456", - }).Execute() -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/go). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-go](https://github.com/keynetra/keynetra-client-go) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-go/issues) -- **License**: Apache-2.0 - diff --git a/sdks/go/api/openapi.yaml b/sdks/go/api/openapi.yaml deleted file mode 100644 index 3839b26..0000000 --- a/sdks/go/api/openapi.yaml +++ /dev/null @@ -1,2810 +0,0 @@ -openapi: 3.1.0 -info: - title: KeyNetra - version: 0.1.1 -servers: -- url: / -paths: - /health: - get: - operationId: health_health_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - summary: Health - tags: - - health - /health/live: - get: - operationId: liveness_health_live_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - summary: Liveness - tags: - - health - /health/ready: - get: - operationId: readiness_health_ready_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - summary: Readiness - tags: - - health - /check-access: - post: - operationId: check_access_check_access_post - parameters: - - explode: true - in: query - name: policy_set - required: false - schema: - default: active - title: Policy Set - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AccessDecisionResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Check Access - tags: - - access - /simulate: - post: - operationId: simulate_simulate_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_SimulationResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Simulate - tags: - - access - /check-access-batch: - post: - operationId: check_access_batch_check_access_batch_post - parameters: - - explode: true - in: query - name: policy_set - required: false - schema: - default: active - title: Policy Set - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BatchAccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_BatchAccessResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Check Access Batch - tags: - - access - /admin/login: - post: - operationId: admin_login_admin_login_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AdminLoginRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AdminLoginResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - summary: Admin Login - tags: - - auth - - auth - /policies: - get: - operationId: list_policies_policies_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PolicyOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Policies - tags: - - management - post: - operationId: create_policy_policies_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Policy - tags: - - management - /policies/{policy_key}: - delete: - operationId: delete_policy_policies__policy_key__delete - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Policy - tags: - - management - put: - operationId: update_policy_policies__policy_key__put - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyCreate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Policy - tags: - - management - /policies/dsl: - post: - operationId: create_policy_from_dsl_policies_dsl_post - parameters: - - explode: true - in: query - name: dsl - required: true - schema: - title: Dsl - type: string - style: form - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Policy From Dsl - tags: - - management - /policies/{policy_key}/rollback/{version}: - post: - operationId: rollback_policy_policies__policy_key__rollback__version__post - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - - explode: false - in: path - name: version - required: true - schema: - title: Version - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Rollback Policy - tags: - - management - /acl: - post: - operationId: create_acl_entry_acl_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ACLCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_ACLOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Acl Entry - tags: - - management - /acl/{resource_type}/{resource_id}: - get: - operationId: list_acl_entries_acl__resource_type___resource_id__get - parameters: - - explode: false - in: path - name: resource_type - required: true - schema: - title: Resource Type - type: string - style: simple - - explode: false - in: path - name: resource_id - required: true - schema: - title: Resource Id - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_ACLOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Acl Entries - tags: - - management - /acl/{acl_id}: - delete: - operationId: delete_acl_entry_acl__acl_id__delete - parameters: - - explode: false - in: path - name: acl_id - required: true - schema: - title: Acl Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Acl Entry - tags: - - management - /auth-model: - get: - operationId: get_auth_model_auth_model_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" - description: Successful Response - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Get Auth Model - tags: - - management - post: - operationId: create_auth_model_auth_model_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AuthModelCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Auth Model - tags: - - management - /simulate-policy: - post: - operationId: simulate_policy_simulate_policy_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicySimulationRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicySimulationResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Simulate Policy - tags: - - management - /impact-analysis: - post: - operationId: impact_analysis_impact_analysis_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImpactAnalysisRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Impact Analysis - tags: - - management - /roles: - get: - operationId: list_roles_roles_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Roles - tags: - - management - post: - operationId: create_role_roles_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/RoleOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Role - tags: - - management - /roles/{role_id}: - delete: - operationId: delete_role_roles__role_id__delete - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Role - tags: - - management - put: - operationId: update_role_roles__role_id__put - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleUpdate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/RoleOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Role - tags: - - management - /roles/{role_id}/permissions: - get: - operationId: list_role_permissions_roles__role_id__permissions_get - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Role Permissions - tags: - - management - /roles/{role_id}/permissions/{permission_id}: - delete: - operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Remove Permission From Role - tags: - - management - post: - operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PermissionOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Add Permission To Role - tags: - - management - /permissions: - get: - operationId: list_permissions_permissions_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Permissions - tags: - - management - post: - operationId: create_permission_permissions_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Permission - tags: - - management - /permissions/{permission_id}: - delete: - operationId: delete_permission_permissions__permission_id__delete - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Permission - tags: - - management - put: - operationId: update_permission_permissions__permission_id__put - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionUpdate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Permission - tags: - - management - /permissions/{permission_id}/roles: - get: - operationId: list_permission_roles_permissions__permission_id__roles_get - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Permission Roles - tags: - - management - /relationships: - get: - operationId: list_relationships_relationships_get - parameters: - - explode: true - in: query - name: subject_type - required: true - schema: - title: Subject Type - type: string - style: form - - explode: true - in: query - name: subject_id - required: true - schema: - title: Subject Id - type: string - style: form - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_dict_str__str___" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Relationships - tags: - - management - post: - operationId: create_relationship_relationships_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RelationshipCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_RelationshipOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Relationship - tags: - - management - /audit: - get: - operationId: list_audit_logs_audit_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: user_id - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: resource_id - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: decision - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: start_time - required: false - schema: - format: date-time - nullable: true - type: string - style: form - - explode: true - in: query - name: end_time - required: false - schema: - format: date-time - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_AuditRecordOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Audit Logs - tags: - - management - /playground/evaluate: - post: - operationId: evaluate_playground_evaluate_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PlaygroundEvaluateRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__Any__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Evaluate - tags: - - playground - /dev/sample-data: - get: - operationId: get_sample_data_dev_sample_data_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - summary: Get Sample Data - tags: - - dev - /dev/sample-data/seed: - post: - operationId: seed_sample_data_dev_sample_data_seed_post - parameters: - - description: Clear the sample dataset before reseeding it. - explode: true - in: query - name: reset - required: false - schema: - default: false - description: Clear the sample dataset before reseeding it. - title: Reset - type: boolean - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - summary: Seed Sample Data - tags: - - dev -components: - schemas: - ACLCreate: - example: - subject_id: subject_id - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - resource_type: - title: Resource Type - type: string - resource_id: - title: Resource Id - type: string - action: - title: Action - type: string - effect: - title: Effect - type: string - required: - - action - - effect - - resource_id - - resource_type - - subject_id - - subject_type - title: ACLCreate - ACLOut: - example: - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - resource_type: - title: Resource Type - type: string - resource_id: - title: Resource Id - type: string - action: - title: Action - type: string - effect: - title: Effect - type: string - id: - title: Id - type: integer - tenant_id: - title: Tenant Id - type: integer - created_at: - format: date-time - nullable: true - type: string - required: - - action - - effect - - id - - resource_id - - resource_type - - subject_id - - subject_type - - tenant_id - title: ACLOut - AccessDecisionResponse: - example: - reason: reason - explain_trace: - - key: "" - - key: "" - decision: decision - policy_id: policy_id - allowed: true - matched_policies: - - matched_policies - - matched_policies - revision: 0 - properties: - allowed: - title: Allowed - type: boolean - decision: - title: Decision - type: string - matched_policies: - items: - type: string - title: Matched Policies - type: array - reason: - nullable: true - type: string - policy_id: - nullable: true - type: string - explain_trace: - items: - additionalProperties: true - type: object - title: Explain Trace - type: array - revision: - nullable: true - type: integer - required: - - allowed - - decision - title: AccessDecisionResponse - AccessRequest: - description: Explicit authorization request passed through the API boundary. - example: - resource: - key: "" - context: - key: "" - action: action - user: - key: "" - consistency: eventual - revision: 0 - properties: - user: - additionalProperties: true - title: User - type: object - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - context: - additionalProperties: true - title: Context - type: object - consistency: - default: eventual - title: Consistency - type: string - revision: - nullable: true - type: integer - required: - - action - title: AccessRequest - AdminLoginRequest: - example: - password: password - username: username - properties: - username: - title: Username - type: string - password: - title: Password - type: string - required: - - password - - username - title: AdminLoginRequest - AdminLoginResponse: - example: - access_token: access_token - role: admin - tenant_key: tenant_key - token_type: bearer - expires_in: 0 - properties: - access_token: - title: Access Token - type: string - token_type: - default: bearer - title: Token Type - type: string - expires_in: - title: Expires In - type: integer - role: - default: admin - title: Role - type: string - tenant_key: - title: Tenant Key - type: string - required: - - access_token - - expires_in - - tenant_key - title: AdminLoginResponse - AuditRecordOut: - example: - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - properties: - id: - title: Id - type: integer - principal_type: - title: Principal Type - type: string - principal_id: - title: Principal Id - type: string - correlation_id: - nullable: true - type: string - user: - additionalProperties: true - title: User - type: object - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - decision: - title: Decision - type: string - matched_policies: - items: {} - title: Matched Policies - type: array - reason: - nullable: true - type: string - evaluated_rules: - items: {} - title: Evaluated Rules - type: array - failed_conditions: - items: {} - title: Failed Conditions - type: array - created_at: - format: date-time - title: Created At - type: string - required: - - action - - created_at - - decision - - evaluated_rules - - failed_conditions - - id - - matched_policies - - principal_id - - principal_type - - resource - - user - title: AuditRecordOut - AuthModelCreate: - example: - schema: schema - properties: - schema: - title: Schema - type: string - required: - - schema - title: AuthModelCreate - AuthModelOut: - example: - tenant_id: 6 - schema: schema - compiled: - key: "" - parsed: - key: "" - id: 0 - properties: - id: - title: Id - type: integer - tenant_id: - title: Tenant Id - type: integer - schema: - title: Schema - type: string - parsed: - additionalProperties: true - title: Parsed - type: object - compiled: - additionalProperties: true - title: Compiled - type: object - required: - - compiled - - id - - parsed - - schema - - tenant_id - title: AuthModelOut - BatchAccessItem: - example: - resource: - key: "" - action: action - properties: - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - required: - - action - title: BatchAccessItem - BatchAccessRequest: - example: - user: - key: "" - items: - - resource: - key: "" - action: action - - resource: - key: "" - action: action - consistency: eventual - revision: 0 - properties: - user: - additionalProperties: true - title: User - type: object - items: - items: - $ref: "#/components/schemas/BatchAccessItem" - title: Items - type: array - consistency: - default: eventual - title: Consistency - type: string - revision: - nullable: true - type: integer - required: - - items - title: BatchAccessRequest - BatchAccessResponse: - example: - results: - - allowed: true - action: action - revision: 0 - - allowed: true - action: action - revision: 0 - revision: 6 - properties: - results: - items: - $ref: "#/components/schemas/BatchAccessResult" - title: Results - type: array - revision: - nullable: true - type: integer - required: - - results - title: BatchAccessResponse - BatchAccessResult: - example: - allowed: true - action: action - revision: 0 - properties: - action: - title: Action - type: string - allowed: - title: Allowed - type: boolean - revision: - nullable: true - type: integer - required: - - action - - allowed - title: BatchAccessResult - HTTPValidationError: - example: - detail: - - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - properties: - detail: - items: - $ref: "#/components/schemas/ValidationError" - title: Detail - type: array - title: HTTPValidationError - ImpactAnalysisRequest: - example: - policy_change: policy_change - properties: - policy_change: - title: Policy Change - type: string - required: - - policy_change - title: ImpactAnalysisRequest - ImpactAnalysisResponse: - example: - gained_access: - - 0 - - 0 - lost_access: - - 6 - - 6 - properties: - gained_access: - items: - type: integer - title: Gained Access - type: array - lost_access: - items: - type: integer - title: Lost Access - type: array - title: ImpactAnalysisResponse - MetaBody: - example: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - properties: - request_id: - nullable: true - type: string - limit: - nullable: true - type: integer - next_cursor: - nullable: true - type: string - extra: - additionalProperties: true - title: Extra - type: object - title: MetaBody - PermissionCreate: - example: - action: action - properties: - action: - title: Action - type: string - required: - - action - title: PermissionCreate - PermissionOut: - example: - action: action - id: 0 - properties: - id: - title: Id - type: integer - action: - title: Action - type: string - required: - - action - - id - title: PermissionOut - PermissionUpdate: - example: - action: action - properties: - action: - title: Action - type: string - required: - - action - title: PermissionUpdate - PlaygroundEvaluateRequest: - example: - input: - resource: - key: "" - context: - key: "" - action: "" - user: - key: "" - policies: - - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - properties: - policies: - items: - $ref: "#/components/schemas/PlaygroundPolicy" - title: Policies - type: array - input: - $ref: "#/components/schemas/PlaygroundInput" - required: - - input - - policies - title: PlaygroundEvaluateRequest - PlaygroundInput: - example: - resource: - key: "" - context: - key: "" - action: "" - user: - key: "" - properties: - user: - additionalProperties: true - title: User - type: object - resource: - additionalProperties: true - title: Resource - type: object - action: - default: "" - title: Action - type: string - context: - additionalProperties: true - title: Context - type: object - title: PlaygroundInput - PlaygroundPolicy: - example: - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - properties: - action: - title: Action - type: string - effect: - default: allow - title: Effect - type: string - priority: - default: 100 - title: Priority - type: integer - policy_id: - nullable: true - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - title: PlaygroundPolicy - PolicyCreate: - example: - effect: allow - action: action - state: active - priority: 0 - conditions: - key: "" - properties: - action: - title: Action - type: string - effect: - default: allow - title: Effect - type: string - priority: - default: 100 - title: Priority - type: integer - state: - default: active - title: State - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - title: PolicyCreate - PolicyOut: - example: - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - properties: - id: - title: Id - type: integer - action: - title: Action - type: string - effect: - title: Effect - type: string - priority: - title: Priority - type: integer - state: - default: active - title: State - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - - conditions - - effect - - id - - priority - title: PolicyOut - PolicySimulationInput: - example: - relationship_change: - key: "" - role_change: - key: "" - policy_change: policy_change - properties: - policy_change: - nullable: true - type: string - relationship_change: - additionalProperties: true - nullable: true - type: object - role_change: - additionalProperties: true - nullable: true - type: object - title: PolicySimulationInput - PolicySimulationRequest: - example: - request: - key: "" - simulate: - relationship_change: - key: "" - role_change: - key: "" - policy_change: policy_change - properties: - simulate: - $ref: "#/components/schemas/PolicySimulationInput" - request: - additionalProperties: true - title: Request - type: object - title: PolicySimulationRequest - PolicySimulationResponse: - example: - decision_before: - key: "" - decision_after: - key: "" - properties: - decision_before: - additionalProperties: true - title: Decision Before - type: object - decision_after: - additionalProperties: true - title: Decision After - type: object - required: - - decision_after - - decision_before - title: PolicySimulationResponse - RelationshipCreate: - example: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - object_id: object_id - relation: relation - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - relation: - title: Relation - type: string - object_type: - title: Object Type - type: string - object_id: - title: Object Id - type: string - required: - - object_id - - object_type - - relation - - subject_id - - subject_type - title: RelationshipCreate - RelationshipOut: - example: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - id: 0 - object_id: object_id - relation: relation - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - relation: - title: Relation - type: string - object_type: - title: Object Type - type: string - object_id: - title: Object Id - type: string - id: - title: Id - type: integer - required: - - id - - object_id - - object_type - - relation - - subject_id - - subject_type - title: RelationshipOut - RoleCreate: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: RoleCreate - RoleOut: - example: - name: name - id: 0 - properties: - id: - title: Id - type: integer - name: - title: Name - type: string - required: - - id - - name - title: RoleOut - RoleUpdate: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: RoleUpdate - SimulationResponse: - example: - reason: reason - explain_trace: - - key: "" - - key: "" - failed_conditions: - - failed_conditions - - failed_conditions - decision: decision - policy_id: policy_id - matched_policies: - - matched_policies - - matched_policies - revision: 0 - properties: - decision: - title: Decision - type: string - matched_policies: - items: - type: string - title: Matched Policies - type: array - reason: - nullable: true - type: string - policy_id: - nullable: true - type: string - explain_trace: - items: - additionalProperties: true - type: object - title: Explain Trace - type: array - failed_conditions: - items: - type: string - title: Failed Conditions - type: array - revision: - nullable: true - type: integer - required: - - decision - - matched_policies - title: SimulationResponse - SuccessResponse_ACLOut_: - example: - data: - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/ACLOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[ACLOut]" - SuccessResponse_AccessDecisionResponse_: - example: - data: - reason: reason - explain_trace: - - key: "" - - key: "" - decision: decision - policy_id: policy_id - allowed: true - matched_policies: - - matched_policies - - matched_policies - revision: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AccessDecisionResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AccessDecisionResponse]" - SuccessResponse_AdminLoginResponse_: - example: - data: - access_token: access_token - role: admin - tenant_key: tenant_key - token_type: bearer - expires_in: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AdminLoginResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AdminLoginResponse]" - SuccessResponse_AuthModelOut_: - example: - data: - tenant_id: 6 - schema: schema - compiled: - key: "" - parsed: - key: "" - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AuthModelOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AuthModelOut]" - SuccessResponse_BatchAccessResponse_: - example: - data: - results: - - allowed: true - action: action - revision: 0 - - allowed: true - action: action - revision: 0 - revision: 6 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/BatchAccessResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[BatchAccessResponse]" - SuccessResponse_ImpactAnalysisResponse_: - example: - data: - gained_access: - - 0 - - 0 - lost_access: - - 6 - - 6 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/ImpactAnalysisResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[ImpactAnalysisResponse]" - SuccessResponse_PermissionOut_: - example: - data: - action: action - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PermissionOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PermissionOut]" - SuccessResponse_PolicyOut_: - example: - data: - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PolicyOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PolicyOut]" - SuccessResponse_PolicySimulationResponse_: - example: - data: - decision_before: - key: "" - decision_after: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PolicySimulationResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PolicySimulationResponse]" - SuccessResponse_RelationshipOut_: - example: - data: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - id: 0 - object_id: object_id - relation: relation - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/RelationshipOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[RelationshipOut]" - SuccessResponse_SimulationResponse_: - example: - data: - reason: reason - explain_trace: - - key: "" - - key: "" - failed_conditions: - - failed_conditions - - failed_conditions - decision: decision - policy_id: policy_id - matched_policies: - - matched_policies - - matched_policies - revision: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/SimulationResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[SimulationResponse]" - SuccessResponse_dict_str__Any__: - example: - data: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: true - title: Data - type: object - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, Any]]" - SuccessResponse_dict_str__Union_int__str___: - example: - data: - key: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - $ref: "#/components/schemas/Data_value" - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, Union[int, str]]]" - SuccessResponse_dict_str__int__: - example: - data: - key: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - type: integer - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, int]]" - SuccessResponse_dict_str__object__: - example: - data: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: true - title: Data - type: object - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, object]]" - SuccessResponse_dict_str__str__: - example: - data: - key: data - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - type: string - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, str]]" - SuccessResponse_list_ACLOut__: - example: - data: - - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/ACLOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[ACLOut]]" - SuccessResponse_list_AuditRecordOut__: - example: - data: - - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/AuditRecordOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[AuditRecordOut]]" - SuccessResponse_list_PermissionOut__: - example: - data: - - action: action - id: 0 - - action: action - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/PermissionOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[PermissionOut]]" - SuccessResponse_list_PolicyOut__: - example: - data: - - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/PolicyOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[PolicyOut]]" - SuccessResponse_list_RoleOut__: - example: - data: - - name: name - id: 0 - - name: name - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/RoleOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[RoleOut]]" - SuccessResponse_list_dict_str__str___: - example: - data: - - key: data - - key: data - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - additionalProperties: - type: string - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[dict[str, str]]]" - ValidationError: - example: - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - properties: - loc: - items: - $ref: "#/components/schemas/Location_inner" - title: Location - type: array - msg: - title: Message - type: string - type: - title: Error Type - type: string - input: - title: Input - ctx: - title: Context - type: object - required: - - loc - - msg - - type - title: ValidationError - Data_value: - anyOf: - - type: integer - - type: string - Location_inner: - anyOf: - - type: string - - type: integer - securitySchemes: - HTTPBearer: - scheme: bearer - type: http - APIKeyHeader: - in: header - name: X-API-Key - type: apiKey diff --git a/sdks/go/api_access.go b/sdks/go/api_access.go deleted file mode 100644 index 13fc1a2..0000000 --- a/sdks/go/api_access.go +++ /dev/null @@ -1,484 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -type AccessAPI interface { - - /* - CheckAccessBatchCheckAccessBatchPost Check Access Batch - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCheckAccessBatchCheckAccessBatchPostRequest - */ - CheckAccessBatchCheckAccessBatchPost(ctx context.Context) ApiCheckAccessBatchCheckAccessBatchPostRequest - - // CheckAccessBatchCheckAccessBatchPostExecute executes the request - // @return SuccessResponseBatchAccessResponse - CheckAccessBatchCheckAccessBatchPostExecute(r ApiCheckAccessBatchCheckAccessBatchPostRequest) (*SuccessResponseBatchAccessResponse, *http.Response, error) - - /* - CheckAccessCheckAccessPost Check Access - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCheckAccessCheckAccessPostRequest - */ - CheckAccessCheckAccessPost(ctx context.Context) ApiCheckAccessCheckAccessPostRequest - - // CheckAccessCheckAccessPostExecute executes the request - // @return SuccessResponseAccessDecisionResponse - CheckAccessCheckAccessPostExecute(r ApiCheckAccessCheckAccessPostRequest) (*SuccessResponseAccessDecisionResponse, *http.Response, error) - - /* - SimulateSimulatePost Simulate - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSimulateSimulatePostRequest - */ - SimulateSimulatePost(ctx context.Context) ApiSimulateSimulatePostRequest - - // SimulateSimulatePostExecute executes the request - // @return SuccessResponseSimulationResponse - SimulateSimulatePostExecute(r ApiSimulateSimulatePostRequest) (*SuccessResponseSimulationResponse, *http.Response, error) -} - -// AccessAPIService AccessAPI service -type AccessAPIService service - -type ApiCheckAccessBatchCheckAccessBatchPostRequest struct { - ctx context.Context - ApiService AccessAPI - batchAccessRequest *BatchAccessRequest - policySet *string -} - -func (r ApiCheckAccessBatchCheckAccessBatchPostRequest) BatchAccessRequest(batchAccessRequest BatchAccessRequest) ApiCheckAccessBatchCheckAccessBatchPostRequest { - r.batchAccessRequest = &batchAccessRequest - return r -} - -func (r ApiCheckAccessBatchCheckAccessBatchPostRequest) PolicySet(policySet string) ApiCheckAccessBatchCheckAccessBatchPostRequest { - r.policySet = &policySet - return r -} - -func (r ApiCheckAccessBatchCheckAccessBatchPostRequest) Execute() (*SuccessResponseBatchAccessResponse, *http.Response, error) { - return r.ApiService.CheckAccessBatchCheckAccessBatchPostExecute(r) -} - -/* -CheckAccessBatchCheckAccessBatchPost Check Access Batch - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCheckAccessBatchCheckAccessBatchPostRequest -*/ -func (a *AccessAPIService) CheckAccessBatchCheckAccessBatchPost(ctx context.Context) ApiCheckAccessBatchCheckAccessBatchPostRequest { - return ApiCheckAccessBatchCheckAccessBatchPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseBatchAccessResponse -func (a *AccessAPIService) CheckAccessBatchCheckAccessBatchPostExecute(r ApiCheckAccessBatchCheckAccessBatchPostRequest) (*SuccessResponseBatchAccessResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseBatchAccessResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessAPIService.CheckAccessBatchCheckAccessBatchPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/check-access-batch" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.batchAccessRequest == nil { - return localVarReturnValue, nil, reportError("batchAccessRequest is required and must be specified") - } - - if r.policySet != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", r.policySet, "form", "") - } else { - var defaultValue string = "active" - parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", defaultValue, "form", "") - r.policySet = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.batchAccessRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCheckAccessCheckAccessPostRequest struct { - ctx context.Context - ApiService AccessAPI - accessRequest *AccessRequest - policySet *string -} - -func (r ApiCheckAccessCheckAccessPostRequest) AccessRequest(accessRequest AccessRequest) ApiCheckAccessCheckAccessPostRequest { - r.accessRequest = &accessRequest - return r -} - -func (r ApiCheckAccessCheckAccessPostRequest) PolicySet(policySet string) ApiCheckAccessCheckAccessPostRequest { - r.policySet = &policySet - return r -} - -func (r ApiCheckAccessCheckAccessPostRequest) Execute() (*SuccessResponseAccessDecisionResponse, *http.Response, error) { - return r.ApiService.CheckAccessCheckAccessPostExecute(r) -} - -/* -CheckAccessCheckAccessPost Check Access - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCheckAccessCheckAccessPostRequest -*/ -func (a *AccessAPIService) CheckAccessCheckAccessPost(ctx context.Context) ApiCheckAccessCheckAccessPostRequest { - return ApiCheckAccessCheckAccessPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseAccessDecisionResponse -func (a *AccessAPIService) CheckAccessCheckAccessPostExecute(r ApiCheckAccessCheckAccessPostRequest) (*SuccessResponseAccessDecisionResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseAccessDecisionResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessAPIService.CheckAccessCheckAccessPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/check-access" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.accessRequest == nil { - return localVarReturnValue, nil, reportError("accessRequest is required and must be specified") - } - - if r.policySet != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", r.policySet, "form", "") - } else { - var defaultValue string = "active" - parameterAddToHeaderOrQuery(localVarQueryParams, "policy_set", defaultValue, "form", "") - r.policySet = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.accessRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSimulateSimulatePostRequest struct { - ctx context.Context - ApiService AccessAPI - accessRequest *AccessRequest -} - -func (r ApiSimulateSimulatePostRequest) AccessRequest(accessRequest AccessRequest) ApiSimulateSimulatePostRequest { - r.accessRequest = &accessRequest - return r -} - -func (r ApiSimulateSimulatePostRequest) Execute() (*SuccessResponseSimulationResponse, *http.Response, error) { - return r.ApiService.SimulateSimulatePostExecute(r) -} - -/* -SimulateSimulatePost Simulate - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSimulateSimulatePostRequest -*/ -func (a *AccessAPIService) SimulateSimulatePost(ctx context.Context) ApiSimulateSimulatePostRequest { - return ApiSimulateSimulatePostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseSimulationResponse -func (a *AccessAPIService) SimulateSimulatePostExecute(r ApiSimulateSimulatePostRequest) (*SuccessResponseSimulationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseSimulationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessAPIService.SimulateSimulatePost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/simulate" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.accessRequest == nil { - return localVarReturnValue, nil, reportError("accessRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.accessRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdks/go/api_auth.go b/sdks/go/api_auth.go deleted file mode 100644 index 478dd70..0000000 --- a/sdks/go/api_auth.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -type AuthAPI interface { - - /* - AdminLoginAdminLoginPost Admin Login - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminLoginAdminLoginPostRequest - */ - AdminLoginAdminLoginPost(ctx context.Context) ApiAdminLoginAdminLoginPostRequest - - // AdminLoginAdminLoginPostExecute executes the request - // @return SuccessResponseAdminLoginResponse - AdminLoginAdminLoginPostExecute(r ApiAdminLoginAdminLoginPostRequest) (*SuccessResponseAdminLoginResponse, *http.Response, error) - - /* - AdminLoginAdminLoginPost_0 Admin Login - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminLoginAdminLoginPost_0Request - */ - AdminLoginAdminLoginPost_1(ctx context.Context) ApiAdminLoginAdminLoginPost_0Request - - // AdminLoginAdminLoginPost_1Execute executes the request - // @return SuccessResponseAdminLoginResponse - AdminLoginAdminLoginPost_1Execute(r ApiAdminLoginAdminLoginPost_0Request) (*SuccessResponseAdminLoginResponse, *http.Response, error) -} - -// AuthAPIService AuthAPI service -type AuthAPIService service - -type ApiAdminLoginAdminLoginPostRequest struct { - ctx context.Context - ApiService AuthAPI - adminLoginRequest *AdminLoginRequest -} - -func (r ApiAdminLoginAdminLoginPostRequest) AdminLoginRequest(adminLoginRequest AdminLoginRequest) ApiAdminLoginAdminLoginPostRequest { - r.adminLoginRequest = &adminLoginRequest - return r -} - -func (r ApiAdminLoginAdminLoginPostRequest) Execute() (*SuccessResponseAdminLoginResponse, *http.Response, error) { - return r.ApiService.AdminLoginAdminLoginPostExecute(r) -} - -/* -AdminLoginAdminLoginPost Admin Login - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminLoginAdminLoginPostRequest -*/ -func (a *AuthAPIService) AdminLoginAdminLoginPost(ctx context.Context) ApiAdminLoginAdminLoginPostRequest { - return ApiAdminLoginAdminLoginPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseAdminLoginResponse -func (a *AuthAPIService) AdminLoginAdminLoginPostExecute(r ApiAdminLoginAdminLoginPostRequest) (*SuccessResponseAdminLoginResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseAdminLoginResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AdminLoginAdminLoginPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/login" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.adminLoginRequest == nil { - return localVarReturnValue, nil, reportError("adminLoginRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.adminLoginRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAdminLoginAdminLoginPost_0Request struct { - ctx context.Context - ApiService AuthAPI - adminLoginRequest *AdminLoginRequest -} - -func (r ApiAdminLoginAdminLoginPost_0Request) AdminLoginRequest(adminLoginRequest AdminLoginRequest) ApiAdminLoginAdminLoginPost_0Request { - r.adminLoginRequest = &adminLoginRequest - return r -} - -func (r ApiAdminLoginAdminLoginPost_0Request) Execute() (*SuccessResponseAdminLoginResponse, *http.Response, error) { - return r.ApiService.AdminLoginAdminLoginPost_1Execute(r) -} - -/* -AdminLoginAdminLoginPost_0 Admin Login - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminLoginAdminLoginPost_0Request -*/ -func (a *AuthAPIService) AdminLoginAdminLoginPost_1(ctx context.Context) ApiAdminLoginAdminLoginPost_0Request { - return ApiAdminLoginAdminLoginPost_0Request{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseAdminLoginResponse -func (a *AuthAPIService) AdminLoginAdminLoginPost_1Execute(r ApiAdminLoginAdminLoginPost_0Request) (*SuccessResponseAdminLoginResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseAdminLoginResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AdminLoginAdminLoginPost_1") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/login" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.adminLoginRequest == nil { - return localVarReturnValue, nil, reportError("adminLoginRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.adminLoginRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdks/go/api_dev.go b/sdks/go/api_dev.go deleted file mode 100644 index 1069cdf..0000000 --- a/sdks/go/api_dev.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -type DevAPI interface { - - /* - GetSampleDataDevSampleDataGet Get Sample Data - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSampleDataDevSampleDataGetRequest - */ - GetSampleDataDevSampleDataGet(ctx context.Context) ApiGetSampleDataDevSampleDataGetRequest - - // GetSampleDataDevSampleDataGetExecute executes the request - // @return SuccessResponseDictStrObject - GetSampleDataDevSampleDataGetExecute(r ApiGetSampleDataDevSampleDataGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) - - /* - SeedSampleDataDevSampleDataSeedPost Seed Sample Data - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSeedSampleDataDevSampleDataSeedPostRequest - */ - SeedSampleDataDevSampleDataSeedPost(ctx context.Context) ApiSeedSampleDataDevSampleDataSeedPostRequest - - // SeedSampleDataDevSampleDataSeedPostExecute executes the request - // @return SuccessResponseDictStrObject - SeedSampleDataDevSampleDataSeedPostExecute(r ApiSeedSampleDataDevSampleDataSeedPostRequest) (*SuccessResponseDictStrObject, *http.Response, error) -} - -// DevAPIService DevAPI service -type DevAPIService service - -type ApiGetSampleDataDevSampleDataGetRequest struct { - ctx context.Context - ApiService DevAPI -} - -func (r ApiGetSampleDataDevSampleDataGetRequest) Execute() (*SuccessResponseDictStrObject, *http.Response, error) { - return r.ApiService.GetSampleDataDevSampleDataGetExecute(r) -} - -/* -GetSampleDataDevSampleDataGet Get Sample Data - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSampleDataDevSampleDataGetRequest -*/ -func (a *DevAPIService) GetSampleDataDevSampleDataGet(ctx context.Context) ApiGetSampleDataDevSampleDataGetRequest { - return ApiGetSampleDataDevSampleDataGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrObject -func (a *DevAPIService) GetSampleDataDevSampleDataGetExecute(r ApiGetSampleDataDevSampleDataGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrObject - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DevAPIService.GetSampleDataDevSampleDataGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/dev/sample-data" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSeedSampleDataDevSampleDataSeedPostRequest struct { - ctx context.Context - ApiService DevAPI - reset *bool -} - -// Clear the sample dataset before reseeding it. -func (r ApiSeedSampleDataDevSampleDataSeedPostRequest) Reset(reset bool) ApiSeedSampleDataDevSampleDataSeedPostRequest { - r.reset = &reset - return r -} - -func (r ApiSeedSampleDataDevSampleDataSeedPostRequest) Execute() (*SuccessResponseDictStrObject, *http.Response, error) { - return r.ApiService.SeedSampleDataDevSampleDataSeedPostExecute(r) -} - -/* -SeedSampleDataDevSampleDataSeedPost Seed Sample Data - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSeedSampleDataDevSampleDataSeedPostRequest -*/ -func (a *DevAPIService) SeedSampleDataDevSampleDataSeedPost(ctx context.Context) ApiSeedSampleDataDevSampleDataSeedPostRequest { - return ApiSeedSampleDataDevSampleDataSeedPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrObject -func (a *DevAPIService) SeedSampleDataDevSampleDataSeedPostExecute(r ApiSeedSampleDataDevSampleDataSeedPostRequest) (*SuccessResponseDictStrObject, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrObject - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DevAPIService.SeedSampleDataDevSampleDataSeedPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/dev/sample-data/seed" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.reset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "reset", r.reset, "form", "") - } else { - var defaultValue bool = false - parameterAddToHeaderOrQuery(localVarQueryParams, "reset", defaultValue, "form", "") - r.reset = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdks/go/api_health.go b/sdks/go/api_health.go deleted file mode 100644 index 12859aa..0000000 --- a/sdks/go/api_health.go +++ /dev/null @@ -1,353 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -type HealthAPI interface { - - /* - HealthHealthGet Health - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHealthHealthGetRequest - */ - HealthHealthGet(ctx context.Context) ApiHealthHealthGetRequest - - // HealthHealthGetExecute executes the request - // @return SuccessResponseDictStrStr - HealthHealthGetExecute(r ApiHealthHealthGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) - - /* - LivenessHealthLiveGet Liveness - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLivenessHealthLiveGetRequest - */ - LivenessHealthLiveGet(ctx context.Context) ApiLivenessHealthLiveGetRequest - - // LivenessHealthLiveGetExecute executes the request - // @return SuccessResponseDictStrStr - LivenessHealthLiveGetExecute(r ApiLivenessHealthLiveGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) - - /* - ReadinessHealthReadyGet Readiness - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiReadinessHealthReadyGetRequest - */ - ReadinessHealthReadyGet(ctx context.Context) ApiReadinessHealthReadyGetRequest - - // ReadinessHealthReadyGetExecute executes the request - // @return SuccessResponseDictStrObject - ReadinessHealthReadyGetExecute(r ApiReadinessHealthReadyGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) -} - -// HealthAPIService HealthAPI service -type HealthAPIService service - -type ApiHealthHealthGetRequest struct { - ctx context.Context - ApiService HealthAPI -} - -func (r ApiHealthHealthGetRequest) Execute() (*SuccessResponseDictStrStr, *http.Response, error) { - return r.ApiService.HealthHealthGetExecute(r) -} - -/* -HealthHealthGet Health - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHealthHealthGetRequest -*/ -func (a *HealthAPIService) HealthHealthGet(ctx context.Context) ApiHealthHealthGetRequest { - return ApiHealthHealthGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrStr -func (a *HealthAPIService) HealthHealthGetExecute(r ApiHealthHealthGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrStr - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.HealthHealthGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/health" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiLivenessHealthLiveGetRequest struct { - ctx context.Context - ApiService HealthAPI -} - -func (r ApiLivenessHealthLiveGetRequest) Execute() (*SuccessResponseDictStrStr, *http.Response, error) { - return r.ApiService.LivenessHealthLiveGetExecute(r) -} - -/* -LivenessHealthLiveGet Liveness - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLivenessHealthLiveGetRequest -*/ -func (a *HealthAPIService) LivenessHealthLiveGet(ctx context.Context) ApiLivenessHealthLiveGetRequest { - return ApiLivenessHealthLiveGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrStr -func (a *HealthAPIService) LivenessHealthLiveGetExecute(r ApiLivenessHealthLiveGetRequest) (*SuccessResponseDictStrStr, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrStr - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.LivenessHealthLiveGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/health/live" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiReadinessHealthReadyGetRequest struct { - ctx context.Context - ApiService HealthAPI -} - -func (r ApiReadinessHealthReadyGetRequest) Execute() (*SuccessResponseDictStrObject, *http.Response, error) { - return r.ApiService.ReadinessHealthReadyGetExecute(r) -} - -/* -ReadinessHealthReadyGet Readiness - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiReadinessHealthReadyGetRequest -*/ -func (a *HealthAPIService) ReadinessHealthReadyGet(ctx context.Context) ApiReadinessHealthReadyGetRequest { - return ApiReadinessHealthReadyGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrObject -func (a *HealthAPIService) ReadinessHealthReadyGetExecute(r ApiReadinessHealthReadyGetRequest) (*SuccessResponseDictStrObject, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrObject - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.ReadinessHealthReadyGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/health/ready" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdks/go/api_management.go b/sdks/go/api_management.go deleted file mode 100644 index 0129ee2..0000000 --- a/sdks/go/api_management.go +++ /dev/null @@ -1,4133 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" - "time" -) - - -type ManagementAPI interface { - - /* - AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost Add Permission To Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @param permissionId - @return ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest - */ - AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(ctx context.Context, roleId int32, permissionId int32) ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest - - // AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute executes the request - // @return SuccessResponsePermissionOut - AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute(r ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest) (*SuccessResponsePermissionOut, *http.Response, error) - - /* - CreateAclEntryAclPost Create Acl Entry - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAclEntryAclPostRequest - */ - CreateAclEntryAclPost(ctx context.Context) ApiCreateAclEntryAclPostRequest - - // CreateAclEntryAclPostExecute executes the request - // @return SuccessResponseACLOut - CreateAclEntryAclPostExecute(r ApiCreateAclEntryAclPostRequest) (*SuccessResponseACLOut, *http.Response, error) - - /* - CreateAuthModelAuthModelPost Create Auth Model - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthModelAuthModelPostRequest - */ - CreateAuthModelAuthModelPost(ctx context.Context) ApiCreateAuthModelAuthModelPostRequest - - // CreateAuthModelAuthModelPostExecute executes the request - // @return SuccessResponseAuthModelOut - CreateAuthModelAuthModelPostExecute(r ApiCreateAuthModelAuthModelPostRequest) (*SuccessResponseAuthModelOut, *http.Response, error) - - /* - CreatePermissionPermissionsPost Create Permission - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatePermissionPermissionsPostRequest - */ - CreatePermissionPermissionsPost(ctx context.Context) ApiCreatePermissionPermissionsPostRequest - - // CreatePermissionPermissionsPostExecute executes the request - // @return PermissionOut - CreatePermissionPermissionsPostExecute(r ApiCreatePermissionPermissionsPostRequest) (*PermissionOut, *http.Response, error) - - /* - CreatePolicyFromDslPoliciesDslPost Create Policy From Dsl - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatePolicyFromDslPoliciesDslPostRequest - */ - CreatePolicyFromDslPoliciesDslPost(ctx context.Context) ApiCreatePolicyFromDslPoliciesDslPostRequest - - // CreatePolicyFromDslPoliciesDslPostExecute executes the request - // @return SuccessResponsePolicyOut - CreatePolicyFromDslPoliciesDslPostExecute(r ApiCreatePolicyFromDslPoliciesDslPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) - - /* - CreatePolicyPoliciesPost Create Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatePolicyPoliciesPostRequest - */ - CreatePolicyPoliciesPost(ctx context.Context) ApiCreatePolicyPoliciesPostRequest - - // CreatePolicyPoliciesPostExecute executes the request - // @return SuccessResponsePolicyOut - CreatePolicyPoliciesPostExecute(r ApiCreatePolicyPoliciesPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) - - /* - CreateRelationshipRelationshipsPost Create Relationship - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRelationshipRelationshipsPostRequest - */ - CreateRelationshipRelationshipsPost(ctx context.Context) ApiCreateRelationshipRelationshipsPostRequest - - // CreateRelationshipRelationshipsPostExecute executes the request - // @return SuccessResponseRelationshipOut - CreateRelationshipRelationshipsPostExecute(r ApiCreateRelationshipRelationshipsPostRequest) (*SuccessResponseRelationshipOut, *http.Response, error) - - /* - CreateRoleRolesPost Create Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRoleRolesPostRequest - */ - CreateRoleRolesPost(ctx context.Context) ApiCreateRoleRolesPostRequest - - // CreateRoleRolesPostExecute executes the request - // @return RoleOut - CreateRoleRolesPostExecute(r ApiCreateRoleRolesPostRequest) (*RoleOut, *http.Response, error) - - /* - DeleteAclEntryAclAclIdDelete Delete Acl Entry - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclId - @return ApiDeleteAclEntryAclAclIdDeleteRequest - */ - DeleteAclEntryAclAclIdDelete(ctx context.Context, aclId int32) ApiDeleteAclEntryAclAclIdDeleteRequest - - // DeleteAclEntryAclAclIdDeleteExecute executes the request - // @return SuccessResponseDictStrInt - DeleteAclEntryAclAclIdDeleteExecute(r ApiDeleteAclEntryAclAclIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) - - /* - DeletePermissionPermissionsPermissionIdDelete Delete Permission - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param permissionId - @return ApiDeletePermissionPermissionsPermissionIdDeleteRequest - */ - DeletePermissionPermissionsPermissionIdDelete(ctx context.Context, permissionId int32) ApiDeletePermissionPermissionsPermissionIdDeleteRequest - - // DeletePermissionPermissionsPermissionIdDeleteExecute executes the request - // @return SuccessResponseDictStrInt - DeletePermissionPermissionsPermissionIdDeleteExecute(r ApiDeletePermissionPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) - - /* - DeletePolicyPoliciesPolicyKeyDelete Delete Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param policyKey - @return ApiDeletePolicyPoliciesPolicyKeyDeleteRequest - */ - DeletePolicyPoliciesPolicyKeyDelete(ctx context.Context, policyKey string) ApiDeletePolicyPoliciesPolicyKeyDeleteRequest - - // DeletePolicyPoliciesPolicyKeyDeleteExecute executes the request - // @return SuccessResponseDictStrStr - DeletePolicyPoliciesPolicyKeyDeleteExecute(r ApiDeletePolicyPoliciesPolicyKeyDeleteRequest) (*SuccessResponseDictStrStr, *http.Response, error) - - /* - DeleteRoleRolesRoleIdDelete Delete Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @return ApiDeleteRoleRolesRoleIdDeleteRequest - */ - DeleteRoleRolesRoleIdDelete(ctx context.Context, roleId int32) ApiDeleteRoleRolesRoleIdDeleteRequest - - // DeleteRoleRolesRoleIdDeleteExecute executes the request - // @return SuccessResponseDictStrInt - DeleteRoleRolesRoleIdDeleteExecute(r ApiDeleteRoleRolesRoleIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) - - /* - GetAuthModelAuthModelGet Get Auth Model - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAuthModelAuthModelGetRequest - */ - GetAuthModelAuthModelGet(ctx context.Context) ApiGetAuthModelAuthModelGetRequest - - // GetAuthModelAuthModelGetExecute executes the request - // @return SuccessResponseAuthModelOut - GetAuthModelAuthModelGetExecute(r ApiGetAuthModelAuthModelGetRequest) (*SuccessResponseAuthModelOut, *http.Response, error) - - /* - ImpactAnalysisImpactAnalysisPost Impact Analysis - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiImpactAnalysisImpactAnalysisPostRequest - */ - ImpactAnalysisImpactAnalysisPost(ctx context.Context) ApiImpactAnalysisImpactAnalysisPostRequest - - // ImpactAnalysisImpactAnalysisPostExecute executes the request - // @return SuccessResponseImpactAnalysisResponse - ImpactAnalysisImpactAnalysisPostExecute(r ApiImpactAnalysisImpactAnalysisPostRequest) (*SuccessResponseImpactAnalysisResponse, *http.Response, error) - - /* - ListAclEntriesAclResourceTypeResourceIdGet List Acl Entries - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param resourceType - @param resourceId - @return ApiListAclEntriesAclResourceTypeResourceIdGetRequest - */ - ListAclEntriesAclResourceTypeResourceIdGet(ctx context.Context, resourceType string, resourceId string) ApiListAclEntriesAclResourceTypeResourceIdGetRequest - - // ListAclEntriesAclResourceTypeResourceIdGetExecute executes the request - // @return SuccessResponseListACLOut - ListAclEntriesAclResourceTypeResourceIdGetExecute(r ApiListAclEntriesAclResourceTypeResourceIdGetRequest) (*SuccessResponseListACLOut, *http.Response, error) - - /* - ListAuditLogsAuditGet List Audit Logs - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListAuditLogsAuditGetRequest - */ - ListAuditLogsAuditGet(ctx context.Context) ApiListAuditLogsAuditGetRequest - - // ListAuditLogsAuditGetExecute executes the request - // @return SuccessResponseListAuditRecordOut - ListAuditLogsAuditGetExecute(r ApiListAuditLogsAuditGetRequest) (*SuccessResponseListAuditRecordOut, *http.Response, error) - - /* - ListPermissionRolesPermissionsPermissionIdRolesGet List Permission Roles - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param permissionId - @return ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest - */ - ListPermissionRolesPermissionsPermissionIdRolesGet(ctx context.Context, permissionId int32) ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest - - // ListPermissionRolesPermissionsPermissionIdRolesGetExecute executes the request - // @return SuccessResponseListRoleOut - ListPermissionRolesPermissionsPermissionIdRolesGetExecute(r ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) - - /* - ListPermissionsPermissionsGet List Permissions - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPermissionsPermissionsGetRequest - */ - ListPermissionsPermissionsGet(ctx context.Context) ApiListPermissionsPermissionsGetRequest - - // ListPermissionsPermissionsGetExecute executes the request - // @return SuccessResponseListPermissionOut - ListPermissionsPermissionsGetExecute(r ApiListPermissionsPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) - - /* - ListPoliciesPoliciesGet List Policies - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPoliciesPoliciesGetRequest - */ - ListPoliciesPoliciesGet(ctx context.Context) ApiListPoliciesPoliciesGetRequest - - // ListPoliciesPoliciesGetExecute executes the request - // @return SuccessResponseListPolicyOut - ListPoliciesPoliciesGetExecute(r ApiListPoliciesPoliciesGetRequest) (*SuccessResponseListPolicyOut, *http.Response, error) - - /* - ListRelationshipsRelationshipsGet List Relationships - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRelationshipsRelationshipsGetRequest - */ - ListRelationshipsRelationshipsGet(ctx context.Context) ApiListRelationshipsRelationshipsGetRequest - - // ListRelationshipsRelationshipsGetExecute executes the request - // @return SuccessResponseListDictStrStr - ListRelationshipsRelationshipsGetExecute(r ApiListRelationshipsRelationshipsGetRequest) (*SuccessResponseListDictStrStr, *http.Response, error) - - /* - ListRolePermissionsRolesRoleIdPermissionsGet List Role Permissions - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @return ApiListRolePermissionsRolesRoleIdPermissionsGetRequest - */ - ListRolePermissionsRolesRoleIdPermissionsGet(ctx context.Context, roleId int32) ApiListRolePermissionsRolesRoleIdPermissionsGetRequest - - // ListRolePermissionsRolesRoleIdPermissionsGetExecute executes the request - // @return SuccessResponseListPermissionOut - ListRolePermissionsRolesRoleIdPermissionsGetExecute(r ApiListRolePermissionsRolesRoleIdPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) - - /* - ListRolesRolesGet List Roles - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRolesRolesGetRequest - */ - ListRolesRolesGet(ctx context.Context) ApiListRolesRolesGetRequest - - // ListRolesRolesGetExecute executes the request - // @return SuccessResponseListRoleOut - ListRolesRolesGetExecute(r ApiListRolesRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) - - /* - RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete Remove Permission From Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @param permissionId - @return ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest - */ - RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(ctx context.Context, roleId int32, permissionId int32) ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest - - // RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute executes the request - // @return SuccessResponseDictStrInt - RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute(r ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) - - /* - RollbackPolicyPoliciesPolicyKeyRollbackVersionPost Rollback Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param policyKey - @param version - @return ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest - */ - RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(ctx context.Context, policyKey string, version int32) ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest - - // RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute executes the request - // @return SuccessResponseDictStrUnionIntStr - RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute(r ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest) (*SuccessResponseDictStrUnionIntStr, *http.Response, error) - - /* - SimulatePolicySimulatePolicyPost Simulate Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSimulatePolicySimulatePolicyPostRequest - */ - SimulatePolicySimulatePolicyPost(ctx context.Context) ApiSimulatePolicySimulatePolicyPostRequest - - // SimulatePolicySimulatePolicyPostExecute executes the request - // @return SuccessResponsePolicySimulationResponse - SimulatePolicySimulatePolicyPostExecute(r ApiSimulatePolicySimulatePolicyPostRequest) (*SuccessResponsePolicySimulationResponse, *http.Response, error) - - /* - UpdatePermissionPermissionsPermissionIdPut Update Permission - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param permissionId - @return ApiUpdatePermissionPermissionsPermissionIdPutRequest - */ - UpdatePermissionPermissionsPermissionIdPut(ctx context.Context, permissionId int32) ApiUpdatePermissionPermissionsPermissionIdPutRequest - - // UpdatePermissionPermissionsPermissionIdPutExecute executes the request - // @return PermissionOut - UpdatePermissionPermissionsPermissionIdPutExecute(r ApiUpdatePermissionPermissionsPermissionIdPutRequest) (*PermissionOut, *http.Response, error) - - /* - UpdatePolicyPoliciesPolicyKeyPut Update Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param policyKey - @return ApiUpdatePolicyPoliciesPolicyKeyPutRequest - */ - UpdatePolicyPoliciesPolicyKeyPut(ctx context.Context, policyKey string) ApiUpdatePolicyPoliciesPolicyKeyPutRequest - - // UpdatePolicyPoliciesPolicyKeyPutExecute executes the request - // @return SuccessResponsePolicyOut - UpdatePolicyPoliciesPolicyKeyPutExecute(r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) (*SuccessResponsePolicyOut, *http.Response, error) - - /* - UpdateRoleRolesRoleIdPut Update Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @return ApiUpdateRoleRolesRoleIdPutRequest - */ - UpdateRoleRolesRoleIdPut(ctx context.Context, roleId int32) ApiUpdateRoleRolesRoleIdPutRequest - - // UpdateRoleRolesRoleIdPutExecute executes the request - // @return RoleOut - UpdateRoleRolesRoleIdPutExecute(r ApiUpdateRoleRolesRoleIdPutRequest) (*RoleOut, *http.Response, error) -} - -// ManagementAPIService ManagementAPI service -type ManagementAPIService service - -type ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest struct { - ctx context.Context - ApiService ManagementAPI - roleId int32 - permissionId int32 -} - -func (r ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest) Execute() (*SuccessResponsePermissionOut, *http.Response, error) { - return r.ApiService.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute(r) -} - -/* -AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost Add Permission To Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @param permissionId - @return ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest -*/ -func (a *ManagementAPIService) AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(ctx context.Context, roleId int32, permissionId int32) ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest { - return ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - permissionId: permissionId, - } -} - -// Execute executes the request -// @return SuccessResponsePermissionOut -func (a *ManagementAPIService) AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostExecute(r ApiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest) (*SuccessResponsePermissionOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponsePermissionOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{role_id}/permissions/{permission_id}" - localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateAclEntryAclPostRequest struct { - ctx context.Context - ApiService ManagementAPI - aCLCreate *ACLCreate -} - -func (r ApiCreateAclEntryAclPostRequest) ACLCreate(aCLCreate ACLCreate) ApiCreateAclEntryAclPostRequest { - r.aCLCreate = &aCLCreate - return r -} - -func (r ApiCreateAclEntryAclPostRequest) Execute() (*SuccessResponseACLOut, *http.Response, error) { - return r.ApiService.CreateAclEntryAclPostExecute(r) -} - -/* -CreateAclEntryAclPost Create Acl Entry - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAclEntryAclPostRequest -*/ -func (a *ManagementAPIService) CreateAclEntryAclPost(ctx context.Context) ApiCreateAclEntryAclPostRequest { - return ApiCreateAclEntryAclPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseACLOut -func (a *ManagementAPIService) CreateAclEntryAclPostExecute(r ApiCreateAclEntryAclPostRequest) (*SuccessResponseACLOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseACLOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateAclEntryAclPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/acl" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.aCLCreate == nil { - return localVarReturnValue, nil, reportError("aCLCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.aCLCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateAuthModelAuthModelPostRequest struct { - ctx context.Context - ApiService ManagementAPI - authModelCreate *AuthModelCreate -} - -func (r ApiCreateAuthModelAuthModelPostRequest) AuthModelCreate(authModelCreate AuthModelCreate) ApiCreateAuthModelAuthModelPostRequest { - r.authModelCreate = &authModelCreate - return r -} - -func (r ApiCreateAuthModelAuthModelPostRequest) Execute() (*SuccessResponseAuthModelOut, *http.Response, error) { - return r.ApiService.CreateAuthModelAuthModelPostExecute(r) -} - -/* -CreateAuthModelAuthModelPost Create Auth Model - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthModelAuthModelPostRequest -*/ -func (a *ManagementAPIService) CreateAuthModelAuthModelPost(ctx context.Context) ApiCreateAuthModelAuthModelPostRequest { - return ApiCreateAuthModelAuthModelPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseAuthModelOut -func (a *ManagementAPIService) CreateAuthModelAuthModelPostExecute(r ApiCreateAuthModelAuthModelPostRequest) (*SuccessResponseAuthModelOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseAuthModelOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateAuthModelAuthModelPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/auth-model" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.authModelCreate == nil { - return localVarReturnValue, nil, reportError("authModelCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.authModelCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreatePermissionPermissionsPostRequest struct { - ctx context.Context - ApiService ManagementAPI - permissionCreate *PermissionCreate -} - -func (r ApiCreatePermissionPermissionsPostRequest) PermissionCreate(permissionCreate PermissionCreate) ApiCreatePermissionPermissionsPostRequest { - r.permissionCreate = &permissionCreate - return r -} - -func (r ApiCreatePermissionPermissionsPostRequest) Execute() (*PermissionOut, *http.Response, error) { - return r.ApiService.CreatePermissionPermissionsPostExecute(r) -} - -/* -CreatePermissionPermissionsPost Create Permission - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatePermissionPermissionsPostRequest -*/ -func (a *ManagementAPIService) CreatePermissionPermissionsPost(ctx context.Context) ApiCreatePermissionPermissionsPostRequest { - return ApiCreatePermissionPermissionsPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PermissionOut -func (a *ManagementAPIService) CreatePermissionPermissionsPostExecute(r ApiCreatePermissionPermissionsPostRequest) (*PermissionOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PermissionOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreatePermissionPermissionsPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/permissions" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.permissionCreate == nil { - return localVarReturnValue, nil, reportError("permissionCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.permissionCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreatePolicyFromDslPoliciesDslPostRequest struct { - ctx context.Context - ApiService ManagementAPI - dsl *string -} - -func (r ApiCreatePolicyFromDslPoliciesDslPostRequest) Dsl(dsl string) ApiCreatePolicyFromDslPoliciesDslPostRequest { - r.dsl = &dsl - return r -} - -func (r ApiCreatePolicyFromDslPoliciesDslPostRequest) Execute() (*SuccessResponsePolicyOut, *http.Response, error) { - return r.ApiService.CreatePolicyFromDslPoliciesDslPostExecute(r) -} - -/* -CreatePolicyFromDslPoliciesDslPost Create Policy From Dsl - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatePolicyFromDslPoliciesDslPostRequest -*/ -func (a *ManagementAPIService) CreatePolicyFromDslPoliciesDslPost(ctx context.Context) ApiCreatePolicyFromDslPoliciesDslPostRequest { - return ApiCreatePolicyFromDslPoliciesDslPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponsePolicyOut -func (a *ManagementAPIService) CreatePolicyFromDslPoliciesDslPostExecute(r ApiCreatePolicyFromDslPoliciesDslPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponsePolicyOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreatePolicyFromDslPoliciesDslPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/policies/dsl" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.dsl == nil { - return localVarReturnValue, nil, reportError("dsl is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "dsl", r.dsl, "form", "") - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreatePolicyPoliciesPostRequest struct { - ctx context.Context - ApiService ManagementAPI - policyCreate *PolicyCreate -} - -func (r ApiCreatePolicyPoliciesPostRequest) PolicyCreate(policyCreate PolicyCreate) ApiCreatePolicyPoliciesPostRequest { - r.policyCreate = &policyCreate - return r -} - -func (r ApiCreatePolicyPoliciesPostRequest) Execute() (*SuccessResponsePolicyOut, *http.Response, error) { - return r.ApiService.CreatePolicyPoliciesPostExecute(r) -} - -/* -CreatePolicyPoliciesPost Create Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatePolicyPoliciesPostRequest -*/ -func (a *ManagementAPIService) CreatePolicyPoliciesPost(ctx context.Context) ApiCreatePolicyPoliciesPostRequest { - return ApiCreatePolicyPoliciesPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponsePolicyOut -func (a *ManagementAPIService) CreatePolicyPoliciesPostExecute(r ApiCreatePolicyPoliciesPostRequest) (*SuccessResponsePolicyOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponsePolicyOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreatePolicyPoliciesPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/policies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.policyCreate == nil { - return localVarReturnValue, nil, reportError("policyCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.policyCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateRelationshipRelationshipsPostRequest struct { - ctx context.Context - ApiService ManagementAPI - relationshipCreate *RelationshipCreate -} - -func (r ApiCreateRelationshipRelationshipsPostRequest) RelationshipCreate(relationshipCreate RelationshipCreate) ApiCreateRelationshipRelationshipsPostRequest { - r.relationshipCreate = &relationshipCreate - return r -} - -func (r ApiCreateRelationshipRelationshipsPostRequest) Execute() (*SuccessResponseRelationshipOut, *http.Response, error) { - return r.ApiService.CreateRelationshipRelationshipsPostExecute(r) -} - -/* -CreateRelationshipRelationshipsPost Create Relationship - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRelationshipRelationshipsPostRequest -*/ -func (a *ManagementAPIService) CreateRelationshipRelationshipsPost(ctx context.Context) ApiCreateRelationshipRelationshipsPostRequest { - return ApiCreateRelationshipRelationshipsPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseRelationshipOut -func (a *ManagementAPIService) CreateRelationshipRelationshipsPostExecute(r ApiCreateRelationshipRelationshipsPostRequest) (*SuccessResponseRelationshipOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseRelationshipOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateRelationshipRelationshipsPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/relationships" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.relationshipCreate == nil { - return localVarReturnValue, nil, reportError("relationshipCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.relationshipCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateRoleRolesPostRequest struct { - ctx context.Context - ApiService ManagementAPI - roleCreate *RoleCreate -} - -func (r ApiCreateRoleRolesPostRequest) RoleCreate(roleCreate RoleCreate) ApiCreateRoleRolesPostRequest { - r.roleCreate = &roleCreate - return r -} - -func (r ApiCreateRoleRolesPostRequest) Execute() (*RoleOut, *http.Response, error) { - return r.ApiService.CreateRoleRolesPostExecute(r) -} - -/* -CreateRoleRolesPost Create Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRoleRolesPostRequest -*/ -func (a *ManagementAPIService) CreateRoleRolesPost(ctx context.Context) ApiCreateRoleRolesPostRequest { - return ApiCreateRoleRolesPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return RoleOut -func (a *ManagementAPIService) CreateRoleRolesPostExecute(r ApiCreateRoleRolesPostRequest) (*RoleOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RoleOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.CreateRoleRolesPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.roleCreate == nil { - return localVarReturnValue, nil, reportError("roleCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.roleCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteAclEntryAclAclIdDeleteRequest struct { - ctx context.Context - ApiService ManagementAPI - aclId int32 -} - -func (r ApiDeleteAclEntryAclAclIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { - return r.ApiService.DeleteAclEntryAclAclIdDeleteExecute(r) -} - -/* -DeleteAclEntryAclAclIdDelete Delete Acl Entry - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclId - @return ApiDeleteAclEntryAclAclIdDeleteRequest -*/ -func (a *ManagementAPIService) DeleteAclEntryAclAclIdDelete(ctx context.Context, aclId int32) ApiDeleteAclEntryAclAclIdDeleteRequest { - return ApiDeleteAclEntryAclAclIdDeleteRequest{ - ApiService: a, - ctx: ctx, - aclId: aclId, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrInt -func (a *ManagementAPIService) DeleteAclEntryAclAclIdDeleteExecute(r ApiDeleteAclEntryAclAclIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrInt - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeleteAclEntryAclAclIdDelete") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/acl/{acl_id}" - localVarPath = strings.Replace(localVarPath, "{"+"acl_id"+"}", url.PathEscape(parameterValueToString(r.aclId, "aclId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeletePermissionPermissionsPermissionIdDeleteRequest struct { - ctx context.Context - ApiService ManagementAPI - permissionId int32 -} - -func (r ApiDeletePermissionPermissionsPermissionIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { - return r.ApiService.DeletePermissionPermissionsPermissionIdDeleteExecute(r) -} - -/* -DeletePermissionPermissionsPermissionIdDelete Delete Permission - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param permissionId - @return ApiDeletePermissionPermissionsPermissionIdDeleteRequest -*/ -func (a *ManagementAPIService) DeletePermissionPermissionsPermissionIdDelete(ctx context.Context, permissionId int32) ApiDeletePermissionPermissionsPermissionIdDeleteRequest { - return ApiDeletePermissionPermissionsPermissionIdDeleteRequest{ - ApiService: a, - ctx: ctx, - permissionId: permissionId, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrInt -func (a *ManagementAPIService) DeletePermissionPermissionsPermissionIdDeleteExecute(r ApiDeletePermissionPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrInt - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeletePermissionPermissionsPermissionIdDelete") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/permissions/{permission_id}" - localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeletePolicyPoliciesPolicyKeyDeleteRequest struct { - ctx context.Context - ApiService ManagementAPI - policyKey string -} - -func (r ApiDeletePolicyPoliciesPolicyKeyDeleteRequest) Execute() (*SuccessResponseDictStrStr, *http.Response, error) { - return r.ApiService.DeletePolicyPoliciesPolicyKeyDeleteExecute(r) -} - -/* -DeletePolicyPoliciesPolicyKeyDelete Delete Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param policyKey - @return ApiDeletePolicyPoliciesPolicyKeyDeleteRequest -*/ -func (a *ManagementAPIService) DeletePolicyPoliciesPolicyKeyDelete(ctx context.Context, policyKey string) ApiDeletePolicyPoliciesPolicyKeyDeleteRequest { - return ApiDeletePolicyPoliciesPolicyKeyDeleteRequest{ - ApiService: a, - ctx: ctx, - policyKey: policyKey, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrStr -func (a *ManagementAPIService) DeletePolicyPoliciesPolicyKeyDeleteExecute(r ApiDeletePolicyPoliciesPolicyKeyDeleteRequest) (*SuccessResponseDictStrStr, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrStr - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeletePolicyPoliciesPolicyKeyDelete") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/policies/{policy_key}" - localVarPath = strings.Replace(localVarPath, "{"+"policy_key"+"}", url.PathEscape(parameterValueToString(r.policyKey, "policyKey")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteRoleRolesRoleIdDeleteRequest struct { - ctx context.Context - ApiService ManagementAPI - roleId int32 -} - -func (r ApiDeleteRoleRolesRoleIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { - return r.ApiService.DeleteRoleRolesRoleIdDeleteExecute(r) -} - -/* -DeleteRoleRolesRoleIdDelete Delete Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @return ApiDeleteRoleRolesRoleIdDeleteRequest -*/ -func (a *ManagementAPIService) DeleteRoleRolesRoleIdDelete(ctx context.Context, roleId int32) ApiDeleteRoleRolesRoleIdDeleteRequest { - return ApiDeleteRoleRolesRoleIdDeleteRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrInt -func (a *ManagementAPIService) DeleteRoleRolesRoleIdDeleteExecute(r ApiDeleteRoleRolesRoleIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrInt - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.DeleteRoleRolesRoleIdDelete") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{role_id}" - localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetAuthModelAuthModelGetRequest struct { - ctx context.Context - ApiService ManagementAPI -} - -func (r ApiGetAuthModelAuthModelGetRequest) Execute() (*SuccessResponseAuthModelOut, *http.Response, error) { - return r.ApiService.GetAuthModelAuthModelGetExecute(r) -} - -/* -GetAuthModelAuthModelGet Get Auth Model - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAuthModelAuthModelGetRequest -*/ -func (a *ManagementAPIService) GetAuthModelAuthModelGet(ctx context.Context) ApiGetAuthModelAuthModelGetRequest { - return ApiGetAuthModelAuthModelGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseAuthModelOut -func (a *ManagementAPIService) GetAuthModelAuthModelGetExecute(r ApiGetAuthModelAuthModelGetRequest) (*SuccessResponseAuthModelOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseAuthModelOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.GetAuthModelAuthModelGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/auth-model" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiImpactAnalysisImpactAnalysisPostRequest struct { - ctx context.Context - ApiService ManagementAPI - impactAnalysisRequest *ImpactAnalysisRequest -} - -func (r ApiImpactAnalysisImpactAnalysisPostRequest) ImpactAnalysisRequest(impactAnalysisRequest ImpactAnalysisRequest) ApiImpactAnalysisImpactAnalysisPostRequest { - r.impactAnalysisRequest = &impactAnalysisRequest - return r -} - -func (r ApiImpactAnalysisImpactAnalysisPostRequest) Execute() (*SuccessResponseImpactAnalysisResponse, *http.Response, error) { - return r.ApiService.ImpactAnalysisImpactAnalysisPostExecute(r) -} - -/* -ImpactAnalysisImpactAnalysisPost Impact Analysis - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiImpactAnalysisImpactAnalysisPostRequest -*/ -func (a *ManagementAPIService) ImpactAnalysisImpactAnalysisPost(ctx context.Context) ApiImpactAnalysisImpactAnalysisPostRequest { - return ApiImpactAnalysisImpactAnalysisPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseImpactAnalysisResponse -func (a *ManagementAPIService) ImpactAnalysisImpactAnalysisPostExecute(r ApiImpactAnalysisImpactAnalysisPostRequest) (*SuccessResponseImpactAnalysisResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseImpactAnalysisResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ImpactAnalysisImpactAnalysisPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/impact-analysis" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.impactAnalysisRequest == nil { - return localVarReturnValue, nil, reportError("impactAnalysisRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.impactAnalysisRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListAclEntriesAclResourceTypeResourceIdGetRequest struct { - ctx context.Context - ApiService ManagementAPI - resourceType string - resourceId string -} - -func (r ApiListAclEntriesAclResourceTypeResourceIdGetRequest) Execute() (*SuccessResponseListACLOut, *http.Response, error) { - return r.ApiService.ListAclEntriesAclResourceTypeResourceIdGetExecute(r) -} - -/* -ListAclEntriesAclResourceTypeResourceIdGet List Acl Entries - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param resourceType - @param resourceId - @return ApiListAclEntriesAclResourceTypeResourceIdGetRequest -*/ -func (a *ManagementAPIService) ListAclEntriesAclResourceTypeResourceIdGet(ctx context.Context, resourceType string, resourceId string) ApiListAclEntriesAclResourceTypeResourceIdGetRequest { - return ApiListAclEntriesAclResourceTypeResourceIdGetRequest{ - ApiService: a, - ctx: ctx, - resourceType: resourceType, - resourceId: resourceId, - } -} - -// Execute executes the request -// @return SuccessResponseListACLOut -func (a *ManagementAPIService) ListAclEntriesAclResourceTypeResourceIdGetExecute(r ApiListAclEntriesAclResourceTypeResourceIdGetRequest) (*SuccessResponseListACLOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListACLOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListAclEntriesAclResourceTypeResourceIdGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/acl/{resource_type}/{resource_id}" - localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", url.PathEscape(parameterValueToString(r.resourceType, "resourceType")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"resource_id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListAuditLogsAuditGetRequest struct { - ctx context.Context - ApiService ManagementAPI - limit *int32 - cursor *string - userId *string - resourceId *string - decision *string - startTime *time.Time - endTime *time.Time -} - -func (r ApiListAuditLogsAuditGetRequest) Limit(limit int32) ApiListAuditLogsAuditGetRequest { - r.limit = &limit - return r -} - -func (r ApiListAuditLogsAuditGetRequest) Cursor(cursor string) ApiListAuditLogsAuditGetRequest { - r.cursor = &cursor - return r -} - -func (r ApiListAuditLogsAuditGetRequest) UserId(userId string) ApiListAuditLogsAuditGetRequest { - r.userId = &userId - return r -} - -func (r ApiListAuditLogsAuditGetRequest) ResourceId(resourceId string) ApiListAuditLogsAuditGetRequest { - r.resourceId = &resourceId - return r -} - -func (r ApiListAuditLogsAuditGetRequest) Decision(decision string) ApiListAuditLogsAuditGetRequest { - r.decision = &decision - return r -} - -func (r ApiListAuditLogsAuditGetRequest) StartTime(startTime time.Time) ApiListAuditLogsAuditGetRequest { - r.startTime = &startTime - return r -} - -func (r ApiListAuditLogsAuditGetRequest) EndTime(endTime time.Time) ApiListAuditLogsAuditGetRequest { - r.endTime = &endTime - return r -} - -func (r ApiListAuditLogsAuditGetRequest) Execute() (*SuccessResponseListAuditRecordOut, *http.Response, error) { - return r.ApiService.ListAuditLogsAuditGetExecute(r) -} - -/* -ListAuditLogsAuditGet List Audit Logs - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListAuditLogsAuditGetRequest -*/ -func (a *ManagementAPIService) ListAuditLogsAuditGet(ctx context.Context) ApiListAuditLogsAuditGetRequest { - return ApiListAuditLogsAuditGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseListAuditRecordOut -func (a *ManagementAPIService) ListAuditLogsAuditGetExecute(r ApiListAuditLogsAuditGetRequest) (*SuccessResponseListAuditRecordOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListAuditRecordOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListAuditLogsAuditGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/audit" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") - } else { - var defaultValue int32 = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") - r.limit = &defaultValue - } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - if r.userId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", r.userId, "form", "") - } - if r.resourceId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "resource_id", r.resourceId, "form", "") - } - if r.decision != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "decision", r.decision, "form", "") - } - if r.startTime != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "start_time", r.startTime, "form", "") - } - if r.endTime != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "end_time", r.endTime, "form", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest struct { - ctx context.Context - ApiService ManagementAPI - permissionId int32 -} - -func (r ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest) Execute() (*SuccessResponseListRoleOut, *http.Response, error) { - return r.ApiService.ListPermissionRolesPermissionsPermissionIdRolesGetExecute(r) -} - -/* -ListPermissionRolesPermissionsPermissionIdRolesGet List Permission Roles - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param permissionId - @return ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest -*/ -func (a *ManagementAPIService) ListPermissionRolesPermissionsPermissionIdRolesGet(ctx context.Context, permissionId int32) ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest { - return ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest{ - ApiService: a, - ctx: ctx, - permissionId: permissionId, - } -} - -// Execute executes the request -// @return SuccessResponseListRoleOut -func (a *ManagementAPIService) ListPermissionRolesPermissionsPermissionIdRolesGetExecute(r ApiListPermissionRolesPermissionsPermissionIdRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListRoleOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListPermissionRolesPermissionsPermissionIdRolesGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/permissions/{permission_id}/roles" - localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListPermissionsPermissionsGetRequest struct { - ctx context.Context - ApiService ManagementAPI - limit *int32 - cursor *string -} - -func (r ApiListPermissionsPermissionsGetRequest) Limit(limit int32) ApiListPermissionsPermissionsGetRequest { - r.limit = &limit - return r -} - -func (r ApiListPermissionsPermissionsGetRequest) Cursor(cursor string) ApiListPermissionsPermissionsGetRequest { - r.cursor = &cursor - return r -} - -func (r ApiListPermissionsPermissionsGetRequest) Execute() (*SuccessResponseListPermissionOut, *http.Response, error) { - return r.ApiService.ListPermissionsPermissionsGetExecute(r) -} - -/* -ListPermissionsPermissionsGet List Permissions - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPermissionsPermissionsGetRequest -*/ -func (a *ManagementAPIService) ListPermissionsPermissionsGet(ctx context.Context) ApiListPermissionsPermissionsGetRequest { - return ApiListPermissionsPermissionsGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseListPermissionOut -func (a *ManagementAPIService) ListPermissionsPermissionsGetExecute(r ApiListPermissionsPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListPermissionOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListPermissionsPermissionsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/permissions" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") - } else { - var defaultValue int32 = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") - r.limit = &defaultValue - } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListPoliciesPoliciesGetRequest struct { - ctx context.Context - ApiService ManagementAPI - limit *int32 - cursor *string -} - -func (r ApiListPoliciesPoliciesGetRequest) Limit(limit int32) ApiListPoliciesPoliciesGetRequest { - r.limit = &limit - return r -} - -func (r ApiListPoliciesPoliciesGetRequest) Cursor(cursor string) ApiListPoliciesPoliciesGetRequest { - r.cursor = &cursor - return r -} - -func (r ApiListPoliciesPoliciesGetRequest) Execute() (*SuccessResponseListPolicyOut, *http.Response, error) { - return r.ApiService.ListPoliciesPoliciesGetExecute(r) -} - -/* -ListPoliciesPoliciesGet List Policies - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPoliciesPoliciesGetRequest -*/ -func (a *ManagementAPIService) ListPoliciesPoliciesGet(ctx context.Context) ApiListPoliciesPoliciesGetRequest { - return ApiListPoliciesPoliciesGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseListPolicyOut -func (a *ManagementAPIService) ListPoliciesPoliciesGetExecute(r ApiListPoliciesPoliciesGetRequest) (*SuccessResponseListPolicyOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListPolicyOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListPoliciesPoliciesGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/policies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") - } else { - var defaultValue int32 = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") - r.limit = &defaultValue - } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListRelationshipsRelationshipsGetRequest struct { - ctx context.Context - ApiService ManagementAPI - subjectType *string - subjectId *string - limit *int32 - cursor *string -} - -func (r ApiListRelationshipsRelationshipsGetRequest) SubjectType(subjectType string) ApiListRelationshipsRelationshipsGetRequest { - r.subjectType = &subjectType - return r -} - -func (r ApiListRelationshipsRelationshipsGetRequest) SubjectId(subjectId string) ApiListRelationshipsRelationshipsGetRequest { - r.subjectId = &subjectId - return r -} - -func (r ApiListRelationshipsRelationshipsGetRequest) Limit(limit int32) ApiListRelationshipsRelationshipsGetRequest { - r.limit = &limit - return r -} - -func (r ApiListRelationshipsRelationshipsGetRequest) Cursor(cursor string) ApiListRelationshipsRelationshipsGetRequest { - r.cursor = &cursor - return r -} - -func (r ApiListRelationshipsRelationshipsGetRequest) Execute() (*SuccessResponseListDictStrStr, *http.Response, error) { - return r.ApiService.ListRelationshipsRelationshipsGetExecute(r) -} - -/* -ListRelationshipsRelationshipsGet List Relationships - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRelationshipsRelationshipsGetRequest -*/ -func (a *ManagementAPIService) ListRelationshipsRelationshipsGet(ctx context.Context) ApiListRelationshipsRelationshipsGetRequest { - return ApiListRelationshipsRelationshipsGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseListDictStrStr -func (a *ManagementAPIService) ListRelationshipsRelationshipsGetExecute(r ApiListRelationshipsRelationshipsGetRequest) (*SuccessResponseListDictStrStr, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListDictStrStr - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListRelationshipsRelationshipsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/relationships" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.subjectType == nil { - return localVarReturnValue, nil, reportError("subjectType is required and must be specified") - } - if r.subjectId == nil { - return localVarReturnValue, nil, reportError("subjectId is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "subject_type", r.subjectType, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "subject_id", r.subjectId, "form", "") - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") - } else { - var defaultValue int32 = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") - r.limit = &defaultValue - } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListRolePermissionsRolesRoleIdPermissionsGetRequest struct { - ctx context.Context - ApiService ManagementAPI - roleId int32 -} - -func (r ApiListRolePermissionsRolesRoleIdPermissionsGetRequest) Execute() (*SuccessResponseListPermissionOut, *http.Response, error) { - return r.ApiService.ListRolePermissionsRolesRoleIdPermissionsGetExecute(r) -} - -/* -ListRolePermissionsRolesRoleIdPermissionsGet List Role Permissions - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @return ApiListRolePermissionsRolesRoleIdPermissionsGetRequest -*/ -func (a *ManagementAPIService) ListRolePermissionsRolesRoleIdPermissionsGet(ctx context.Context, roleId int32) ApiListRolePermissionsRolesRoleIdPermissionsGetRequest { - return ApiListRolePermissionsRolesRoleIdPermissionsGetRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - } -} - -// Execute executes the request -// @return SuccessResponseListPermissionOut -func (a *ManagementAPIService) ListRolePermissionsRolesRoleIdPermissionsGetExecute(r ApiListRolePermissionsRolesRoleIdPermissionsGetRequest) (*SuccessResponseListPermissionOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListPermissionOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListRolePermissionsRolesRoleIdPermissionsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{role_id}/permissions" - localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListRolesRolesGetRequest struct { - ctx context.Context - ApiService ManagementAPI - limit *int32 - cursor *string -} - -func (r ApiListRolesRolesGetRequest) Limit(limit int32) ApiListRolesRolesGetRequest { - r.limit = &limit - return r -} - -func (r ApiListRolesRolesGetRequest) Cursor(cursor string) ApiListRolesRolesGetRequest { - r.cursor = &cursor - return r -} - -func (r ApiListRolesRolesGetRequest) Execute() (*SuccessResponseListRoleOut, *http.Response, error) { - return r.ApiService.ListRolesRolesGetExecute(r) -} - -/* -ListRolesRolesGet List Roles - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRolesRolesGetRequest -*/ -func (a *ManagementAPIService) ListRolesRolesGet(ctx context.Context) ApiListRolesRolesGetRequest { - return ApiListRolesRolesGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseListRoleOut -func (a *ManagementAPIService) ListRolesRolesGetExecute(r ApiListRolesRolesGetRequest) (*SuccessResponseListRoleOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseListRoleOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.ListRolesRolesGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") - } else { - var defaultValue int32 = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", defaultValue, "form", "") - r.limit = &defaultValue - } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest struct { - ctx context.Context - ApiService ManagementAPI - roleId int32 - permissionId int32 -} - -func (r ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest) Execute() (*SuccessResponseDictStrInt, *http.Response, error) { - return r.ApiService.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute(r) -} - -/* -RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete Remove Permission From Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @param permissionId - @return ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest -*/ -func (a *ManagementAPIService) RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(ctx context.Context, roleId int32, permissionId int32) ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest { - return ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - permissionId: permissionId, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrInt -func (a *ManagementAPIService) RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteExecute(r ApiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest) (*SuccessResponseDictStrInt, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrInt - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{role_id}/permissions/{permission_id}" - localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest struct { - ctx context.Context - ApiService ManagementAPI - policyKey string - version int32 -} - -func (r ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest) Execute() (*SuccessResponseDictStrUnionIntStr, *http.Response, error) { - return r.ApiService.RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute(r) -} - -/* -RollbackPolicyPoliciesPolicyKeyRollbackVersionPost Rollback Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param policyKey - @param version - @return ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest -*/ -func (a *ManagementAPIService) RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(ctx context.Context, policyKey string, version int32) ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest { - return ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest{ - ApiService: a, - ctx: ctx, - policyKey: policyKey, - version: version, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrUnionIntStr -func (a *ManagementAPIService) RollbackPolicyPoliciesPolicyKeyRollbackVersionPostExecute(r ApiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest) (*SuccessResponseDictStrUnionIntStr, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrUnionIntStr - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/policies/{policy_key}/rollback/{version}" - localVarPath = strings.Replace(localVarPath, "{"+"policy_key"+"}", url.PathEscape(parameterValueToString(r.policyKey, "policyKey")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterValueToString(r.version, "version")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSimulatePolicySimulatePolicyPostRequest struct { - ctx context.Context - ApiService ManagementAPI - policySimulationRequest *PolicySimulationRequest -} - -func (r ApiSimulatePolicySimulatePolicyPostRequest) PolicySimulationRequest(policySimulationRequest PolicySimulationRequest) ApiSimulatePolicySimulatePolicyPostRequest { - r.policySimulationRequest = &policySimulationRequest - return r -} - -func (r ApiSimulatePolicySimulatePolicyPostRequest) Execute() (*SuccessResponsePolicySimulationResponse, *http.Response, error) { - return r.ApiService.SimulatePolicySimulatePolicyPostExecute(r) -} - -/* -SimulatePolicySimulatePolicyPost Simulate Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSimulatePolicySimulatePolicyPostRequest -*/ -func (a *ManagementAPIService) SimulatePolicySimulatePolicyPost(ctx context.Context) ApiSimulatePolicySimulatePolicyPostRequest { - return ApiSimulatePolicySimulatePolicyPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponsePolicySimulationResponse -func (a *ManagementAPIService) SimulatePolicySimulatePolicyPostExecute(r ApiSimulatePolicySimulatePolicyPostRequest) (*SuccessResponsePolicySimulationResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponsePolicySimulationResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.SimulatePolicySimulatePolicyPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/simulate-policy" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.policySimulationRequest == nil { - return localVarReturnValue, nil, reportError("policySimulationRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.policySimulationRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdatePermissionPermissionsPermissionIdPutRequest struct { - ctx context.Context - ApiService ManagementAPI - permissionId int32 - permissionUpdate *PermissionUpdate -} - -func (r ApiUpdatePermissionPermissionsPermissionIdPutRequest) PermissionUpdate(permissionUpdate PermissionUpdate) ApiUpdatePermissionPermissionsPermissionIdPutRequest { - r.permissionUpdate = &permissionUpdate - return r -} - -func (r ApiUpdatePermissionPermissionsPermissionIdPutRequest) Execute() (*PermissionOut, *http.Response, error) { - return r.ApiService.UpdatePermissionPermissionsPermissionIdPutExecute(r) -} - -/* -UpdatePermissionPermissionsPermissionIdPut Update Permission - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param permissionId - @return ApiUpdatePermissionPermissionsPermissionIdPutRequest -*/ -func (a *ManagementAPIService) UpdatePermissionPermissionsPermissionIdPut(ctx context.Context, permissionId int32) ApiUpdatePermissionPermissionsPermissionIdPutRequest { - return ApiUpdatePermissionPermissionsPermissionIdPutRequest{ - ApiService: a, - ctx: ctx, - permissionId: permissionId, - } -} - -// Execute executes the request -// @return PermissionOut -func (a *ManagementAPIService) UpdatePermissionPermissionsPermissionIdPutExecute(r ApiUpdatePermissionPermissionsPermissionIdPutRequest) (*PermissionOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PermissionOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.UpdatePermissionPermissionsPermissionIdPut") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/permissions/{permission_id}" - localVarPath = strings.Replace(localVarPath, "{"+"permission_id"+"}", url.PathEscape(parameterValueToString(r.permissionId, "permissionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.permissionUpdate == nil { - return localVarReturnValue, nil, reportError("permissionUpdate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.permissionUpdate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdatePolicyPoliciesPolicyKeyPutRequest struct { - ctx context.Context - ApiService ManagementAPI - policyKey string - policyCreate *PolicyCreate -} - -func (r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) PolicyCreate(policyCreate PolicyCreate) ApiUpdatePolicyPoliciesPolicyKeyPutRequest { - r.policyCreate = &policyCreate - return r -} - -func (r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) Execute() (*SuccessResponsePolicyOut, *http.Response, error) { - return r.ApiService.UpdatePolicyPoliciesPolicyKeyPutExecute(r) -} - -/* -UpdatePolicyPoliciesPolicyKeyPut Update Policy - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param policyKey - @return ApiUpdatePolicyPoliciesPolicyKeyPutRequest -*/ -func (a *ManagementAPIService) UpdatePolicyPoliciesPolicyKeyPut(ctx context.Context, policyKey string) ApiUpdatePolicyPoliciesPolicyKeyPutRequest { - return ApiUpdatePolicyPoliciesPolicyKeyPutRequest{ - ApiService: a, - ctx: ctx, - policyKey: policyKey, - } -} - -// Execute executes the request -// @return SuccessResponsePolicyOut -func (a *ManagementAPIService) UpdatePolicyPoliciesPolicyKeyPutExecute(r ApiUpdatePolicyPoliciesPolicyKeyPutRequest) (*SuccessResponsePolicyOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponsePolicyOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.UpdatePolicyPoliciesPolicyKeyPut") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/policies/{policy_key}" - localVarPath = strings.Replace(localVarPath, "{"+"policy_key"+"}", url.PathEscape(parameterValueToString(r.policyKey, "policyKey")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.policyCreate == nil { - return localVarReturnValue, nil, reportError("policyCreate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.policyCreate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateRoleRolesRoleIdPutRequest struct { - ctx context.Context - ApiService ManagementAPI - roleId int32 - roleUpdate *RoleUpdate -} - -func (r ApiUpdateRoleRolesRoleIdPutRequest) RoleUpdate(roleUpdate RoleUpdate) ApiUpdateRoleRolesRoleIdPutRequest { - r.roleUpdate = &roleUpdate - return r -} - -func (r ApiUpdateRoleRolesRoleIdPutRequest) Execute() (*RoleOut, *http.Response, error) { - return r.ApiService.UpdateRoleRolesRoleIdPutExecute(r) -} - -/* -UpdateRoleRolesRoleIdPut Update Role - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId - @return ApiUpdateRoleRolesRoleIdPutRequest -*/ -func (a *ManagementAPIService) UpdateRoleRolesRoleIdPut(ctx context.Context, roleId int32) ApiUpdateRoleRolesRoleIdPutRequest { - return ApiUpdateRoleRolesRoleIdPutRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - } -} - -// Execute executes the request -// @return RoleOut -func (a *ManagementAPIService) UpdateRoleRolesRoleIdPutExecute(r ApiUpdateRoleRolesRoleIdPutRequest) (*RoleOut, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RoleOut - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagementAPIService.UpdateRoleRolesRoleIdPut") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{role_id}" - localVarPath = strings.Replace(localVarPath, "{"+"role_id"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.roleUpdate == nil { - return localVarReturnValue, nil, reportError("roleUpdate is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.roleUpdate - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdks/go/api_playground.go b/sdks/go/api_playground.go deleted file mode 100644 index 033ae14..0000000 --- a/sdks/go/api_playground.go +++ /dev/null @@ -1,170 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - - -type PlaygroundAPI interface { - - /* - EvaluatePlaygroundEvaluatePost Evaluate - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEvaluatePlaygroundEvaluatePostRequest - */ - EvaluatePlaygroundEvaluatePost(ctx context.Context) ApiEvaluatePlaygroundEvaluatePostRequest - - // EvaluatePlaygroundEvaluatePostExecute executes the request - // @return SuccessResponseDictStrAny - EvaluatePlaygroundEvaluatePostExecute(r ApiEvaluatePlaygroundEvaluatePostRequest) (*SuccessResponseDictStrAny, *http.Response, error) -} - -// PlaygroundAPIService PlaygroundAPI service -type PlaygroundAPIService service - -type ApiEvaluatePlaygroundEvaluatePostRequest struct { - ctx context.Context - ApiService PlaygroundAPI - playgroundEvaluateRequest *PlaygroundEvaluateRequest -} - -func (r ApiEvaluatePlaygroundEvaluatePostRequest) PlaygroundEvaluateRequest(playgroundEvaluateRequest PlaygroundEvaluateRequest) ApiEvaluatePlaygroundEvaluatePostRequest { - r.playgroundEvaluateRequest = &playgroundEvaluateRequest - return r -} - -func (r ApiEvaluatePlaygroundEvaluatePostRequest) Execute() (*SuccessResponseDictStrAny, *http.Response, error) { - return r.ApiService.EvaluatePlaygroundEvaluatePostExecute(r) -} - -/* -EvaluatePlaygroundEvaluatePost Evaluate - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEvaluatePlaygroundEvaluatePostRequest -*/ -func (a *PlaygroundAPIService) EvaluatePlaygroundEvaluatePost(ctx context.Context) ApiEvaluatePlaygroundEvaluatePostRequest { - return ApiEvaluatePlaygroundEvaluatePostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SuccessResponseDictStrAny -func (a *PlaygroundAPIService) EvaluatePlaygroundEvaluatePostExecute(r ApiEvaluatePlaygroundEvaluatePostRequest) (*SuccessResponseDictStrAny, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SuccessResponseDictStrAny - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PlaygroundAPIService.EvaluatePlaygroundEvaluatePost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/playground/evaluate" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.playgroundEvaluateRequest == nil { - return localVarReturnValue, nil, reportError("playgroundEvaluateRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.playgroundEvaluateRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKeyHeader"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-API-Key"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v HTTPValidationError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/sdks/go/client.go b/sdks/go/client.go deleted file mode 100644 index a9c6adb..0000000 --- a/sdks/go/client.go +++ /dev/null @@ -1,673 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - -) - -var ( - JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) - XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) -) - -// APIClient manages communication with the KeyNetra API v0.1.1 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - AccessAPI AccessAPI - - AuthAPI AuthAPI - - DevAPI DevAPI - - HealthAPI HealthAPI - - ManagementAPI ManagementAPI - - PlaygroundAPI PlaygroundAPI -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.AccessAPI = (*AccessAPIService)(&c.common) - c.AuthAPI = (*AuthAPIService)(&c.common) - c.DevAPI = (*DevAPIService)(&c.common) - c.HealthAPI = (*HealthAPIService)(&c.common) - c.ManagementAPI = (*ManagementAPIService)(&c.common) - c.PlaygroundAPI = (*PlaygroundAPIService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -func parameterValueToString( obj interface{}, key string ) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { - return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) - } - - return fmt.Sprintf("%v", obj) - } - var param,ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap,err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToHeaderOrQuery adds the provided object to the request header or url query -// supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t,ok := obj.(MappedNullable); ok { - dataMap,err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i:=0;i 0 || (len(formFiles) > 0) { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - // AccessToken Authentication - if auth, ok := ctx.Value(ContextAccessToken).(string); ok { - localVarRequest.Header.Add("Authorization", "Bearer "+auth) - } - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if XmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if JsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - defer file.Close() - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if JsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if XmlCheck.MatchString(contentType) { - var bs []byte - bs, err = xml.Marshal(body) - if err == nil { - bodyBuf.Write(bs) - } - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} - -// format error message using title and detail when model implements rfc7807 -func formatErrorMessage(status string, v interface{}) string { - str := "" - metaValue := reflect.ValueOf(v).Elem() - - if metaValue.Kind() == reflect.Struct { - field := metaValue.FieldByName("Title") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s", field.Interface()) - } - - field = metaValue.FieldByName("Detail") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s (%s)", str, field.Interface()) - } - } - - return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) -} diff --git a/sdks/go/configuration.go b/sdks/go/configuration.go deleted file mode 100644 index a988395..0000000 --- a/sdks/go/configuration.go +++ /dev/null @@ -1,221 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextAccessToken takes a string oauth2 access token as authentication for the request. - ContextAccessToken = contextKey("accesstoken") - - // ContextAPIKeys takes a string apikey as authentication for the request - ContextAPIKeys = contextKey("apiKeys") - - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.1.1/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{ - }, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} diff --git a/sdks/go/docs/ACLCreate.md b/sdks/go/docs/ACLCreate.md deleted file mode 100644 index ee9d2ad..0000000 --- a/sdks/go/docs/ACLCreate.md +++ /dev/null @@ -1,156 +0,0 @@ -# ACLCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**ResourceType** | **string** | | -**ResourceId** | **string** | | -**Action** | **string** | | -**Effect** | **string** | | - -## Methods - -### NewACLCreate - -`func NewACLCreate(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string, ) *ACLCreate` - -NewACLCreate instantiates a new ACLCreate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewACLCreateWithDefaults - -`func NewACLCreateWithDefaults() *ACLCreate` - -NewACLCreateWithDefaults instantiates a new ACLCreate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSubjectType - -`func (o *ACLCreate) GetSubjectType() string` - -GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. - -### GetSubjectTypeOk - -`func (o *ACLCreate) GetSubjectTypeOk() (*string, bool)` - -GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectType - -`func (o *ACLCreate) SetSubjectType(v string)` - -SetSubjectType sets SubjectType field to given value. - - -### GetSubjectId - -`func (o *ACLCreate) GetSubjectId() string` - -GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. - -### GetSubjectIdOk - -`func (o *ACLCreate) GetSubjectIdOk() (*string, bool)` - -GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectId - -`func (o *ACLCreate) SetSubjectId(v string)` - -SetSubjectId sets SubjectId field to given value. - - -### GetResourceType - -`func (o *ACLCreate) GetResourceType() string` - -GetResourceType returns the ResourceType field if non-nil, zero value otherwise. - -### GetResourceTypeOk - -`func (o *ACLCreate) GetResourceTypeOk() (*string, bool)` - -GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResourceType - -`func (o *ACLCreate) SetResourceType(v string)` - -SetResourceType sets ResourceType field to given value. - - -### GetResourceId - -`func (o *ACLCreate) GetResourceId() string` - -GetResourceId returns the ResourceId field if non-nil, zero value otherwise. - -### GetResourceIdOk - -`func (o *ACLCreate) GetResourceIdOk() (*string, bool)` - -GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResourceId - -`func (o *ACLCreate) SetResourceId(v string)` - -SetResourceId sets ResourceId field to given value. - - -### GetAction - -`func (o *ACLCreate) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *ACLCreate) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *ACLCreate) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetEffect - -`func (o *ACLCreate) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *ACLCreate) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *ACLCreate) SetEffect(v string)` - -SetEffect sets Effect field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/ACLOut.md b/sdks/go/docs/ACLOut.md deleted file mode 100644 index edf16f1..0000000 --- a/sdks/go/docs/ACLOut.md +++ /dev/null @@ -1,234 +0,0 @@ -# ACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**ResourceType** | **string** | | -**ResourceId** | **string** | | -**Action** | **string** | | -**Effect** | **string** | | -**Id** | **int32** | | -**TenantId** | **int32** | | -**CreatedAt** | Pointer to **NullableTime** | | [optional] - -## Methods - -### NewACLOut - -`func NewACLOut(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string, id int32, tenantId int32, ) *ACLOut` - -NewACLOut instantiates a new ACLOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewACLOutWithDefaults - -`func NewACLOutWithDefaults() *ACLOut` - -NewACLOutWithDefaults instantiates a new ACLOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSubjectType - -`func (o *ACLOut) GetSubjectType() string` - -GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. - -### GetSubjectTypeOk - -`func (o *ACLOut) GetSubjectTypeOk() (*string, bool)` - -GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectType - -`func (o *ACLOut) SetSubjectType(v string)` - -SetSubjectType sets SubjectType field to given value. - - -### GetSubjectId - -`func (o *ACLOut) GetSubjectId() string` - -GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. - -### GetSubjectIdOk - -`func (o *ACLOut) GetSubjectIdOk() (*string, bool)` - -GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectId - -`func (o *ACLOut) SetSubjectId(v string)` - -SetSubjectId sets SubjectId field to given value. - - -### GetResourceType - -`func (o *ACLOut) GetResourceType() string` - -GetResourceType returns the ResourceType field if non-nil, zero value otherwise. - -### GetResourceTypeOk - -`func (o *ACLOut) GetResourceTypeOk() (*string, bool)` - -GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResourceType - -`func (o *ACLOut) SetResourceType(v string)` - -SetResourceType sets ResourceType field to given value. - - -### GetResourceId - -`func (o *ACLOut) GetResourceId() string` - -GetResourceId returns the ResourceId field if non-nil, zero value otherwise. - -### GetResourceIdOk - -`func (o *ACLOut) GetResourceIdOk() (*string, bool)` - -GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResourceId - -`func (o *ACLOut) SetResourceId(v string)` - -SetResourceId sets ResourceId field to given value. - - -### GetAction - -`func (o *ACLOut) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *ACLOut) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *ACLOut) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetEffect - -`func (o *ACLOut) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *ACLOut) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *ACLOut) SetEffect(v string)` - -SetEffect sets Effect field to given value. - - -### GetId - -`func (o *ACLOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ACLOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ACLOut) SetId(v int32)` - -SetId sets Id field to given value. - - -### GetTenantId - -`func (o *ACLOut) GetTenantId() int32` - -GetTenantId returns the TenantId field if non-nil, zero value otherwise. - -### GetTenantIdOk - -`func (o *ACLOut) GetTenantIdOk() (*int32, bool)` - -GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantId - -`func (o *ACLOut) SetTenantId(v int32)` - -SetTenantId sets TenantId field to given value. - - -### GetCreatedAt - -`func (o *ACLOut) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ACLOut) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ACLOut) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ACLOut) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### SetCreatedAtNil - -`func (o *ACLOut) SetCreatedAtNil(b bool)` - - SetCreatedAtNil sets the value for CreatedAt to be an explicit nil - -### UnsetCreatedAt -`func (o *ACLOut) UnsetCreatedAt()` - -UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AccessAPI.md b/sdks/go/docs/AccessAPI.md deleted file mode 100644 index a6308ac..0000000 --- a/sdks/go/docs/AccessAPI.md +++ /dev/null @@ -1,207 +0,0 @@ -# \AccessAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CheckAccessBatchCheckAccessBatchPost**](AccessAPI.md#CheckAccessBatchCheckAccessBatchPost) | **Post** /check-access-batch | Check Access Batch -[**CheckAccessCheckAccessPost**](AccessAPI.md#CheckAccessCheckAccessPost) | **Post** /check-access | Check Access -[**SimulateSimulatePost**](AccessAPI.md#SimulateSimulatePost) | **Post** /simulate | Simulate - - - -## CheckAccessBatchCheckAccessBatchPost - -> SuccessResponseBatchAccessResponse CheckAccessBatchCheckAccessBatchPost(ctx).BatchAccessRequest(batchAccessRequest).PolicySet(policySet).Execute() - -Check Access Batch - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - batchAccessRequest := *openapiclient.NewBatchAccessRequest([]openapiclient.BatchAccessItem{*openapiclient.NewBatchAccessItem("Action_example")}) // BatchAccessRequest | - policySet := "policySet_example" // string | (optional) (default to "active") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AccessAPI.CheckAccessBatchCheckAccessBatchPost(context.Background()).BatchAccessRequest(batchAccessRequest).PolicySet(policySet).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessAPI.CheckAccessBatchCheckAccessBatchPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CheckAccessBatchCheckAccessBatchPost`: SuccessResponseBatchAccessResponse - fmt.Fprintf(os.Stdout, "Response from `AccessAPI.CheckAccessBatchCheckAccessBatchPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCheckAccessBatchCheckAccessBatchPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md) | | - **policySet** | **string** | | [default to "active"] - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CheckAccessCheckAccessPost - -> SuccessResponseAccessDecisionResponse CheckAccessCheckAccessPost(ctx).AccessRequest(accessRequest).PolicySet(policySet).Execute() - -Check Access - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - accessRequest := *openapiclient.NewAccessRequest("Action_example") // AccessRequest | - policySet := "policySet_example" // string | (optional) (default to "active") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AccessAPI.CheckAccessCheckAccessPost(context.Background()).AccessRequest(accessRequest).PolicySet(policySet).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessAPI.CheckAccessCheckAccessPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CheckAccessCheckAccessPost`: SuccessResponseAccessDecisionResponse - fmt.Fprintf(os.Stdout, "Response from `AccessAPI.CheckAccessCheckAccessPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCheckAccessCheckAccessPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **accessRequest** | [**AccessRequest**](AccessRequest.md) | | - **policySet** | **string** | | [default to "active"] - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SimulateSimulatePost - -> SuccessResponseSimulationResponse SimulateSimulatePost(ctx).AccessRequest(accessRequest).Execute() - -Simulate - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - accessRequest := *openapiclient.NewAccessRequest("Action_example") // AccessRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AccessAPI.SimulateSimulatePost(context.Background()).AccessRequest(accessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessAPI.SimulateSimulatePost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SimulateSimulatePost`: SuccessResponseSimulationResponse - fmt.Fprintf(os.Stdout, "Response from `AccessAPI.SimulateSimulatePost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSimulateSimulatePostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **accessRequest** | [**AccessRequest**](AccessRequest.md) | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdks/go/docs/AccessDecisionResponse.md b/sdks/go/docs/AccessDecisionResponse.md deleted file mode 100644 index 4f237bc..0000000 --- a/sdks/go/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,232 +0,0 @@ -# AccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Allowed** | **bool** | | -**Decision** | **string** | | -**MatchedPolicies** | Pointer to **[]string** | | [optional] -**Reason** | Pointer to **NullableString** | | [optional] -**PolicyId** | Pointer to **NullableString** | | [optional] -**ExplainTrace** | Pointer to **[]map[string]interface{}** | | [optional] -**Revision** | Pointer to **NullableInt32** | | [optional] - -## Methods - -### NewAccessDecisionResponse - -`func NewAccessDecisionResponse(allowed bool, decision string, ) *AccessDecisionResponse` - -NewAccessDecisionResponse instantiates a new AccessDecisionResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccessDecisionResponseWithDefaults - -`func NewAccessDecisionResponseWithDefaults() *AccessDecisionResponse` - -NewAccessDecisionResponseWithDefaults instantiates a new AccessDecisionResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAllowed - -`func (o *AccessDecisionResponse) GetAllowed() bool` - -GetAllowed returns the Allowed field if non-nil, zero value otherwise. - -### GetAllowedOk - -`func (o *AccessDecisionResponse) GetAllowedOk() (*bool, bool)` - -GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllowed - -`func (o *AccessDecisionResponse) SetAllowed(v bool)` - -SetAllowed sets Allowed field to given value. - - -### GetDecision - -`func (o *AccessDecisionResponse) GetDecision() string` - -GetDecision returns the Decision field if non-nil, zero value otherwise. - -### GetDecisionOk - -`func (o *AccessDecisionResponse) GetDecisionOk() (*string, bool)` - -GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecision - -`func (o *AccessDecisionResponse) SetDecision(v string)` - -SetDecision sets Decision field to given value. - - -### GetMatchedPolicies - -`func (o *AccessDecisionResponse) GetMatchedPolicies() []string` - -GetMatchedPolicies returns the MatchedPolicies field if non-nil, zero value otherwise. - -### GetMatchedPoliciesOk - -`func (o *AccessDecisionResponse) GetMatchedPoliciesOk() (*[]string, bool)` - -GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatchedPolicies - -`func (o *AccessDecisionResponse) SetMatchedPolicies(v []string)` - -SetMatchedPolicies sets MatchedPolicies field to given value. - -### HasMatchedPolicies - -`func (o *AccessDecisionResponse) HasMatchedPolicies() bool` - -HasMatchedPolicies returns a boolean if a field has been set. - -### GetReason - -`func (o *AccessDecisionResponse) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *AccessDecisionResponse) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *AccessDecisionResponse) SetReason(v string)` - -SetReason sets Reason field to given value. - -### HasReason - -`func (o *AccessDecisionResponse) HasReason() bool` - -HasReason returns a boolean if a field has been set. - -### SetReasonNil - -`func (o *AccessDecisionResponse) SetReasonNil(b bool)` - - SetReasonNil sets the value for Reason to be an explicit nil - -### UnsetReason -`func (o *AccessDecisionResponse) UnsetReason()` - -UnsetReason ensures that no value is present for Reason, not even an explicit nil -### GetPolicyId - -`func (o *AccessDecisionResponse) GetPolicyId() string` - -GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. - -### GetPolicyIdOk - -`func (o *AccessDecisionResponse) GetPolicyIdOk() (*string, bool)` - -GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPolicyId - -`func (o *AccessDecisionResponse) SetPolicyId(v string)` - -SetPolicyId sets PolicyId field to given value. - -### HasPolicyId - -`func (o *AccessDecisionResponse) HasPolicyId() bool` - -HasPolicyId returns a boolean if a field has been set. - -### SetPolicyIdNil - -`func (o *AccessDecisionResponse) SetPolicyIdNil(b bool)` - - SetPolicyIdNil sets the value for PolicyId to be an explicit nil - -### UnsetPolicyId -`func (o *AccessDecisionResponse) UnsetPolicyId()` - -UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil -### GetExplainTrace - -`func (o *AccessDecisionResponse) GetExplainTrace() []map[string]interface{}` - -GetExplainTrace returns the ExplainTrace field if non-nil, zero value otherwise. - -### GetExplainTraceOk - -`func (o *AccessDecisionResponse) GetExplainTraceOk() (*[]map[string]interface{}, bool)` - -GetExplainTraceOk returns a tuple with the ExplainTrace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExplainTrace - -`func (o *AccessDecisionResponse) SetExplainTrace(v []map[string]interface{})` - -SetExplainTrace sets ExplainTrace field to given value. - -### HasExplainTrace - -`func (o *AccessDecisionResponse) HasExplainTrace() bool` - -HasExplainTrace returns a boolean if a field has been set. - -### GetRevision - -`func (o *AccessDecisionResponse) GetRevision() int32` - -GetRevision returns the Revision field if non-nil, zero value otherwise. - -### GetRevisionOk - -`func (o *AccessDecisionResponse) GetRevisionOk() (*int32, bool)` - -GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevision - -`func (o *AccessDecisionResponse) SetRevision(v int32)` - -SetRevision sets Revision field to given value. - -### HasRevision - -`func (o *AccessDecisionResponse) HasRevision() bool` - -HasRevision returns a boolean if a field has been set. - -### SetRevisionNil - -`func (o *AccessDecisionResponse) SetRevisionNil(b bool)` - - SetRevisionNil sets the value for Revision to be an explicit nil - -### UnsetRevision -`func (o *AccessDecisionResponse) UnsetRevision()` - -UnsetRevision ensures that no value is present for Revision, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AccessRequest.md b/sdks/go/docs/AccessRequest.md deleted file mode 100644 index e86f3db..0000000 --- a/sdks/go/docs/AccessRequest.md +++ /dev/null @@ -1,191 +0,0 @@ -# AccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**User** | Pointer to **map[string]interface{}** | | [optional] -**Action** | **string** | | -**Resource** | Pointer to **map[string]interface{}** | | [optional] -**Context** | Pointer to **map[string]interface{}** | | [optional] -**Consistency** | Pointer to **string** | | [optional] [default to "eventual"] -**Revision** | Pointer to **NullableInt32** | | [optional] - -## Methods - -### NewAccessRequest - -`func NewAccessRequest(action string, ) *AccessRequest` - -NewAccessRequest instantiates a new AccessRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccessRequestWithDefaults - -`func NewAccessRequestWithDefaults() *AccessRequest` - -NewAccessRequestWithDefaults instantiates a new AccessRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetUser - -`func (o *AccessRequest) GetUser() map[string]interface{}` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *AccessRequest) GetUserOk() (*map[string]interface{}, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *AccessRequest) SetUser(v map[string]interface{})` - -SetUser sets User field to given value. - -### HasUser - -`func (o *AccessRequest) HasUser() bool` - -HasUser returns a boolean if a field has been set. - -### GetAction - -`func (o *AccessRequest) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *AccessRequest) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *AccessRequest) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetResource - -`func (o *AccessRequest) GetResource() map[string]interface{}` - -GetResource returns the Resource field if non-nil, zero value otherwise. - -### GetResourceOk - -`func (o *AccessRequest) GetResourceOk() (*map[string]interface{}, bool)` - -GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResource - -`func (o *AccessRequest) SetResource(v map[string]interface{})` - -SetResource sets Resource field to given value. - -### HasResource - -`func (o *AccessRequest) HasResource() bool` - -HasResource returns a boolean if a field has been set. - -### GetContext - -`func (o *AccessRequest) GetContext() map[string]interface{}` - -GetContext returns the Context field if non-nil, zero value otherwise. - -### GetContextOk - -`func (o *AccessRequest) GetContextOk() (*map[string]interface{}, bool)` - -GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContext - -`func (o *AccessRequest) SetContext(v map[string]interface{})` - -SetContext sets Context field to given value. - -### HasContext - -`func (o *AccessRequest) HasContext() bool` - -HasContext returns a boolean if a field has been set. - -### GetConsistency - -`func (o *AccessRequest) GetConsistency() string` - -GetConsistency returns the Consistency field if non-nil, zero value otherwise. - -### GetConsistencyOk - -`func (o *AccessRequest) GetConsistencyOk() (*string, bool)` - -GetConsistencyOk returns a tuple with the Consistency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConsistency - -`func (o *AccessRequest) SetConsistency(v string)` - -SetConsistency sets Consistency field to given value. - -### HasConsistency - -`func (o *AccessRequest) HasConsistency() bool` - -HasConsistency returns a boolean if a field has been set. - -### GetRevision - -`func (o *AccessRequest) GetRevision() int32` - -GetRevision returns the Revision field if non-nil, zero value otherwise. - -### GetRevisionOk - -`func (o *AccessRequest) GetRevisionOk() (*int32, bool)` - -GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevision - -`func (o *AccessRequest) SetRevision(v int32)` - -SetRevision sets Revision field to given value. - -### HasRevision - -`func (o *AccessRequest) HasRevision() bool` - -HasRevision returns a boolean if a field has been set. - -### SetRevisionNil - -`func (o *AccessRequest) SetRevisionNil(b bool)` - - SetRevisionNil sets the value for Revision to be an explicit nil - -### UnsetRevision -`func (o *AccessRequest) UnsetRevision()` - -UnsetRevision ensures that no value is present for Revision, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AdminLoginRequest.md b/sdks/go/docs/AdminLoginRequest.md deleted file mode 100644 index 45fd0b8..0000000 --- a/sdks/go/docs/AdminLoginRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# AdminLoginRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Username** | **string** | | -**Password** | **string** | | - -## Methods - -### NewAdminLoginRequest - -`func NewAdminLoginRequest(username string, password string, ) *AdminLoginRequest` - -NewAdminLoginRequest instantiates a new AdminLoginRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAdminLoginRequestWithDefaults - -`func NewAdminLoginRequestWithDefaults() *AdminLoginRequest` - -NewAdminLoginRequestWithDefaults instantiates a new AdminLoginRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetUsername - -`func (o *AdminLoginRequest) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *AdminLoginRequest) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *AdminLoginRequest) SetUsername(v string)` - -SetUsername sets Username field to given value. - - -### GetPassword - -`func (o *AdminLoginRequest) GetPassword() string` - -GetPassword returns the Password field if non-nil, zero value otherwise. - -### GetPasswordOk - -`func (o *AdminLoginRequest) GetPasswordOk() (*string, bool)` - -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPassword - -`func (o *AdminLoginRequest) SetPassword(v string)` - -SetPassword sets Password field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AdminLoginResponse.md b/sdks/go/docs/AdminLoginResponse.md deleted file mode 100644 index db9b5e4..0000000 --- a/sdks/go/docs/AdminLoginResponse.md +++ /dev/null @@ -1,145 +0,0 @@ -# AdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccessToken** | **string** | | -**TokenType** | Pointer to **string** | | [optional] [default to "bearer"] -**ExpiresIn** | **int32** | | -**Role** | Pointer to **string** | | [optional] [default to "admin"] -**TenantKey** | **string** | | - -## Methods - -### NewAdminLoginResponse - -`func NewAdminLoginResponse(accessToken string, expiresIn int32, tenantKey string, ) *AdminLoginResponse` - -NewAdminLoginResponse instantiates a new AdminLoginResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAdminLoginResponseWithDefaults - -`func NewAdminLoginResponseWithDefaults() *AdminLoginResponse` - -NewAdminLoginResponseWithDefaults instantiates a new AdminLoginResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccessToken - -`func (o *AdminLoginResponse) GetAccessToken() string` - -GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. - -### GetAccessTokenOk - -`func (o *AdminLoginResponse) GetAccessTokenOk() (*string, bool)` - -GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessToken - -`func (o *AdminLoginResponse) SetAccessToken(v string)` - -SetAccessToken sets AccessToken field to given value. - - -### GetTokenType - -`func (o *AdminLoginResponse) GetTokenType() string` - -GetTokenType returns the TokenType field if non-nil, zero value otherwise. - -### GetTokenTypeOk - -`func (o *AdminLoginResponse) GetTokenTypeOk() (*string, bool)` - -GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokenType - -`func (o *AdminLoginResponse) SetTokenType(v string)` - -SetTokenType sets TokenType field to given value. - -### HasTokenType - -`func (o *AdminLoginResponse) HasTokenType() bool` - -HasTokenType returns a boolean if a field has been set. - -### GetExpiresIn - -`func (o *AdminLoginResponse) GetExpiresIn() int32` - -GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise. - -### GetExpiresInOk - -`func (o *AdminLoginResponse) GetExpiresInOk() (*int32, bool)` - -GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresIn - -`func (o *AdminLoginResponse) SetExpiresIn(v int32)` - -SetExpiresIn sets ExpiresIn field to given value. - - -### GetRole - -`func (o *AdminLoginResponse) GetRole() string` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *AdminLoginResponse) GetRoleOk() (*string, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *AdminLoginResponse) SetRole(v string)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *AdminLoginResponse) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetTenantKey - -`func (o *AdminLoginResponse) GetTenantKey() string` - -GetTenantKey returns the TenantKey field if non-nil, zero value otherwise. - -### GetTenantKeyOk - -`func (o *AdminLoginResponse) GetTenantKeyOk() (*string, bool)` - -GetTenantKeyOk returns a tuple with the TenantKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantKey - -`func (o *AdminLoginResponse) SetTenantKey(v string)` - -SetTenantKey sets TenantKey field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AuditRecordOut.md b/sdks/go/docs/AuditRecordOut.md deleted file mode 100644 index eb1f28b..0000000 --- a/sdks/go/docs/AuditRecordOut.md +++ /dev/null @@ -1,333 +0,0 @@ -# AuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int32** | | -**PrincipalType** | **string** | | -**PrincipalId** | **string** | | -**CorrelationId** | Pointer to **NullableString** | | [optional] -**User** | **map[string]interface{}** | | -**Action** | **string** | | -**Resource** | **map[string]interface{}** | | -**Decision** | **string** | | -**MatchedPolicies** | **[]interface{}** | | -**Reason** | Pointer to **NullableString** | | [optional] -**EvaluatedRules** | **[]interface{}** | | -**FailedConditions** | **[]interface{}** | | -**CreatedAt** | **time.Time** | | - -## Methods - -### NewAuditRecordOut - -`func NewAuditRecordOut(id int32, principalType string, principalId string, user map[string]interface{}, action string, resource map[string]interface{}, decision string, matchedPolicies []interface{}, evaluatedRules []interface{}, failedConditions []interface{}, createdAt time.Time, ) *AuditRecordOut` - -NewAuditRecordOut instantiates a new AuditRecordOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAuditRecordOutWithDefaults - -`func NewAuditRecordOutWithDefaults() *AuditRecordOut` - -NewAuditRecordOutWithDefaults instantiates a new AuditRecordOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *AuditRecordOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *AuditRecordOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *AuditRecordOut) SetId(v int32)` - -SetId sets Id field to given value. - - -### GetPrincipalType - -`func (o *AuditRecordOut) GetPrincipalType() string` - -GetPrincipalType returns the PrincipalType field if non-nil, zero value otherwise. - -### GetPrincipalTypeOk - -`func (o *AuditRecordOut) GetPrincipalTypeOk() (*string, bool)` - -GetPrincipalTypeOk returns a tuple with the PrincipalType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrincipalType - -`func (o *AuditRecordOut) SetPrincipalType(v string)` - -SetPrincipalType sets PrincipalType field to given value. - - -### GetPrincipalId - -`func (o *AuditRecordOut) GetPrincipalId() string` - -GetPrincipalId returns the PrincipalId field if non-nil, zero value otherwise. - -### GetPrincipalIdOk - -`func (o *AuditRecordOut) GetPrincipalIdOk() (*string, bool)` - -GetPrincipalIdOk returns a tuple with the PrincipalId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrincipalId - -`func (o *AuditRecordOut) SetPrincipalId(v string)` - -SetPrincipalId sets PrincipalId field to given value. - - -### GetCorrelationId - -`func (o *AuditRecordOut) GetCorrelationId() string` - -GetCorrelationId returns the CorrelationId field if non-nil, zero value otherwise. - -### GetCorrelationIdOk - -`func (o *AuditRecordOut) GetCorrelationIdOk() (*string, bool)` - -GetCorrelationIdOk returns a tuple with the CorrelationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCorrelationId - -`func (o *AuditRecordOut) SetCorrelationId(v string)` - -SetCorrelationId sets CorrelationId field to given value. - -### HasCorrelationId - -`func (o *AuditRecordOut) HasCorrelationId() bool` - -HasCorrelationId returns a boolean if a field has been set. - -### SetCorrelationIdNil - -`func (o *AuditRecordOut) SetCorrelationIdNil(b bool)` - - SetCorrelationIdNil sets the value for CorrelationId to be an explicit nil - -### UnsetCorrelationId -`func (o *AuditRecordOut) UnsetCorrelationId()` - -UnsetCorrelationId ensures that no value is present for CorrelationId, not even an explicit nil -### GetUser - -`func (o *AuditRecordOut) GetUser() map[string]interface{}` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *AuditRecordOut) GetUserOk() (*map[string]interface{}, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *AuditRecordOut) SetUser(v map[string]interface{})` - -SetUser sets User field to given value. - - -### GetAction - -`func (o *AuditRecordOut) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *AuditRecordOut) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *AuditRecordOut) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetResource - -`func (o *AuditRecordOut) GetResource() map[string]interface{}` - -GetResource returns the Resource field if non-nil, zero value otherwise. - -### GetResourceOk - -`func (o *AuditRecordOut) GetResourceOk() (*map[string]interface{}, bool)` - -GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResource - -`func (o *AuditRecordOut) SetResource(v map[string]interface{})` - -SetResource sets Resource field to given value. - - -### GetDecision - -`func (o *AuditRecordOut) GetDecision() string` - -GetDecision returns the Decision field if non-nil, zero value otherwise. - -### GetDecisionOk - -`func (o *AuditRecordOut) GetDecisionOk() (*string, bool)` - -GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecision - -`func (o *AuditRecordOut) SetDecision(v string)` - -SetDecision sets Decision field to given value. - - -### GetMatchedPolicies - -`func (o *AuditRecordOut) GetMatchedPolicies() []interface{}` - -GetMatchedPolicies returns the MatchedPolicies field if non-nil, zero value otherwise. - -### GetMatchedPoliciesOk - -`func (o *AuditRecordOut) GetMatchedPoliciesOk() (*[]interface{}, bool)` - -GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatchedPolicies - -`func (o *AuditRecordOut) SetMatchedPolicies(v []interface{})` - -SetMatchedPolicies sets MatchedPolicies field to given value. - - -### GetReason - -`func (o *AuditRecordOut) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *AuditRecordOut) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *AuditRecordOut) SetReason(v string)` - -SetReason sets Reason field to given value. - -### HasReason - -`func (o *AuditRecordOut) HasReason() bool` - -HasReason returns a boolean if a field has been set. - -### SetReasonNil - -`func (o *AuditRecordOut) SetReasonNil(b bool)` - - SetReasonNil sets the value for Reason to be an explicit nil - -### UnsetReason -`func (o *AuditRecordOut) UnsetReason()` - -UnsetReason ensures that no value is present for Reason, not even an explicit nil -### GetEvaluatedRules - -`func (o *AuditRecordOut) GetEvaluatedRules() []interface{}` - -GetEvaluatedRules returns the EvaluatedRules field if non-nil, zero value otherwise. - -### GetEvaluatedRulesOk - -`func (o *AuditRecordOut) GetEvaluatedRulesOk() (*[]interface{}, bool)` - -GetEvaluatedRulesOk returns a tuple with the EvaluatedRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvaluatedRules - -`func (o *AuditRecordOut) SetEvaluatedRules(v []interface{})` - -SetEvaluatedRules sets EvaluatedRules field to given value. - - -### GetFailedConditions - -`func (o *AuditRecordOut) GetFailedConditions() []interface{}` - -GetFailedConditions returns the FailedConditions field if non-nil, zero value otherwise. - -### GetFailedConditionsOk - -`func (o *AuditRecordOut) GetFailedConditionsOk() (*[]interface{}, bool)` - -GetFailedConditionsOk returns a tuple with the FailedConditions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailedConditions - -`func (o *AuditRecordOut) SetFailedConditions(v []interface{})` - -SetFailedConditions sets FailedConditions field to given value. - - -### GetCreatedAt - -`func (o *AuditRecordOut) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *AuditRecordOut) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *AuditRecordOut) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AuthAPI.md b/sdks/go/docs/AuthAPI.md deleted file mode 100644 index a7b0b61..0000000 --- a/sdks/go/docs/AuthAPI.md +++ /dev/null @@ -1,138 +0,0 @@ -# \AuthAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AdminLoginAdminLoginPost**](AuthAPI.md#AdminLoginAdminLoginPost) | **Post** /admin/login | Admin Login -[**AdminLoginAdminLoginPost_0**](AuthAPI.md#AdminLoginAdminLoginPost_0) | **Post** /admin/login | Admin Login - - - -## AdminLoginAdminLoginPost - -> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost(ctx).AdminLoginRequest(adminLoginRequest).Execute() - -Admin Login - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - adminLoginRequest := *openapiclient.NewAdminLoginRequest("Username_example", "Password_example") // AdminLoginRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthAPI.AdminLoginAdminLoginPost(context.Background()).AdminLoginRequest(adminLoginRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AdminLoginAdminLoginPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminLoginAdminLoginPost`: SuccessResponseAdminLoginResponse - fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AdminLoginAdminLoginPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminLoginAdminLoginPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AdminLoginAdminLoginPost_0 - -> SuccessResponseAdminLoginResponse AdminLoginAdminLoginPost_0(ctx).AdminLoginRequest(adminLoginRequest).Execute() - -Admin Login - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - adminLoginRequest := *openapiclient.NewAdminLoginRequest("Username_example", "Password_example") // AdminLoginRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AuthAPI.AdminLoginAdminLoginPost_0(context.Background()).AdminLoginRequest(adminLoginRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AdminLoginAdminLoginPost_0``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AdminLoginAdminLoginPost_0`: SuccessResponseAdminLoginResponse - fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AdminLoginAdminLoginPost_0`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAdminLoginAdminLoginPost_1Request struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdks/go/docs/AuthModelCreate.md b/sdks/go/docs/AuthModelCreate.md deleted file mode 100644 index 8f09534..0000000 --- a/sdks/go/docs/AuthModelCreate.md +++ /dev/null @@ -1,51 +0,0 @@ -# AuthModelCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Schema** | **string** | | - -## Methods - -### NewAuthModelCreate - -`func NewAuthModelCreate(schema string, ) *AuthModelCreate` - -NewAuthModelCreate instantiates a new AuthModelCreate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAuthModelCreateWithDefaults - -`func NewAuthModelCreateWithDefaults() *AuthModelCreate` - -NewAuthModelCreateWithDefaults instantiates a new AuthModelCreate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSchema - -`func (o *AuthModelCreate) GetSchema() string` - -GetSchema returns the Schema field if non-nil, zero value otherwise. - -### GetSchemaOk - -`func (o *AuthModelCreate) GetSchemaOk() (*string, bool)` - -GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSchema - -`func (o *AuthModelCreate) SetSchema(v string)` - -SetSchema sets Schema field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/AuthModelOut.md b/sdks/go/docs/AuthModelOut.md deleted file mode 100644 index 814c7ef..0000000 --- a/sdks/go/docs/AuthModelOut.md +++ /dev/null @@ -1,135 +0,0 @@ -# AuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int32** | | -**TenantId** | **int32** | | -**Schema** | **string** | | -**Parsed** | **map[string]interface{}** | | -**Compiled** | **map[string]interface{}** | | - -## Methods - -### NewAuthModelOut - -`func NewAuthModelOut(id int32, tenantId int32, schema string, parsed map[string]interface{}, compiled map[string]interface{}, ) *AuthModelOut` - -NewAuthModelOut instantiates a new AuthModelOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAuthModelOutWithDefaults - -`func NewAuthModelOutWithDefaults() *AuthModelOut` - -NewAuthModelOutWithDefaults instantiates a new AuthModelOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *AuthModelOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *AuthModelOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *AuthModelOut) SetId(v int32)` - -SetId sets Id field to given value. - - -### GetTenantId - -`func (o *AuthModelOut) GetTenantId() int32` - -GetTenantId returns the TenantId field if non-nil, zero value otherwise. - -### GetTenantIdOk - -`func (o *AuthModelOut) GetTenantIdOk() (*int32, bool)` - -GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantId - -`func (o *AuthModelOut) SetTenantId(v int32)` - -SetTenantId sets TenantId field to given value. - - -### GetSchema - -`func (o *AuthModelOut) GetSchema() string` - -GetSchema returns the Schema field if non-nil, zero value otherwise. - -### GetSchemaOk - -`func (o *AuthModelOut) GetSchemaOk() (*string, bool)` - -GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSchema - -`func (o *AuthModelOut) SetSchema(v string)` - -SetSchema sets Schema field to given value. - - -### GetParsed - -`func (o *AuthModelOut) GetParsed() map[string]interface{}` - -GetParsed returns the Parsed field if non-nil, zero value otherwise. - -### GetParsedOk - -`func (o *AuthModelOut) GetParsedOk() (*map[string]interface{}, bool)` - -GetParsedOk returns a tuple with the Parsed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParsed - -`func (o *AuthModelOut) SetParsed(v map[string]interface{})` - -SetParsed sets Parsed field to given value. - - -### GetCompiled - -`func (o *AuthModelOut) GetCompiled() map[string]interface{}` - -GetCompiled returns the Compiled field if non-nil, zero value otherwise. - -### GetCompiledOk - -`func (o *AuthModelOut) GetCompiledOk() (*map[string]interface{}, bool)` - -GetCompiledOk returns a tuple with the Compiled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCompiled - -`func (o *AuthModelOut) SetCompiled(v map[string]interface{})` - -SetCompiled sets Compiled field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/BatchAccessItem.md b/sdks/go/docs/BatchAccessItem.md deleted file mode 100644 index 2855acd..0000000 --- a/sdks/go/docs/BatchAccessItem.md +++ /dev/null @@ -1,77 +0,0 @@ -# BatchAccessItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Resource** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewBatchAccessItem - -`func NewBatchAccessItem(action string, ) *BatchAccessItem` - -NewBatchAccessItem instantiates a new BatchAccessItem object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBatchAccessItemWithDefaults - -`func NewBatchAccessItemWithDefaults() *BatchAccessItem` - -NewBatchAccessItemWithDefaults instantiates a new BatchAccessItem object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *BatchAccessItem) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *BatchAccessItem) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *BatchAccessItem) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetResource - -`func (o *BatchAccessItem) GetResource() map[string]interface{}` - -GetResource returns the Resource field if non-nil, zero value otherwise. - -### GetResourceOk - -`func (o *BatchAccessItem) GetResourceOk() (*map[string]interface{}, bool)` - -GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResource - -`func (o *BatchAccessItem) SetResource(v map[string]interface{})` - -SetResource sets Resource field to given value. - -### HasResource - -`func (o *BatchAccessItem) HasResource() bool` - -HasResource returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/BatchAccessRequest.md b/sdks/go/docs/BatchAccessRequest.md deleted file mode 100644 index 924457d..0000000 --- a/sdks/go/docs/BatchAccessRequest.md +++ /dev/null @@ -1,139 +0,0 @@ -# BatchAccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**User** | Pointer to **map[string]interface{}** | | [optional] -**Items** | [**[]BatchAccessItem**](BatchAccessItem.md) | | -**Consistency** | Pointer to **string** | | [optional] [default to "eventual"] -**Revision** | Pointer to **NullableInt32** | | [optional] - -## Methods - -### NewBatchAccessRequest - -`func NewBatchAccessRequest(items []BatchAccessItem, ) *BatchAccessRequest` - -NewBatchAccessRequest instantiates a new BatchAccessRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBatchAccessRequestWithDefaults - -`func NewBatchAccessRequestWithDefaults() *BatchAccessRequest` - -NewBatchAccessRequestWithDefaults instantiates a new BatchAccessRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetUser - -`func (o *BatchAccessRequest) GetUser() map[string]interface{}` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *BatchAccessRequest) GetUserOk() (*map[string]interface{}, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *BatchAccessRequest) SetUser(v map[string]interface{})` - -SetUser sets User field to given value. - -### HasUser - -`func (o *BatchAccessRequest) HasUser() bool` - -HasUser returns a boolean if a field has been set. - -### GetItems - -`func (o *BatchAccessRequest) GetItems() []BatchAccessItem` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *BatchAccessRequest) GetItemsOk() (*[]BatchAccessItem, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *BatchAccessRequest) SetItems(v []BatchAccessItem)` - -SetItems sets Items field to given value. - - -### GetConsistency - -`func (o *BatchAccessRequest) GetConsistency() string` - -GetConsistency returns the Consistency field if non-nil, zero value otherwise. - -### GetConsistencyOk - -`func (o *BatchAccessRequest) GetConsistencyOk() (*string, bool)` - -GetConsistencyOk returns a tuple with the Consistency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConsistency - -`func (o *BatchAccessRequest) SetConsistency(v string)` - -SetConsistency sets Consistency field to given value. - -### HasConsistency - -`func (o *BatchAccessRequest) HasConsistency() bool` - -HasConsistency returns a boolean if a field has been set. - -### GetRevision - -`func (o *BatchAccessRequest) GetRevision() int32` - -GetRevision returns the Revision field if non-nil, zero value otherwise. - -### GetRevisionOk - -`func (o *BatchAccessRequest) GetRevisionOk() (*int32, bool)` - -GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevision - -`func (o *BatchAccessRequest) SetRevision(v int32)` - -SetRevision sets Revision field to given value. - -### HasRevision - -`func (o *BatchAccessRequest) HasRevision() bool` - -HasRevision returns a boolean if a field has been set. - -### SetRevisionNil - -`func (o *BatchAccessRequest) SetRevisionNil(b bool)` - - SetRevisionNil sets the value for Revision to be an explicit nil - -### UnsetRevision -`func (o *BatchAccessRequest) UnsetRevision()` - -UnsetRevision ensures that no value is present for Revision, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/BatchAccessResponse.md b/sdks/go/docs/BatchAccessResponse.md deleted file mode 100644 index 6e2664c..0000000 --- a/sdks/go/docs/BatchAccessResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# BatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Results** | [**[]BatchAccessResult**](BatchAccessResult.md) | | -**Revision** | Pointer to **NullableInt32** | | [optional] - -## Methods - -### NewBatchAccessResponse - -`func NewBatchAccessResponse(results []BatchAccessResult, ) *BatchAccessResponse` - -NewBatchAccessResponse instantiates a new BatchAccessResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBatchAccessResponseWithDefaults - -`func NewBatchAccessResponseWithDefaults() *BatchAccessResponse` - -NewBatchAccessResponseWithDefaults instantiates a new BatchAccessResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetResults - -`func (o *BatchAccessResponse) GetResults() []BatchAccessResult` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *BatchAccessResponse) GetResultsOk() (*[]BatchAccessResult, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *BatchAccessResponse) SetResults(v []BatchAccessResult)` - -SetResults sets Results field to given value. - - -### GetRevision - -`func (o *BatchAccessResponse) GetRevision() int32` - -GetRevision returns the Revision field if non-nil, zero value otherwise. - -### GetRevisionOk - -`func (o *BatchAccessResponse) GetRevisionOk() (*int32, bool)` - -GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevision - -`func (o *BatchAccessResponse) SetRevision(v int32)` - -SetRevision sets Revision field to given value. - -### HasRevision - -`func (o *BatchAccessResponse) HasRevision() bool` - -HasRevision returns a boolean if a field has been set. - -### SetRevisionNil - -`func (o *BatchAccessResponse) SetRevisionNil(b bool)` - - SetRevisionNil sets the value for Revision to be an explicit nil - -### UnsetRevision -`func (o *BatchAccessResponse) UnsetRevision()` - -UnsetRevision ensures that no value is present for Revision, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/BatchAccessResult.md b/sdks/go/docs/BatchAccessResult.md deleted file mode 100644 index 3ed35e4..0000000 --- a/sdks/go/docs/BatchAccessResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# BatchAccessResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Allowed** | **bool** | | -**Revision** | Pointer to **NullableInt32** | | [optional] - -## Methods - -### NewBatchAccessResult - -`func NewBatchAccessResult(action string, allowed bool, ) *BatchAccessResult` - -NewBatchAccessResult instantiates a new BatchAccessResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBatchAccessResultWithDefaults - -`func NewBatchAccessResultWithDefaults() *BatchAccessResult` - -NewBatchAccessResultWithDefaults instantiates a new BatchAccessResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *BatchAccessResult) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *BatchAccessResult) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *BatchAccessResult) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetAllowed - -`func (o *BatchAccessResult) GetAllowed() bool` - -GetAllowed returns the Allowed field if non-nil, zero value otherwise. - -### GetAllowedOk - -`func (o *BatchAccessResult) GetAllowedOk() (*bool, bool)` - -GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllowed - -`func (o *BatchAccessResult) SetAllowed(v bool)` - -SetAllowed sets Allowed field to given value. - - -### GetRevision - -`func (o *BatchAccessResult) GetRevision() int32` - -GetRevision returns the Revision field if non-nil, zero value otherwise. - -### GetRevisionOk - -`func (o *BatchAccessResult) GetRevisionOk() (*int32, bool)` - -GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevision - -`func (o *BatchAccessResult) SetRevision(v int32)` - -SetRevision sets Revision field to given value. - -### HasRevision - -`func (o *BatchAccessResult) HasRevision() bool` - -HasRevision returns a boolean if a field has been set. - -### SetRevisionNil - -`func (o *BatchAccessResult) SetRevisionNil(b bool)` - - SetRevisionNil sets the value for Revision to be an explicit nil - -### UnsetRevision -`func (o *BatchAccessResult) UnsetRevision()` - -UnsetRevision ensures that no value is present for Revision, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/DataValue.md b/sdks/go/docs/DataValue.md deleted file mode 100644 index 144a4a2..0000000 --- a/sdks/go/docs/DataValue.md +++ /dev/null @@ -1,30 +0,0 @@ -# DataValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewDataValue - -`func NewDataValue() *DataValue` - -NewDataValue instantiates a new DataValue object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDataValueWithDefaults - -`func NewDataValueWithDefaults() *DataValue` - -NewDataValueWithDefaults instantiates a new DataValue object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/DevAPI.md b/sdks/go/docs/DevAPI.md deleted file mode 100644 index 13d3d3a..0000000 --- a/sdks/go/docs/DevAPI.md +++ /dev/null @@ -1,133 +0,0 @@ -# \DevAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetSampleDataDevSampleDataGet**](DevAPI.md#GetSampleDataDevSampleDataGet) | **Get** /dev/sample-data | Get Sample Data -[**SeedSampleDataDevSampleDataSeedPost**](DevAPI.md#SeedSampleDataDevSampleDataSeedPost) | **Post** /dev/sample-data/seed | Seed Sample Data - - - -## GetSampleDataDevSampleDataGet - -> SuccessResponseDictStrObject GetSampleDataDevSampleDataGet(ctx).Execute() - -Get Sample Data - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DevAPI.GetSampleDataDevSampleDataGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DevAPI.GetSampleDataDevSampleDataGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSampleDataDevSampleDataGet`: SuccessResponseDictStrObject - fmt.Fprintf(os.Stdout, "Response from `DevAPI.GetSampleDataDevSampleDataGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSampleDataDevSampleDataGetRequest struct via the builder pattern - - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SeedSampleDataDevSampleDataSeedPost - -> SuccessResponseDictStrObject SeedSampleDataDevSampleDataSeedPost(ctx).Reset(reset).Execute() - -Seed Sample Data - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - reset := true // bool | Clear the sample dataset before reseeding it. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DevAPI.SeedSampleDataDevSampleDataSeedPost(context.Background()).Reset(reset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DevAPI.SeedSampleDataDevSampleDataSeedPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SeedSampleDataDevSampleDataSeedPost`: SuccessResponseDictStrObject - fmt.Fprintf(os.Stdout, "Response from `DevAPI.SeedSampleDataDevSampleDataSeedPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSeedSampleDataDevSampleDataSeedPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reset** | **bool** | Clear the sample dataset before reseeding it. | [default to false] - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdks/go/docs/HTTPValidationError.md b/sdks/go/docs/HTTPValidationError.md deleted file mode 100644 index 3cde768..0000000 --- a/sdks/go/docs/HTTPValidationError.md +++ /dev/null @@ -1,56 +0,0 @@ -# HTTPValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Detail** | Pointer to [**[]ValidationError**](ValidationError.md) | | [optional] - -## Methods - -### NewHTTPValidationError - -`func NewHTTPValidationError() *HTTPValidationError` - -NewHTTPValidationError instantiates a new HTTPValidationError object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHTTPValidationErrorWithDefaults - -`func NewHTTPValidationErrorWithDefaults() *HTTPValidationError` - -NewHTTPValidationErrorWithDefaults instantiates a new HTTPValidationError object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDetail - -`func (o *HTTPValidationError) GetDetail() []ValidationError` - -GetDetail returns the Detail field if non-nil, zero value otherwise. - -### GetDetailOk - -`func (o *HTTPValidationError) GetDetailOk() (*[]ValidationError, bool)` - -GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDetail - -`func (o *HTTPValidationError) SetDetail(v []ValidationError)` - -SetDetail sets Detail field to given value. - -### HasDetail - -`func (o *HTTPValidationError) HasDetail() bool` - -HasDetail returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/HealthAPI.md b/sdks/go/docs/HealthAPI.md deleted file mode 100644 index a58c8db..0000000 --- a/sdks/go/docs/HealthAPI.md +++ /dev/null @@ -1,188 +0,0 @@ -# \HealthAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**HealthHealthGet**](HealthAPI.md#HealthHealthGet) | **Get** /health | Health -[**LivenessHealthLiveGet**](HealthAPI.md#LivenessHealthLiveGet) | **Get** /health/live | Liveness -[**ReadinessHealthReadyGet**](HealthAPI.md#ReadinessHealthReadyGet) | **Get** /health/ready | Readiness - - - -## HealthHealthGet - -> SuccessResponseDictStrStr HealthHealthGet(ctx).Execute() - -Health - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.HealthAPI.HealthHealthGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.HealthHealthGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `HealthHealthGet`: SuccessResponseDictStrStr - fmt.Fprintf(os.Stdout, "Response from `HealthAPI.HealthHealthGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiHealthHealthGetRequest struct via the builder pattern - - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## LivenessHealthLiveGet - -> SuccessResponseDictStrStr LivenessHealthLiveGet(ctx).Execute() - -Liveness - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.HealthAPI.LivenessHealthLiveGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.LivenessHealthLiveGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `LivenessHealthLiveGet`: SuccessResponseDictStrStr - fmt.Fprintf(os.Stdout, "Response from `HealthAPI.LivenessHealthLiveGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiLivenessHealthLiveGetRequest struct via the builder pattern - - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ReadinessHealthReadyGet - -> SuccessResponseDictStrObject ReadinessHealthReadyGet(ctx).Execute() - -Readiness - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.HealthAPI.ReadinessHealthReadyGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.ReadinessHealthReadyGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ReadinessHealthReadyGet`: SuccessResponseDictStrObject - fmt.Fprintf(os.Stdout, "Response from `HealthAPI.ReadinessHealthReadyGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiReadinessHealthReadyGetRequest struct via the builder pattern - - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdks/go/docs/ImpactAnalysisRequest.md b/sdks/go/docs/ImpactAnalysisRequest.md deleted file mode 100644 index a289b07..0000000 --- a/sdks/go/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# ImpactAnalysisRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PolicyChange** | **string** | | - -## Methods - -### NewImpactAnalysisRequest - -`func NewImpactAnalysisRequest(policyChange string, ) *ImpactAnalysisRequest` - -NewImpactAnalysisRequest instantiates a new ImpactAnalysisRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewImpactAnalysisRequestWithDefaults - -`func NewImpactAnalysisRequestWithDefaults() *ImpactAnalysisRequest` - -NewImpactAnalysisRequestWithDefaults instantiates a new ImpactAnalysisRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPolicyChange - -`func (o *ImpactAnalysisRequest) GetPolicyChange() string` - -GetPolicyChange returns the PolicyChange field if non-nil, zero value otherwise. - -### GetPolicyChangeOk - -`func (o *ImpactAnalysisRequest) GetPolicyChangeOk() (*string, bool)` - -GetPolicyChangeOk returns a tuple with the PolicyChange field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPolicyChange - -`func (o *ImpactAnalysisRequest) SetPolicyChange(v string)` - -SetPolicyChange sets PolicyChange field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/ImpactAnalysisResponse.md b/sdks/go/docs/ImpactAnalysisResponse.md deleted file mode 100644 index e3f31b8..0000000 --- a/sdks/go/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,82 +0,0 @@ -# ImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**GainedAccess** | Pointer to **[]int32** | | [optional] -**LostAccess** | Pointer to **[]int32** | | [optional] - -## Methods - -### NewImpactAnalysisResponse - -`func NewImpactAnalysisResponse() *ImpactAnalysisResponse` - -NewImpactAnalysisResponse instantiates a new ImpactAnalysisResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewImpactAnalysisResponseWithDefaults - -`func NewImpactAnalysisResponseWithDefaults() *ImpactAnalysisResponse` - -NewImpactAnalysisResponseWithDefaults instantiates a new ImpactAnalysisResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetGainedAccess - -`func (o *ImpactAnalysisResponse) GetGainedAccess() []int32` - -GetGainedAccess returns the GainedAccess field if non-nil, zero value otherwise. - -### GetGainedAccessOk - -`func (o *ImpactAnalysisResponse) GetGainedAccessOk() (*[]int32, bool)` - -GetGainedAccessOk returns a tuple with the GainedAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGainedAccess - -`func (o *ImpactAnalysisResponse) SetGainedAccess(v []int32)` - -SetGainedAccess sets GainedAccess field to given value. - -### HasGainedAccess - -`func (o *ImpactAnalysisResponse) HasGainedAccess() bool` - -HasGainedAccess returns a boolean if a field has been set. - -### GetLostAccess - -`func (o *ImpactAnalysisResponse) GetLostAccess() []int32` - -GetLostAccess returns the LostAccess field if non-nil, zero value otherwise. - -### GetLostAccessOk - -`func (o *ImpactAnalysisResponse) GetLostAccessOk() (*[]int32, bool)` - -GetLostAccessOk returns a tuple with the LostAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLostAccess - -`func (o *ImpactAnalysisResponse) SetLostAccess(v []int32)` - -SetLostAccess sets LostAccess field to given value. - -### HasLostAccess - -`func (o *ImpactAnalysisResponse) HasLostAccess() bool` - -HasLostAccess returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/LocationInner.md b/sdks/go/docs/LocationInner.md deleted file mode 100644 index 820ca46..0000000 --- a/sdks/go/docs/LocationInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# LocationInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewLocationInner - -`func NewLocationInner() *LocationInner` - -NewLocationInner instantiates a new LocationInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewLocationInnerWithDefaults - -`func NewLocationInnerWithDefaults() *LocationInner` - -NewLocationInnerWithDefaults instantiates a new LocationInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/ManagementAPI.md b/sdks/go/docs/ManagementAPI.md deleted file mode 100644 index 9316834..0000000 --- a/sdks/go/docs/ManagementAPI.md +++ /dev/null @@ -1,1918 +0,0 @@ -# \ManagementAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementAPI.md#AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **Post** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -[**CreateAclEntryAclPost**](ManagementAPI.md#CreateAclEntryAclPost) | **Post** /acl | Create Acl Entry -[**CreateAuthModelAuthModelPost**](ManagementAPI.md#CreateAuthModelAuthModelPost) | **Post** /auth-model | Create Auth Model -[**CreatePermissionPermissionsPost**](ManagementAPI.md#CreatePermissionPermissionsPost) | **Post** /permissions | Create Permission -[**CreatePolicyFromDslPoliciesDslPost**](ManagementAPI.md#CreatePolicyFromDslPoliciesDslPost) | **Post** /policies/dsl | Create Policy From Dsl -[**CreatePolicyPoliciesPost**](ManagementAPI.md#CreatePolicyPoliciesPost) | **Post** /policies | Create Policy -[**CreateRelationshipRelationshipsPost**](ManagementAPI.md#CreateRelationshipRelationshipsPost) | **Post** /relationships | Create Relationship -[**CreateRoleRolesPost**](ManagementAPI.md#CreateRoleRolesPost) | **Post** /roles | Create Role -[**DeleteAclEntryAclAclIdDelete**](ManagementAPI.md#DeleteAclEntryAclAclIdDelete) | **Delete** /acl/{acl_id} | Delete Acl Entry -[**DeletePermissionPermissionsPermissionIdDelete**](ManagementAPI.md#DeletePermissionPermissionsPermissionIdDelete) | **Delete** /permissions/{permission_id} | Delete Permission -[**DeletePolicyPoliciesPolicyKeyDelete**](ManagementAPI.md#DeletePolicyPoliciesPolicyKeyDelete) | **Delete** /policies/{policy_key} | Delete Policy -[**DeleteRoleRolesRoleIdDelete**](ManagementAPI.md#DeleteRoleRolesRoleIdDelete) | **Delete** /roles/{role_id} | Delete Role -[**GetAuthModelAuthModelGet**](ManagementAPI.md#GetAuthModelAuthModelGet) | **Get** /auth-model | Get Auth Model -[**ImpactAnalysisImpactAnalysisPost**](ManagementAPI.md#ImpactAnalysisImpactAnalysisPost) | **Post** /impact-analysis | Impact Analysis -[**ListAclEntriesAclResourceTypeResourceIdGet**](ManagementAPI.md#ListAclEntriesAclResourceTypeResourceIdGet) | **Get** /acl/{resource_type}/{resource_id} | List Acl Entries -[**ListAuditLogsAuditGet**](ManagementAPI.md#ListAuditLogsAuditGet) | **Get** /audit | List Audit Logs -[**ListPermissionRolesPermissionsPermissionIdRolesGet**](ManagementAPI.md#ListPermissionRolesPermissionsPermissionIdRolesGet) | **Get** /permissions/{permission_id}/roles | List Permission Roles -[**ListPermissionsPermissionsGet**](ManagementAPI.md#ListPermissionsPermissionsGet) | **Get** /permissions | List Permissions -[**ListPoliciesPoliciesGet**](ManagementAPI.md#ListPoliciesPoliciesGet) | **Get** /policies | List Policies -[**ListRelationshipsRelationshipsGet**](ManagementAPI.md#ListRelationshipsRelationshipsGet) | **Get** /relationships | List Relationships -[**ListRolePermissionsRolesRoleIdPermissionsGet**](ManagementAPI.md#ListRolePermissionsRolesRoleIdPermissionsGet) | **Get** /roles/{role_id}/permissions | List Role Permissions -[**ListRolesRolesGet**](ManagementAPI.md#ListRolesRolesGet) | **Get** /roles | List Roles -[**RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementAPI.md#RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **Delete** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -[**RollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementAPI.md#RollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **Post** /policies/{policy_key}/rollback/{version} | Rollback Policy -[**SimulatePolicySimulatePolicyPost**](ManagementAPI.md#SimulatePolicySimulatePolicyPost) | **Post** /simulate-policy | Simulate Policy -[**UpdatePermissionPermissionsPermissionIdPut**](ManagementAPI.md#UpdatePermissionPermissionsPermissionIdPut) | **Put** /permissions/{permission_id} | Update Permission -[**UpdatePolicyPoliciesPolicyKeyPut**](ManagementAPI.md#UpdatePolicyPoliciesPolicyKeyPut) | **Put** /policies/{policy_key} | Update Policy -[**UpdateRoleRolesRoleIdPut**](ManagementAPI.md#UpdateRoleRolesRoleIdPut) | **Put** /roles/{role_id} | Update Role - - - -## AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost - -> SuccessResponsePermissionOut AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(ctx, roleId, permissionId).Execute() - -Add Permission To Role - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - roleId := int32(56) // int32 | - permissionId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(context.Background(), roleId, permissionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost`: SuccessResponsePermissionOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roleId** | **int32** | | -**permissionId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateAclEntryAclPost - -> SuccessResponseACLOut CreateAclEntryAclPost(ctx).ACLCreate(aCLCreate).Execute() - -Create Acl Entry - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - aCLCreate := *openapiclient.NewACLCreate("SubjectType_example", "SubjectId_example", "ResourceType_example", "ResourceId_example", "Action_example", "Effect_example") // ACLCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreateAclEntryAclPost(context.Background()).ACLCreate(aCLCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateAclEntryAclPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAclEntryAclPost`: SuccessResponseACLOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateAclEntryAclPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateAclEntryAclPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **aCLCreate** | [**ACLCreate**](ACLCreate.md) | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateAuthModelAuthModelPost - -> SuccessResponseAuthModelOut CreateAuthModelAuthModelPost(ctx).AuthModelCreate(authModelCreate).Execute() - -Create Auth Model - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - authModelCreate := *openapiclient.NewAuthModelCreate("Schema_example") // AuthModelCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreateAuthModelAuthModelPost(context.Background()).AuthModelCreate(authModelCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateAuthModelAuthModelPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAuthModelAuthModelPost`: SuccessResponseAuthModelOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateAuthModelAuthModelPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateAuthModelAuthModelPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md) | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreatePermissionPermissionsPost - -> PermissionOut CreatePermissionPermissionsPost(ctx).PermissionCreate(permissionCreate).Execute() - -Create Permission - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - permissionCreate := *openapiclient.NewPermissionCreate("Action_example") // PermissionCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreatePermissionPermissionsPost(context.Background()).PermissionCreate(permissionCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreatePermissionPermissionsPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePermissionPermissionsPost`: PermissionOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreatePermissionPermissionsPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreatePermissionPermissionsPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permissionCreate** | [**PermissionCreate**](PermissionCreate.md) | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreatePolicyFromDslPoliciesDslPost - -> SuccessResponsePolicyOut CreatePolicyFromDslPoliciesDslPost(ctx).Dsl(dsl).Execute() - -Create Policy From Dsl - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - dsl := "dsl_example" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreatePolicyFromDslPoliciesDslPost(context.Background()).Dsl(dsl).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreatePolicyFromDslPoliciesDslPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePolicyFromDslPoliciesDslPost`: SuccessResponsePolicyOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreatePolicyFromDslPoliciesDslPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreatePolicyFromDslPoliciesDslPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **dsl** | **string** | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreatePolicyPoliciesPost - -> SuccessResponsePolicyOut CreatePolicyPoliciesPost(ctx).PolicyCreate(policyCreate).Execute() - -Create Policy - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - policyCreate := *openapiclient.NewPolicyCreate("Action_example") // PolicyCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreatePolicyPoliciesPost(context.Background()).PolicyCreate(policyCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreatePolicyPoliciesPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePolicyPoliciesPost`: SuccessResponsePolicyOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreatePolicyPoliciesPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreatePolicyPoliciesPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateRelationshipRelationshipsPost - -> SuccessResponseRelationshipOut CreateRelationshipRelationshipsPost(ctx).RelationshipCreate(relationshipCreate).Execute() - -Create Relationship - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - relationshipCreate := *openapiclient.NewRelationshipCreate("SubjectType_example", "SubjectId_example", "Relation_example", "ObjectType_example", "ObjectId_example") // RelationshipCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreateRelationshipRelationshipsPost(context.Background()).RelationshipCreate(relationshipCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateRelationshipRelationshipsPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRelationshipRelationshipsPost`: SuccessResponseRelationshipOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateRelationshipRelationshipsPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateRelationshipRelationshipsPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md) | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateRoleRolesPost - -> RoleOut CreateRoleRolesPost(ctx).RoleCreate(roleCreate).Execute() - -Create Role - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - roleCreate := *openapiclient.NewRoleCreate("Name_example") // RoleCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.CreateRoleRolesPost(context.Background()).RoleCreate(roleCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.CreateRoleRolesPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleRolesPost`: RoleOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.CreateRoleRolesPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateRoleRolesPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleCreate** | [**RoleCreate**](RoleCreate.md) | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteAclEntryAclAclIdDelete - -> SuccessResponseDictStrInt DeleteAclEntryAclAclIdDelete(ctx, aclId).Execute() - -Delete Acl Entry - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - aclId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.DeleteAclEntryAclAclIdDelete(context.Background(), aclId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeleteAclEntryAclAclIdDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAclEntryAclAclIdDelete`: SuccessResponseDictStrInt - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeleteAclEntryAclAclIdDelete`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**aclId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteAclEntryAclAclIdDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeletePermissionPermissionsPermissionIdDelete - -> SuccessResponseDictStrInt DeletePermissionPermissionsPermissionIdDelete(ctx, permissionId).Execute() - -Delete Permission - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - permissionId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.DeletePermissionPermissionsPermissionIdDelete(context.Background(), permissionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeletePermissionPermissionsPermissionIdDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeletePermissionPermissionsPermissionIdDelete`: SuccessResponseDictStrInt - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeletePermissionPermissionsPermissionIdDelete`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**permissionId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeletePermissionPermissionsPermissionIdDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeletePolicyPoliciesPolicyKeyDelete - -> SuccessResponseDictStrStr DeletePolicyPoliciesPolicyKeyDelete(ctx, policyKey).Execute() - -Delete Policy - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - policyKey := "policyKey_example" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete(context.Background(), policyKey).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeletePolicyPoliciesPolicyKeyDelete`: SuccessResponseDictStrStr - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**policyKey** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeletePolicyPoliciesPolicyKeyDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteRoleRolesRoleIdDelete - -> SuccessResponseDictStrInt DeleteRoleRolesRoleIdDelete(ctx, roleId).Execute() - -Delete Role - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - roleId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.DeleteRoleRolesRoleIdDelete(context.Background(), roleId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.DeleteRoleRolesRoleIdDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteRoleRolesRoleIdDelete`: SuccessResponseDictStrInt - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.DeleteRoleRolesRoleIdDelete`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roleId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteRoleRolesRoleIdDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetAuthModelAuthModelGet - -> SuccessResponseAuthModelOut GetAuthModelAuthModelGet(ctx).Execute() - -Get Auth Model - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.GetAuthModelAuthModelGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.GetAuthModelAuthModelGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthModelAuthModelGet`: SuccessResponseAuthModelOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.GetAuthModelAuthModelGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetAuthModelAuthModelGetRequest struct via the builder pattern - - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ImpactAnalysisImpactAnalysisPost - -> SuccessResponseImpactAnalysisResponse ImpactAnalysisImpactAnalysisPost(ctx).ImpactAnalysisRequest(impactAnalysisRequest).Execute() - -Impact Analysis - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - impactAnalysisRequest := *openapiclient.NewImpactAnalysisRequest("PolicyChange_example") // ImpactAnalysisRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ImpactAnalysisImpactAnalysisPost(context.Background()).ImpactAnalysisRequest(impactAnalysisRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ImpactAnalysisImpactAnalysisPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImpactAnalysisImpactAnalysisPost`: SuccessResponseImpactAnalysisResponse - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ImpactAnalysisImpactAnalysisPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiImpactAnalysisImpactAnalysisPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListAclEntriesAclResourceTypeResourceIdGet - -> SuccessResponseListACLOut ListAclEntriesAclResourceTypeResourceIdGet(ctx, resourceType, resourceId).Execute() - -List Acl Entries - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - resourceType := "resourceType_example" // string | - resourceId := "resourceId_example" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet(context.Background(), resourceType, resourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAclEntriesAclResourceTypeResourceIdGet`: SuccessResponseListACLOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string** | | -**resourceId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListAclEntriesAclResourceTypeResourceIdGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListAuditLogsAuditGet - -> SuccessResponseListAuditRecordOut ListAuditLogsAuditGet(ctx).Limit(limit).Cursor(cursor).UserId(userId).ResourceId(resourceId).Decision(decision).StartTime(startTime).EndTime(endTime).Execute() - -List Audit Logs - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - limit := int32(56) // int32 | (optional) (default to 50) - cursor := "cursor_example" // string | (optional) - userId := "userId_example" // string | (optional) - resourceId := "resourceId_example" // string | (optional) - decision := "decision_example" // string | (optional) - startTime := time.Now() // time.Time | (optional) - endTime := time.Now() // time.Time | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListAuditLogsAuditGet(context.Background()).Limit(limit).Cursor(cursor).UserId(userId).ResourceId(resourceId).Decision(decision).StartTime(startTime).EndTime(endTime).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListAuditLogsAuditGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAuditLogsAuditGet`: SuccessResponseListAuditRecordOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListAuditLogsAuditGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListAuditLogsAuditGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int32** | | [default to 50] - **cursor** | **string** | | - **userId** | **string** | | - **resourceId** | **string** | | - **decision** | **string** | | - **startTime** | **time.Time** | | - **endTime** | **time.Time** | | - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListPermissionRolesPermissionsPermissionIdRolesGet - -> SuccessResponseListRoleOut ListPermissionRolesPermissionsPermissionIdRolesGet(ctx, permissionId).Execute() - -List Permission Roles - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - permissionId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet(context.Background(), permissionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPermissionRolesPermissionsPermissionIdRolesGet`: SuccessResponseListRoleOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**permissionId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListPermissionRolesPermissionsPermissionIdRolesGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListPermissionsPermissionsGet - -> SuccessResponseListPermissionOut ListPermissionsPermissionsGet(ctx).Limit(limit).Cursor(cursor).Execute() - -List Permissions - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - limit := int32(56) // int32 | (optional) (default to 50) - cursor := "cursor_example" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListPermissionsPermissionsGet(context.Background()).Limit(limit).Cursor(cursor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListPermissionsPermissionsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPermissionsPermissionsGet`: SuccessResponseListPermissionOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListPermissionsPermissionsGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListPermissionsPermissionsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int32** | | [default to 50] - **cursor** | **string** | | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListPoliciesPoliciesGet - -> SuccessResponseListPolicyOut ListPoliciesPoliciesGet(ctx).Limit(limit).Cursor(cursor).Execute() - -List Policies - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - limit := int32(56) // int32 | (optional) (default to 50) - cursor := "cursor_example" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListPoliciesPoliciesGet(context.Background()).Limit(limit).Cursor(cursor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListPoliciesPoliciesGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPoliciesPoliciesGet`: SuccessResponseListPolicyOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListPoliciesPoliciesGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListPoliciesPoliciesGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int32** | | [default to 50] - **cursor** | **string** | | - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListRelationshipsRelationshipsGet - -> SuccessResponseListDictStrStr ListRelationshipsRelationshipsGet(ctx).SubjectType(subjectType).SubjectId(subjectId).Limit(limit).Cursor(cursor).Execute() - -List Relationships - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - subjectType := "subjectType_example" // string | - subjectId := "subjectId_example" // string | - limit := int32(56) // int32 | (optional) (default to 50) - cursor := "cursor_example" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListRelationshipsRelationshipsGet(context.Background()).SubjectType(subjectType).SubjectId(subjectId).Limit(limit).Cursor(cursor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListRelationshipsRelationshipsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRelationshipsRelationshipsGet`: SuccessResponseListDictStrStr - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListRelationshipsRelationshipsGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListRelationshipsRelationshipsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **subjectType** | **string** | | - **subjectId** | **string** | | - **limit** | **int32** | | [default to 50] - **cursor** | **string** | | - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListRolePermissionsRolesRoleIdPermissionsGet - -> SuccessResponseListPermissionOut ListRolePermissionsRolesRoleIdPermissionsGet(ctx, roleId).Execute() - -List Role Permissions - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - roleId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet(context.Background(), roleId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRolePermissionsRolesRoleIdPermissionsGet`: SuccessResponseListPermissionOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roleId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiListRolePermissionsRolesRoleIdPermissionsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListRolesRolesGet - -> SuccessResponseListRoleOut ListRolesRolesGet(ctx).Limit(limit).Cursor(cursor).Execute() - -List Roles - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - limit := int32(56) // int32 | (optional) (default to 50) - cursor := "cursor_example" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.ListRolesRolesGet(context.Background()).Limit(limit).Cursor(cursor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.ListRolesRolesGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRolesRolesGet`: SuccessResponseListRoleOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.ListRolesRolesGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiListRolesRolesGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int32** | | [default to 50] - **cursor** | **string** | | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete - -> SuccessResponseDictStrInt RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(ctx, roleId, permissionId).Execute() - -Remove Permission From Role - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - roleId := int32(56) // int32 | - permissionId := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(context.Background(), roleId, permissionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete`: SuccessResponseDictStrInt - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roleId** | **int32** | | -**permissionId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiRemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## RollbackPolicyPoliciesPolicyKeyRollbackVersionPost - -> SuccessResponseDictStrUnionIntStr RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(ctx, policyKey, version).Execute() - -Rollback Policy - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - policyKey := "policyKey_example" // string | - version := int32(56) // int32 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(context.Background(), policyKey, version).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RollbackPolicyPoliciesPolicyKeyRollbackVersionPost`: SuccessResponseDictStrUnionIntStr - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**policyKey** | **string** | | -**version** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiRollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SimulatePolicySimulatePolicyPost - -> SuccessResponsePolicySimulationResponse SimulatePolicySimulatePolicyPost(ctx).PolicySimulationRequest(policySimulationRequest).Execute() - -Simulate Policy - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - policySimulationRequest := *openapiclient.NewPolicySimulationRequest() // PolicySimulationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.SimulatePolicySimulatePolicyPost(context.Background()).PolicySimulationRequest(policySimulationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.SimulatePolicySimulatePolicyPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SimulatePolicySimulatePolicyPost`: SuccessResponsePolicySimulationResponse - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.SimulatePolicySimulatePolicyPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSimulatePolicySimulatePolicyPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdatePermissionPermissionsPermissionIdPut - -> PermissionOut UpdatePermissionPermissionsPermissionIdPut(ctx, permissionId).PermissionUpdate(permissionUpdate).Execute() - -Update Permission - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - permissionId := int32(56) // int32 | - permissionUpdate := *openapiclient.NewPermissionUpdate("Action_example") // PermissionUpdate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.UpdatePermissionPermissionsPermissionIdPut(context.Background(), permissionId).PermissionUpdate(permissionUpdate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.UpdatePermissionPermissionsPermissionIdPut``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePermissionPermissionsPermissionIdPut`: PermissionOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.UpdatePermissionPermissionsPermissionIdPut`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**permissionId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdatePermissionPermissionsPermissionIdPutRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md) | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdatePolicyPoliciesPolicyKeyPut - -> SuccessResponsePolicyOut UpdatePolicyPoliciesPolicyKeyPut(ctx, policyKey).PolicyCreate(policyCreate).Execute() - -Update Policy - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - policyKey := "policyKey_example" // string | - policyCreate := *openapiclient.NewPolicyCreate("Action_example") // PolicyCreate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut(context.Background(), policyKey).PolicyCreate(policyCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePolicyPoliciesPolicyKeyPut`: SuccessResponsePolicyOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**policyKey** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdatePolicyPoliciesPolicyKeyPutRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateRoleRolesRoleIdPut - -> RoleOut UpdateRoleRolesRoleIdPut(ctx, roleId).RoleUpdate(roleUpdate).Execute() - -Update Role - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - roleId := int32(56) // int32 | - roleUpdate := *openapiclient.NewRoleUpdate("Name_example") // RoleUpdate | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagementAPI.UpdateRoleRolesRoleIdPut(context.Background(), roleId).RoleUpdate(roleUpdate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.UpdateRoleRolesRoleIdPut``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRoleRolesRoleIdPut`: RoleOut - fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.UpdateRoleRolesRoleIdPut`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roleId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateRoleRolesRoleIdPutRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **roleUpdate** | [**RoleUpdate**](RoleUpdate.md) | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdks/go/docs/MetaBody.md b/sdks/go/docs/MetaBody.md deleted file mode 100644 index f90c148..0000000 --- a/sdks/go/docs/MetaBody.md +++ /dev/null @@ -1,164 +0,0 @@ -# MetaBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RequestId** | Pointer to **NullableString** | | [optional] -**Limit** | Pointer to **NullableInt32** | | [optional] -**NextCursor** | Pointer to **NullableString** | | [optional] -**Extra** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewMetaBody - -`func NewMetaBody() *MetaBody` - -NewMetaBody instantiates a new MetaBody object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMetaBodyWithDefaults - -`func NewMetaBodyWithDefaults() *MetaBody` - -NewMetaBodyWithDefaults instantiates a new MetaBody object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRequestId - -`func (o *MetaBody) GetRequestId() string` - -GetRequestId returns the RequestId field if non-nil, zero value otherwise. - -### GetRequestIdOk - -`func (o *MetaBody) GetRequestIdOk() (*string, bool)` - -GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestId - -`func (o *MetaBody) SetRequestId(v string)` - -SetRequestId sets RequestId field to given value. - -### HasRequestId - -`func (o *MetaBody) HasRequestId() bool` - -HasRequestId returns a boolean if a field has been set. - -### SetRequestIdNil - -`func (o *MetaBody) SetRequestIdNil(b bool)` - - SetRequestIdNil sets the value for RequestId to be an explicit nil - -### UnsetRequestId -`func (o *MetaBody) UnsetRequestId()` - -UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil -### GetLimit - -`func (o *MetaBody) GetLimit() int32` - -GetLimit returns the Limit field if non-nil, zero value otherwise. - -### GetLimitOk - -`func (o *MetaBody) GetLimitOk() (*int32, bool)` - -GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLimit - -`func (o *MetaBody) SetLimit(v int32)` - -SetLimit sets Limit field to given value. - -### HasLimit - -`func (o *MetaBody) HasLimit() bool` - -HasLimit returns a boolean if a field has been set. - -### SetLimitNil - -`func (o *MetaBody) SetLimitNil(b bool)` - - SetLimitNil sets the value for Limit to be an explicit nil - -### UnsetLimit -`func (o *MetaBody) UnsetLimit()` - -UnsetLimit ensures that no value is present for Limit, not even an explicit nil -### GetNextCursor - -`func (o *MetaBody) GetNextCursor() string` - -GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. - -### GetNextCursorOk - -`func (o *MetaBody) GetNextCursorOk() (*string, bool)` - -GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNextCursor - -`func (o *MetaBody) SetNextCursor(v string)` - -SetNextCursor sets NextCursor field to given value. - -### HasNextCursor - -`func (o *MetaBody) HasNextCursor() bool` - -HasNextCursor returns a boolean if a field has been set. - -### SetNextCursorNil - -`func (o *MetaBody) SetNextCursorNil(b bool)` - - SetNextCursorNil sets the value for NextCursor to be an explicit nil - -### UnsetNextCursor -`func (o *MetaBody) UnsetNextCursor()` - -UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil -### GetExtra - -`func (o *MetaBody) GetExtra() map[string]interface{}` - -GetExtra returns the Extra field if non-nil, zero value otherwise. - -### GetExtraOk - -`func (o *MetaBody) GetExtraOk() (*map[string]interface{}, bool)` - -GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExtra - -`func (o *MetaBody) SetExtra(v map[string]interface{})` - -SetExtra sets Extra field to given value. - -### HasExtra - -`func (o *MetaBody) HasExtra() bool` - -HasExtra returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PermissionCreate.md b/sdks/go/docs/PermissionCreate.md deleted file mode 100644 index 56e0302..0000000 --- a/sdks/go/docs/PermissionCreate.md +++ /dev/null @@ -1,51 +0,0 @@ -# PermissionCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | - -## Methods - -### NewPermissionCreate - -`func NewPermissionCreate(action string, ) *PermissionCreate` - -NewPermissionCreate instantiates a new PermissionCreate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPermissionCreateWithDefaults - -`func NewPermissionCreateWithDefaults() *PermissionCreate` - -NewPermissionCreateWithDefaults instantiates a new PermissionCreate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *PermissionCreate) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PermissionCreate) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PermissionCreate) SetAction(v string)` - -SetAction sets Action field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PermissionOut.md b/sdks/go/docs/PermissionOut.md deleted file mode 100644 index d05a851..0000000 --- a/sdks/go/docs/PermissionOut.md +++ /dev/null @@ -1,72 +0,0 @@ -# PermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int32** | | -**Action** | **string** | | - -## Methods - -### NewPermissionOut - -`func NewPermissionOut(id int32, action string, ) *PermissionOut` - -NewPermissionOut instantiates a new PermissionOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPermissionOutWithDefaults - -`func NewPermissionOutWithDefaults() *PermissionOut` - -NewPermissionOutWithDefaults instantiates a new PermissionOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *PermissionOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *PermissionOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *PermissionOut) SetId(v int32)` - -SetId sets Id field to given value. - - -### GetAction - -`func (o *PermissionOut) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PermissionOut) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PermissionOut) SetAction(v string)` - -SetAction sets Action field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PermissionUpdate.md b/sdks/go/docs/PermissionUpdate.md deleted file mode 100644 index acbc232..0000000 --- a/sdks/go/docs/PermissionUpdate.md +++ /dev/null @@ -1,51 +0,0 @@ -# PermissionUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | - -## Methods - -### NewPermissionUpdate - -`func NewPermissionUpdate(action string, ) *PermissionUpdate` - -NewPermissionUpdate instantiates a new PermissionUpdate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPermissionUpdateWithDefaults - -`func NewPermissionUpdateWithDefaults() *PermissionUpdate` - -NewPermissionUpdateWithDefaults instantiates a new PermissionUpdate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *PermissionUpdate) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PermissionUpdate) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PermissionUpdate) SetAction(v string)` - -SetAction sets Action field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PlaygroundAPI.md b/sdks/go/docs/PlaygroundAPI.md deleted file mode 100644 index 8a56b8b..0000000 --- a/sdks/go/docs/PlaygroundAPI.md +++ /dev/null @@ -1,73 +0,0 @@ -# \PlaygroundAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**EvaluatePlaygroundEvaluatePost**](PlaygroundAPI.md#EvaluatePlaygroundEvaluatePost) | **Post** /playground/evaluate | Evaluate - - - -## EvaluatePlaygroundEvaluatePost - -> SuccessResponseDictStrAny EvaluatePlaygroundEvaluatePost(ctx).PlaygroundEvaluateRequest(playgroundEvaluateRequest).Execute() - -Evaluate - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - playgroundEvaluateRequest := *openapiclient.NewPlaygroundEvaluateRequest([]openapiclient.PlaygroundPolicy{*openapiclient.NewPlaygroundPolicy("Action_example")}, *openapiclient.NewPlaygroundInput()) // PlaygroundEvaluateRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PlaygroundAPI.EvaluatePlaygroundEvaluatePost(context.Background()).PlaygroundEvaluateRequest(playgroundEvaluateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PlaygroundAPI.EvaluatePlaygroundEvaluatePost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EvaluatePlaygroundEvaluatePost`: SuccessResponseDictStrAny - fmt.Fprintf(os.Stdout, "Response from `PlaygroundAPI.EvaluatePlaygroundEvaluatePost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiEvaluatePlaygroundEvaluatePostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/sdks/go/docs/PlaygroundEvaluateRequest.md b/sdks/go/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index d878812..0000000 --- a/sdks/go/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# PlaygroundEvaluateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Policies** | [**[]PlaygroundPolicy**](PlaygroundPolicy.md) | | -**Input** | [**PlaygroundInput**](PlaygroundInput.md) | | - -## Methods - -### NewPlaygroundEvaluateRequest - -`func NewPlaygroundEvaluateRequest(policies []PlaygroundPolicy, input PlaygroundInput, ) *PlaygroundEvaluateRequest` - -NewPlaygroundEvaluateRequest instantiates a new PlaygroundEvaluateRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPlaygroundEvaluateRequestWithDefaults - -`func NewPlaygroundEvaluateRequestWithDefaults() *PlaygroundEvaluateRequest` - -NewPlaygroundEvaluateRequestWithDefaults instantiates a new PlaygroundEvaluateRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPolicies - -`func (o *PlaygroundEvaluateRequest) GetPolicies() []PlaygroundPolicy` - -GetPolicies returns the Policies field if non-nil, zero value otherwise. - -### GetPoliciesOk - -`func (o *PlaygroundEvaluateRequest) GetPoliciesOk() (*[]PlaygroundPolicy, bool)` - -GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPolicies - -`func (o *PlaygroundEvaluateRequest) SetPolicies(v []PlaygroundPolicy)` - -SetPolicies sets Policies field to given value. - - -### GetInput - -`func (o *PlaygroundEvaluateRequest) GetInput() PlaygroundInput` - -GetInput returns the Input field if non-nil, zero value otherwise. - -### GetInputOk - -`func (o *PlaygroundEvaluateRequest) GetInputOk() (*PlaygroundInput, bool)` - -GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInput - -`func (o *PlaygroundEvaluateRequest) SetInput(v PlaygroundInput)` - -SetInput sets Input field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PlaygroundInput.md b/sdks/go/docs/PlaygroundInput.md deleted file mode 100644 index d7ca98c..0000000 --- a/sdks/go/docs/PlaygroundInput.md +++ /dev/null @@ -1,134 +0,0 @@ -# PlaygroundInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**User** | Pointer to **map[string]interface{}** | | [optional] -**Resource** | Pointer to **map[string]interface{}** | | [optional] -**Action** | Pointer to **string** | | [optional] [default to ""] -**Context** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewPlaygroundInput - -`func NewPlaygroundInput() *PlaygroundInput` - -NewPlaygroundInput instantiates a new PlaygroundInput object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPlaygroundInputWithDefaults - -`func NewPlaygroundInputWithDefaults() *PlaygroundInput` - -NewPlaygroundInputWithDefaults instantiates a new PlaygroundInput object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetUser - -`func (o *PlaygroundInput) GetUser() map[string]interface{}` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *PlaygroundInput) GetUserOk() (*map[string]interface{}, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *PlaygroundInput) SetUser(v map[string]interface{})` - -SetUser sets User field to given value. - -### HasUser - -`func (o *PlaygroundInput) HasUser() bool` - -HasUser returns a boolean if a field has been set. - -### GetResource - -`func (o *PlaygroundInput) GetResource() map[string]interface{}` - -GetResource returns the Resource field if non-nil, zero value otherwise. - -### GetResourceOk - -`func (o *PlaygroundInput) GetResourceOk() (*map[string]interface{}, bool)` - -GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResource - -`func (o *PlaygroundInput) SetResource(v map[string]interface{})` - -SetResource sets Resource field to given value. - -### HasResource - -`func (o *PlaygroundInput) HasResource() bool` - -HasResource returns a boolean if a field has been set. - -### GetAction - -`func (o *PlaygroundInput) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PlaygroundInput) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PlaygroundInput) SetAction(v string)` - -SetAction sets Action field to given value. - -### HasAction - -`func (o *PlaygroundInput) HasAction() bool` - -HasAction returns a boolean if a field has been set. - -### GetContext - -`func (o *PlaygroundInput) GetContext() map[string]interface{}` - -GetContext returns the Context field if non-nil, zero value otherwise. - -### GetContextOk - -`func (o *PlaygroundInput) GetContextOk() (*map[string]interface{}, bool)` - -GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContext - -`func (o *PlaygroundInput) SetContext(v map[string]interface{})` - -SetContext sets Context field to given value. - -### HasContext - -`func (o *PlaygroundInput) HasContext() bool` - -HasContext returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PlaygroundPolicy.md b/sdks/go/docs/PlaygroundPolicy.md deleted file mode 100644 index ebda56c..0000000 --- a/sdks/go/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,165 +0,0 @@ -# PlaygroundPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Effect** | Pointer to **string** | | [optional] [default to "allow"] -**Priority** | Pointer to **int32** | | [optional] [default to 100] -**PolicyId** | Pointer to **NullableString** | | [optional] -**Conditions** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewPlaygroundPolicy - -`func NewPlaygroundPolicy(action string, ) *PlaygroundPolicy` - -NewPlaygroundPolicy instantiates a new PlaygroundPolicy object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPlaygroundPolicyWithDefaults - -`func NewPlaygroundPolicyWithDefaults() *PlaygroundPolicy` - -NewPlaygroundPolicyWithDefaults instantiates a new PlaygroundPolicy object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *PlaygroundPolicy) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PlaygroundPolicy) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PlaygroundPolicy) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetEffect - -`func (o *PlaygroundPolicy) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *PlaygroundPolicy) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *PlaygroundPolicy) SetEffect(v string)` - -SetEffect sets Effect field to given value. - -### HasEffect - -`func (o *PlaygroundPolicy) HasEffect() bool` - -HasEffect returns a boolean if a field has been set. - -### GetPriority - -`func (o *PlaygroundPolicy) GetPriority() int32` - -GetPriority returns the Priority field if non-nil, zero value otherwise. - -### GetPriorityOk - -`func (o *PlaygroundPolicy) GetPriorityOk() (*int32, bool)` - -GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPriority - -`func (o *PlaygroundPolicy) SetPriority(v int32)` - -SetPriority sets Priority field to given value. - -### HasPriority - -`func (o *PlaygroundPolicy) HasPriority() bool` - -HasPriority returns a boolean if a field has been set. - -### GetPolicyId - -`func (o *PlaygroundPolicy) GetPolicyId() string` - -GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. - -### GetPolicyIdOk - -`func (o *PlaygroundPolicy) GetPolicyIdOk() (*string, bool)` - -GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPolicyId - -`func (o *PlaygroundPolicy) SetPolicyId(v string)` - -SetPolicyId sets PolicyId field to given value. - -### HasPolicyId - -`func (o *PlaygroundPolicy) HasPolicyId() bool` - -HasPolicyId returns a boolean if a field has been set. - -### SetPolicyIdNil - -`func (o *PlaygroundPolicy) SetPolicyIdNil(b bool)` - - SetPolicyIdNil sets the value for PolicyId to be an explicit nil - -### UnsetPolicyId -`func (o *PlaygroundPolicy) UnsetPolicyId()` - -UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil -### GetConditions - -`func (o *PlaygroundPolicy) GetConditions() map[string]interface{}` - -GetConditions returns the Conditions field if non-nil, zero value otherwise. - -### GetConditionsOk - -`func (o *PlaygroundPolicy) GetConditionsOk() (*map[string]interface{}, bool)` - -GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConditions - -`func (o *PlaygroundPolicy) SetConditions(v map[string]interface{})` - -SetConditions sets Conditions field to given value. - -### HasConditions - -`func (o *PlaygroundPolicy) HasConditions() bool` - -HasConditions returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PolicyCreate.md b/sdks/go/docs/PolicyCreate.md deleted file mode 100644 index 7816b34..0000000 --- a/sdks/go/docs/PolicyCreate.md +++ /dev/null @@ -1,155 +0,0 @@ -# PolicyCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | **string** | | -**Effect** | Pointer to **string** | | [optional] [default to "allow"] -**Priority** | Pointer to **int32** | | [optional] [default to 100] -**State** | Pointer to **string** | | [optional] [default to "active"] -**Conditions** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewPolicyCreate - -`func NewPolicyCreate(action string, ) *PolicyCreate` - -NewPolicyCreate instantiates a new PolicyCreate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPolicyCreateWithDefaults - -`func NewPolicyCreateWithDefaults() *PolicyCreate` - -NewPolicyCreateWithDefaults instantiates a new PolicyCreate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *PolicyCreate) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PolicyCreate) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PolicyCreate) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetEffect - -`func (o *PolicyCreate) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *PolicyCreate) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *PolicyCreate) SetEffect(v string)` - -SetEffect sets Effect field to given value. - -### HasEffect - -`func (o *PolicyCreate) HasEffect() bool` - -HasEffect returns a boolean if a field has been set. - -### GetPriority - -`func (o *PolicyCreate) GetPriority() int32` - -GetPriority returns the Priority field if non-nil, zero value otherwise. - -### GetPriorityOk - -`func (o *PolicyCreate) GetPriorityOk() (*int32, bool)` - -GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPriority - -`func (o *PolicyCreate) SetPriority(v int32)` - -SetPriority sets Priority field to given value. - -### HasPriority - -`func (o *PolicyCreate) HasPriority() bool` - -HasPriority returns a boolean if a field has been set. - -### GetState - -`func (o *PolicyCreate) GetState() string` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *PolicyCreate) GetStateOk() (*string, bool)` - -GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetState - -`func (o *PolicyCreate) SetState(v string)` - -SetState sets State field to given value. - -### HasState - -`func (o *PolicyCreate) HasState() bool` - -HasState returns a boolean if a field has been set. - -### GetConditions - -`func (o *PolicyCreate) GetConditions() map[string]interface{}` - -GetConditions returns the Conditions field if non-nil, zero value otherwise. - -### GetConditionsOk - -`func (o *PolicyCreate) GetConditionsOk() (*map[string]interface{}, bool)` - -GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConditions - -`func (o *PolicyCreate) SetConditions(v map[string]interface{})` - -SetConditions sets Conditions field to given value. - -### HasConditions - -`func (o *PolicyCreate) HasConditions() bool` - -HasConditions returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PolicyOut.md b/sdks/go/docs/PolicyOut.md deleted file mode 100644 index baa7d6a..0000000 --- a/sdks/go/docs/PolicyOut.md +++ /dev/null @@ -1,161 +0,0 @@ -# PolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int32** | | -**Action** | **string** | | -**Effect** | **string** | | -**Priority** | **int32** | | -**State** | Pointer to **string** | | [optional] [default to "active"] -**Conditions** | **map[string]interface{}** | | - -## Methods - -### NewPolicyOut - -`func NewPolicyOut(id int32, action string, effect string, priority int32, conditions map[string]interface{}, ) *PolicyOut` - -NewPolicyOut instantiates a new PolicyOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPolicyOutWithDefaults - -`func NewPolicyOutWithDefaults() *PolicyOut` - -NewPolicyOutWithDefaults instantiates a new PolicyOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *PolicyOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *PolicyOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *PolicyOut) SetId(v int32)` - -SetId sets Id field to given value. - - -### GetAction - -`func (o *PolicyOut) GetAction() string` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *PolicyOut) GetActionOk() (*string, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *PolicyOut) SetAction(v string)` - -SetAction sets Action field to given value. - - -### GetEffect - -`func (o *PolicyOut) GetEffect() string` - -GetEffect returns the Effect field if non-nil, zero value otherwise. - -### GetEffectOk - -`func (o *PolicyOut) GetEffectOk() (*string, bool)` - -GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEffect - -`func (o *PolicyOut) SetEffect(v string)` - -SetEffect sets Effect field to given value. - - -### GetPriority - -`func (o *PolicyOut) GetPriority() int32` - -GetPriority returns the Priority field if non-nil, zero value otherwise. - -### GetPriorityOk - -`func (o *PolicyOut) GetPriorityOk() (*int32, bool)` - -GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPriority - -`func (o *PolicyOut) SetPriority(v int32)` - -SetPriority sets Priority field to given value. - - -### GetState - -`func (o *PolicyOut) GetState() string` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *PolicyOut) GetStateOk() (*string, bool)` - -GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetState - -`func (o *PolicyOut) SetState(v string)` - -SetState sets State field to given value. - -### HasState - -`func (o *PolicyOut) HasState() bool` - -HasState returns a boolean if a field has been set. - -### GetConditions - -`func (o *PolicyOut) GetConditions() map[string]interface{}` - -GetConditions returns the Conditions field if non-nil, zero value otherwise. - -### GetConditionsOk - -`func (o *PolicyOut) GetConditionsOk() (*map[string]interface{}, bool)` - -GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConditions - -`func (o *PolicyOut) SetConditions(v map[string]interface{})` - -SetConditions sets Conditions field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PolicySimulationInput.md b/sdks/go/docs/PolicySimulationInput.md deleted file mode 100644 index 63fe6be..0000000 --- a/sdks/go/docs/PolicySimulationInput.md +++ /dev/null @@ -1,138 +0,0 @@ -# PolicySimulationInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PolicyChange** | Pointer to **NullableString** | | [optional] -**RelationshipChange** | Pointer to **map[string]interface{}** | | [optional] -**RoleChange** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewPolicySimulationInput - -`func NewPolicySimulationInput() *PolicySimulationInput` - -NewPolicySimulationInput instantiates a new PolicySimulationInput object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPolicySimulationInputWithDefaults - -`func NewPolicySimulationInputWithDefaults() *PolicySimulationInput` - -NewPolicySimulationInputWithDefaults instantiates a new PolicySimulationInput object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPolicyChange - -`func (o *PolicySimulationInput) GetPolicyChange() string` - -GetPolicyChange returns the PolicyChange field if non-nil, zero value otherwise. - -### GetPolicyChangeOk - -`func (o *PolicySimulationInput) GetPolicyChangeOk() (*string, bool)` - -GetPolicyChangeOk returns a tuple with the PolicyChange field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPolicyChange - -`func (o *PolicySimulationInput) SetPolicyChange(v string)` - -SetPolicyChange sets PolicyChange field to given value. - -### HasPolicyChange - -`func (o *PolicySimulationInput) HasPolicyChange() bool` - -HasPolicyChange returns a boolean if a field has been set. - -### SetPolicyChangeNil - -`func (o *PolicySimulationInput) SetPolicyChangeNil(b bool)` - - SetPolicyChangeNil sets the value for PolicyChange to be an explicit nil - -### UnsetPolicyChange -`func (o *PolicySimulationInput) UnsetPolicyChange()` - -UnsetPolicyChange ensures that no value is present for PolicyChange, not even an explicit nil -### GetRelationshipChange - -`func (o *PolicySimulationInput) GetRelationshipChange() map[string]interface{}` - -GetRelationshipChange returns the RelationshipChange field if non-nil, zero value otherwise. - -### GetRelationshipChangeOk - -`func (o *PolicySimulationInput) GetRelationshipChangeOk() (*map[string]interface{}, bool)` - -GetRelationshipChangeOk returns a tuple with the RelationshipChange field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationshipChange - -`func (o *PolicySimulationInput) SetRelationshipChange(v map[string]interface{})` - -SetRelationshipChange sets RelationshipChange field to given value. - -### HasRelationshipChange - -`func (o *PolicySimulationInput) HasRelationshipChange() bool` - -HasRelationshipChange returns a boolean if a field has been set. - -### SetRelationshipChangeNil - -`func (o *PolicySimulationInput) SetRelationshipChangeNil(b bool)` - - SetRelationshipChangeNil sets the value for RelationshipChange to be an explicit nil - -### UnsetRelationshipChange -`func (o *PolicySimulationInput) UnsetRelationshipChange()` - -UnsetRelationshipChange ensures that no value is present for RelationshipChange, not even an explicit nil -### GetRoleChange - -`func (o *PolicySimulationInput) GetRoleChange() map[string]interface{}` - -GetRoleChange returns the RoleChange field if non-nil, zero value otherwise. - -### GetRoleChangeOk - -`func (o *PolicySimulationInput) GetRoleChangeOk() (*map[string]interface{}, bool)` - -GetRoleChangeOk returns a tuple with the RoleChange field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRoleChange - -`func (o *PolicySimulationInput) SetRoleChange(v map[string]interface{})` - -SetRoleChange sets RoleChange field to given value. - -### HasRoleChange - -`func (o *PolicySimulationInput) HasRoleChange() bool` - -HasRoleChange returns a boolean if a field has been set. - -### SetRoleChangeNil - -`func (o *PolicySimulationInput) SetRoleChangeNil(b bool)` - - SetRoleChangeNil sets the value for RoleChange to be an explicit nil - -### UnsetRoleChange -`func (o *PolicySimulationInput) UnsetRoleChange()` - -UnsetRoleChange ensures that no value is present for RoleChange, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PolicySimulationRequest.md b/sdks/go/docs/PolicySimulationRequest.md deleted file mode 100644 index dfb37e9..0000000 --- a/sdks/go/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# PolicySimulationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Simulate** | Pointer to [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] -**Request** | Pointer to **map[string]interface{}** | | [optional] - -## Methods - -### NewPolicySimulationRequest - -`func NewPolicySimulationRequest() *PolicySimulationRequest` - -NewPolicySimulationRequest instantiates a new PolicySimulationRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPolicySimulationRequestWithDefaults - -`func NewPolicySimulationRequestWithDefaults() *PolicySimulationRequest` - -NewPolicySimulationRequestWithDefaults instantiates a new PolicySimulationRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSimulate - -`func (o *PolicySimulationRequest) GetSimulate() PolicySimulationInput` - -GetSimulate returns the Simulate field if non-nil, zero value otherwise. - -### GetSimulateOk - -`func (o *PolicySimulationRequest) GetSimulateOk() (*PolicySimulationInput, bool)` - -GetSimulateOk returns a tuple with the Simulate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSimulate - -`func (o *PolicySimulationRequest) SetSimulate(v PolicySimulationInput)` - -SetSimulate sets Simulate field to given value. - -### HasSimulate - -`func (o *PolicySimulationRequest) HasSimulate() bool` - -HasSimulate returns a boolean if a field has been set. - -### GetRequest - -`func (o *PolicySimulationRequest) GetRequest() map[string]interface{}` - -GetRequest returns the Request field if non-nil, zero value otherwise. - -### GetRequestOk - -`func (o *PolicySimulationRequest) GetRequestOk() (*map[string]interface{}, bool)` - -GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequest - -`func (o *PolicySimulationRequest) SetRequest(v map[string]interface{})` - -SetRequest sets Request field to given value. - -### HasRequest - -`func (o *PolicySimulationRequest) HasRequest() bool` - -HasRequest returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/PolicySimulationResponse.md b/sdks/go/docs/PolicySimulationResponse.md deleted file mode 100644 index 5b0ea8a..0000000 --- a/sdks/go/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# PolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DecisionBefore** | **map[string]interface{}** | | -**DecisionAfter** | **map[string]interface{}** | | - -## Methods - -### NewPolicySimulationResponse - -`func NewPolicySimulationResponse(decisionBefore map[string]interface{}, decisionAfter map[string]interface{}, ) *PolicySimulationResponse` - -NewPolicySimulationResponse instantiates a new PolicySimulationResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPolicySimulationResponseWithDefaults - -`func NewPolicySimulationResponseWithDefaults() *PolicySimulationResponse` - -NewPolicySimulationResponseWithDefaults instantiates a new PolicySimulationResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDecisionBefore - -`func (o *PolicySimulationResponse) GetDecisionBefore() map[string]interface{}` - -GetDecisionBefore returns the DecisionBefore field if non-nil, zero value otherwise. - -### GetDecisionBeforeOk - -`func (o *PolicySimulationResponse) GetDecisionBeforeOk() (*map[string]interface{}, bool)` - -GetDecisionBeforeOk returns a tuple with the DecisionBefore field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecisionBefore - -`func (o *PolicySimulationResponse) SetDecisionBefore(v map[string]interface{})` - -SetDecisionBefore sets DecisionBefore field to given value. - - -### GetDecisionAfter - -`func (o *PolicySimulationResponse) GetDecisionAfter() map[string]interface{}` - -GetDecisionAfter returns the DecisionAfter field if non-nil, zero value otherwise. - -### GetDecisionAfterOk - -`func (o *PolicySimulationResponse) GetDecisionAfterOk() (*map[string]interface{}, bool)` - -GetDecisionAfterOk returns a tuple with the DecisionAfter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecisionAfter - -`func (o *PolicySimulationResponse) SetDecisionAfter(v map[string]interface{})` - -SetDecisionAfter sets DecisionAfter field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/RelationshipCreate.md b/sdks/go/docs/RelationshipCreate.md deleted file mode 100644 index 703e38a..0000000 --- a/sdks/go/docs/RelationshipCreate.md +++ /dev/null @@ -1,135 +0,0 @@ -# RelationshipCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**Relation** | **string** | | -**ObjectType** | **string** | | -**ObjectId** | **string** | | - -## Methods - -### NewRelationshipCreate - -`func NewRelationshipCreate(subjectType string, subjectId string, relation string, objectType string, objectId string, ) *RelationshipCreate` - -NewRelationshipCreate instantiates a new RelationshipCreate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRelationshipCreateWithDefaults - -`func NewRelationshipCreateWithDefaults() *RelationshipCreate` - -NewRelationshipCreateWithDefaults instantiates a new RelationshipCreate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSubjectType - -`func (o *RelationshipCreate) GetSubjectType() string` - -GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. - -### GetSubjectTypeOk - -`func (o *RelationshipCreate) GetSubjectTypeOk() (*string, bool)` - -GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectType - -`func (o *RelationshipCreate) SetSubjectType(v string)` - -SetSubjectType sets SubjectType field to given value. - - -### GetSubjectId - -`func (o *RelationshipCreate) GetSubjectId() string` - -GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. - -### GetSubjectIdOk - -`func (o *RelationshipCreate) GetSubjectIdOk() (*string, bool)` - -GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectId - -`func (o *RelationshipCreate) SetSubjectId(v string)` - -SetSubjectId sets SubjectId field to given value. - - -### GetRelation - -`func (o *RelationshipCreate) GetRelation() string` - -GetRelation returns the Relation field if non-nil, zero value otherwise. - -### GetRelationOk - -`func (o *RelationshipCreate) GetRelationOk() (*string, bool)` - -GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelation - -`func (o *RelationshipCreate) SetRelation(v string)` - -SetRelation sets Relation field to given value. - - -### GetObjectType - -`func (o *RelationshipCreate) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *RelationshipCreate) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *RelationshipCreate) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetObjectId - -`func (o *RelationshipCreate) GetObjectId() string` - -GetObjectId returns the ObjectId field if non-nil, zero value otherwise. - -### GetObjectIdOk - -`func (o *RelationshipCreate) GetObjectIdOk() (*string, bool)` - -GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectId - -`func (o *RelationshipCreate) SetObjectId(v string)` - -SetObjectId sets ObjectId field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/RelationshipOut.md b/sdks/go/docs/RelationshipOut.md deleted file mode 100644 index b7195d6..0000000 --- a/sdks/go/docs/RelationshipOut.md +++ /dev/null @@ -1,156 +0,0 @@ -# RelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SubjectType** | **string** | | -**SubjectId** | **string** | | -**Relation** | **string** | | -**ObjectType** | **string** | | -**ObjectId** | **string** | | -**Id** | **int32** | | - -## Methods - -### NewRelationshipOut - -`func NewRelationshipOut(subjectType string, subjectId string, relation string, objectType string, objectId string, id int32, ) *RelationshipOut` - -NewRelationshipOut instantiates a new RelationshipOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRelationshipOutWithDefaults - -`func NewRelationshipOutWithDefaults() *RelationshipOut` - -NewRelationshipOutWithDefaults instantiates a new RelationshipOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSubjectType - -`func (o *RelationshipOut) GetSubjectType() string` - -GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. - -### GetSubjectTypeOk - -`func (o *RelationshipOut) GetSubjectTypeOk() (*string, bool)` - -GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectType - -`func (o *RelationshipOut) SetSubjectType(v string)` - -SetSubjectType sets SubjectType field to given value. - - -### GetSubjectId - -`func (o *RelationshipOut) GetSubjectId() string` - -GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. - -### GetSubjectIdOk - -`func (o *RelationshipOut) GetSubjectIdOk() (*string, bool)` - -GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubjectId - -`func (o *RelationshipOut) SetSubjectId(v string)` - -SetSubjectId sets SubjectId field to given value. - - -### GetRelation - -`func (o *RelationshipOut) GetRelation() string` - -GetRelation returns the Relation field if non-nil, zero value otherwise. - -### GetRelationOk - -`func (o *RelationshipOut) GetRelationOk() (*string, bool)` - -GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelation - -`func (o *RelationshipOut) SetRelation(v string)` - -SetRelation sets Relation field to given value. - - -### GetObjectType - -`func (o *RelationshipOut) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *RelationshipOut) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *RelationshipOut) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetObjectId - -`func (o *RelationshipOut) GetObjectId() string` - -GetObjectId returns the ObjectId field if non-nil, zero value otherwise. - -### GetObjectIdOk - -`func (o *RelationshipOut) GetObjectIdOk() (*string, bool)` - -GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectId - -`func (o *RelationshipOut) SetObjectId(v string)` - -SetObjectId sets ObjectId field to given value. - - -### GetId - -`func (o *RelationshipOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *RelationshipOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *RelationshipOut) SetId(v int32)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/RoleCreate.md b/sdks/go/docs/RoleCreate.md deleted file mode 100644 index 8ae2855..0000000 --- a/sdks/go/docs/RoleCreate.md +++ /dev/null @@ -1,51 +0,0 @@ -# RoleCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | - -## Methods - -### NewRoleCreate - -`func NewRoleCreate(name string, ) *RoleCreate` - -NewRoleCreate instantiates a new RoleCreate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRoleCreateWithDefaults - -`func NewRoleCreateWithDefaults() *RoleCreate` - -NewRoleCreateWithDefaults instantiates a new RoleCreate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *RoleCreate) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *RoleCreate) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *RoleCreate) SetName(v string)` - -SetName sets Name field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/RoleOut.md b/sdks/go/docs/RoleOut.md deleted file mode 100644 index a0ac5fb..0000000 --- a/sdks/go/docs/RoleOut.md +++ /dev/null @@ -1,72 +0,0 @@ -# RoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int32** | | -**Name** | **string** | | - -## Methods - -### NewRoleOut - -`func NewRoleOut(id int32, name string, ) *RoleOut` - -NewRoleOut instantiates a new RoleOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRoleOutWithDefaults - -`func NewRoleOutWithDefaults() *RoleOut` - -NewRoleOutWithDefaults instantiates a new RoleOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *RoleOut) GetId() int32` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *RoleOut) GetIdOk() (*int32, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *RoleOut) SetId(v int32)` - -SetId sets Id field to given value. - - -### GetName - -`func (o *RoleOut) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *RoleOut) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *RoleOut) SetName(v string)` - -SetName sets Name field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/RoleUpdate.md b/sdks/go/docs/RoleUpdate.md deleted file mode 100644 index 0aca4db..0000000 --- a/sdks/go/docs/RoleUpdate.md +++ /dev/null @@ -1,51 +0,0 @@ -# RoleUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | - -## Methods - -### NewRoleUpdate - -`func NewRoleUpdate(name string, ) *RoleUpdate` - -NewRoleUpdate instantiates a new RoleUpdate object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRoleUpdateWithDefaults - -`func NewRoleUpdateWithDefaults() *RoleUpdate` - -NewRoleUpdateWithDefaults instantiates a new RoleUpdate object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *RoleUpdate) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *RoleUpdate) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *RoleUpdate) SetName(v string)` - -SetName sets Name field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SimulationResponse.md b/sdks/go/docs/SimulationResponse.md deleted file mode 100644 index 540de8e..0000000 --- a/sdks/go/docs/SimulationResponse.md +++ /dev/null @@ -1,232 +0,0 @@ -# SimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Decision** | **string** | | -**MatchedPolicies** | **[]string** | | -**Reason** | Pointer to **NullableString** | | [optional] -**PolicyId** | Pointer to **NullableString** | | [optional] -**ExplainTrace** | Pointer to **[]map[string]interface{}** | | [optional] -**FailedConditions** | Pointer to **[]string** | | [optional] -**Revision** | Pointer to **NullableInt32** | | [optional] - -## Methods - -### NewSimulationResponse - -`func NewSimulationResponse(decision string, matchedPolicies []string, ) *SimulationResponse` - -NewSimulationResponse instantiates a new SimulationResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSimulationResponseWithDefaults - -`func NewSimulationResponseWithDefaults() *SimulationResponse` - -NewSimulationResponseWithDefaults instantiates a new SimulationResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDecision - -`func (o *SimulationResponse) GetDecision() string` - -GetDecision returns the Decision field if non-nil, zero value otherwise. - -### GetDecisionOk - -`func (o *SimulationResponse) GetDecisionOk() (*string, bool)` - -GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecision - -`func (o *SimulationResponse) SetDecision(v string)` - -SetDecision sets Decision field to given value. - - -### GetMatchedPolicies - -`func (o *SimulationResponse) GetMatchedPolicies() []string` - -GetMatchedPolicies returns the MatchedPolicies field if non-nil, zero value otherwise. - -### GetMatchedPoliciesOk - -`func (o *SimulationResponse) GetMatchedPoliciesOk() (*[]string, bool)` - -GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatchedPolicies - -`func (o *SimulationResponse) SetMatchedPolicies(v []string)` - -SetMatchedPolicies sets MatchedPolicies field to given value. - - -### GetReason - -`func (o *SimulationResponse) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *SimulationResponse) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *SimulationResponse) SetReason(v string)` - -SetReason sets Reason field to given value. - -### HasReason - -`func (o *SimulationResponse) HasReason() bool` - -HasReason returns a boolean if a field has been set. - -### SetReasonNil - -`func (o *SimulationResponse) SetReasonNil(b bool)` - - SetReasonNil sets the value for Reason to be an explicit nil - -### UnsetReason -`func (o *SimulationResponse) UnsetReason()` - -UnsetReason ensures that no value is present for Reason, not even an explicit nil -### GetPolicyId - -`func (o *SimulationResponse) GetPolicyId() string` - -GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. - -### GetPolicyIdOk - -`func (o *SimulationResponse) GetPolicyIdOk() (*string, bool)` - -GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPolicyId - -`func (o *SimulationResponse) SetPolicyId(v string)` - -SetPolicyId sets PolicyId field to given value. - -### HasPolicyId - -`func (o *SimulationResponse) HasPolicyId() bool` - -HasPolicyId returns a boolean if a field has been set. - -### SetPolicyIdNil - -`func (o *SimulationResponse) SetPolicyIdNil(b bool)` - - SetPolicyIdNil sets the value for PolicyId to be an explicit nil - -### UnsetPolicyId -`func (o *SimulationResponse) UnsetPolicyId()` - -UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil -### GetExplainTrace - -`func (o *SimulationResponse) GetExplainTrace() []map[string]interface{}` - -GetExplainTrace returns the ExplainTrace field if non-nil, zero value otherwise. - -### GetExplainTraceOk - -`func (o *SimulationResponse) GetExplainTraceOk() (*[]map[string]interface{}, bool)` - -GetExplainTraceOk returns a tuple with the ExplainTrace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExplainTrace - -`func (o *SimulationResponse) SetExplainTrace(v []map[string]interface{})` - -SetExplainTrace sets ExplainTrace field to given value. - -### HasExplainTrace - -`func (o *SimulationResponse) HasExplainTrace() bool` - -HasExplainTrace returns a boolean if a field has been set. - -### GetFailedConditions - -`func (o *SimulationResponse) GetFailedConditions() []string` - -GetFailedConditions returns the FailedConditions field if non-nil, zero value otherwise. - -### GetFailedConditionsOk - -`func (o *SimulationResponse) GetFailedConditionsOk() (*[]string, bool)` - -GetFailedConditionsOk returns a tuple with the FailedConditions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailedConditions - -`func (o *SimulationResponse) SetFailedConditions(v []string)` - -SetFailedConditions sets FailedConditions field to given value. - -### HasFailedConditions - -`func (o *SimulationResponse) HasFailedConditions() bool` - -HasFailedConditions returns a boolean if a field has been set. - -### GetRevision - -`func (o *SimulationResponse) GetRevision() int32` - -GetRevision returns the Revision field if non-nil, zero value otherwise. - -### GetRevisionOk - -`func (o *SimulationResponse) GetRevisionOk() (*int32, bool)` - -GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRevision - -`func (o *SimulationResponse) SetRevision(v int32)` - -SetRevision sets Revision field to given value. - -### HasRevision - -`func (o *SimulationResponse) HasRevision() bool` - -HasRevision returns a boolean if a field has been set. - -### SetRevisionNil - -`func (o *SimulationResponse) SetRevisionNil(b bool)` - - SetRevisionNil sets the value for Revision to be an explicit nil - -### UnsetRevision -`func (o *SimulationResponse) UnsetRevision()` - -UnsetRevision ensures that no value is present for Revision, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseACLOut.md b/sdks/go/docs/SuccessResponseACLOut.md deleted file mode 100644 index 8b22de6..0000000 --- a/sdks/go/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ACLOut**](ACLOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseACLOut - -`func NewSuccessResponseACLOut(data ACLOut, ) *SuccessResponseACLOut` - -NewSuccessResponseACLOut instantiates a new SuccessResponseACLOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseACLOutWithDefaults - -`func NewSuccessResponseACLOutWithDefaults() *SuccessResponseACLOut` - -NewSuccessResponseACLOutWithDefaults instantiates a new SuccessResponseACLOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseACLOut) GetData() ACLOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseACLOut) GetDataOk() (*ACLOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseACLOut) SetData(v ACLOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseACLOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseACLOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseACLOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseACLOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseACLOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseACLOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseACLOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseACLOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseAccessDecisionResponse.md b/sdks/go/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index 60b4484..0000000 --- a/sdks/go/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseAccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseAccessDecisionResponse - -`func NewSuccessResponseAccessDecisionResponse(data AccessDecisionResponse, ) *SuccessResponseAccessDecisionResponse` - -NewSuccessResponseAccessDecisionResponse instantiates a new SuccessResponseAccessDecisionResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseAccessDecisionResponseWithDefaults - -`func NewSuccessResponseAccessDecisionResponseWithDefaults() *SuccessResponseAccessDecisionResponse` - -NewSuccessResponseAccessDecisionResponseWithDefaults instantiates a new SuccessResponseAccessDecisionResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseAccessDecisionResponse) GetData() AccessDecisionResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseAccessDecisionResponse) GetDataOk() (*AccessDecisionResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseAccessDecisionResponse) SetData(v AccessDecisionResponse)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseAccessDecisionResponse) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseAccessDecisionResponse) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseAccessDecisionResponse) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseAccessDecisionResponse) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseAccessDecisionResponse) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseAccessDecisionResponse) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseAccessDecisionResponse) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseAdminLoginResponse.md b/sdks/go/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index 4216af2..0000000 --- a/sdks/go/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseAdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseAdminLoginResponse - -`func NewSuccessResponseAdminLoginResponse(data AdminLoginResponse, ) *SuccessResponseAdminLoginResponse` - -NewSuccessResponseAdminLoginResponse instantiates a new SuccessResponseAdminLoginResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseAdminLoginResponseWithDefaults - -`func NewSuccessResponseAdminLoginResponseWithDefaults() *SuccessResponseAdminLoginResponse` - -NewSuccessResponseAdminLoginResponseWithDefaults instantiates a new SuccessResponseAdminLoginResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseAdminLoginResponse) GetData() AdminLoginResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseAdminLoginResponse) GetDataOk() (*AdminLoginResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseAdminLoginResponse) SetData(v AdminLoginResponse)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseAdminLoginResponse) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseAdminLoginResponse) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseAdminLoginResponse) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseAdminLoginResponse) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseAdminLoginResponse) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseAdminLoginResponse) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseAdminLoginResponse) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseAuthModelOut.md b/sdks/go/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index 349bc5e..0000000 --- a/sdks/go/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseAuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AuthModelOut**](AuthModelOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseAuthModelOut - -`func NewSuccessResponseAuthModelOut(data AuthModelOut, ) *SuccessResponseAuthModelOut` - -NewSuccessResponseAuthModelOut instantiates a new SuccessResponseAuthModelOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseAuthModelOutWithDefaults - -`func NewSuccessResponseAuthModelOutWithDefaults() *SuccessResponseAuthModelOut` - -NewSuccessResponseAuthModelOutWithDefaults instantiates a new SuccessResponseAuthModelOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseAuthModelOut) GetData() AuthModelOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseAuthModelOut) GetDataOk() (*AuthModelOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseAuthModelOut) SetData(v AuthModelOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseAuthModelOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseAuthModelOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseAuthModelOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseAuthModelOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseAuthModelOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseAuthModelOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseAuthModelOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseAuthModelOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseBatchAccessResponse.md b/sdks/go/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index 7766985..0000000 --- a/sdks/go/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseBatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseBatchAccessResponse - -`func NewSuccessResponseBatchAccessResponse(data BatchAccessResponse, ) *SuccessResponseBatchAccessResponse` - -NewSuccessResponseBatchAccessResponse instantiates a new SuccessResponseBatchAccessResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseBatchAccessResponseWithDefaults - -`func NewSuccessResponseBatchAccessResponseWithDefaults() *SuccessResponseBatchAccessResponse` - -NewSuccessResponseBatchAccessResponseWithDefaults instantiates a new SuccessResponseBatchAccessResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseBatchAccessResponse) GetData() BatchAccessResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseBatchAccessResponse) GetDataOk() (*BatchAccessResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseBatchAccessResponse) SetData(v BatchAccessResponse)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseBatchAccessResponse) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseBatchAccessResponse) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseBatchAccessResponse) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseBatchAccessResponse) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseBatchAccessResponse) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseBatchAccessResponse) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseBatchAccessResponse) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseDictStrAny.md b/sdks/go/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index 1af0e0a..0000000 --- a/sdks/go/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseDictStrAny - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **map[string]interface{}** | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseDictStrAny - -`func NewSuccessResponseDictStrAny(data map[string]interface{}, ) *SuccessResponseDictStrAny` - -NewSuccessResponseDictStrAny instantiates a new SuccessResponseDictStrAny object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseDictStrAnyWithDefaults - -`func NewSuccessResponseDictStrAnyWithDefaults() *SuccessResponseDictStrAny` - -NewSuccessResponseDictStrAnyWithDefaults instantiates a new SuccessResponseDictStrAny object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseDictStrAny) GetData() map[string]interface{}` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseDictStrAny) GetDataOk() (*map[string]interface{}, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseDictStrAny) SetData(v map[string]interface{})` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseDictStrAny) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseDictStrAny) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseDictStrAny) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseDictStrAny) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseDictStrAny) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseDictStrAny) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseDictStrAny) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseDictStrAny) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseDictStrInt.md b/sdks/go/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index bdf5f3c..0000000 --- a/sdks/go/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseDictStrInt - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **map[string]int32** | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseDictStrInt - -`func NewSuccessResponseDictStrInt(data map[string]int32, ) *SuccessResponseDictStrInt` - -NewSuccessResponseDictStrInt instantiates a new SuccessResponseDictStrInt object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseDictStrIntWithDefaults - -`func NewSuccessResponseDictStrIntWithDefaults() *SuccessResponseDictStrInt` - -NewSuccessResponseDictStrIntWithDefaults instantiates a new SuccessResponseDictStrInt object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseDictStrInt) GetData() map[string]int32` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseDictStrInt) GetDataOk() (*map[string]int32, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseDictStrInt) SetData(v map[string]int32)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseDictStrInt) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseDictStrInt) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseDictStrInt) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseDictStrInt) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseDictStrInt) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseDictStrInt) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseDictStrInt) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseDictStrInt) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseDictStrObject.md b/sdks/go/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index 9733c1f..0000000 --- a/sdks/go/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseDictStrObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **map[string]interface{}** | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseDictStrObject - -`func NewSuccessResponseDictStrObject(data map[string]interface{}, ) *SuccessResponseDictStrObject` - -NewSuccessResponseDictStrObject instantiates a new SuccessResponseDictStrObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseDictStrObjectWithDefaults - -`func NewSuccessResponseDictStrObjectWithDefaults() *SuccessResponseDictStrObject` - -NewSuccessResponseDictStrObjectWithDefaults instantiates a new SuccessResponseDictStrObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseDictStrObject) GetData() map[string]interface{}` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseDictStrObject) GetDataOk() (*map[string]interface{}, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseDictStrObject) SetData(v map[string]interface{})` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseDictStrObject) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseDictStrObject) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseDictStrObject) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseDictStrObject) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseDictStrObject) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseDictStrObject) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseDictStrObject) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseDictStrObject) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseDictStrStr.md b/sdks/go/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index e561a51..0000000 --- a/sdks/go/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **map[string]string** | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseDictStrStr - -`func NewSuccessResponseDictStrStr(data map[string]string, ) *SuccessResponseDictStrStr` - -NewSuccessResponseDictStrStr instantiates a new SuccessResponseDictStrStr object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseDictStrStrWithDefaults - -`func NewSuccessResponseDictStrStrWithDefaults() *SuccessResponseDictStrStr` - -NewSuccessResponseDictStrStrWithDefaults instantiates a new SuccessResponseDictStrStr object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseDictStrStr) GetData() map[string]string` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseDictStrStr) GetDataOk() (*map[string]string, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseDictStrStr) SetData(v map[string]string)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseDictStrStr) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseDictStrStr) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseDictStrStr) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseDictStrStr) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseDictStrStr) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseDictStrStr) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseDictStrStr) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseDictStrStr) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index 47d15c2..0000000 --- a/sdks/go/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseDictStrUnionIntStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**map[string]DataValue**](DataValue.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseDictStrUnionIntStr - -`func NewSuccessResponseDictStrUnionIntStr(data map[string]DataValue, ) *SuccessResponseDictStrUnionIntStr` - -NewSuccessResponseDictStrUnionIntStr instantiates a new SuccessResponseDictStrUnionIntStr object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseDictStrUnionIntStrWithDefaults - -`func NewSuccessResponseDictStrUnionIntStrWithDefaults() *SuccessResponseDictStrUnionIntStr` - -NewSuccessResponseDictStrUnionIntStrWithDefaults instantiates a new SuccessResponseDictStrUnionIntStr object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseDictStrUnionIntStr) GetData() map[string]DataValue` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseDictStrUnionIntStr) GetDataOk() (*map[string]DataValue, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseDictStrUnionIntStr) SetData(v map[string]DataValue)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseDictStrUnionIntStr) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseDictStrUnionIntStr) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseDictStrUnionIntStr) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseDictStrUnionIntStr) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseDictStrUnionIntStr) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseDictStrUnionIntStr) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseDictStrUnionIntStr) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index 65d2bf3..0000000 --- a/sdks/go/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseImpactAnalysisResponse - -`func NewSuccessResponseImpactAnalysisResponse(data ImpactAnalysisResponse, ) *SuccessResponseImpactAnalysisResponse` - -NewSuccessResponseImpactAnalysisResponse instantiates a new SuccessResponseImpactAnalysisResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseImpactAnalysisResponseWithDefaults - -`func NewSuccessResponseImpactAnalysisResponseWithDefaults() *SuccessResponseImpactAnalysisResponse` - -NewSuccessResponseImpactAnalysisResponseWithDefaults instantiates a new SuccessResponseImpactAnalysisResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseImpactAnalysisResponse) GetData() ImpactAnalysisResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseImpactAnalysisResponse) GetDataOk() (*ImpactAnalysisResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseImpactAnalysisResponse) SetData(v ImpactAnalysisResponse)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseImpactAnalysisResponse) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseImpactAnalysisResponse) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseImpactAnalysisResponse) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseImpactAnalysisResponse) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseImpactAnalysisResponse) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseImpactAnalysisResponse) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseImpactAnalysisResponse) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseListACLOut.md b/sdks/go/docs/SuccessResponseListACLOut.md deleted file mode 100644 index 9c2d5d2..0000000 --- a/sdks/go/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseListACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]ACLOut**](ACLOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseListACLOut - -`func NewSuccessResponseListACLOut(data []ACLOut, ) *SuccessResponseListACLOut` - -NewSuccessResponseListACLOut instantiates a new SuccessResponseListACLOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseListACLOutWithDefaults - -`func NewSuccessResponseListACLOutWithDefaults() *SuccessResponseListACLOut` - -NewSuccessResponseListACLOutWithDefaults instantiates a new SuccessResponseListACLOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseListACLOut) GetData() []ACLOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseListACLOut) GetDataOk() (*[]ACLOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseListACLOut) SetData(v []ACLOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseListACLOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseListACLOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseListACLOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseListACLOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseListACLOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseListACLOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseListACLOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseListACLOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseListAuditRecordOut.md b/sdks/go/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index c1ca75b..0000000 --- a/sdks/go/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseListAuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]AuditRecordOut**](AuditRecordOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseListAuditRecordOut - -`func NewSuccessResponseListAuditRecordOut(data []AuditRecordOut, ) *SuccessResponseListAuditRecordOut` - -NewSuccessResponseListAuditRecordOut instantiates a new SuccessResponseListAuditRecordOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseListAuditRecordOutWithDefaults - -`func NewSuccessResponseListAuditRecordOutWithDefaults() *SuccessResponseListAuditRecordOut` - -NewSuccessResponseListAuditRecordOutWithDefaults instantiates a new SuccessResponseListAuditRecordOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseListAuditRecordOut) GetData() []AuditRecordOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseListAuditRecordOut) GetDataOk() (*[]AuditRecordOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseListAuditRecordOut) SetData(v []AuditRecordOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseListAuditRecordOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseListAuditRecordOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseListAuditRecordOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseListAuditRecordOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseListAuditRecordOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseListAuditRecordOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseListAuditRecordOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseListDictStrStr.md b/sdks/go/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index b78e7aa..0000000 --- a/sdks/go/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseListDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **[]map[string]string** | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseListDictStrStr - -`func NewSuccessResponseListDictStrStr(data []map[string]string, ) *SuccessResponseListDictStrStr` - -NewSuccessResponseListDictStrStr instantiates a new SuccessResponseListDictStrStr object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseListDictStrStrWithDefaults - -`func NewSuccessResponseListDictStrStrWithDefaults() *SuccessResponseListDictStrStr` - -NewSuccessResponseListDictStrStrWithDefaults instantiates a new SuccessResponseListDictStrStr object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseListDictStrStr) GetData() []map[string]string` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseListDictStrStr) GetDataOk() (*[]map[string]string, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseListDictStrStr) SetData(v []map[string]string)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseListDictStrStr) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseListDictStrStr) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseListDictStrStr) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseListDictStrStr) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseListDictStrStr) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseListDictStrStr) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseListDictStrStr) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseListDictStrStr) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseListPermissionOut.md b/sdks/go/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index 0d69063..0000000 --- a/sdks/go/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseListPermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]PermissionOut**](PermissionOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseListPermissionOut - -`func NewSuccessResponseListPermissionOut(data []PermissionOut, ) *SuccessResponseListPermissionOut` - -NewSuccessResponseListPermissionOut instantiates a new SuccessResponseListPermissionOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseListPermissionOutWithDefaults - -`func NewSuccessResponseListPermissionOutWithDefaults() *SuccessResponseListPermissionOut` - -NewSuccessResponseListPermissionOutWithDefaults instantiates a new SuccessResponseListPermissionOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseListPermissionOut) GetData() []PermissionOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseListPermissionOut) GetDataOk() (*[]PermissionOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseListPermissionOut) SetData(v []PermissionOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseListPermissionOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseListPermissionOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseListPermissionOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseListPermissionOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseListPermissionOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseListPermissionOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseListPermissionOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseListPermissionOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseListPolicyOut.md b/sdks/go/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index ea33e03..0000000 --- a/sdks/go/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseListPolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]PolicyOut**](PolicyOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseListPolicyOut - -`func NewSuccessResponseListPolicyOut(data []PolicyOut, ) *SuccessResponseListPolicyOut` - -NewSuccessResponseListPolicyOut instantiates a new SuccessResponseListPolicyOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseListPolicyOutWithDefaults - -`func NewSuccessResponseListPolicyOutWithDefaults() *SuccessResponseListPolicyOut` - -NewSuccessResponseListPolicyOutWithDefaults instantiates a new SuccessResponseListPolicyOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseListPolicyOut) GetData() []PolicyOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseListPolicyOut) GetDataOk() (*[]PolicyOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseListPolicyOut) SetData(v []PolicyOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseListPolicyOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseListPolicyOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseListPolicyOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseListPolicyOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseListPolicyOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseListPolicyOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseListPolicyOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseListPolicyOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseListRoleOut.md b/sdks/go/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index 877b561..0000000 --- a/sdks/go/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseListRoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]RoleOut**](RoleOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseListRoleOut - -`func NewSuccessResponseListRoleOut(data []RoleOut, ) *SuccessResponseListRoleOut` - -NewSuccessResponseListRoleOut instantiates a new SuccessResponseListRoleOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseListRoleOutWithDefaults - -`func NewSuccessResponseListRoleOutWithDefaults() *SuccessResponseListRoleOut` - -NewSuccessResponseListRoleOutWithDefaults instantiates a new SuccessResponseListRoleOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseListRoleOut) GetData() []RoleOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseListRoleOut) GetDataOk() (*[]RoleOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseListRoleOut) SetData(v []RoleOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseListRoleOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseListRoleOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseListRoleOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseListRoleOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseListRoleOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseListRoleOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseListRoleOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseListRoleOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponsePermissionOut.md b/sdks/go/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index e1f2bdb..0000000 --- a/sdks/go/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponsePermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**PermissionOut**](PermissionOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponsePermissionOut - -`func NewSuccessResponsePermissionOut(data PermissionOut, ) *SuccessResponsePermissionOut` - -NewSuccessResponsePermissionOut instantiates a new SuccessResponsePermissionOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponsePermissionOutWithDefaults - -`func NewSuccessResponsePermissionOutWithDefaults() *SuccessResponsePermissionOut` - -NewSuccessResponsePermissionOutWithDefaults instantiates a new SuccessResponsePermissionOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponsePermissionOut) GetData() PermissionOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponsePermissionOut) GetDataOk() (*PermissionOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponsePermissionOut) SetData(v PermissionOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponsePermissionOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponsePermissionOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponsePermissionOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponsePermissionOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponsePermissionOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponsePermissionOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponsePermissionOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponsePermissionOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponsePolicyOut.md b/sdks/go/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index 7179876..0000000 --- a/sdks/go/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponsePolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**PolicyOut**](PolicyOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponsePolicyOut - -`func NewSuccessResponsePolicyOut(data PolicyOut, ) *SuccessResponsePolicyOut` - -NewSuccessResponsePolicyOut instantiates a new SuccessResponsePolicyOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponsePolicyOutWithDefaults - -`func NewSuccessResponsePolicyOutWithDefaults() *SuccessResponsePolicyOut` - -NewSuccessResponsePolicyOutWithDefaults instantiates a new SuccessResponsePolicyOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponsePolicyOut) GetData() PolicyOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponsePolicyOut) GetDataOk() (*PolicyOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponsePolicyOut) SetData(v PolicyOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponsePolicyOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponsePolicyOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponsePolicyOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponsePolicyOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponsePolicyOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponsePolicyOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponsePolicyOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponsePolicyOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponsePolicySimulationResponse.md b/sdks/go/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index fef5558..0000000 --- a/sdks/go/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponsePolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponsePolicySimulationResponse - -`func NewSuccessResponsePolicySimulationResponse(data PolicySimulationResponse, ) *SuccessResponsePolicySimulationResponse` - -NewSuccessResponsePolicySimulationResponse instantiates a new SuccessResponsePolicySimulationResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponsePolicySimulationResponseWithDefaults - -`func NewSuccessResponsePolicySimulationResponseWithDefaults() *SuccessResponsePolicySimulationResponse` - -NewSuccessResponsePolicySimulationResponseWithDefaults instantiates a new SuccessResponsePolicySimulationResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponsePolicySimulationResponse) GetData() PolicySimulationResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponsePolicySimulationResponse) GetDataOk() (*PolicySimulationResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponsePolicySimulationResponse) SetData(v PolicySimulationResponse)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponsePolicySimulationResponse) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponsePolicySimulationResponse) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponsePolicySimulationResponse) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponsePolicySimulationResponse) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponsePolicySimulationResponse) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponsePolicySimulationResponse) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponsePolicySimulationResponse) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseRelationshipOut.md b/sdks/go/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index 3df1728..0000000 --- a/sdks/go/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseRelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**RelationshipOut**](RelationshipOut.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseRelationshipOut - -`func NewSuccessResponseRelationshipOut(data RelationshipOut, ) *SuccessResponseRelationshipOut` - -NewSuccessResponseRelationshipOut instantiates a new SuccessResponseRelationshipOut object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseRelationshipOutWithDefaults - -`func NewSuccessResponseRelationshipOutWithDefaults() *SuccessResponseRelationshipOut` - -NewSuccessResponseRelationshipOutWithDefaults instantiates a new SuccessResponseRelationshipOut object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseRelationshipOut) GetData() RelationshipOut` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseRelationshipOut) GetDataOk() (*RelationshipOut, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseRelationshipOut) SetData(v RelationshipOut)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseRelationshipOut) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseRelationshipOut) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseRelationshipOut) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseRelationshipOut) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseRelationshipOut) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseRelationshipOut) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseRelationshipOut) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseRelationshipOut) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/SuccessResponseSimulationResponse.md b/sdks/go/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index 8a9981c..0000000 --- a/sdks/go/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,103 +0,0 @@ -# SuccessResponseSimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**SimulationResponse**](SimulationResponse.md) | | -**Meta** | Pointer to [**MetaBody**](MetaBody.md) | | [optional] -**Error** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewSuccessResponseSimulationResponse - -`func NewSuccessResponseSimulationResponse(data SimulationResponse, ) *SuccessResponseSimulationResponse` - -NewSuccessResponseSimulationResponse instantiates a new SuccessResponseSimulationResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSuccessResponseSimulationResponseWithDefaults - -`func NewSuccessResponseSimulationResponseWithDefaults() *SuccessResponseSimulationResponse` - -NewSuccessResponseSimulationResponseWithDefaults instantiates a new SuccessResponseSimulationResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *SuccessResponseSimulationResponse) GetData() SimulationResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *SuccessResponseSimulationResponse) GetDataOk() (*SimulationResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *SuccessResponseSimulationResponse) SetData(v SimulationResponse)` - -SetData sets Data field to given value. - - -### GetMeta - -`func (o *SuccessResponseSimulationResponse) GetMeta() MetaBody` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *SuccessResponseSimulationResponse) GetMetaOk() (*MetaBody, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *SuccessResponseSimulationResponse) SetMeta(v MetaBody)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *SuccessResponseSimulationResponse) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetError - -`func (o *SuccessResponseSimulationResponse) GetError() interface{}` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *SuccessResponseSimulationResponse) GetErrorOk() (*interface{}, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *SuccessResponseSimulationResponse) SetError(v interface{})` - -SetError sets Error field to given value. - -### HasError - -`func (o *SuccessResponseSimulationResponse) HasError() bool` - -HasError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/docs/ValidationError.md b/sdks/go/docs/ValidationError.md deleted file mode 100644 index 2ae083d..0000000 --- a/sdks/go/docs/ValidationError.md +++ /dev/null @@ -1,155 +0,0 @@ -# ValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Loc** | [**[]LocationInner**](LocationInner.md) | | -**Msg** | **string** | | -**Type** | **string** | | -**Input** | Pointer to **interface{}** | | [optional] -**Ctx** | Pointer to **interface{}** | | [optional] - -## Methods - -### NewValidationError - -`func NewValidationError(loc []LocationInner, msg string, type_ string, ) *ValidationError` - -NewValidationError instantiates a new ValidationError object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewValidationErrorWithDefaults - -`func NewValidationErrorWithDefaults() *ValidationError` - -NewValidationErrorWithDefaults instantiates a new ValidationError object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLoc - -`func (o *ValidationError) GetLoc() []LocationInner` - -GetLoc returns the Loc field if non-nil, zero value otherwise. - -### GetLocOk - -`func (o *ValidationError) GetLocOk() (*[]LocationInner, bool)` - -GetLocOk returns a tuple with the Loc field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoc - -`func (o *ValidationError) SetLoc(v []LocationInner)` - -SetLoc sets Loc field to given value. - - -### GetMsg - -`func (o *ValidationError) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ValidationError) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ValidationError) SetMsg(v string)` - -SetMsg sets Msg field to given value. - - -### GetType - -`func (o *ValidationError) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ValidationError) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ValidationError) SetType(v string)` - -SetType sets Type field to given value. - - -### GetInput - -`func (o *ValidationError) GetInput() interface{}` - -GetInput returns the Input field if non-nil, zero value otherwise. - -### GetInputOk - -`func (o *ValidationError) GetInputOk() (*interface{}, bool)` - -GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInput - -`func (o *ValidationError) SetInput(v interface{})` - -SetInput sets Input field to given value. - -### HasInput - -`func (o *ValidationError) HasInput() bool` - -HasInput returns a boolean if a field has been set. - -### SetInputNil - -`func (o *ValidationError) SetInputNil(b bool)` - - SetInputNil sets the value for Input to be an explicit nil - -### UnsetInput -`func (o *ValidationError) UnsetInput()` - -UnsetInput ensures that no value is present for Input, not even an explicit nil -### GetCtx - -`func (o *ValidationError) GetCtx() interface{}` - -GetCtx returns the Ctx field if non-nil, zero value otherwise. - -### GetCtxOk - -`func (o *ValidationError) GetCtxOk() (*interface{}, bool)` - -GetCtxOk returns a tuple with the Ctx field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtx - -`func (o *ValidationError) SetCtx(v interface{})` - -SetCtx sets Ctx field to given value. - -### HasCtx - -`func (o *ValidationError) HasCtx() bool` - -HasCtx returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/go/git_push.sh b/sdks/go/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/go/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/go/go.mod b/sdks/go/go.mod deleted file mode 100644 index a7b52a2..0000000 --- a/sdks/go/go.mod +++ /dev/null @@ -1,6 +0,0 @@ -module github.com/GIT_USER_ID/GIT_REPO_ID - -go 1.23 - -require ( -) diff --git a/sdks/go/go.sum b/sdks/go/go.sum deleted file mode 100644 index c966c8d..0000000 --- a/sdks/go/go.sum +++ /dev/null @@ -1,11 +0,0 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/sdks/go/keynetra_client.go b/sdks/go/keynetra_client.go deleted file mode 100644 index 8f4ce5a..0000000 --- a/sdks/go/keynetra_client.go +++ /dev/null @@ -1,30 +0,0 @@ -package keynetra - -type KeyNetraClient struct { - Access any - Auth any - Dev any - Health any - Management any - Playground any - client *APIClient -} - -func NewKeyNetraClient(baseURL string, apiKey string) *KeyNetraClient { - cfg := NewConfiguration() - cfg.Servers = ServerConfigurations{{URL: baseURL}} - cfg.DefaultHeader["X-API-Key"] = apiKey - cfg.DefaultHeader["Authorization"] = "Bearer " + apiKey - - client := NewAPIClient(cfg) - - return &KeyNetraClient{ - Access: client.AccessAPI, - Auth: client.AuthAPI, - Dev: client.DevAPI, - Health: client.HealthAPI, - Management: client.ManagementAPI, - Playground: client.PlaygroundAPI, - client: client, - } -} diff --git a/sdks/go/model_access_decision_response.go b/sdks/go/model_access_decision_response.go deleted file mode 100644 index 7760978..0000000 --- a/sdks/go/model_access_decision_response.go +++ /dev/null @@ -1,412 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the AccessDecisionResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccessDecisionResponse{} - -// AccessDecisionResponse struct for AccessDecisionResponse -type AccessDecisionResponse struct { - Allowed bool `json:"allowed"` - Decision string `json:"decision"` - MatchedPolicies []string `json:"matched_policies,omitempty"` - Reason NullableString `json:"reason,omitempty"` - PolicyId NullableString `json:"policy_id,omitempty"` - ExplainTrace []map[string]interface{} `json:"explain_trace,omitempty"` - Revision NullableInt32 `json:"revision,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AccessDecisionResponse AccessDecisionResponse - -// NewAccessDecisionResponse instantiates a new AccessDecisionResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccessDecisionResponse(allowed bool, decision string) *AccessDecisionResponse { - this := AccessDecisionResponse{} - this.Allowed = allowed - this.Decision = decision - return &this -} - -// NewAccessDecisionResponseWithDefaults instantiates a new AccessDecisionResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccessDecisionResponseWithDefaults() *AccessDecisionResponse { - this := AccessDecisionResponse{} - return &this -} - -// GetAllowed returns the Allowed field value -func (o *AccessDecisionResponse) GetAllowed() bool { - if o == nil { - var ret bool - return ret - } - - return o.Allowed -} - -// GetAllowedOk returns a tuple with the Allowed field value -// and a boolean to check if the value has been set. -func (o *AccessDecisionResponse) GetAllowedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Allowed, true -} - -// SetAllowed sets field value -func (o *AccessDecisionResponse) SetAllowed(v bool) { - o.Allowed = v -} - -// GetDecision returns the Decision field value -func (o *AccessDecisionResponse) GetDecision() string { - if o == nil { - var ret string - return ret - } - - return o.Decision -} - -// GetDecisionOk returns a tuple with the Decision field value -// and a boolean to check if the value has been set. -func (o *AccessDecisionResponse) GetDecisionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Decision, true -} - -// SetDecision sets field value -func (o *AccessDecisionResponse) SetDecision(v string) { - o.Decision = v -} - -// GetMatchedPolicies returns the MatchedPolicies field value if set, zero value otherwise. -func (o *AccessDecisionResponse) GetMatchedPolicies() []string { - if o == nil || IsNil(o.MatchedPolicies) { - var ret []string - return ret - } - return o.MatchedPolicies -} - -// GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccessDecisionResponse) GetMatchedPoliciesOk() ([]string, bool) { - if o == nil || IsNil(o.MatchedPolicies) { - return nil, false - } - return o.MatchedPolicies, true -} - -// HasMatchedPolicies returns a boolean if a field has been set. -func (o *AccessDecisionResponse) HasMatchedPolicies() bool { - if o != nil && !IsNil(o.MatchedPolicies) { - return true - } - - return false -} - -// SetMatchedPolicies gets a reference to the given []string and assigns it to the MatchedPolicies field. -func (o *AccessDecisionResponse) SetMatchedPolicies(v []string) { - o.MatchedPolicies = v -} - -// GetReason returns the Reason field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AccessDecisionResponse) GetReason() string { - if o == nil || IsNil(o.Reason.Get()) { - var ret string - return ret - } - return *o.Reason.Get() -} - -// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AccessDecisionResponse) GetReasonOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Reason.Get(), o.Reason.IsSet() -} - -// HasReason returns a boolean if a field has been set. -func (o *AccessDecisionResponse) HasReason() bool { - if o != nil && o.Reason.IsSet() { - return true - } - - return false -} - -// SetReason gets a reference to the given NullableString and assigns it to the Reason field. -func (o *AccessDecisionResponse) SetReason(v string) { - o.Reason.Set(&v) -} -// SetReasonNil sets the value for Reason to be an explicit nil -func (o *AccessDecisionResponse) SetReasonNil() { - o.Reason.Set(nil) -} - -// UnsetReason ensures that no value is present for Reason, not even an explicit nil -func (o *AccessDecisionResponse) UnsetReason() { - o.Reason.Unset() -} - -// GetPolicyId returns the PolicyId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AccessDecisionResponse) GetPolicyId() string { - if o == nil || IsNil(o.PolicyId.Get()) { - var ret string - return ret - } - return *o.PolicyId.Get() -} - -// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AccessDecisionResponse) GetPolicyIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PolicyId.Get(), o.PolicyId.IsSet() -} - -// HasPolicyId returns a boolean if a field has been set. -func (o *AccessDecisionResponse) HasPolicyId() bool { - if o != nil && o.PolicyId.IsSet() { - return true - } - - return false -} - -// SetPolicyId gets a reference to the given NullableString and assigns it to the PolicyId field. -func (o *AccessDecisionResponse) SetPolicyId(v string) { - o.PolicyId.Set(&v) -} -// SetPolicyIdNil sets the value for PolicyId to be an explicit nil -func (o *AccessDecisionResponse) SetPolicyIdNil() { - o.PolicyId.Set(nil) -} - -// UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil -func (o *AccessDecisionResponse) UnsetPolicyId() { - o.PolicyId.Unset() -} - -// GetExplainTrace returns the ExplainTrace field value if set, zero value otherwise. -func (o *AccessDecisionResponse) GetExplainTrace() []map[string]interface{} { - if o == nil || IsNil(o.ExplainTrace) { - var ret []map[string]interface{} - return ret - } - return o.ExplainTrace -} - -// GetExplainTraceOk returns a tuple with the ExplainTrace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccessDecisionResponse) GetExplainTraceOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.ExplainTrace) { - return nil, false - } - return o.ExplainTrace, true -} - -// HasExplainTrace returns a boolean if a field has been set. -func (o *AccessDecisionResponse) HasExplainTrace() bool { - if o != nil && !IsNil(o.ExplainTrace) { - return true - } - - return false -} - -// SetExplainTrace gets a reference to the given []map[string]interface{} and assigns it to the ExplainTrace field. -func (o *AccessDecisionResponse) SetExplainTrace(v []map[string]interface{}) { - o.ExplainTrace = v -} - -// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AccessDecisionResponse) GetRevision() int32 { - if o == nil || IsNil(o.Revision.Get()) { - var ret int32 - return ret - } - return *o.Revision.Get() -} - -// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AccessDecisionResponse) GetRevisionOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Revision.Get(), o.Revision.IsSet() -} - -// HasRevision returns a boolean if a field has been set. -func (o *AccessDecisionResponse) HasRevision() bool { - if o != nil && o.Revision.IsSet() { - return true - } - - return false -} - -// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. -func (o *AccessDecisionResponse) SetRevision(v int32) { - o.Revision.Set(&v) -} -// SetRevisionNil sets the value for Revision to be an explicit nil -func (o *AccessDecisionResponse) SetRevisionNil() { - o.Revision.Set(nil) -} - -// UnsetRevision ensures that no value is present for Revision, not even an explicit nil -func (o *AccessDecisionResponse) UnsetRevision() { - o.Revision.Unset() -} - -func (o AccessDecisionResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccessDecisionResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["allowed"] = o.Allowed - toSerialize["decision"] = o.Decision - if !IsNil(o.MatchedPolicies) { - toSerialize["matched_policies"] = o.MatchedPolicies - } - if o.Reason.IsSet() { - toSerialize["reason"] = o.Reason.Get() - } - if o.PolicyId.IsSet() { - toSerialize["policy_id"] = o.PolicyId.Get() - } - if !IsNil(o.ExplainTrace) { - toSerialize["explain_trace"] = o.ExplainTrace - } - if o.Revision.IsSet() { - toSerialize["revision"] = o.Revision.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AccessDecisionResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "allowed", - "decision", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccessDecisionResponse := _AccessDecisionResponse{} - - err = json.Unmarshal(data, &varAccessDecisionResponse) - - if err != nil { - return err - } - - *o = AccessDecisionResponse(varAccessDecisionResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "allowed") - delete(additionalProperties, "decision") - delete(additionalProperties, "matched_policies") - delete(additionalProperties, "reason") - delete(additionalProperties, "policy_id") - delete(additionalProperties, "explain_trace") - delete(additionalProperties, "revision") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAccessDecisionResponse struct { - value *AccessDecisionResponse - isSet bool -} - -func (v NullableAccessDecisionResponse) Get() *AccessDecisionResponse { - return v.value -} - -func (v *NullableAccessDecisionResponse) Set(val *AccessDecisionResponse) { - v.value = val - v.isSet = true -} - -func (v NullableAccessDecisionResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableAccessDecisionResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccessDecisionResponse(val *AccessDecisionResponse) *NullableAccessDecisionResponse { - return &NullableAccessDecisionResponse{value: val, isSet: true} -} - -func (v NullableAccessDecisionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccessDecisionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_access_request.go b/sdks/go/model_access_request.go deleted file mode 100644 index 3899bd1..0000000 --- a/sdks/go/model_access_request.go +++ /dev/null @@ -1,367 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the AccessRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccessRequest{} - -// AccessRequest Explicit authorization request passed through the API boundary. -type AccessRequest struct { - User map[string]interface{} `json:"user,omitempty"` - Action string `json:"action"` - Resource map[string]interface{} `json:"resource,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - Consistency *string `json:"consistency,omitempty"` - Revision NullableInt32 `json:"revision,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AccessRequest AccessRequest - -// NewAccessRequest instantiates a new AccessRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccessRequest(action string) *AccessRequest { - this := AccessRequest{} - this.Action = action - var consistency string = "eventual" - this.Consistency = &consistency - return &this -} - -// NewAccessRequestWithDefaults instantiates a new AccessRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccessRequestWithDefaults() *AccessRequest { - this := AccessRequest{} - var consistency string = "eventual" - this.Consistency = &consistency - return &this -} - -// GetUser returns the User field value if set, zero value otherwise. -func (o *AccessRequest) GetUser() map[string]interface{} { - if o == nil || IsNil(o.User) { - var ret map[string]interface{} - return ret - } - return o.User -} - -// GetUserOk returns a tuple with the User field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccessRequest) GetUserOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.User) { - return map[string]interface{}{}, false - } - return o.User, true -} - -// HasUser returns a boolean if a field has been set. -func (o *AccessRequest) HasUser() bool { - if o != nil && !IsNil(o.User) { - return true - } - - return false -} - -// SetUser gets a reference to the given map[string]interface{} and assigns it to the User field. -func (o *AccessRequest) SetUser(v map[string]interface{}) { - o.User = v -} - -// GetAction returns the Action field value -func (o *AccessRequest) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *AccessRequest) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *AccessRequest) SetAction(v string) { - o.Action = v -} - -// GetResource returns the Resource field value if set, zero value otherwise. -func (o *AccessRequest) GetResource() map[string]interface{} { - if o == nil || IsNil(o.Resource) { - var ret map[string]interface{} - return ret - } - return o.Resource -} - -// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccessRequest) GetResourceOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Resource) { - return map[string]interface{}{}, false - } - return o.Resource, true -} - -// HasResource returns a boolean if a field has been set. -func (o *AccessRequest) HasResource() bool { - if o != nil && !IsNil(o.Resource) { - return true - } - - return false -} - -// SetResource gets a reference to the given map[string]interface{} and assigns it to the Resource field. -func (o *AccessRequest) SetResource(v map[string]interface{}) { - o.Resource = v -} - -// GetContext returns the Context field value if set, zero value otherwise. -func (o *AccessRequest) GetContext() map[string]interface{} { - if o == nil || IsNil(o.Context) { - var ret map[string]interface{} - return ret - } - return o.Context -} - -// GetContextOk returns a tuple with the Context field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccessRequest) GetContextOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Context) { - return map[string]interface{}{}, false - } - return o.Context, true -} - -// HasContext returns a boolean if a field has been set. -func (o *AccessRequest) HasContext() bool { - if o != nil && !IsNil(o.Context) { - return true - } - - return false -} - -// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. -func (o *AccessRequest) SetContext(v map[string]interface{}) { - o.Context = v -} - -// GetConsistency returns the Consistency field value if set, zero value otherwise. -func (o *AccessRequest) GetConsistency() string { - if o == nil || IsNil(o.Consistency) { - var ret string - return ret - } - return *o.Consistency -} - -// GetConsistencyOk returns a tuple with the Consistency field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccessRequest) GetConsistencyOk() (*string, bool) { - if o == nil || IsNil(o.Consistency) { - return nil, false - } - return o.Consistency, true -} - -// HasConsistency returns a boolean if a field has been set. -func (o *AccessRequest) HasConsistency() bool { - if o != nil && !IsNil(o.Consistency) { - return true - } - - return false -} - -// SetConsistency gets a reference to the given string and assigns it to the Consistency field. -func (o *AccessRequest) SetConsistency(v string) { - o.Consistency = &v -} - -// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AccessRequest) GetRevision() int32 { - if o == nil || IsNil(o.Revision.Get()) { - var ret int32 - return ret - } - return *o.Revision.Get() -} - -// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AccessRequest) GetRevisionOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Revision.Get(), o.Revision.IsSet() -} - -// HasRevision returns a boolean if a field has been set. -func (o *AccessRequest) HasRevision() bool { - if o != nil && o.Revision.IsSet() { - return true - } - - return false -} - -// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. -func (o *AccessRequest) SetRevision(v int32) { - o.Revision.Set(&v) -} -// SetRevisionNil sets the value for Revision to be an explicit nil -func (o *AccessRequest) SetRevisionNil() { - o.Revision.Set(nil) -} - -// UnsetRevision ensures that no value is present for Revision, not even an explicit nil -func (o *AccessRequest) UnsetRevision() { - o.Revision.Unset() -} - -func (o AccessRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccessRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.User) { - toSerialize["user"] = o.User - } - toSerialize["action"] = o.Action - if !IsNil(o.Resource) { - toSerialize["resource"] = o.Resource - } - if !IsNil(o.Context) { - toSerialize["context"] = o.Context - } - if !IsNil(o.Consistency) { - toSerialize["consistency"] = o.Consistency - } - if o.Revision.IsSet() { - toSerialize["revision"] = o.Revision.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccessRequest := _AccessRequest{} - - err = json.Unmarshal(data, &varAccessRequest) - - if err != nil { - return err - } - - *o = AccessRequest(varAccessRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "user") - delete(additionalProperties, "action") - delete(additionalProperties, "resource") - delete(additionalProperties, "context") - delete(additionalProperties, "consistency") - delete(additionalProperties, "revision") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAccessRequest struct { - value *AccessRequest - isSet bool -} - -func (v NullableAccessRequest) Get() *AccessRequest { - return v.value -} - -func (v *NullableAccessRequest) Set(val *AccessRequest) { - v.value = val - v.isSet = true -} - -func (v NullableAccessRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableAccessRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccessRequest(val *AccessRequest) *NullableAccessRequest { - return &NullableAccessRequest{value: val, isSet: true} -} - -func (v NullableAccessRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccessRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_acl_create.go b/sdks/go/model_acl_create.go deleted file mode 100644 index ef96a82..0000000 --- a/sdks/go/model_acl_create.go +++ /dev/null @@ -1,313 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the ACLCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ACLCreate{} - -// ACLCreate struct for ACLCreate -type ACLCreate struct { - SubjectType string `json:"subject_type"` - SubjectId string `json:"subject_id"` - ResourceType string `json:"resource_type"` - ResourceId string `json:"resource_id"` - Action string `json:"action"` - Effect string `json:"effect"` - AdditionalProperties map[string]interface{} -} - -type _ACLCreate ACLCreate - -// NewACLCreate instantiates a new ACLCreate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewACLCreate(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string) *ACLCreate { - this := ACLCreate{} - this.SubjectType = subjectType - this.SubjectId = subjectId - this.ResourceType = resourceType - this.ResourceId = resourceId - this.Action = action - this.Effect = effect - return &this -} - -// NewACLCreateWithDefaults instantiates a new ACLCreate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewACLCreateWithDefaults() *ACLCreate { - this := ACLCreate{} - return &this -} - -// GetSubjectType returns the SubjectType field value -func (o *ACLCreate) GetSubjectType() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectType -} - -// GetSubjectTypeOk returns a tuple with the SubjectType field value -// and a boolean to check if the value has been set. -func (o *ACLCreate) GetSubjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectType, true -} - -// SetSubjectType sets field value -func (o *ACLCreate) SetSubjectType(v string) { - o.SubjectType = v -} - -// GetSubjectId returns the SubjectId field value -func (o *ACLCreate) GetSubjectId() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectId -} - -// GetSubjectIdOk returns a tuple with the SubjectId field value -// and a boolean to check if the value has been set. -func (o *ACLCreate) GetSubjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectId, true -} - -// SetSubjectId sets field value -func (o *ACLCreate) SetSubjectId(v string) { - o.SubjectId = v -} - -// GetResourceType returns the ResourceType field value -func (o *ACLCreate) GetResourceType() string { - if o == nil { - var ret string - return ret - } - - return o.ResourceType -} - -// GetResourceTypeOk returns a tuple with the ResourceType field value -// and a boolean to check if the value has been set. -func (o *ACLCreate) GetResourceTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ResourceType, true -} - -// SetResourceType sets field value -func (o *ACLCreate) SetResourceType(v string) { - o.ResourceType = v -} - -// GetResourceId returns the ResourceId field value -func (o *ACLCreate) GetResourceId() string { - if o == nil { - var ret string - return ret - } - - return o.ResourceId -} - -// GetResourceIdOk returns a tuple with the ResourceId field value -// and a boolean to check if the value has been set. -func (o *ACLCreate) GetResourceIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ResourceId, true -} - -// SetResourceId sets field value -func (o *ACLCreate) SetResourceId(v string) { - o.ResourceId = v -} - -// GetAction returns the Action field value -func (o *ACLCreate) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ACLCreate) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ACLCreate) SetAction(v string) { - o.Action = v -} - -// GetEffect returns the Effect field value -func (o *ACLCreate) GetEffect() string { - if o == nil { - var ret string - return ret - } - - return o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value -// and a boolean to check if the value has been set. -func (o *ACLCreate) GetEffectOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Effect, true -} - -// SetEffect sets field value -func (o *ACLCreate) SetEffect(v string) { - o.Effect = v -} - -func (o ACLCreate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ACLCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["subject_type"] = o.SubjectType - toSerialize["subject_id"] = o.SubjectId - toSerialize["resource_type"] = o.ResourceType - toSerialize["resource_id"] = o.ResourceId - toSerialize["action"] = o.Action - toSerialize["effect"] = o.Effect - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ACLCreate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "subject_type", - "subject_id", - "resource_type", - "resource_id", - "action", - "effect", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varACLCreate := _ACLCreate{} - - err = json.Unmarshal(data, &varACLCreate) - - if err != nil { - return err - } - - *o = ACLCreate(varACLCreate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "subject_type") - delete(additionalProperties, "subject_id") - delete(additionalProperties, "resource_type") - delete(additionalProperties, "resource_id") - delete(additionalProperties, "action") - delete(additionalProperties, "effect") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableACLCreate struct { - value *ACLCreate - isSet bool -} - -func (v NullableACLCreate) Get() *ACLCreate { - return v.value -} - -func (v *NullableACLCreate) Set(val *ACLCreate) { - v.value = val - v.isSet = true -} - -func (v NullableACLCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableACLCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableACLCreate(val *ACLCreate) *NullableACLCreate { - return &NullableACLCreate{value: val, isSet: true} -} - -func (v NullableACLCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableACLCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_acl_out.go b/sdks/go/model_acl_out.go deleted file mode 100644 index b6444d0..0000000 --- a/sdks/go/model_acl_out.go +++ /dev/null @@ -1,419 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "time" - "fmt" -) - -// checks if the ACLOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ACLOut{} - -// ACLOut struct for ACLOut -type ACLOut struct { - SubjectType string `json:"subject_type"` - SubjectId string `json:"subject_id"` - ResourceType string `json:"resource_type"` - ResourceId string `json:"resource_id"` - Action string `json:"action"` - Effect string `json:"effect"` - Id int32 `json:"id"` - TenantId int32 `json:"tenant_id"` - CreatedAt NullableTime `json:"created_at,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ACLOut ACLOut - -// NewACLOut instantiates a new ACLOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewACLOut(subjectType string, subjectId string, resourceType string, resourceId string, action string, effect string, id int32, tenantId int32) *ACLOut { - this := ACLOut{} - this.SubjectType = subjectType - this.SubjectId = subjectId - this.ResourceType = resourceType - this.ResourceId = resourceId - this.Action = action - this.Effect = effect - this.Id = id - this.TenantId = tenantId - return &this -} - -// NewACLOutWithDefaults instantiates a new ACLOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewACLOutWithDefaults() *ACLOut { - this := ACLOut{} - return &this -} - -// GetSubjectType returns the SubjectType field value -func (o *ACLOut) GetSubjectType() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectType -} - -// GetSubjectTypeOk returns a tuple with the SubjectType field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetSubjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectType, true -} - -// SetSubjectType sets field value -func (o *ACLOut) SetSubjectType(v string) { - o.SubjectType = v -} - -// GetSubjectId returns the SubjectId field value -func (o *ACLOut) GetSubjectId() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectId -} - -// GetSubjectIdOk returns a tuple with the SubjectId field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetSubjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectId, true -} - -// SetSubjectId sets field value -func (o *ACLOut) SetSubjectId(v string) { - o.SubjectId = v -} - -// GetResourceType returns the ResourceType field value -func (o *ACLOut) GetResourceType() string { - if o == nil { - var ret string - return ret - } - - return o.ResourceType -} - -// GetResourceTypeOk returns a tuple with the ResourceType field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetResourceTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ResourceType, true -} - -// SetResourceType sets field value -func (o *ACLOut) SetResourceType(v string) { - o.ResourceType = v -} - -// GetResourceId returns the ResourceId field value -func (o *ACLOut) GetResourceId() string { - if o == nil { - var ret string - return ret - } - - return o.ResourceId -} - -// GetResourceIdOk returns a tuple with the ResourceId field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetResourceIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ResourceId, true -} - -// SetResourceId sets field value -func (o *ACLOut) SetResourceId(v string) { - o.ResourceId = v -} - -// GetAction returns the Action field value -func (o *ACLOut) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ACLOut) SetAction(v string) { - o.Action = v -} - -// GetEffect returns the Effect field value -func (o *ACLOut) GetEffect() string { - if o == nil { - var ret string - return ret - } - - return o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetEffectOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Effect, true -} - -// SetEffect sets field value -func (o *ACLOut) SetEffect(v string) { - o.Effect = v -} - -// GetId returns the Id field value -func (o *ACLOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *ACLOut) SetId(v int32) { - o.Id = v -} - -// GetTenantId returns the TenantId field value -func (o *ACLOut) GetTenantId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.TenantId -} - -// GetTenantIdOk returns a tuple with the TenantId field value -// and a boolean to check if the value has been set. -func (o *ACLOut) GetTenantIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.TenantId, true -} - -// SetTenantId sets field value -func (o *ACLOut) SetTenantId(v int32) { - o.TenantId = v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ACLOut) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt.Get()) { - var ret time.Time - return ret - } - return *o.CreatedAt.Get() -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ACLOut) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.CreatedAt.Get(), o.CreatedAt.IsSet() -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ACLOut) HasCreatedAt() bool { - if o != nil && o.CreatedAt.IsSet() { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field. -func (o *ACLOut) SetCreatedAt(v time.Time) { - o.CreatedAt.Set(&v) -} -// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil -func (o *ACLOut) SetCreatedAtNil() { - o.CreatedAt.Set(nil) -} - -// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil -func (o *ACLOut) UnsetCreatedAt() { - o.CreatedAt.Unset() -} - -func (o ACLOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ACLOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["subject_type"] = o.SubjectType - toSerialize["subject_id"] = o.SubjectId - toSerialize["resource_type"] = o.ResourceType - toSerialize["resource_id"] = o.ResourceId - toSerialize["action"] = o.Action - toSerialize["effect"] = o.Effect - toSerialize["id"] = o.Id - toSerialize["tenant_id"] = o.TenantId - if o.CreatedAt.IsSet() { - toSerialize["created_at"] = o.CreatedAt.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ACLOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "subject_type", - "subject_id", - "resource_type", - "resource_id", - "action", - "effect", - "id", - "tenant_id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varACLOut := _ACLOut{} - - err = json.Unmarshal(data, &varACLOut) - - if err != nil { - return err - } - - *o = ACLOut(varACLOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "subject_type") - delete(additionalProperties, "subject_id") - delete(additionalProperties, "resource_type") - delete(additionalProperties, "resource_id") - delete(additionalProperties, "action") - delete(additionalProperties, "effect") - delete(additionalProperties, "id") - delete(additionalProperties, "tenant_id") - delete(additionalProperties, "created_at") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableACLOut struct { - value *ACLOut - isSet bool -} - -func (v NullableACLOut) Get() *ACLOut { - return v.value -} - -func (v *NullableACLOut) Set(val *ACLOut) { - v.value = val - v.isSet = true -} - -func (v NullableACLOut) IsSet() bool { - return v.isSet -} - -func (v *NullableACLOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableACLOut(val *ACLOut) *NullableACLOut { - return &NullableACLOut{value: val, isSet: true} -} - -func (v NullableACLOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableACLOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_admin_login_request.go b/sdks/go/model_admin_login_request.go deleted file mode 100644 index d33b112..0000000 --- a/sdks/go/model_admin_login_request.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the AdminLoginRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AdminLoginRequest{} - -// AdminLoginRequest struct for AdminLoginRequest -type AdminLoginRequest struct { - Username string `json:"username"` - Password string `json:"password"` - AdditionalProperties map[string]interface{} -} - -type _AdminLoginRequest AdminLoginRequest - -// NewAdminLoginRequest instantiates a new AdminLoginRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAdminLoginRequest(username string, password string) *AdminLoginRequest { - this := AdminLoginRequest{} - this.Username = username - this.Password = password - return &this -} - -// NewAdminLoginRequestWithDefaults instantiates a new AdminLoginRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAdminLoginRequestWithDefaults() *AdminLoginRequest { - this := AdminLoginRequest{} - return &this -} - -// GetUsername returns the Username field value -func (o *AdminLoginRequest) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *AdminLoginRequest) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *AdminLoginRequest) SetUsername(v string) { - o.Username = v -} - -// GetPassword returns the Password field value -func (o *AdminLoginRequest) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *AdminLoginRequest) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *AdminLoginRequest) SetPassword(v string) { - o.Password = v -} - -func (o AdminLoginRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AdminLoginRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - toSerialize["password"] = o.Password - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AdminLoginRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAdminLoginRequest := _AdminLoginRequest{} - - err = json.Unmarshal(data, &varAdminLoginRequest) - - if err != nil { - return err - } - - *o = AdminLoginRequest(varAdminLoginRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "password") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAdminLoginRequest struct { - value *AdminLoginRequest - isSet bool -} - -func (v NullableAdminLoginRequest) Get() *AdminLoginRequest { - return v.value -} - -func (v *NullableAdminLoginRequest) Set(val *AdminLoginRequest) { - v.value = val - v.isSet = true -} - -func (v NullableAdminLoginRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableAdminLoginRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAdminLoginRequest(val *AdminLoginRequest) *NullableAdminLoginRequest { - return &NullableAdminLoginRequest{value: val, isSet: true} -} - -func (v NullableAdminLoginRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAdminLoginRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_admin_login_response.go b/sdks/go/model_admin_login_response.go deleted file mode 100644 index b652c26..0000000 --- a/sdks/go/model_admin_login_response.go +++ /dev/null @@ -1,308 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the AdminLoginResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AdminLoginResponse{} - -// AdminLoginResponse struct for AdminLoginResponse -type AdminLoginResponse struct { - AccessToken string `json:"access_token"` - TokenType *string `json:"token_type,omitempty"` - ExpiresIn int32 `json:"expires_in"` - Role *string `json:"role,omitempty"` - TenantKey string `json:"tenant_key"` - AdditionalProperties map[string]interface{} -} - -type _AdminLoginResponse AdminLoginResponse - -// NewAdminLoginResponse instantiates a new AdminLoginResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAdminLoginResponse(accessToken string, expiresIn int32, tenantKey string) *AdminLoginResponse { - this := AdminLoginResponse{} - this.AccessToken = accessToken - var tokenType string = "bearer" - this.TokenType = &tokenType - this.ExpiresIn = expiresIn - var role string = "admin" - this.Role = &role - this.TenantKey = tenantKey - return &this -} - -// NewAdminLoginResponseWithDefaults instantiates a new AdminLoginResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAdminLoginResponseWithDefaults() *AdminLoginResponse { - this := AdminLoginResponse{} - var tokenType string = "bearer" - this.TokenType = &tokenType - var role string = "admin" - this.Role = &role - return &this -} - -// GetAccessToken returns the AccessToken field value -func (o *AdminLoginResponse) GetAccessToken() string { - if o == nil { - var ret string - return ret - } - - return o.AccessToken -} - -// GetAccessTokenOk returns a tuple with the AccessToken field value -// and a boolean to check if the value has been set. -func (o *AdminLoginResponse) GetAccessTokenOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AccessToken, true -} - -// SetAccessToken sets field value -func (o *AdminLoginResponse) SetAccessToken(v string) { - o.AccessToken = v -} - -// GetTokenType returns the TokenType field value if set, zero value otherwise. -func (o *AdminLoginResponse) GetTokenType() string { - if o == nil || IsNil(o.TokenType) { - var ret string - return ret - } - return *o.TokenType -} - -// GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AdminLoginResponse) GetTokenTypeOk() (*string, bool) { - if o == nil || IsNil(o.TokenType) { - return nil, false - } - return o.TokenType, true -} - -// HasTokenType returns a boolean if a field has been set. -func (o *AdminLoginResponse) HasTokenType() bool { - if o != nil && !IsNil(o.TokenType) { - return true - } - - return false -} - -// SetTokenType gets a reference to the given string and assigns it to the TokenType field. -func (o *AdminLoginResponse) SetTokenType(v string) { - o.TokenType = &v -} - -// GetExpiresIn returns the ExpiresIn field value -func (o *AdminLoginResponse) GetExpiresIn() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ExpiresIn -} - -// GetExpiresInOk returns a tuple with the ExpiresIn field value -// and a boolean to check if the value has been set. -func (o *AdminLoginResponse) GetExpiresInOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ExpiresIn, true -} - -// SetExpiresIn sets field value -func (o *AdminLoginResponse) SetExpiresIn(v int32) { - o.ExpiresIn = v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *AdminLoginResponse) GetRole() string { - if o == nil || IsNil(o.Role) { - var ret string - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AdminLoginResponse) GetRoleOk() (*string, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *AdminLoginResponse) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given string and assigns it to the Role field. -func (o *AdminLoginResponse) SetRole(v string) { - o.Role = &v -} - -// GetTenantKey returns the TenantKey field value -func (o *AdminLoginResponse) GetTenantKey() string { - if o == nil { - var ret string - return ret - } - - return o.TenantKey -} - -// GetTenantKeyOk returns a tuple with the TenantKey field value -// and a boolean to check if the value has been set. -func (o *AdminLoginResponse) GetTenantKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TenantKey, true -} - -// SetTenantKey sets field value -func (o *AdminLoginResponse) SetTenantKey(v string) { - o.TenantKey = v -} - -func (o AdminLoginResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AdminLoginResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["access_token"] = o.AccessToken - if !IsNil(o.TokenType) { - toSerialize["token_type"] = o.TokenType - } - toSerialize["expires_in"] = o.ExpiresIn - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - toSerialize["tenant_key"] = o.TenantKey - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AdminLoginResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "access_token", - "expires_in", - "tenant_key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAdminLoginResponse := _AdminLoginResponse{} - - err = json.Unmarshal(data, &varAdminLoginResponse) - - if err != nil { - return err - } - - *o = AdminLoginResponse(varAdminLoginResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "access_token") - delete(additionalProperties, "token_type") - delete(additionalProperties, "expires_in") - delete(additionalProperties, "role") - delete(additionalProperties, "tenant_key") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAdminLoginResponse struct { - value *AdminLoginResponse - isSet bool -} - -func (v NullableAdminLoginResponse) Get() *AdminLoginResponse { - return v.value -} - -func (v *NullableAdminLoginResponse) Set(val *AdminLoginResponse) { - v.value = val - v.isSet = true -} - -func (v NullableAdminLoginResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableAdminLoginResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAdminLoginResponse(val *AdminLoginResponse) *NullableAdminLoginResponse { - return &NullableAdminLoginResponse{value: val, isSet: true} -} - -func (v NullableAdminLoginResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAdminLoginResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_audit_record_out.go b/sdks/go/model_audit_record_out.go deleted file mode 100644 index 7ee99da..0000000 --- a/sdks/go/model_audit_record_out.go +++ /dev/null @@ -1,553 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "time" - "fmt" -) - -// checks if the AuditRecordOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AuditRecordOut{} - -// AuditRecordOut struct for AuditRecordOut -type AuditRecordOut struct { - Id int32 `json:"id"` - PrincipalType string `json:"principal_type"` - PrincipalId string `json:"principal_id"` - CorrelationId NullableString `json:"correlation_id,omitempty"` - User map[string]interface{} `json:"user"` - Action string `json:"action"` - Resource map[string]interface{} `json:"resource"` - Decision string `json:"decision"` - MatchedPolicies []interface{} `json:"matched_policies"` - Reason NullableString `json:"reason,omitempty"` - EvaluatedRules []interface{} `json:"evaluated_rules"` - FailedConditions []interface{} `json:"failed_conditions"` - CreatedAt time.Time `json:"created_at"` - AdditionalProperties map[string]interface{} -} - -type _AuditRecordOut AuditRecordOut - -// NewAuditRecordOut instantiates a new AuditRecordOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAuditRecordOut(id int32, principalType string, principalId string, user map[string]interface{}, action string, resource map[string]interface{}, decision string, matchedPolicies []interface{}, evaluatedRules []interface{}, failedConditions []interface{}, createdAt time.Time) *AuditRecordOut { - this := AuditRecordOut{} - this.Id = id - this.PrincipalType = principalType - this.PrincipalId = principalId - this.User = user - this.Action = action - this.Resource = resource - this.Decision = decision - this.MatchedPolicies = matchedPolicies - this.EvaluatedRules = evaluatedRules - this.FailedConditions = failedConditions - this.CreatedAt = createdAt - return &this -} - -// NewAuditRecordOutWithDefaults instantiates a new AuditRecordOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAuditRecordOutWithDefaults() *AuditRecordOut { - this := AuditRecordOut{} - return &this -} - -// GetId returns the Id field value -func (o *AuditRecordOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *AuditRecordOut) SetId(v int32) { - o.Id = v -} - -// GetPrincipalType returns the PrincipalType field value -func (o *AuditRecordOut) GetPrincipalType() string { - if o == nil { - var ret string - return ret - } - - return o.PrincipalType -} - -// GetPrincipalTypeOk returns a tuple with the PrincipalType field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetPrincipalTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PrincipalType, true -} - -// SetPrincipalType sets field value -func (o *AuditRecordOut) SetPrincipalType(v string) { - o.PrincipalType = v -} - -// GetPrincipalId returns the PrincipalId field value -func (o *AuditRecordOut) GetPrincipalId() string { - if o == nil { - var ret string - return ret - } - - return o.PrincipalId -} - -// GetPrincipalIdOk returns a tuple with the PrincipalId field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetPrincipalIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PrincipalId, true -} - -// SetPrincipalId sets field value -func (o *AuditRecordOut) SetPrincipalId(v string) { - o.PrincipalId = v -} - -// GetCorrelationId returns the CorrelationId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AuditRecordOut) GetCorrelationId() string { - if o == nil || IsNil(o.CorrelationId.Get()) { - var ret string - return ret - } - return *o.CorrelationId.Get() -} - -// GetCorrelationIdOk returns a tuple with the CorrelationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AuditRecordOut) GetCorrelationIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.CorrelationId.Get(), o.CorrelationId.IsSet() -} - -// HasCorrelationId returns a boolean if a field has been set. -func (o *AuditRecordOut) HasCorrelationId() bool { - if o != nil && o.CorrelationId.IsSet() { - return true - } - - return false -} - -// SetCorrelationId gets a reference to the given NullableString and assigns it to the CorrelationId field. -func (o *AuditRecordOut) SetCorrelationId(v string) { - o.CorrelationId.Set(&v) -} -// SetCorrelationIdNil sets the value for CorrelationId to be an explicit nil -func (o *AuditRecordOut) SetCorrelationIdNil() { - o.CorrelationId.Set(nil) -} - -// UnsetCorrelationId ensures that no value is present for CorrelationId, not even an explicit nil -func (o *AuditRecordOut) UnsetCorrelationId() { - o.CorrelationId.Unset() -} - -// GetUser returns the User field value -func (o *AuditRecordOut) GetUser() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.User -} - -// GetUserOk returns a tuple with the User field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetUserOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.User, true -} - -// SetUser sets field value -func (o *AuditRecordOut) SetUser(v map[string]interface{}) { - o.User = v -} - -// GetAction returns the Action field value -func (o *AuditRecordOut) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *AuditRecordOut) SetAction(v string) { - o.Action = v -} - -// GetResource returns the Resource field value -func (o *AuditRecordOut) GetResource() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Resource -} - -// GetResourceOk returns a tuple with the Resource field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetResourceOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Resource, true -} - -// SetResource sets field value -func (o *AuditRecordOut) SetResource(v map[string]interface{}) { - o.Resource = v -} - -// GetDecision returns the Decision field value -func (o *AuditRecordOut) GetDecision() string { - if o == nil { - var ret string - return ret - } - - return o.Decision -} - -// GetDecisionOk returns a tuple with the Decision field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetDecisionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Decision, true -} - -// SetDecision sets field value -func (o *AuditRecordOut) SetDecision(v string) { - o.Decision = v -} - -// GetMatchedPolicies returns the MatchedPolicies field value -func (o *AuditRecordOut) GetMatchedPolicies() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.MatchedPolicies -} - -// GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetMatchedPoliciesOk() ([]interface{}, bool) { - if o == nil { - return nil, false - } - return o.MatchedPolicies, true -} - -// SetMatchedPolicies sets field value -func (o *AuditRecordOut) SetMatchedPolicies(v []interface{}) { - o.MatchedPolicies = v -} - -// GetReason returns the Reason field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AuditRecordOut) GetReason() string { - if o == nil || IsNil(o.Reason.Get()) { - var ret string - return ret - } - return *o.Reason.Get() -} - -// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AuditRecordOut) GetReasonOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Reason.Get(), o.Reason.IsSet() -} - -// HasReason returns a boolean if a field has been set. -func (o *AuditRecordOut) HasReason() bool { - if o != nil && o.Reason.IsSet() { - return true - } - - return false -} - -// SetReason gets a reference to the given NullableString and assigns it to the Reason field. -func (o *AuditRecordOut) SetReason(v string) { - o.Reason.Set(&v) -} -// SetReasonNil sets the value for Reason to be an explicit nil -func (o *AuditRecordOut) SetReasonNil() { - o.Reason.Set(nil) -} - -// UnsetReason ensures that no value is present for Reason, not even an explicit nil -func (o *AuditRecordOut) UnsetReason() { - o.Reason.Unset() -} - -// GetEvaluatedRules returns the EvaluatedRules field value -func (o *AuditRecordOut) GetEvaluatedRules() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.EvaluatedRules -} - -// GetEvaluatedRulesOk returns a tuple with the EvaluatedRules field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetEvaluatedRulesOk() ([]interface{}, bool) { - if o == nil { - return nil, false - } - return o.EvaluatedRules, true -} - -// SetEvaluatedRules sets field value -func (o *AuditRecordOut) SetEvaluatedRules(v []interface{}) { - o.EvaluatedRules = v -} - -// GetFailedConditions returns the FailedConditions field value -func (o *AuditRecordOut) GetFailedConditions() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.FailedConditions -} - -// GetFailedConditionsOk returns a tuple with the FailedConditions field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetFailedConditionsOk() ([]interface{}, bool) { - if o == nil { - return nil, false - } - return o.FailedConditions, true -} - -// SetFailedConditions sets field value -func (o *AuditRecordOut) SetFailedConditions(v []interface{}) { - o.FailedConditions = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *AuditRecordOut) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *AuditRecordOut) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *AuditRecordOut) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -func (o AuditRecordOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AuditRecordOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["principal_type"] = o.PrincipalType - toSerialize["principal_id"] = o.PrincipalId - if o.CorrelationId.IsSet() { - toSerialize["correlation_id"] = o.CorrelationId.Get() - } - toSerialize["user"] = o.User - toSerialize["action"] = o.Action - toSerialize["resource"] = o.Resource - toSerialize["decision"] = o.Decision - toSerialize["matched_policies"] = o.MatchedPolicies - if o.Reason.IsSet() { - toSerialize["reason"] = o.Reason.Get() - } - toSerialize["evaluated_rules"] = o.EvaluatedRules - toSerialize["failed_conditions"] = o.FailedConditions - toSerialize["created_at"] = o.CreatedAt - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AuditRecordOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "principal_type", - "principal_id", - "user", - "action", - "resource", - "decision", - "matched_policies", - "evaluated_rules", - "failed_conditions", - "created_at", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAuditRecordOut := _AuditRecordOut{} - - err = json.Unmarshal(data, &varAuditRecordOut) - - if err != nil { - return err - } - - *o = AuditRecordOut(varAuditRecordOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "principal_type") - delete(additionalProperties, "principal_id") - delete(additionalProperties, "correlation_id") - delete(additionalProperties, "user") - delete(additionalProperties, "action") - delete(additionalProperties, "resource") - delete(additionalProperties, "decision") - delete(additionalProperties, "matched_policies") - delete(additionalProperties, "reason") - delete(additionalProperties, "evaluated_rules") - delete(additionalProperties, "failed_conditions") - delete(additionalProperties, "created_at") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAuditRecordOut struct { - value *AuditRecordOut - isSet bool -} - -func (v NullableAuditRecordOut) Get() *AuditRecordOut { - return v.value -} - -func (v *NullableAuditRecordOut) Set(val *AuditRecordOut) { - v.value = val - v.isSet = true -} - -func (v NullableAuditRecordOut) IsSet() bool { - return v.isSet -} - -func (v *NullableAuditRecordOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuditRecordOut(val *AuditRecordOut) *NullableAuditRecordOut { - return &NullableAuditRecordOut{value: val, isSet: true} -} - -func (v NullableAuditRecordOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAuditRecordOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_auth_model_create.go b/sdks/go/model_auth_model_create.go deleted file mode 100644 index 8d49dd0..0000000 --- a/sdks/go/model_auth_model_create.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the AuthModelCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AuthModelCreate{} - -// AuthModelCreate struct for AuthModelCreate -type AuthModelCreate struct { - Schema string `json:"schema"` - AdditionalProperties map[string]interface{} -} - -type _AuthModelCreate AuthModelCreate - -// NewAuthModelCreate instantiates a new AuthModelCreate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAuthModelCreate(schema string) *AuthModelCreate { - this := AuthModelCreate{} - this.Schema = schema - return &this -} - -// NewAuthModelCreateWithDefaults instantiates a new AuthModelCreate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAuthModelCreateWithDefaults() *AuthModelCreate { - this := AuthModelCreate{} - return &this -} - -// GetSchema returns the Schema field value -func (o *AuthModelCreate) GetSchema() string { - if o == nil { - var ret string - return ret - } - - return o.Schema -} - -// GetSchemaOk returns a tuple with the Schema field value -// and a boolean to check if the value has been set. -func (o *AuthModelCreate) GetSchemaOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Schema, true -} - -// SetSchema sets field value -func (o *AuthModelCreate) SetSchema(v string) { - o.Schema = v -} - -func (o AuthModelCreate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AuthModelCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["schema"] = o.Schema - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AuthModelCreate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "schema", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAuthModelCreate := _AuthModelCreate{} - - err = json.Unmarshal(data, &varAuthModelCreate) - - if err != nil { - return err - } - - *o = AuthModelCreate(varAuthModelCreate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "schema") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAuthModelCreate struct { - value *AuthModelCreate - isSet bool -} - -func (v NullableAuthModelCreate) Get() *AuthModelCreate { - return v.value -} - -func (v *NullableAuthModelCreate) Set(val *AuthModelCreate) { - v.value = val - v.isSet = true -} - -func (v NullableAuthModelCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthModelCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthModelCreate(val *AuthModelCreate) *NullableAuthModelCreate { - return &NullableAuthModelCreate{value: val, isSet: true} -} - -func (v NullableAuthModelCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAuthModelCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_auth_model_out.go b/sdks/go/model_auth_model_out.go deleted file mode 100644 index a828fd2..0000000 --- a/sdks/go/model_auth_model_out.go +++ /dev/null @@ -1,284 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the AuthModelOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AuthModelOut{} - -// AuthModelOut struct for AuthModelOut -type AuthModelOut struct { - Id int32 `json:"id"` - TenantId int32 `json:"tenant_id"` - Schema string `json:"schema"` - Parsed map[string]interface{} `json:"parsed"` - Compiled map[string]interface{} `json:"compiled"` - AdditionalProperties map[string]interface{} -} - -type _AuthModelOut AuthModelOut - -// NewAuthModelOut instantiates a new AuthModelOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAuthModelOut(id int32, tenantId int32, schema string, parsed map[string]interface{}, compiled map[string]interface{}) *AuthModelOut { - this := AuthModelOut{} - this.Id = id - this.TenantId = tenantId - this.Schema = schema - this.Parsed = parsed - this.Compiled = compiled - return &this -} - -// NewAuthModelOutWithDefaults instantiates a new AuthModelOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAuthModelOutWithDefaults() *AuthModelOut { - this := AuthModelOut{} - return &this -} - -// GetId returns the Id field value -func (o *AuthModelOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *AuthModelOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *AuthModelOut) SetId(v int32) { - o.Id = v -} - -// GetTenantId returns the TenantId field value -func (o *AuthModelOut) GetTenantId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.TenantId -} - -// GetTenantIdOk returns a tuple with the TenantId field value -// and a boolean to check if the value has been set. -func (o *AuthModelOut) GetTenantIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.TenantId, true -} - -// SetTenantId sets field value -func (o *AuthModelOut) SetTenantId(v int32) { - o.TenantId = v -} - -// GetSchema returns the Schema field value -func (o *AuthModelOut) GetSchema() string { - if o == nil { - var ret string - return ret - } - - return o.Schema -} - -// GetSchemaOk returns a tuple with the Schema field value -// and a boolean to check if the value has been set. -func (o *AuthModelOut) GetSchemaOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Schema, true -} - -// SetSchema sets field value -func (o *AuthModelOut) SetSchema(v string) { - o.Schema = v -} - -// GetParsed returns the Parsed field value -func (o *AuthModelOut) GetParsed() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Parsed -} - -// GetParsedOk returns a tuple with the Parsed field value -// and a boolean to check if the value has been set. -func (o *AuthModelOut) GetParsedOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Parsed, true -} - -// SetParsed sets field value -func (o *AuthModelOut) SetParsed(v map[string]interface{}) { - o.Parsed = v -} - -// GetCompiled returns the Compiled field value -func (o *AuthModelOut) GetCompiled() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Compiled -} - -// GetCompiledOk returns a tuple with the Compiled field value -// and a boolean to check if the value has been set. -func (o *AuthModelOut) GetCompiledOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Compiled, true -} - -// SetCompiled sets field value -func (o *AuthModelOut) SetCompiled(v map[string]interface{}) { - o.Compiled = v -} - -func (o AuthModelOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AuthModelOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["tenant_id"] = o.TenantId - toSerialize["schema"] = o.Schema - toSerialize["parsed"] = o.Parsed - toSerialize["compiled"] = o.Compiled - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AuthModelOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "tenant_id", - "schema", - "parsed", - "compiled", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAuthModelOut := _AuthModelOut{} - - err = json.Unmarshal(data, &varAuthModelOut) - - if err != nil { - return err - } - - *o = AuthModelOut(varAuthModelOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "tenant_id") - delete(additionalProperties, "schema") - delete(additionalProperties, "parsed") - delete(additionalProperties, "compiled") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAuthModelOut struct { - value *AuthModelOut - isSet bool -} - -func (v NullableAuthModelOut) Get() *AuthModelOut { - return v.value -} - -func (v *NullableAuthModelOut) Set(val *AuthModelOut) { - v.value = val - v.isSet = true -} - -func (v NullableAuthModelOut) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthModelOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthModelOut(val *AuthModelOut) *NullableAuthModelOut { - return &NullableAuthModelOut{value: val, isSet: true} -} - -func (v NullableAuthModelOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAuthModelOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_batch_access_item.go b/sdks/go/model_batch_access_item.go deleted file mode 100644 index bb1f7a0..0000000 --- a/sdks/go/model_batch_access_item.go +++ /dev/null @@ -1,205 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the BatchAccessItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BatchAccessItem{} - -// BatchAccessItem struct for BatchAccessItem -type BatchAccessItem struct { - Action string `json:"action"` - Resource map[string]interface{} `json:"resource,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _BatchAccessItem BatchAccessItem - -// NewBatchAccessItem instantiates a new BatchAccessItem object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBatchAccessItem(action string) *BatchAccessItem { - this := BatchAccessItem{} - this.Action = action - return &this -} - -// NewBatchAccessItemWithDefaults instantiates a new BatchAccessItem object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBatchAccessItemWithDefaults() *BatchAccessItem { - this := BatchAccessItem{} - return &this -} - -// GetAction returns the Action field value -func (o *BatchAccessItem) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *BatchAccessItem) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *BatchAccessItem) SetAction(v string) { - o.Action = v -} - -// GetResource returns the Resource field value if set, zero value otherwise. -func (o *BatchAccessItem) GetResource() map[string]interface{} { - if o == nil || IsNil(o.Resource) { - var ret map[string]interface{} - return ret - } - return o.Resource -} - -// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BatchAccessItem) GetResourceOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Resource) { - return map[string]interface{}{}, false - } - return o.Resource, true -} - -// HasResource returns a boolean if a field has been set. -func (o *BatchAccessItem) HasResource() bool { - if o != nil && !IsNil(o.Resource) { - return true - } - - return false -} - -// SetResource gets a reference to the given map[string]interface{} and assigns it to the Resource field. -func (o *BatchAccessItem) SetResource(v map[string]interface{}) { - o.Resource = v -} - -func (o BatchAccessItem) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BatchAccessItem) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.Resource) { - toSerialize["resource"] = o.Resource - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *BatchAccessItem) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varBatchAccessItem := _BatchAccessItem{} - - err = json.Unmarshal(data, &varBatchAccessItem) - - if err != nil { - return err - } - - *o = BatchAccessItem(varBatchAccessItem) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "resource") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableBatchAccessItem struct { - value *BatchAccessItem - isSet bool -} - -func (v NullableBatchAccessItem) Get() *BatchAccessItem { - return v.value -} - -func (v *NullableBatchAccessItem) Set(val *BatchAccessItem) { - v.value = val - v.isSet = true -} - -func (v NullableBatchAccessItem) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchAccessItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchAccessItem(val *BatchAccessItem) *NullableBatchAccessItem { - return &NullableBatchAccessItem{value: val, isSet: true} -} - -func (v NullableBatchAccessItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBatchAccessItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_batch_access_request.go b/sdks/go/model_batch_access_request.go deleted file mode 100644 index 1989e44..0000000 --- a/sdks/go/model_batch_access_request.go +++ /dev/null @@ -1,293 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the BatchAccessRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BatchAccessRequest{} - -// BatchAccessRequest struct for BatchAccessRequest -type BatchAccessRequest struct { - User map[string]interface{} `json:"user,omitempty"` - Items []BatchAccessItem `json:"items"` - Consistency *string `json:"consistency,omitempty"` - Revision NullableInt32 `json:"revision,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _BatchAccessRequest BatchAccessRequest - -// NewBatchAccessRequest instantiates a new BatchAccessRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBatchAccessRequest(items []BatchAccessItem) *BatchAccessRequest { - this := BatchAccessRequest{} - this.Items = items - var consistency string = "eventual" - this.Consistency = &consistency - return &this -} - -// NewBatchAccessRequestWithDefaults instantiates a new BatchAccessRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBatchAccessRequestWithDefaults() *BatchAccessRequest { - this := BatchAccessRequest{} - var consistency string = "eventual" - this.Consistency = &consistency - return &this -} - -// GetUser returns the User field value if set, zero value otherwise. -func (o *BatchAccessRequest) GetUser() map[string]interface{} { - if o == nil || IsNil(o.User) { - var ret map[string]interface{} - return ret - } - return o.User -} - -// GetUserOk returns a tuple with the User field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BatchAccessRequest) GetUserOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.User) { - return map[string]interface{}{}, false - } - return o.User, true -} - -// HasUser returns a boolean if a field has been set. -func (o *BatchAccessRequest) HasUser() bool { - if o != nil && !IsNil(o.User) { - return true - } - - return false -} - -// SetUser gets a reference to the given map[string]interface{} and assigns it to the User field. -func (o *BatchAccessRequest) SetUser(v map[string]interface{}) { - o.User = v -} - -// GetItems returns the Items field value -func (o *BatchAccessRequest) GetItems() []BatchAccessItem { - if o == nil { - var ret []BatchAccessItem - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *BatchAccessRequest) GetItemsOk() ([]BatchAccessItem, bool) { - if o == nil { - return nil, false - } - return o.Items, true -} - -// SetItems sets field value -func (o *BatchAccessRequest) SetItems(v []BatchAccessItem) { - o.Items = v -} - -// GetConsistency returns the Consistency field value if set, zero value otherwise. -func (o *BatchAccessRequest) GetConsistency() string { - if o == nil || IsNil(o.Consistency) { - var ret string - return ret - } - return *o.Consistency -} - -// GetConsistencyOk returns a tuple with the Consistency field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BatchAccessRequest) GetConsistencyOk() (*string, bool) { - if o == nil || IsNil(o.Consistency) { - return nil, false - } - return o.Consistency, true -} - -// HasConsistency returns a boolean if a field has been set. -func (o *BatchAccessRequest) HasConsistency() bool { - if o != nil && !IsNil(o.Consistency) { - return true - } - - return false -} - -// SetConsistency gets a reference to the given string and assigns it to the Consistency field. -func (o *BatchAccessRequest) SetConsistency(v string) { - o.Consistency = &v -} - -// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BatchAccessRequest) GetRevision() int32 { - if o == nil || IsNil(o.Revision.Get()) { - var ret int32 - return ret - } - return *o.Revision.Get() -} - -// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BatchAccessRequest) GetRevisionOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Revision.Get(), o.Revision.IsSet() -} - -// HasRevision returns a boolean if a field has been set. -func (o *BatchAccessRequest) HasRevision() bool { - if o != nil && o.Revision.IsSet() { - return true - } - - return false -} - -// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. -func (o *BatchAccessRequest) SetRevision(v int32) { - o.Revision.Set(&v) -} -// SetRevisionNil sets the value for Revision to be an explicit nil -func (o *BatchAccessRequest) SetRevisionNil() { - o.Revision.Set(nil) -} - -// UnsetRevision ensures that no value is present for Revision, not even an explicit nil -func (o *BatchAccessRequest) UnsetRevision() { - o.Revision.Unset() -} - -func (o BatchAccessRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BatchAccessRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.User) { - toSerialize["user"] = o.User - } - toSerialize["items"] = o.Items - if !IsNil(o.Consistency) { - toSerialize["consistency"] = o.Consistency - } - if o.Revision.IsSet() { - toSerialize["revision"] = o.Revision.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *BatchAccessRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "items", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varBatchAccessRequest := _BatchAccessRequest{} - - err = json.Unmarshal(data, &varBatchAccessRequest) - - if err != nil { - return err - } - - *o = BatchAccessRequest(varBatchAccessRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "user") - delete(additionalProperties, "items") - delete(additionalProperties, "consistency") - delete(additionalProperties, "revision") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableBatchAccessRequest struct { - value *BatchAccessRequest - isSet bool -} - -func (v NullableBatchAccessRequest) Get() *BatchAccessRequest { - return v.value -} - -func (v *NullableBatchAccessRequest) Set(val *BatchAccessRequest) { - v.value = val - v.isSet = true -} - -func (v NullableBatchAccessRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchAccessRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchAccessRequest(val *BatchAccessRequest) *NullableBatchAccessRequest { - return &NullableBatchAccessRequest{value: val, isSet: true} -} - -func (v NullableBatchAccessRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBatchAccessRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_batch_access_response.go b/sdks/go/model_batch_access_response.go deleted file mode 100644 index 222d841..0000000 --- a/sdks/go/model_batch_access_response.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the BatchAccessResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BatchAccessResponse{} - -// BatchAccessResponse struct for BatchAccessResponse -type BatchAccessResponse struct { - Results []BatchAccessResult `json:"results"` - Revision NullableInt32 `json:"revision,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _BatchAccessResponse BatchAccessResponse - -// NewBatchAccessResponse instantiates a new BatchAccessResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBatchAccessResponse(results []BatchAccessResult) *BatchAccessResponse { - this := BatchAccessResponse{} - this.Results = results - return &this -} - -// NewBatchAccessResponseWithDefaults instantiates a new BatchAccessResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBatchAccessResponseWithDefaults() *BatchAccessResponse { - this := BatchAccessResponse{} - return &this -} - -// GetResults returns the Results field value -func (o *BatchAccessResponse) GetResults() []BatchAccessResult { - if o == nil { - var ret []BatchAccessResult - return ret - } - - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value -// and a boolean to check if the value has been set. -func (o *BatchAccessResponse) GetResultsOk() ([]BatchAccessResult, bool) { - if o == nil { - return nil, false - } - return o.Results, true -} - -// SetResults sets field value -func (o *BatchAccessResponse) SetResults(v []BatchAccessResult) { - o.Results = v -} - -// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BatchAccessResponse) GetRevision() int32 { - if o == nil || IsNil(o.Revision.Get()) { - var ret int32 - return ret - } - return *o.Revision.Get() -} - -// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BatchAccessResponse) GetRevisionOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Revision.Get(), o.Revision.IsSet() -} - -// HasRevision returns a boolean if a field has been set. -func (o *BatchAccessResponse) HasRevision() bool { - if o != nil && o.Revision.IsSet() { - return true - } - - return false -} - -// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. -func (o *BatchAccessResponse) SetRevision(v int32) { - o.Revision.Set(&v) -} -// SetRevisionNil sets the value for Revision to be an explicit nil -func (o *BatchAccessResponse) SetRevisionNil() { - o.Revision.Set(nil) -} - -// UnsetRevision ensures that no value is present for Revision, not even an explicit nil -func (o *BatchAccessResponse) UnsetRevision() { - o.Revision.Unset() -} - -func (o BatchAccessResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BatchAccessResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["results"] = o.Results - if o.Revision.IsSet() { - toSerialize["revision"] = o.Revision.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *BatchAccessResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "results", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varBatchAccessResponse := _BatchAccessResponse{} - - err = json.Unmarshal(data, &varBatchAccessResponse) - - if err != nil { - return err - } - - *o = BatchAccessResponse(varBatchAccessResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "results") - delete(additionalProperties, "revision") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableBatchAccessResponse struct { - value *BatchAccessResponse - isSet bool -} - -func (v NullableBatchAccessResponse) Get() *BatchAccessResponse { - return v.value -} - -func (v *NullableBatchAccessResponse) Set(val *BatchAccessResponse) { - v.value = val - v.isSet = true -} - -func (v NullableBatchAccessResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchAccessResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchAccessResponse(val *BatchAccessResponse) *NullableBatchAccessResponse { - return &NullableBatchAccessResponse{value: val, isSet: true} -} - -func (v NullableBatchAccessResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBatchAccessResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_batch_access_result.go b/sdks/go/model_batch_access_result.go deleted file mode 100644 index 94a4334..0000000 --- a/sdks/go/model_batch_access_result.go +++ /dev/null @@ -1,244 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the BatchAccessResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BatchAccessResult{} - -// BatchAccessResult struct for BatchAccessResult -type BatchAccessResult struct { - Action string `json:"action"` - Allowed bool `json:"allowed"` - Revision NullableInt32 `json:"revision,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _BatchAccessResult BatchAccessResult - -// NewBatchAccessResult instantiates a new BatchAccessResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBatchAccessResult(action string, allowed bool) *BatchAccessResult { - this := BatchAccessResult{} - this.Action = action - this.Allowed = allowed - return &this -} - -// NewBatchAccessResultWithDefaults instantiates a new BatchAccessResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBatchAccessResultWithDefaults() *BatchAccessResult { - this := BatchAccessResult{} - return &this -} - -// GetAction returns the Action field value -func (o *BatchAccessResult) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *BatchAccessResult) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *BatchAccessResult) SetAction(v string) { - o.Action = v -} - -// GetAllowed returns the Allowed field value -func (o *BatchAccessResult) GetAllowed() bool { - if o == nil { - var ret bool - return ret - } - - return o.Allowed -} - -// GetAllowedOk returns a tuple with the Allowed field value -// and a boolean to check if the value has been set. -func (o *BatchAccessResult) GetAllowedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Allowed, true -} - -// SetAllowed sets field value -func (o *BatchAccessResult) SetAllowed(v bool) { - o.Allowed = v -} - -// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BatchAccessResult) GetRevision() int32 { - if o == nil || IsNil(o.Revision.Get()) { - var ret int32 - return ret - } - return *o.Revision.Get() -} - -// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BatchAccessResult) GetRevisionOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Revision.Get(), o.Revision.IsSet() -} - -// HasRevision returns a boolean if a field has been set. -func (o *BatchAccessResult) HasRevision() bool { - if o != nil && o.Revision.IsSet() { - return true - } - - return false -} - -// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. -func (o *BatchAccessResult) SetRevision(v int32) { - o.Revision.Set(&v) -} -// SetRevisionNil sets the value for Revision to be an explicit nil -func (o *BatchAccessResult) SetRevisionNil() { - o.Revision.Set(nil) -} - -// UnsetRevision ensures that no value is present for Revision, not even an explicit nil -func (o *BatchAccessResult) UnsetRevision() { - o.Revision.Unset() -} - -func (o BatchAccessResult) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BatchAccessResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - toSerialize["allowed"] = o.Allowed - if o.Revision.IsSet() { - toSerialize["revision"] = o.Revision.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *BatchAccessResult) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "allowed", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varBatchAccessResult := _BatchAccessResult{} - - err = json.Unmarshal(data, &varBatchAccessResult) - - if err != nil { - return err - } - - *o = BatchAccessResult(varBatchAccessResult) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allowed") - delete(additionalProperties, "revision") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableBatchAccessResult struct { - value *BatchAccessResult - isSet bool -} - -func (v NullableBatchAccessResult) Get() *BatchAccessResult { - return v.value -} - -func (v *NullableBatchAccessResult) Set(val *BatchAccessResult) { - v.value = val - v.isSet = true -} - -func (v NullableBatchAccessResult) IsSet() bool { - return v.isSet -} - -func (v *NullableBatchAccessResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBatchAccessResult(val *BatchAccessResult) *NullableBatchAccessResult { - return &NullableBatchAccessResult{value: val, isSet: true} -} - -func (v NullableBatchAccessResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBatchAccessResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_data_value.go b/sdks/go/model_data_value.go deleted file mode 100644 index 0d1bc0c..0000000 --- a/sdks/go/model_data_value.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - - -// DataValue struct for DataValue -type DataValue struct { - Int32 *int32 - String *string -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *DataValue) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into Int32 - err = json.Unmarshal(data, &dst.Int32); - if err == nil { - jsonInt32, _ := json.Marshal(dst.Int32) - if string(jsonInt32) == "{}" { // empty struct - dst.Int32 = nil - } else { - return nil // data stored in dst.Int32, return on the first match - } - } else { - dst.Int32 = nil - } - - // try to unmarshal JSON data into String - err = json.Unmarshal(data, &dst.String); - if err == nil { - jsonString, _ := json.Marshal(dst.String) - if string(jsonString) == "{}" { // empty struct - dst.String = nil - } else { - return nil // data stored in dst.String, return on the first match - } - } else { - dst.String = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(DataValue)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src DataValue) MarshalJSON() ([]byte, error) { - if src.Int32 != nil { - return json.Marshal(&src.Int32) - } - - if src.String != nil { - return json.Marshal(&src.String) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableDataValue struct { - value *DataValue - isSet bool -} - -func (v NullableDataValue) Get() *DataValue { - return v.value -} - -func (v *NullableDataValue) Set(val *DataValue) { - v.value = val - v.isSet = true -} - -func (v NullableDataValue) IsSet() bool { - return v.isSet -} - -func (v *NullableDataValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDataValue(val *DataValue) *NullableDataValue { - return &NullableDataValue{value: val, isSet: true} -} - -func (v NullableDataValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDataValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_http_validation_error.go b/sdks/go/model_http_validation_error.go deleted file mode 100644 index 9f2de5e..0000000 --- a/sdks/go/model_http_validation_error.go +++ /dev/null @@ -1,155 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" -) - -// checks if the HTTPValidationError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HTTPValidationError{} - -// HTTPValidationError struct for HTTPValidationError -type HTTPValidationError struct { - Detail []ValidationError `json:"detail,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _HTTPValidationError HTTPValidationError - -// NewHTTPValidationError instantiates a new HTTPValidationError object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHTTPValidationError() *HTTPValidationError { - this := HTTPValidationError{} - return &this -} - -// NewHTTPValidationErrorWithDefaults instantiates a new HTTPValidationError object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHTTPValidationErrorWithDefaults() *HTTPValidationError { - this := HTTPValidationError{} - return &this -} - -// GetDetail returns the Detail field value if set, zero value otherwise. -func (o *HTTPValidationError) GetDetail() []ValidationError { - if o == nil || IsNil(o.Detail) { - var ret []ValidationError - return ret - } - return o.Detail -} - -// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HTTPValidationError) GetDetailOk() ([]ValidationError, bool) { - if o == nil || IsNil(o.Detail) { - return nil, false - } - return o.Detail, true -} - -// HasDetail returns a boolean if a field has been set. -func (o *HTTPValidationError) HasDetail() bool { - if o != nil && !IsNil(o.Detail) { - return true - } - - return false -} - -// SetDetail gets a reference to the given []ValidationError and assigns it to the Detail field. -func (o *HTTPValidationError) SetDetail(v []ValidationError) { - o.Detail = v -} - -func (o HTTPValidationError) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HTTPValidationError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Detail) { - toSerialize["detail"] = o.Detail - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *HTTPValidationError) UnmarshalJSON(data []byte) (err error) { - varHTTPValidationError := _HTTPValidationError{} - - err = json.Unmarshal(data, &varHTTPValidationError) - - if err != nil { - return err - } - - *o = HTTPValidationError(varHTTPValidationError) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "detail") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableHTTPValidationError struct { - value *HTTPValidationError - isSet bool -} - -func (v NullableHTTPValidationError) Get() *HTTPValidationError { - return v.value -} - -func (v *NullableHTTPValidationError) Set(val *HTTPValidationError) { - v.value = val - v.isSet = true -} - -func (v NullableHTTPValidationError) IsSet() bool { - return v.isSet -} - -func (v *NullableHTTPValidationError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHTTPValidationError(val *HTTPValidationError) *NullableHTTPValidationError { - return &NullableHTTPValidationError{value: val, isSet: true} -} - -func (v NullableHTTPValidationError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHTTPValidationError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_impact_analysis_request.go b/sdks/go/model_impact_analysis_request.go deleted file mode 100644 index 8aa4989..0000000 --- a/sdks/go/model_impact_analysis_request.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the ImpactAnalysisRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ImpactAnalysisRequest{} - -// ImpactAnalysisRequest struct for ImpactAnalysisRequest -type ImpactAnalysisRequest struct { - PolicyChange string `json:"policy_change"` - AdditionalProperties map[string]interface{} -} - -type _ImpactAnalysisRequest ImpactAnalysisRequest - -// NewImpactAnalysisRequest instantiates a new ImpactAnalysisRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewImpactAnalysisRequest(policyChange string) *ImpactAnalysisRequest { - this := ImpactAnalysisRequest{} - this.PolicyChange = policyChange - return &this -} - -// NewImpactAnalysisRequestWithDefaults instantiates a new ImpactAnalysisRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewImpactAnalysisRequestWithDefaults() *ImpactAnalysisRequest { - this := ImpactAnalysisRequest{} - return &this -} - -// GetPolicyChange returns the PolicyChange field value -func (o *ImpactAnalysisRequest) GetPolicyChange() string { - if o == nil { - var ret string - return ret - } - - return o.PolicyChange -} - -// GetPolicyChangeOk returns a tuple with the PolicyChange field value -// and a boolean to check if the value has been set. -func (o *ImpactAnalysisRequest) GetPolicyChangeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PolicyChange, true -} - -// SetPolicyChange sets field value -func (o *ImpactAnalysisRequest) SetPolicyChange(v string) { - o.PolicyChange = v -} - -func (o ImpactAnalysisRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ImpactAnalysisRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["policy_change"] = o.PolicyChange - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ImpactAnalysisRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "policy_change", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varImpactAnalysisRequest := _ImpactAnalysisRequest{} - - err = json.Unmarshal(data, &varImpactAnalysisRequest) - - if err != nil { - return err - } - - *o = ImpactAnalysisRequest(varImpactAnalysisRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "policy_change") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableImpactAnalysisRequest struct { - value *ImpactAnalysisRequest - isSet bool -} - -func (v NullableImpactAnalysisRequest) Get() *ImpactAnalysisRequest { - return v.value -} - -func (v *NullableImpactAnalysisRequest) Set(val *ImpactAnalysisRequest) { - v.value = val - v.isSet = true -} - -func (v NullableImpactAnalysisRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableImpactAnalysisRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableImpactAnalysisRequest(val *ImpactAnalysisRequest) *NullableImpactAnalysisRequest { - return &NullableImpactAnalysisRequest{value: val, isSet: true} -} - -func (v NullableImpactAnalysisRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableImpactAnalysisRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_impact_analysis_response.go b/sdks/go/model_impact_analysis_response.go deleted file mode 100644 index 14b4a0d..0000000 --- a/sdks/go/model_impact_analysis_response.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" -) - -// checks if the ImpactAnalysisResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ImpactAnalysisResponse{} - -// ImpactAnalysisResponse struct for ImpactAnalysisResponse -type ImpactAnalysisResponse struct { - GainedAccess []int32 `json:"gained_access,omitempty"` - LostAccess []int32 `json:"lost_access,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ImpactAnalysisResponse ImpactAnalysisResponse - -// NewImpactAnalysisResponse instantiates a new ImpactAnalysisResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewImpactAnalysisResponse() *ImpactAnalysisResponse { - this := ImpactAnalysisResponse{} - return &this -} - -// NewImpactAnalysisResponseWithDefaults instantiates a new ImpactAnalysisResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewImpactAnalysisResponseWithDefaults() *ImpactAnalysisResponse { - this := ImpactAnalysisResponse{} - return &this -} - -// GetGainedAccess returns the GainedAccess field value if set, zero value otherwise. -func (o *ImpactAnalysisResponse) GetGainedAccess() []int32 { - if o == nil || IsNil(o.GainedAccess) { - var ret []int32 - return ret - } - return o.GainedAccess -} - -// GetGainedAccessOk returns a tuple with the GainedAccess field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ImpactAnalysisResponse) GetGainedAccessOk() ([]int32, bool) { - if o == nil || IsNil(o.GainedAccess) { - return nil, false - } - return o.GainedAccess, true -} - -// HasGainedAccess returns a boolean if a field has been set. -func (o *ImpactAnalysisResponse) HasGainedAccess() bool { - if o != nil && !IsNil(o.GainedAccess) { - return true - } - - return false -} - -// SetGainedAccess gets a reference to the given []int32 and assigns it to the GainedAccess field. -func (o *ImpactAnalysisResponse) SetGainedAccess(v []int32) { - o.GainedAccess = v -} - -// GetLostAccess returns the LostAccess field value if set, zero value otherwise. -func (o *ImpactAnalysisResponse) GetLostAccess() []int32 { - if o == nil || IsNil(o.LostAccess) { - var ret []int32 - return ret - } - return o.LostAccess -} - -// GetLostAccessOk returns a tuple with the LostAccess field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ImpactAnalysisResponse) GetLostAccessOk() ([]int32, bool) { - if o == nil || IsNil(o.LostAccess) { - return nil, false - } - return o.LostAccess, true -} - -// HasLostAccess returns a boolean if a field has been set. -func (o *ImpactAnalysisResponse) HasLostAccess() bool { - if o != nil && !IsNil(o.LostAccess) { - return true - } - - return false -} - -// SetLostAccess gets a reference to the given []int32 and assigns it to the LostAccess field. -func (o *ImpactAnalysisResponse) SetLostAccess(v []int32) { - o.LostAccess = v -} - -func (o ImpactAnalysisResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ImpactAnalysisResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.GainedAccess) { - toSerialize["gained_access"] = o.GainedAccess - } - if !IsNil(o.LostAccess) { - toSerialize["lost_access"] = o.LostAccess - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ImpactAnalysisResponse) UnmarshalJSON(data []byte) (err error) { - varImpactAnalysisResponse := _ImpactAnalysisResponse{} - - err = json.Unmarshal(data, &varImpactAnalysisResponse) - - if err != nil { - return err - } - - *o = ImpactAnalysisResponse(varImpactAnalysisResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "gained_access") - delete(additionalProperties, "lost_access") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableImpactAnalysisResponse struct { - value *ImpactAnalysisResponse - isSet bool -} - -func (v NullableImpactAnalysisResponse) Get() *ImpactAnalysisResponse { - return v.value -} - -func (v *NullableImpactAnalysisResponse) Set(val *ImpactAnalysisResponse) { - v.value = val - v.isSet = true -} - -func (v NullableImpactAnalysisResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableImpactAnalysisResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableImpactAnalysisResponse(val *ImpactAnalysisResponse) *NullableImpactAnalysisResponse { - return &NullableImpactAnalysisResponse{value: val, isSet: true} -} - -func (v NullableImpactAnalysisResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableImpactAnalysisResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_location_inner.go b/sdks/go/model_location_inner.go deleted file mode 100644 index 63d0dc7..0000000 --- a/sdks/go/model_location_inner.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - - -// LocationInner struct for LocationInner -type LocationInner struct { - Int32 *int32 - String *string -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *LocationInner) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into Int32 - err = json.Unmarshal(data, &dst.Int32); - if err == nil { - jsonInt32, _ := json.Marshal(dst.Int32) - if string(jsonInt32) == "{}" { // empty struct - dst.Int32 = nil - } else { - return nil // data stored in dst.Int32, return on the first match - } - } else { - dst.Int32 = nil - } - - // try to unmarshal JSON data into String - err = json.Unmarshal(data, &dst.String); - if err == nil { - jsonString, _ := json.Marshal(dst.String) - if string(jsonString) == "{}" { // empty struct - dst.String = nil - } else { - return nil // data stored in dst.String, return on the first match - } - } else { - dst.String = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(LocationInner)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src LocationInner) MarshalJSON() ([]byte, error) { - if src.Int32 != nil { - return json.Marshal(&src.Int32) - } - - if src.String != nil { - return json.Marshal(&src.String) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableLocationInner struct { - value *LocationInner - isSet bool -} - -func (v NullableLocationInner) Get() *LocationInner { - return v.value -} - -func (v *NullableLocationInner) Set(val *LocationInner) { - v.value = val - v.isSet = true -} - -func (v NullableLocationInner) IsSet() bool { - return v.isSet -} - -func (v *NullableLocationInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLocationInner(val *LocationInner) *NullableLocationInner { - return &NullableLocationInner{value: val, isSet: true} -} - -func (v NullableLocationInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLocationInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_meta_body.go b/sdks/go/model_meta_body.go deleted file mode 100644 index db07aca..0000000 --- a/sdks/go/model_meta_body.go +++ /dev/null @@ -1,296 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" -) - -// checks if the MetaBody type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MetaBody{} - -// MetaBody struct for MetaBody -type MetaBody struct { - RequestId NullableString `json:"request_id,omitempty"` - Limit NullableInt32 `json:"limit,omitempty"` - NextCursor NullableString `json:"next_cursor,omitempty"` - Extra map[string]interface{} `json:"extra,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MetaBody MetaBody - -// NewMetaBody instantiates a new MetaBody object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMetaBody() *MetaBody { - this := MetaBody{} - return &this -} - -// NewMetaBodyWithDefaults instantiates a new MetaBody object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMetaBodyWithDefaults() *MetaBody { - this := MetaBody{} - return &this -} - -// GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MetaBody) GetRequestId() string { - if o == nil || IsNil(o.RequestId.Get()) { - var ret string - return ret - } - return *o.RequestId.Get() -} - -// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MetaBody) GetRequestIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.RequestId.Get(), o.RequestId.IsSet() -} - -// HasRequestId returns a boolean if a field has been set. -func (o *MetaBody) HasRequestId() bool { - if o != nil && o.RequestId.IsSet() { - return true - } - - return false -} - -// SetRequestId gets a reference to the given NullableString and assigns it to the RequestId field. -func (o *MetaBody) SetRequestId(v string) { - o.RequestId.Set(&v) -} -// SetRequestIdNil sets the value for RequestId to be an explicit nil -func (o *MetaBody) SetRequestIdNil() { - o.RequestId.Set(nil) -} - -// UnsetRequestId ensures that no value is present for RequestId, not even an explicit nil -func (o *MetaBody) UnsetRequestId() { - o.RequestId.Unset() -} - -// GetLimit returns the Limit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MetaBody) GetLimit() int32 { - if o == nil || IsNil(o.Limit.Get()) { - var ret int32 - return ret - } - return *o.Limit.Get() -} - -// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MetaBody) GetLimitOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Limit.Get(), o.Limit.IsSet() -} - -// HasLimit returns a boolean if a field has been set. -func (o *MetaBody) HasLimit() bool { - if o != nil && o.Limit.IsSet() { - return true - } - - return false -} - -// SetLimit gets a reference to the given NullableInt32 and assigns it to the Limit field. -func (o *MetaBody) SetLimit(v int32) { - o.Limit.Set(&v) -} -// SetLimitNil sets the value for Limit to be an explicit nil -func (o *MetaBody) SetLimitNil() { - o.Limit.Set(nil) -} - -// UnsetLimit ensures that no value is present for Limit, not even an explicit nil -func (o *MetaBody) UnsetLimit() { - o.Limit.Unset() -} - -// GetNextCursor returns the NextCursor field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MetaBody) GetNextCursor() string { - if o == nil || IsNil(o.NextCursor.Get()) { - var ret string - return ret - } - return *o.NextCursor.Get() -} - -// GetNextCursorOk returns a tuple with the NextCursor field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MetaBody) GetNextCursorOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.NextCursor.Get(), o.NextCursor.IsSet() -} - -// HasNextCursor returns a boolean if a field has been set. -func (o *MetaBody) HasNextCursor() bool { - if o != nil && o.NextCursor.IsSet() { - return true - } - - return false -} - -// SetNextCursor gets a reference to the given NullableString and assigns it to the NextCursor field. -func (o *MetaBody) SetNextCursor(v string) { - o.NextCursor.Set(&v) -} -// SetNextCursorNil sets the value for NextCursor to be an explicit nil -func (o *MetaBody) SetNextCursorNil() { - o.NextCursor.Set(nil) -} - -// UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil -func (o *MetaBody) UnsetNextCursor() { - o.NextCursor.Unset() -} - -// GetExtra returns the Extra field value if set, zero value otherwise. -func (o *MetaBody) GetExtra() map[string]interface{} { - if o == nil || IsNil(o.Extra) { - var ret map[string]interface{} - return ret - } - return o.Extra -} - -// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetaBody) GetExtraOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Extra) { - return map[string]interface{}{}, false - } - return o.Extra, true -} - -// HasExtra returns a boolean if a field has been set. -func (o *MetaBody) HasExtra() bool { - if o != nil && !IsNil(o.Extra) { - return true - } - - return false -} - -// SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field. -func (o *MetaBody) SetExtra(v map[string]interface{}) { - o.Extra = v -} - -func (o MetaBody) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o MetaBody) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.RequestId.IsSet() { - toSerialize["request_id"] = o.RequestId.Get() - } - if o.Limit.IsSet() { - toSerialize["limit"] = o.Limit.Get() - } - if o.NextCursor.IsSet() { - toSerialize["next_cursor"] = o.NextCursor.Get() - } - if !IsNil(o.Extra) { - toSerialize["extra"] = o.Extra - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *MetaBody) UnmarshalJSON(data []byte) (err error) { - varMetaBody := _MetaBody{} - - err = json.Unmarshal(data, &varMetaBody) - - if err != nil { - return err - } - - *o = MetaBody(varMetaBody) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "request_id") - delete(additionalProperties, "limit") - delete(additionalProperties, "next_cursor") - delete(additionalProperties, "extra") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMetaBody struct { - value *MetaBody - isSet bool -} - -func (v NullableMetaBody) Get() *MetaBody { - return v.value -} - -func (v *NullableMetaBody) Set(val *MetaBody) { - v.value = val - v.isSet = true -} - -func (v NullableMetaBody) IsSet() bool { - return v.isSet -} - -func (v *NullableMetaBody) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetaBody(val *MetaBody) *NullableMetaBody { - return &NullableMetaBody{value: val, isSet: true} -} - -func (v NullableMetaBody) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetaBody) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_permission_create.go b/sdks/go/model_permission_create.go deleted file mode 100644 index e28009f..0000000 --- a/sdks/go/model_permission_create.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PermissionCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PermissionCreate{} - -// PermissionCreate struct for PermissionCreate -type PermissionCreate struct { - Action string `json:"action"` - AdditionalProperties map[string]interface{} -} - -type _PermissionCreate PermissionCreate - -// NewPermissionCreate instantiates a new PermissionCreate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPermissionCreate(action string) *PermissionCreate { - this := PermissionCreate{} - this.Action = action - return &this -} - -// NewPermissionCreateWithDefaults instantiates a new PermissionCreate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPermissionCreateWithDefaults() *PermissionCreate { - this := PermissionCreate{} - return &this -} - -// GetAction returns the Action field value -func (o *PermissionCreate) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *PermissionCreate) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *PermissionCreate) SetAction(v string) { - o.Action = v -} - -func (o PermissionCreate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PermissionCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PermissionCreate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPermissionCreate := _PermissionCreate{} - - err = json.Unmarshal(data, &varPermissionCreate) - - if err != nil { - return err - } - - *o = PermissionCreate(varPermissionCreate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePermissionCreate struct { - value *PermissionCreate - isSet bool -} - -func (v NullablePermissionCreate) Get() *PermissionCreate { - return v.value -} - -func (v *NullablePermissionCreate) Set(val *PermissionCreate) { - v.value = val - v.isSet = true -} - -func (v NullablePermissionCreate) IsSet() bool { - return v.isSet -} - -func (v *NullablePermissionCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePermissionCreate(val *PermissionCreate) *NullablePermissionCreate { - return &NullablePermissionCreate{value: val, isSet: true} -} - -func (v NullablePermissionCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePermissionCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_permission_out.go b/sdks/go/model_permission_out.go deleted file mode 100644 index a0041b3..0000000 --- a/sdks/go/model_permission_out.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PermissionOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PermissionOut{} - -// PermissionOut struct for PermissionOut -type PermissionOut struct { - Id int32 `json:"id"` - Action string `json:"action"` - AdditionalProperties map[string]interface{} -} - -type _PermissionOut PermissionOut - -// NewPermissionOut instantiates a new PermissionOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPermissionOut(id int32, action string) *PermissionOut { - this := PermissionOut{} - this.Id = id - this.Action = action - return &this -} - -// NewPermissionOutWithDefaults instantiates a new PermissionOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPermissionOutWithDefaults() *PermissionOut { - this := PermissionOut{} - return &this -} - -// GetId returns the Id field value -func (o *PermissionOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *PermissionOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *PermissionOut) SetId(v int32) { - o.Id = v -} - -// GetAction returns the Action field value -func (o *PermissionOut) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *PermissionOut) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *PermissionOut) SetAction(v string) { - o.Action = v -} - -func (o PermissionOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PermissionOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["action"] = o.Action - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PermissionOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPermissionOut := _PermissionOut{} - - err = json.Unmarshal(data, &varPermissionOut) - - if err != nil { - return err - } - - *o = PermissionOut(varPermissionOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "action") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePermissionOut struct { - value *PermissionOut - isSet bool -} - -func (v NullablePermissionOut) Get() *PermissionOut { - return v.value -} - -func (v *NullablePermissionOut) Set(val *PermissionOut) { - v.value = val - v.isSet = true -} - -func (v NullablePermissionOut) IsSet() bool { - return v.isSet -} - -func (v *NullablePermissionOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePermissionOut(val *PermissionOut) *NullablePermissionOut { - return &NullablePermissionOut{value: val, isSet: true} -} - -func (v NullablePermissionOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePermissionOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_permission_update.go b/sdks/go/model_permission_update.go deleted file mode 100644 index c558f4d..0000000 --- a/sdks/go/model_permission_update.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PermissionUpdate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PermissionUpdate{} - -// PermissionUpdate struct for PermissionUpdate -type PermissionUpdate struct { - Action string `json:"action"` - AdditionalProperties map[string]interface{} -} - -type _PermissionUpdate PermissionUpdate - -// NewPermissionUpdate instantiates a new PermissionUpdate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPermissionUpdate(action string) *PermissionUpdate { - this := PermissionUpdate{} - this.Action = action - return &this -} - -// NewPermissionUpdateWithDefaults instantiates a new PermissionUpdate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPermissionUpdateWithDefaults() *PermissionUpdate { - this := PermissionUpdate{} - return &this -} - -// GetAction returns the Action field value -func (o *PermissionUpdate) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *PermissionUpdate) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *PermissionUpdate) SetAction(v string) { - o.Action = v -} - -func (o PermissionUpdate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PermissionUpdate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PermissionUpdate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPermissionUpdate := _PermissionUpdate{} - - err = json.Unmarshal(data, &varPermissionUpdate) - - if err != nil { - return err - } - - *o = PermissionUpdate(varPermissionUpdate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePermissionUpdate struct { - value *PermissionUpdate - isSet bool -} - -func (v NullablePermissionUpdate) Get() *PermissionUpdate { - return v.value -} - -func (v *NullablePermissionUpdate) Set(val *PermissionUpdate) { - v.value = val - v.isSet = true -} - -func (v NullablePermissionUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullablePermissionUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePermissionUpdate(val *PermissionUpdate) *NullablePermissionUpdate { - return &NullablePermissionUpdate{value: val, isSet: true} -} - -func (v NullablePermissionUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePermissionUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_playground_evaluate_request.go b/sdks/go/model_playground_evaluate_request.go deleted file mode 100644 index 2628cfe..0000000 --- a/sdks/go/model_playground_evaluate_request.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PlaygroundEvaluateRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PlaygroundEvaluateRequest{} - -// PlaygroundEvaluateRequest struct for PlaygroundEvaluateRequest -type PlaygroundEvaluateRequest struct { - Policies []PlaygroundPolicy `json:"policies"` - Input PlaygroundInput `json:"input"` - AdditionalProperties map[string]interface{} -} - -type _PlaygroundEvaluateRequest PlaygroundEvaluateRequest - -// NewPlaygroundEvaluateRequest instantiates a new PlaygroundEvaluateRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPlaygroundEvaluateRequest(policies []PlaygroundPolicy, input PlaygroundInput) *PlaygroundEvaluateRequest { - this := PlaygroundEvaluateRequest{} - this.Policies = policies - this.Input = input - return &this -} - -// NewPlaygroundEvaluateRequestWithDefaults instantiates a new PlaygroundEvaluateRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPlaygroundEvaluateRequestWithDefaults() *PlaygroundEvaluateRequest { - this := PlaygroundEvaluateRequest{} - return &this -} - -// GetPolicies returns the Policies field value -func (o *PlaygroundEvaluateRequest) GetPolicies() []PlaygroundPolicy { - if o == nil { - var ret []PlaygroundPolicy - return ret - } - - return o.Policies -} - -// GetPoliciesOk returns a tuple with the Policies field value -// and a boolean to check if the value has been set. -func (o *PlaygroundEvaluateRequest) GetPoliciesOk() ([]PlaygroundPolicy, bool) { - if o == nil { - return nil, false - } - return o.Policies, true -} - -// SetPolicies sets field value -func (o *PlaygroundEvaluateRequest) SetPolicies(v []PlaygroundPolicy) { - o.Policies = v -} - -// GetInput returns the Input field value -func (o *PlaygroundEvaluateRequest) GetInput() PlaygroundInput { - if o == nil { - var ret PlaygroundInput - return ret - } - - return o.Input -} - -// GetInputOk returns a tuple with the Input field value -// and a boolean to check if the value has been set. -func (o *PlaygroundEvaluateRequest) GetInputOk() (*PlaygroundInput, bool) { - if o == nil { - return nil, false - } - return &o.Input, true -} - -// SetInput sets field value -func (o *PlaygroundEvaluateRequest) SetInput(v PlaygroundInput) { - o.Input = v -} - -func (o PlaygroundEvaluateRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PlaygroundEvaluateRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["policies"] = o.Policies - toSerialize["input"] = o.Input - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PlaygroundEvaluateRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "policies", - "input", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPlaygroundEvaluateRequest := _PlaygroundEvaluateRequest{} - - err = json.Unmarshal(data, &varPlaygroundEvaluateRequest) - - if err != nil { - return err - } - - *o = PlaygroundEvaluateRequest(varPlaygroundEvaluateRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "policies") - delete(additionalProperties, "input") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePlaygroundEvaluateRequest struct { - value *PlaygroundEvaluateRequest - isSet bool -} - -func (v NullablePlaygroundEvaluateRequest) Get() *PlaygroundEvaluateRequest { - return v.value -} - -func (v *NullablePlaygroundEvaluateRequest) Set(val *PlaygroundEvaluateRequest) { - v.value = val - v.isSet = true -} - -func (v NullablePlaygroundEvaluateRequest) IsSet() bool { - return v.isSet -} - -func (v *NullablePlaygroundEvaluateRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlaygroundEvaluateRequest(val *PlaygroundEvaluateRequest) *NullablePlaygroundEvaluateRequest { - return &NullablePlaygroundEvaluateRequest{value: val, isSet: true} -} - -func (v NullablePlaygroundEvaluateRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePlaygroundEvaluateRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_playground_input.go b/sdks/go/model_playground_input.go deleted file mode 100644 index 14fe215..0000000 --- a/sdks/go/model_playground_input.go +++ /dev/null @@ -1,270 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" -) - -// checks if the PlaygroundInput type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PlaygroundInput{} - -// PlaygroundInput struct for PlaygroundInput -type PlaygroundInput struct { - User map[string]interface{} `json:"user,omitempty"` - Resource map[string]interface{} `json:"resource,omitempty"` - Action *string `json:"action,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PlaygroundInput PlaygroundInput - -// NewPlaygroundInput instantiates a new PlaygroundInput object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPlaygroundInput() *PlaygroundInput { - this := PlaygroundInput{} - var action string = "" - this.Action = &action - return &this -} - -// NewPlaygroundInputWithDefaults instantiates a new PlaygroundInput object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPlaygroundInputWithDefaults() *PlaygroundInput { - this := PlaygroundInput{} - var action string = "" - this.Action = &action - return &this -} - -// GetUser returns the User field value if set, zero value otherwise. -func (o *PlaygroundInput) GetUser() map[string]interface{} { - if o == nil || IsNil(o.User) { - var ret map[string]interface{} - return ret - } - return o.User -} - -// GetUserOk returns a tuple with the User field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundInput) GetUserOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.User) { - return map[string]interface{}{}, false - } - return o.User, true -} - -// HasUser returns a boolean if a field has been set. -func (o *PlaygroundInput) HasUser() bool { - if o != nil && !IsNil(o.User) { - return true - } - - return false -} - -// SetUser gets a reference to the given map[string]interface{} and assigns it to the User field. -func (o *PlaygroundInput) SetUser(v map[string]interface{}) { - o.User = v -} - -// GetResource returns the Resource field value if set, zero value otherwise. -func (o *PlaygroundInput) GetResource() map[string]interface{} { - if o == nil || IsNil(o.Resource) { - var ret map[string]interface{} - return ret - } - return o.Resource -} - -// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundInput) GetResourceOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Resource) { - return map[string]interface{}{}, false - } - return o.Resource, true -} - -// HasResource returns a boolean if a field has been set. -func (o *PlaygroundInput) HasResource() bool { - if o != nil && !IsNil(o.Resource) { - return true - } - - return false -} - -// SetResource gets a reference to the given map[string]interface{} and assigns it to the Resource field. -func (o *PlaygroundInput) SetResource(v map[string]interface{}) { - o.Resource = v -} - -// GetAction returns the Action field value if set, zero value otherwise. -func (o *PlaygroundInput) GetAction() string { - if o == nil || IsNil(o.Action) { - var ret string - return ret - } - return *o.Action -} - -// GetActionOk returns a tuple with the Action field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundInput) GetActionOk() (*string, bool) { - if o == nil || IsNil(o.Action) { - return nil, false - } - return o.Action, true -} - -// HasAction returns a boolean if a field has been set. -func (o *PlaygroundInput) HasAction() bool { - if o != nil && !IsNil(o.Action) { - return true - } - - return false -} - -// SetAction gets a reference to the given string and assigns it to the Action field. -func (o *PlaygroundInput) SetAction(v string) { - o.Action = &v -} - -// GetContext returns the Context field value if set, zero value otherwise. -func (o *PlaygroundInput) GetContext() map[string]interface{} { - if o == nil || IsNil(o.Context) { - var ret map[string]interface{} - return ret - } - return o.Context -} - -// GetContextOk returns a tuple with the Context field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundInput) GetContextOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Context) { - return map[string]interface{}{}, false - } - return o.Context, true -} - -// HasContext returns a boolean if a field has been set. -func (o *PlaygroundInput) HasContext() bool { - if o != nil && !IsNil(o.Context) { - return true - } - - return false -} - -// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. -func (o *PlaygroundInput) SetContext(v map[string]interface{}) { - o.Context = v -} - -func (o PlaygroundInput) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PlaygroundInput) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.User) { - toSerialize["user"] = o.User - } - if !IsNil(o.Resource) { - toSerialize["resource"] = o.Resource - } - if !IsNil(o.Action) { - toSerialize["action"] = o.Action - } - if !IsNil(o.Context) { - toSerialize["context"] = o.Context - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PlaygroundInput) UnmarshalJSON(data []byte) (err error) { - varPlaygroundInput := _PlaygroundInput{} - - err = json.Unmarshal(data, &varPlaygroundInput) - - if err != nil { - return err - } - - *o = PlaygroundInput(varPlaygroundInput) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "user") - delete(additionalProperties, "resource") - delete(additionalProperties, "action") - delete(additionalProperties, "context") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePlaygroundInput struct { - value *PlaygroundInput - isSet bool -} - -func (v NullablePlaygroundInput) Get() *PlaygroundInput { - return v.value -} - -func (v *NullablePlaygroundInput) Set(val *PlaygroundInput) { - v.value = val - v.isSet = true -} - -func (v NullablePlaygroundInput) IsSet() bool { - return v.isSet -} - -func (v *NullablePlaygroundInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlaygroundInput(val *PlaygroundInput) *NullablePlaygroundInput { - return &NullablePlaygroundInput{value: val, isSet: true} -} - -func (v NullablePlaygroundInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePlaygroundInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_playground_policy.go b/sdks/go/model_playground_policy.go deleted file mode 100644 index 8fcf743..0000000 --- a/sdks/go/model_playground_policy.go +++ /dev/null @@ -1,334 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PlaygroundPolicy type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PlaygroundPolicy{} - -// PlaygroundPolicy struct for PlaygroundPolicy -type PlaygroundPolicy struct { - Action string `json:"action"` - Effect *string `json:"effect,omitempty"` - Priority *int32 `json:"priority,omitempty"` - PolicyId NullableString `json:"policy_id,omitempty"` - Conditions map[string]interface{} `json:"conditions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PlaygroundPolicy PlaygroundPolicy - -// NewPlaygroundPolicy instantiates a new PlaygroundPolicy object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPlaygroundPolicy(action string) *PlaygroundPolicy { - this := PlaygroundPolicy{} - this.Action = action - var effect string = "allow" - this.Effect = &effect - var priority int32 = 100 - this.Priority = &priority - return &this -} - -// NewPlaygroundPolicyWithDefaults instantiates a new PlaygroundPolicy object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPlaygroundPolicyWithDefaults() *PlaygroundPolicy { - this := PlaygroundPolicy{} - var effect string = "allow" - this.Effect = &effect - var priority int32 = 100 - this.Priority = &priority - return &this -} - -// GetAction returns the Action field value -func (o *PlaygroundPolicy) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *PlaygroundPolicy) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *PlaygroundPolicy) SetAction(v string) { - o.Action = v -} - -// GetEffect returns the Effect field value if set, zero value otherwise. -func (o *PlaygroundPolicy) GetEffect() string { - if o == nil || IsNil(o.Effect) { - var ret string - return ret - } - return *o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundPolicy) GetEffectOk() (*string, bool) { - if o == nil || IsNil(o.Effect) { - return nil, false - } - return o.Effect, true -} - -// HasEffect returns a boolean if a field has been set. -func (o *PlaygroundPolicy) HasEffect() bool { - if o != nil && !IsNil(o.Effect) { - return true - } - - return false -} - -// SetEffect gets a reference to the given string and assigns it to the Effect field. -func (o *PlaygroundPolicy) SetEffect(v string) { - o.Effect = &v -} - -// GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PlaygroundPolicy) GetPriority() int32 { - if o == nil || IsNil(o.Priority) { - var ret int32 - return ret - } - return *o.Priority -} - -// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundPolicy) GetPriorityOk() (*int32, bool) { - if o == nil || IsNil(o.Priority) { - return nil, false - } - return o.Priority, true -} - -// HasPriority returns a boolean if a field has been set. -func (o *PlaygroundPolicy) HasPriority() bool { - if o != nil && !IsNil(o.Priority) { - return true - } - - return false -} - -// SetPriority gets a reference to the given int32 and assigns it to the Priority field. -func (o *PlaygroundPolicy) SetPriority(v int32) { - o.Priority = &v -} - -// GetPolicyId returns the PolicyId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PlaygroundPolicy) GetPolicyId() string { - if o == nil || IsNil(o.PolicyId.Get()) { - var ret string - return ret - } - return *o.PolicyId.Get() -} - -// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PlaygroundPolicy) GetPolicyIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PolicyId.Get(), o.PolicyId.IsSet() -} - -// HasPolicyId returns a boolean if a field has been set. -func (o *PlaygroundPolicy) HasPolicyId() bool { - if o != nil && o.PolicyId.IsSet() { - return true - } - - return false -} - -// SetPolicyId gets a reference to the given NullableString and assigns it to the PolicyId field. -func (o *PlaygroundPolicy) SetPolicyId(v string) { - o.PolicyId.Set(&v) -} -// SetPolicyIdNil sets the value for PolicyId to be an explicit nil -func (o *PlaygroundPolicy) SetPolicyIdNil() { - o.PolicyId.Set(nil) -} - -// UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil -func (o *PlaygroundPolicy) UnsetPolicyId() { - o.PolicyId.Unset() -} - -// GetConditions returns the Conditions field value if set, zero value otherwise. -func (o *PlaygroundPolicy) GetConditions() map[string]interface{} { - if o == nil || IsNil(o.Conditions) { - var ret map[string]interface{} - return ret - } - return o.Conditions -} - -// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlaygroundPolicy) GetConditionsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Conditions) { - return map[string]interface{}{}, false - } - return o.Conditions, true -} - -// HasConditions returns a boolean if a field has been set. -func (o *PlaygroundPolicy) HasConditions() bool { - if o != nil && !IsNil(o.Conditions) { - return true - } - - return false -} - -// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field. -func (o *PlaygroundPolicy) SetConditions(v map[string]interface{}) { - o.Conditions = v -} - -func (o PlaygroundPolicy) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PlaygroundPolicy) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.Effect) { - toSerialize["effect"] = o.Effect - } - if !IsNil(o.Priority) { - toSerialize["priority"] = o.Priority - } - if o.PolicyId.IsSet() { - toSerialize["policy_id"] = o.PolicyId.Get() - } - if !IsNil(o.Conditions) { - toSerialize["conditions"] = o.Conditions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PlaygroundPolicy) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPlaygroundPolicy := _PlaygroundPolicy{} - - err = json.Unmarshal(data, &varPlaygroundPolicy) - - if err != nil { - return err - } - - *o = PlaygroundPolicy(varPlaygroundPolicy) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "effect") - delete(additionalProperties, "priority") - delete(additionalProperties, "policy_id") - delete(additionalProperties, "conditions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePlaygroundPolicy struct { - value *PlaygroundPolicy - isSet bool -} - -func (v NullablePlaygroundPolicy) Get() *PlaygroundPolicy { - return v.value -} - -func (v *NullablePlaygroundPolicy) Set(val *PlaygroundPolicy) { - v.value = val - v.isSet = true -} - -func (v NullablePlaygroundPolicy) IsSet() bool { - return v.isSet -} - -func (v *NullablePlaygroundPolicy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlaygroundPolicy(val *PlaygroundPolicy) *NullablePlaygroundPolicy { - return &NullablePlaygroundPolicy{value: val, isSet: true} -} - -func (v NullablePlaygroundPolicy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePlaygroundPolicy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_policy_create.go b/sdks/go/model_policy_create.go deleted file mode 100644 index 5de9a19..0000000 --- a/sdks/go/model_policy_create.go +++ /dev/null @@ -1,328 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PolicyCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PolicyCreate{} - -// PolicyCreate struct for PolicyCreate -type PolicyCreate struct { - Action string `json:"action"` - Effect *string `json:"effect,omitempty"` - Priority *int32 `json:"priority,omitempty"` - State *string `json:"state,omitempty"` - Conditions map[string]interface{} `json:"conditions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PolicyCreate PolicyCreate - -// NewPolicyCreate instantiates a new PolicyCreate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPolicyCreate(action string) *PolicyCreate { - this := PolicyCreate{} - this.Action = action - var effect string = "allow" - this.Effect = &effect - var priority int32 = 100 - this.Priority = &priority - var state string = "active" - this.State = &state - return &this -} - -// NewPolicyCreateWithDefaults instantiates a new PolicyCreate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPolicyCreateWithDefaults() *PolicyCreate { - this := PolicyCreate{} - var effect string = "allow" - this.Effect = &effect - var priority int32 = 100 - this.Priority = &priority - var state string = "active" - this.State = &state - return &this -} - -// GetAction returns the Action field value -func (o *PolicyCreate) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *PolicyCreate) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *PolicyCreate) SetAction(v string) { - o.Action = v -} - -// GetEffect returns the Effect field value if set, zero value otherwise. -func (o *PolicyCreate) GetEffect() string { - if o == nil || IsNil(o.Effect) { - var ret string - return ret - } - return *o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicyCreate) GetEffectOk() (*string, bool) { - if o == nil || IsNil(o.Effect) { - return nil, false - } - return o.Effect, true -} - -// HasEffect returns a boolean if a field has been set. -func (o *PolicyCreate) HasEffect() bool { - if o != nil && !IsNil(o.Effect) { - return true - } - - return false -} - -// SetEffect gets a reference to the given string and assigns it to the Effect field. -func (o *PolicyCreate) SetEffect(v string) { - o.Effect = &v -} - -// GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PolicyCreate) GetPriority() int32 { - if o == nil || IsNil(o.Priority) { - var ret int32 - return ret - } - return *o.Priority -} - -// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicyCreate) GetPriorityOk() (*int32, bool) { - if o == nil || IsNil(o.Priority) { - return nil, false - } - return o.Priority, true -} - -// HasPriority returns a boolean if a field has been set. -func (o *PolicyCreate) HasPriority() bool { - if o != nil && !IsNil(o.Priority) { - return true - } - - return false -} - -// SetPriority gets a reference to the given int32 and assigns it to the Priority field. -func (o *PolicyCreate) SetPriority(v int32) { - o.Priority = &v -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *PolicyCreate) GetState() string { - if o == nil || IsNil(o.State) { - var ret string - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicyCreate) GetStateOk() (*string, bool) { - if o == nil || IsNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *PolicyCreate) HasState() bool { - if o != nil && !IsNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given string and assigns it to the State field. -func (o *PolicyCreate) SetState(v string) { - o.State = &v -} - -// GetConditions returns the Conditions field value if set, zero value otherwise. -func (o *PolicyCreate) GetConditions() map[string]interface{} { - if o == nil || IsNil(o.Conditions) { - var ret map[string]interface{} - return ret - } - return o.Conditions -} - -// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicyCreate) GetConditionsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Conditions) { - return map[string]interface{}{}, false - } - return o.Conditions, true -} - -// HasConditions returns a boolean if a field has been set. -func (o *PolicyCreate) HasConditions() bool { - if o != nil && !IsNil(o.Conditions) { - return true - } - - return false -} - -// SetConditions gets a reference to the given map[string]interface{} and assigns it to the Conditions field. -func (o *PolicyCreate) SetConditions(v map[string]interface{}) { - o.Conditions = v -} - -func (o PolicyCreate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PolicyCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.Effect) { - toSerialize["effect"] = o.Effect - } - if !IsNil(o.Priority) { - toSerialize["priority"] = o.Priority - } - if !IsNil(o.State) { - toSerialize["state"] = o.State - } - if !IsNil(o.Conditions) { - toSerialize["conditions"] = o.Conditions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PolicyCreate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPolicyCreate := _PolicyCreate{} - - err = json.Unmarshal(data, &varPolicyCreate) - - if err != nil { - return err - } - - *o = PolicyCreate(varPolicyCreate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "effect") - delete(additionalProperties, "priority") - delete(additionalProperties, "state") - delete(additionalProperties, "conditions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePolicyCreate struct { - value *PolicyCreate - isSet bool -} - -func (v NullablePolicyCreate) Get() *PolicyCreate { - return v.value -} - -func (v *NullablePolicyCreate) Set(val *PolicyCreate) { - v.value = val - v.isSet = true -} - -func (v NullablePolicyCreate) IsSet() bool { - return v.isSet -} - -func (v *NullablePolicyCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePolicyCreate(val *PolicyCreate) *NullablePolicyCreate { - return &NullablePolicyCreate{value: val, isSet: true} -} - -func (v NullablePolicyCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePolicyCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_policy_out.go b/sdks/go/model_policy_out.go deleted file mode 100644 index a128fda..0000000 --- a/sdks/go/model_policy_out.go +++ /dev/null @@ -1,325 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PolicyOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PolicyOut{} - -// PolicyOut struct for PolicyOut -type PolicyOut struct { - Id int32 `json:"id"` - Action string `json:"action"` - Effect string `json:"effect"` - Priority int32 `json:"priority"` - State *string `json:"state,omitempty"` - Conditions map[string]interface{} `json:"conditions"` - AdditionalProperties map[string]interface{} -} - -type _PolicyOut PolicyOut - -// NewPolicyOut instantiates a new PolicyOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPolicyOut(id int32, action string, effect string, priority int32, conditions map[string]interface{}) *PolicyOut { - this := PolicyOut{} - this.Id = id - this.Action = action - this.Effect = effect - this.Priority = priority - var state string = "active" - this.State = &state - this.Conditions = conditions - return &this -} - -// NewPolicyOutWithDefaults instantiates a new PolicyOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPolicyOutWithDefaults() *PolicyOut { - this := PolicyOut{} - var state string = "active" - this.State = &state - return &this -} - -// GetId returns the Id field value -func (o *PolicyOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *PolicyOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *PolicyOut) SetId(v int32) { - o.Id = v -} - -// GetAction returns the Action field value -func (o *PolicyOut) GetAction() string { - if o == nil { - var ret string - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *PolicyOut) GetActionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *PolicyOut) SetAction(v string) { - o.Action = v -} - -// GetEffect returns the Effect field value -func (o *PolicyOut) GetEffect() string { - if o == nil { - var ret string - return ret - } - - return o.Effect -} - -// GetEffectOk returns a tuple with the Effect field value -// and a boolean to check if the value has been set. -func (o *PolicyOut) GetEffectOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Effect, true -} - -// SetEffect sets field value -func (o *PolicyOut) SetEffect(v string) { - o.Effect = v -} - -// GetPriority returns the Priority field value -func (o *PolicyOut) GetPriority() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Priority -} - -// GetPriorityOk returns a tuple with the Priority field value -// and a boolean to check if the value has been set. -func (o *PolicyOut) GetPriorityOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Priority, true -} - -// SetPriority sets field value -func (o *PolicyOut) SetPriority(v int32) { - o.Priority = v -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *PolicyOut) GetState() string { - if o == nil || IsNil(o.State) { - var ret string - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicyOut) GetStateOk() (*string, bool) { - if o == nil || IsNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *PolicyOut) HasState() bool { - if o != nil && !IsNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given string and assigns it to the State field. -func (o *PolicyOut) SetState(v string) { - o.State = &v -} - -// GetConditions returns the Conditions field value -func (o *PolicyOut) GetConditions() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Conditions -} - -// GetConditionsOk returns a tuple with the Conditions field value -// and a boolean to check if the value has been set. -func (o *PolicyOut) GetConditionsOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Conditions, true -} - -// SetConditions sets field value -func (o *PolicyOut) SetConditions(v map[string]interface{}) { - o.Conditions = v -} - -func (o PolicyOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PolicyOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["action"] = o.Action - toSerialize["effect"] = o.Effect - toSerialize["priority"] = o.Priority - if !IsNil(o.State) { - toSerialize["state"] = o.State - } - toSerialize["conditions"] = o.Conditions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PolicyOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "action", - "effect", - "priority", - "conditions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPolicyOut := _PolicyOut{} - - err = json.Unmarshal(data, &varPolicyOut) - - if err != nil { - return err - } - - *o = PolicyOut(varPolicyOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "action") - delete(additionalProperties, "effect") - delete(additionalProperties, "priority") - delete(additionalProperties, "state") - delete(additionalProperties, "conditions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePolicyOut struct { - value *PolicyOut - isSet bool -} - -func (v NullablePolicyOut) Get() *PolicyOut { - return v.value -} - -func (v *NullablePolicyOut) Set(val *PolicyOut) { - v.value = val - v.isSet = true -} - -func (v NullablePolicyOut) IsSet() bool { - return v.isSet -} - -func (v *NullablePolicyOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePolicyOut(val *PolicyOut) *NullablePolicyOut { - return &NullablePolicyOut{value: val, isSet: true} -} - -func (v NullablePolicyOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePolicyOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_policy_simulation_input.go b/sdks/go/model_policy_simulation_input.go deleted file mode 100644 index 3b59126..0000000 --- a/sdks/go/model_policy_simulation_input.go +++ /dev/null @@ -1,241 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" -) - -// checks if the PolicySimulationInput type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PolicySimulationInput{} - -// PolicySimulationInput struct for PolicySimulationInput -type PolicySimulationInput struct { - PolicyChange NullableString `json:"policy_change,omitempty"` - RelationshipChange map[string]interface{} `json:"relationship_change,omitempty"` - RoleChange map[string]interface{} `json:"role_change,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PolicySimulationInput PolicySimulationInput - -// NewPolicySimulationInput instantiates a new PolicySimulationInput object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPolicySimulationInput() *PolicySimulationInput { - this := PolicySimulationInput{} - return &this -} - -// NewPolicySimulationInputWithDefaults instantiates a new PolicySimulationInput object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPolicySimulationInputWithDefaults() *PolicySimulationInput { - this := PolicySimulationInput{} - return &this -} - -// GetPolicyChange returns the PolicyChange field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PolicySimulationInput) GetPolicyChange() string { - if o == nil || IsNil(o.PolicyChange.Get()) { - var ret string - return ret - } - return *o.PolicyChange.Get() -} - -// GetPolicyChangeOk returns a tuple with the PolicyChange field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PolicySimulationInput) GetPolicyChangeOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PolicyChange.Get(), o.PolicyChange.IsSet() -} - -// HasPolicyChange returns a boolean if a field has been set. -func (o *PolicySimulationInput) HasPolicyChange() bool { - if o != nil && o.PolicyChange.IsSet() { - return true - } - - return false -} - -// SetPolicyChange gets a reference to the given NullableString and assigns it to the PolicyChange field. -func (o *PolicySimulationInput) SetPolicyChange(v string) { - o.PolicyChange.Set(&v) -} -// SetPolicyChangeNil sets the value for PolicyChange to be an explicit nil -func (o *PolicySimulationInput) SetPolicyChangeNil() { - o.PolicyChange.Set(nil) -} - -// UnsetPolicyChange ensures that no value is present for PolicyChange, not even an explicit nil -func (o *PolicySimulationInput) UnsetPolicyChange() { - o.PolicyChange.Unset() -} - -// GetRelationshipChange returns the RelationshipChange field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PolicySimulationInput) GetRelationshipChange() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - return o.RelationshipChange -} - -// GetRelationshipChangeOk returns a tuple with the RelationshipChange field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PolicySimulationInput) GetRelationshipChangeOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.RelationshipChange) { - return map[string]interface{}{}, false - } - return o.RelationshipChange, true -} - -// HasRelationshipChange returns a boolean if a field has been set. -func (o *PolicySimulationInput) HasRelationshipChange() bool { - if o != nil && !IsNil(o.RelationshipChange) { - return true - } - - return false -} - -// SetRelationshipChange gets a reference to the given map[string]interface{} and assigns it to the RelationshipChange field. -func (o *PolicySimulationInput) SetRelationshipChange(v map[string]interface{}) { - o.RelationshipChange = v -} - -// GetRoleChange returns the RoleChange field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PolicySimulationInput) GetRoleChange() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - return o.RoleChange -} - -// GetRoleChangeOk returns a tuple with the RoleChange field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PolicySimulationInput) GetRoleChangeOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.RoleChange) { - return map[string]interface{}{}, false - } - return o.RoleChange, true -} - -// HasRoleChange returns a boolean if a field has been set. -func (o *PolicySimulationInput) HasRoleChange() bool { - if o != nil && !IsNil(o.RoleChange) { - return true - } - - return false -} - -// SetRoleChange gets a reference to the given map[string]interface{} and assigns it to the RoleChange field. -func (o *PolicySimulationInput) SetRoleChange(v map[string]interface{}) { - o.RoleChange = v -} - -func (o PolicySimulationInput) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PolicySimulationInput) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.PolicyChange.IsSet() { - toSerialize["policy_change"] = o.PolicyChange.Get() - } - if o.RelationshipChange != nil { - toSerialize["relationship_change"] = o.RelationshipChange - } - if o.RoleChange != nil { - toSerialize["role_change"] = o.RoleChange - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PolicySimulationInput) UnmarshalJSON(data []byte) (err error) { - varPolicySimulationInput := _PolicySimulationInput{} - - err = json.Unmarshal(data, &varPolicySimulationInput) - - if err != nil { - return err - } - - *o = PolicySimulationInput(varPolicySimulationInput) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "policy_change") - delete(additionalProperties, "relationship_change") - delete(additionalProperties, "role_change") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePolicySimulationInput struct { - value *PolicySimulationInput - isSet bool -} - -func (v NullablePolicySimulationInput) Get() *PolicySimulationInput { - return v.value -} - -func (v *NullablePolicySimulationInput) Set(val *PolicySimulationInput) { - v.value = val - v.isSet = true -} - -func (v NullablePolicySimulationInput) IsSet() bool { - return v.isSet -} - -func (v *NullablePolicySimulationInput) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePolicySimulationInput(val *PolicySimulationInput) *NullablePolicySimulationInput { - return &NullablePolicySimulationInput{value: val, isSet: true} -} - -func (v NullablePolicySimulationInput) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePolicySimulationInput) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_policy_simulation_request.go b/sdks/go/model_policy_simulation_request.go deleted file mode 100644 index 2da60c6..0000000 --- a/sdks/go/model_policy_simulation_request.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" -) - -// checks if the PolicySimulationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PolicySimulationRequest{} - -// PolicySimulationRequest struct for PolicySimulationRequest -type PolicySimulationRequest struct { - Simulate *PolicySimulationInput `json:"simulate,omitempty"` - Request map[string]interface{} `json:"request,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PolicySimulationRequest PolicySimulationRequest - -// NewPolicySimulationRequest instantiates a new PolicySimulationRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPolicySimulationRequest() *PolicySimulationRequest { - this := PolicySimulationRequest{} - return &this -} - -// NewPolicySimulationRequestWithDefaults instantiates a new PolicySimulationRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPolicySimulationRequestWithDefaults() *PolicySimulationRequest { - this := PolicySimulationRequest{} - return &this -} - -// GetSimulate returns the Simulate field value if set, zero value otherwise. -func (o *PolicySimulationRequest) GetSimulate() PolicySimulationInput { - if o == nil || IsNil(o.Simulate) { - var ret PolicySimulationInput - return ret - } - return *o.Simulate -} - -// GetSimulateOk returns a tuple with the Simulate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicySimulationRequest) GetSimulateOk() (*PolicySimulationInput, bool) { - if o == nil || IsNil(o.Simulate) { - return nil, false - } - return o.Simulate, true -} - -// HasSimulate returns a boolean if a field has been set. -func (o *PolicySimulationRequest) HasSimulate() bool { - if o != nil && !IsNil(o.Simulate) { - return true - } - - return false -} - -// SetSimulate gets a reference to the given PolicySimulationInput and assigns it to the Simulate field. -func (o *PolicySimulationRequest) SetSimulate(v PolicySimulationInput) { - o.Simulate = &v -} - -// GetRequest returns the Request field value if set, zero value otherwise. -func (o *PolicySimulationRequest) GetRequest() map[string]interface{} { - if o == nil || IsNil(o.Request) { - var ret map[string]interface{} - return ret - } - return o.Request -} - -// GetRequestOk returns a tuple with the Request field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PolicySimulationRequest) GetRequestOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Request) { - return map[string]interface{}{}, false - } - return o.Request, true -} - -// HasRequest returns a boolean if a field has been set. -func (o *PolicySimulationRequest) HasRequest() bool { - if o != nil && !IsNil(o.Request) { - return true - } - - return false -} - -// SetRequest gets a reference to the given map[string]interface{} and assigns it to the Request field. -func (o *PolicySimulationRequest) SetRequest(v map[string]interface{}) { - o.Request = v -} - -func (o PolicySimulationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PolicySimulationRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Simulate) { - toSerialize["simulate"] = o.Simulate - } - if !IsNil(o.Request) { - toSerialize["request"] = o.Request - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PolicySimulationRequest) UnmarshalJSON(data []byte) (err error) { - varPolicySimulationRequest := _PolicySimulationRequest{} - - err = json.Unmarshal(data, &varPolicySimulationRequest) - - if err != nil { - return err - } - - *o = PolicySimulationRequest(varPolicySimulationRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "simulate") - delete(additionalProperties, "request") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePolicySimulationRequest struct { - value *PolicySimulationRequest - isSet bool -} - -func (v NullablePolicySimulationRequest) Get() *PolicySimulationRequest { - return v.value -} - -func (v *NullablePolicySimulationRequest) Set(val *PolicySimulationRequest) { - v.value = val - v.isSet = true -} - -func (v NullablePolicySimulationRequest) IsSet() bool { - return v.isSet -} - -func (v *NullablePolicySimulationRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePolicySimulationRequest(val *PolicySimulationRequest) *NullablePolicySimulationRequest { - return &NullablePolicySimulationRequest{value: val, isSet: true} -} - -func (v NullablePolicySimulationRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePolicySimulationRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_policy_simulation_response.go b/sdks/go/model_policy_simulation_response.go deleted file mode 100644 index 6b73ab5..0000000 --- a/sdks/go/model_policy_simulation_response.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the PolicySimulationResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PolicySimulationResponse{} - -// PolicySimulationResponse struct for PolicySimulationResponse -type PolicySimulationResponse struct { - DecisionBefore map[string]interface{} `json:"decision_before"` - DecisionAfter map[string]interface{} `json:"decision_after"` - AdditionalProperties map[string]interface{} -} - -type _PolicySimulationResponse PolicySimulationResponse - -// NewPolicySimulationResponse instantiates a new PolicySimulationResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPolicySimulationResponse(decisionBefore map[string]interface{}, decisionAfter map[string]interface{}) *PolicySimulationResponse { - this := PolicySimulationResponse{} - this.DecisionBefore = decisionBefore - this.DecisionAfter = decisionAfter - return &this -} - -// NewPolicySimulationResponseWithDefaults instantiates a new PolicySimulationResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPolicySimulationResponseWithDefaults() *PolicySimulationResponse { - this := PolicySimulationResponse{} - return &this -} - -// GetDecisionBefore returns the DecisionBefore field value -func (o *PolicySimulationResponse) GetDecisionBefore() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.DecisionBefore -} - -// GetDecisionBeforeOk returns a tuple with the DecisionBefore field value -// and a boolean to check if the value has been set. -func (o *PolicySimulationResponse) GetDecisionBeforeOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.DecisionBefore, true -} - -// SetDecisionBefore sets field value -func (o *PolicySimulationResponse) SetDecisionBefore(v map[string]interface{}) { - o.DecisionBefore = v -} - -// GetDecisionAfter returns the DecisionAfter field value -func (o *PolicySimulationResponse) GetDecisionAfter() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.DecisionAfter -} - -// GetDecisionAfterOk returns a tuple with the DecisionAfter field value -// and a boolean to check if the value has been set. -func (o *PolicySimulationResponse) GetDecisionAfterOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.DecisionAfter, true -} - -// SetDecisionAfter sets field value -func (o *PolicySimulationResponse) SetDecisionAfter(v map[string]interface{}) { - o.DecisionAfter = v -} - -func (o PolicySimulationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PolicySimulationResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["decision_before"] = o.DecisionBefore - toSerialize["decision_after"] = o.DecisionAfter - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PolicySimulationResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "decision_before", - "decision_after", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPolicySimulationResponse := _PolicySimulationResponse{} - - err = json.Unmarshal(data, &varPolicySimulationResponse) - - if err != nil { - return err - } - - *o = PolicySimulationResponse(varPolicySimulationResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "decision_before") - delete(additionalProperties, "decision_after") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePolicySimulationResponse struct { - value *PolicySimulationResponse - isSet bool -} - -func (v NullablePolicySimulationResponse) Get() *PolicySimulationResponse { - return v.value -} - -func (v *NullablePolicySimulationResponse) Set(val *PolicySimulationResponse) { - v.value = val - v.isSet = true -} - -func (v NullablePolicySimulationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullablePolicySimulationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePolicySimulationResponse(val *PolicySimulationResponse) *NullablePolicySimulationResponse { - return &NullablePolicySimulationResponse{value: val, isSet: true} -} - -func (v NullablePolicySimulationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePolicySimulationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_relationship_create.go b/sdks/go/model_relationship_create.go deleted file mode 100644 index 3701317..0000000 --- a/sdks/go/model_relationship_create.go +++ /dev/null @@ -1,284 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the RelationshipCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RelationshipCreate{} - -// RelationshipCreate struct for RelationshipCreate -type RelationshipCreate struct { - SubjectType string `json:"subject_type"` - SubjectId string `json:"subject_id"` - Relation string `json:"relation"` - ObjectType string `json:"object_type"` - ObjectId string `json:"object_id"` - AdditionalProperties map[string]interface{} -} - -type _RelationshipCreate RelationshipCreate - -// NewRelationshipCreate instantiates a new RelationshipCreate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRelationshipCreate(subjectType string, subjectId string, relation string, objectType string, objectId string) *RelationshipCreate { - this := RelationshipCreate{} - this.SubjectType = subjectType - this.SubjectId = subjectId - this.Relation = relation - this.ObjectType = objectType - this.ObjectId = objectId - return &this -} - -// NewRelationshipCreateWithDefaults instantiates a new RelationshipCreate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRelationshipCreateWithDefaults() *RelationshipCreate { - this := RelationshipCreate{} - return &this -} - -// GetSubjectType returns the SubjectType field value -func (o *RelationshipCreate) GetSubjectType() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectType -} - -// GetSubjectTypeOk returns a tuple with the SubjectType field value -// and a boolean to check if the value has been set. -func (o *RelationshipCreate) GetSubjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectType, true -} - -// SetSubjectType sets field value -func (o *RelationshipCreate) SetSubjectType(v string) { - o.SubjectType = v -} - -// GetSubjectId returns the SubjectId field value -func (o *RelationshipCreate) GetSubjectId() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectId -} - -// GetSubjectIdOk returns a tuple with the SubjectId field value -// and a boolean to check if the value has been set. -func (o *RelationshipCreate) GetSubjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectId, true -} - -// SetSubjectId sets field value -func (o *RelationshipCreate) SetSubjectId(v string) { - o.SubjectId = v -} - -// GetRelation returns the Relation field value -func (o *RelationshipCreate) GetRelation() string { - if o == nil { - var ret string - return ret - } - - return o.Relation -} - -// GetRelationOk returns a tuple with the Relation field value -// and a boolean to check if the value has been set. -func (o *RelationshipCreate) GetRelationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Relation, true -} - -// SetRelation sets field value -func (o *RelationshipCreate) SetRelation(v string) { - o.Relation = v -} - -// GetObjectType returns the ObjectType field value -func (o *RelationshipCreate) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *RelationshipCreate) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *RelationshipCreate) SetObjectType(v string) { - o.ObjectType = v -} - -// GetObjectId returns the ObjectId field value -func (o *RelationshipCreate) GetObjectId() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectId -} - -// GetObjectIdOk returns a tuple with the ObjectId field value -// and a boolean to check if the value has been set. -func (o *RelationshipCreate) GetObjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectId, true -} - -// SetObjectId sets field value -func (o *RelationshipCreate) SetObjectId(v string) { - o.ObjectId = v -} - -func (o RelationshipCreate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RelationshipCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["subject_type"] = o.SubjectType - toSerialize["subject_id"] = o.SubjectId - toSerialize["relation"] = o.Relation - toSerialize["object_type"] = o.ObjectType - toSerialize["object_id"] = o.ObjectId - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *RelationshipCreate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "subject_type", - "subject_id", - "relation", - "object_type", - "object_id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRelationshipCreate := _RelationshipCreate{} - - err = json.Unmarshal(data, &varRelationshipCreate) - - if err != nil { - return err - } - - *o = RelationshipCreate(varRelationshipCreate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "subject_type") - delete(additionalProperties, "subject_id") - delete(additionalProperties, "relation") - delete(additionalProperties, "object_type") - delete(additionalProperties, "object_id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableRelationshipCreate struct { - value *RelationshipCreate - isSet bool -} - -func (v NullableRelationshipCreate) Get() *RelationshipCreate { - return v.value -} - -func (v *NullableRelationshipCreate) Set(val *RelationshipCreate) { - v.value = val - v.isSet = true -} - -func (v NullableRelationshipCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableRelationshipCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRelationshipCreate(val *RelationshipCreate) *NullableRelationshipCreate { - return &NullableRelationshipCreate{value: val, isSet: true} -} - -func (v NullableRelationshipCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRelationshipCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_relationship_out.go b/sdks/go/model_relationship_out.go deleted file mode 100644 index 04dc9f9..0000000 --- a/sdks/go/model_relationship_out.go +++ /dev/null @@ -1,313 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the RelationshipOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RelationshipOut{} - -// RelationshipOut struct for RelationshipOut -type RelationshipOut struct { - SubjectType string `json:"subject_type"` - SubjectId string `json:"subject_id"` - Relation string `json:"relation"` - ObjectType string `json:"object_type"` - ObjectId string `json:"object_id"` - Id int32 `json:"id"` - AdditionalProperties map[string]interface{} -} - -type _RelationshipOut RelationshipOut - -// NewRelationshipOut instantiates a new RelationshipOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRelationshipOut(subjectType string, subjectId string, relation string, objectType string, objectId string, id int32) *RelationshipOut { - this := RelationshipOut{} - this.SubjectType = subjectType - this.SubjectId = subjectId - this.Relation = relation - this.ObjectType = objectType - this.ObjectId = objectId - this.Id = id - return &this -} - -// NewRelationshipOutWithDefaults instantiates a new RelationshipOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRelationshipOutWithDefaults() *RelationshipOut { - this := RelationshipOut{} - return &this -} - -// GetSubjectType returns the SubjectType field value -func (o *RelationshipOut) GetSubjectType() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectType -} - -// GetSubjectTypeOk returns a tuple with the SubjectType field value -// and a boolean to check if the value has been set. -func (o *RelationshipOut) GetSubjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectType, true -} - -// SetSubjectType sets field value -func (o *RelationshipOut) SetSubjectType(v string) { - o.SubjectType = v -} - -// GetSubjectId returns the SubjectId field value -func (o *RelationshipOut) GetSubjectId() string { - if o == nil { - var ret string - return ret - } - - return o.SubjectId -} - -// GetSubjectIdOk returns a tuple with the SubjectId field value -// and a boolean to check if the value has been set. -func (o *RelationshipOut) GetSubjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SubjectId, true -} - -// SetSubjectId sets field value -func (o *RelationshipOut) SetSubjectId(v string) { - o.SubjectId = v -} - -// GetRelation returns the Relation field value -func (o *RelationshipOut) GetRelation() string { - if o == nil { - var ret string - return ret - } - - return o.Relation -} - -// GetRelationOk returns a tuple with the Relation field value -// and a boolean to check if the value has been set. -func (o *RelationshipOut) GetRelationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Relation, true -} - -// SetRelation sets field value -func (o *RelationshipOut) SetRelation(v string) { - o.Relation = v -} - -// GetObjectType returns the ObjectType field value -func (o *RelationshipOut) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *RelationshipOut) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *RelationshipOut) SetObjectType(v string) { - o.ObjectType = v -} - -// GetObjectId returns the ObjectId field value -func (o *RelationshipOut) GetObjectId() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectId -} - -// GetObjectIdOk returns a tuple with the ObjectId field value -// and a boolean to check if the value has been set. -func (o *RelationshipOut) GetObjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectId, true -} - -// SetObjectId sets field value -func (o *RelationshipOut) SetObjectId(v string) { - o.ObjectId = v -} - -// GetId returns the Id field value -func (o *RelationshipOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *RelationshipOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *RelationshipOut) SetId(v int32) { - o.Id = v -} - -func (o RelationshipOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RelationshipOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["subject_type"] = o.SubjectType - toSerialize["subject_id"] = o.SubjectId - toSerialize["relation"] = o.Relation - toSerialize["object_type"] = o.ObjectType - toSerialize["object_id"] = o.ObjectId - toSerialize["id"] = o.Id - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *RelationshipOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "subject_type", - "subject_id", - "relation", - "object_type", - "object_id", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRelationshipOut := _RelationshipOut{} - - err = json.Unmarshal(data, &varRelationshipOut) - - if err != nil { - return err - } - - *o = RelationshipOut(varRelationshipOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "subject_type") - delete(additionalProperties, "subject_id") - delete(additionalProperties, "relation") - delete(additionalProperties, "object_type") - delete(additionalProperties, "object_id") - delete(additionalProperties, "id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableRelationshipOut struct { - value *RelationshipOut - isSet bool -} - -func (v NullableRelationshipOut) Get() *RelationshipOut { - return v.value -} - -func (v *NullableRelationshipOut) Set(val *RelationshipOut) { - v.value = val - v.isSet = true -} - -func (v NullableRelationshipOut) IsSet() bool { - return v.isSet -} - -func (v *NullableRelationshipOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRelationshipOut(val *RelationshipOut) *NullableRelationshipOut { - return &NullableRelationshipOut{value: val, isSet: true} -} - -func (v NullableRelationshipOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRelationshipOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_role_create.go b/sdks/go/model_role_create.go deleted file mode 100644 index a7c9b1e..0000000 --- a/sdks/go/model_role_create.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the RoleCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RoleCreate{} - -// RoleCreate struct for RoleCreate -type RoleCreate struct { - Name string `json:"name"` - AdditionalProperties map[string]interface{} -} - -type _RoleCreate RoleCreate - -// NewRoleCreate instantiates a new RoleCreate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoleCreate(name string) *RoleCreate { - this := RoleCreate{} - this.Name = name - return &this -} - -// NewRoleCreateWithDefaults instantiates a new RoleCreate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRoleCreateWithDefaults() *RoleCreate { - this := RoleCreate{} - return &this -} - -// GetName returns the Name field value -func (o *RoleCreate) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *RoleCreate) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *RoleCreate) SetName(v string) { - o.Name = v -} - -func (o RoleCreate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RoleCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *RoleCreate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRoleCreate := _RoleCreate{} - - err = json.Unmarshal(data, &varRoleCreate) - - if err != nil { - return err - } - - *o = RoleCreate(varRoleCreate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableRoleCreate struct { - value *RoleCreate - isSet bool -} - -func (v NullableRoleCreate) Get() *RoleCreate { - return v.value -} - -func (v *NullableRoleCreate) Set(val *RoleCreate) { - v.value = val - v.isSet = true -} - -func (v NullableRoleCreate) IsSet() bool { - return v.isSet -} - -func (v *NullableRoleCreate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoleCreate(val *RoleCreate) *NullableRoleCreate { - return &NullableRoleCreate{value: val, isSet: true} -} - -func (v NullableRoleCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoleCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_role_out.go b/sdks/go/model_role_out.go deleted file mode 100644 index a70cfc5..0000000 --- a/sdks/go/model_role_out.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the RoleOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RoleOut{} - -// RoleOut struct for RoleOut -type RoleOut struct { - Id int32 `json:"id"` - Name string `json:"name"` - AdditionalProperties map[string]interface{} -} - -type _RoleOut RoleOut - -// NewRoleOut instantiates a new RoleOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoleOut(id int32, name string) *RoleOut { - this := RoleOut{} - this.Id = id - this.Name = name - return &this -} - -// NewRoleOutWithDefaults instantiates a new RoleOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRoleOutWithDefaults() *RoleOut { - this := RoleOut{} - return &this -} - -// GetId returns the Id field value -func (o *RoleOut) GetId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *RoleOut) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *RoleOut) SetId(v int32) { - o.Id = v -} - -// GetName returns the Name field value -func (o *RoleOut) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *RoleOut) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *RoleOut) SetName(v string) { - o.Name = v -} - -func (o RoleOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RoleOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["name"] = o.Name - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *RoleOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRoleOut := _RoleOut{} - - err = json.Unmarshal(data, &varRoleOut) - - if err != nil { - return err - } - - *o = RoleOut(varRoleOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableRoleOut struct { - value *RoleOut - isSet bool -} - -func (v NullableRoleOut) Get() *RoleOut { - return v.value -} - -func (v *NullableRoleOut) Set(val *RoleOut) { - v.value = val - v.isSet = true -} - -func (v NullableRoleOut) IsSet() bool { - return v.isSet -} - -func (v *NullableRoleOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoleOut(val *RoleOut) *NullableRoleOut { - return &NullableRoleOut{value: val, isSet: true} -} - -func (v NullableRoleOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoleOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_role_update.go b/sdks/go/model_role_update.go deleted file mode 100644 index 13a167c..0000000 --- a/sdks/go/model_role_update.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the RoleUpdate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RoleUpdate{} - -// RoleUpdate struct for RoleUpdate -type RoleUpdate struct { - Name string `json:"name"` - AdditionalProperties map[string]interface{} -} - -type _RoleUpdate RoleUpdate - -// NewRoleUpdate instantiates a new RoleUpdate object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoleUpdate(name string) *RoleUpdate { - this := RoleUpdate{} - this.Name = name - return &this -} - -// NewRoleUpdateWithDefaults instantiates a new RoleUpdate object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRoleUpdateWithDefaults() *RoleUpdate { - this := RoleUpdate{} - return &this -} - -// GetName returns the Name field value -func (o *RoleUpdate) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *RoleUpdate) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *RoleUpdate) SetName(v string) { - o.Name = v -} - -func (o RoleUpdate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RoleUpdate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *RoleUpdate) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRoleUpdate := _RoleUpdate{} - - err = json.Unmarshal(data, &varRoleUpdate) - - if err != nil { - return err - } - - *o = RoleUpdate(varRoleUpdate) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableRoleUpdate struct { - value *RoleUpdate - isSet bool -} - -func (v NullableRoleUpdate) Get() *RoleUpdate { - return v.value -} - -func (v *NullableRoleUpdate) Set(val *RoleUpdate) { - v.value = val - v.isSet = true -} - -func (v NullableRoleUpdate) IsSet() bool { - return v.isSet -} - -func (v *NullableRoleUpdate) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoleUpdate(val *RoleUpdate) *NullableRoleUpdate { - return &NullableRoleUpdate{value: val, isSet: true} -} - -func (v NullableRoleUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoleUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_simulation_response.go b/sdks/go/model_simulation_response.go deleted file mode 100644 index 2de2683..0000000 --- a/sdks/go/model_simulation_response.go +++ /dev/null @@ -1,412 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SimulationResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SimulationResponse{} - -// SimulationResponse struct for SimulationResponse -type SimulationResponse struct { - Decision string `json:"decision"` - MatchedPolicies []string `json:"matched_policies"` - Reason NullableString `json:"reason,omitempty"` - PolicyId NullableString `json:"policy_id,omitempty"` - ExplainTrace []map[string]interface{} `json:"explain_trace,omitempty"` - FailedConditions []string `json:"failed_conditions,omitempty"` - Revision NullableInt32 `json:"revision,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SimulationResponse SimulationResponse - -// NewSimulationResponse instantiates a new SimulationResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSimulationResponse(decision string, matchedPolicies []string) *SimulationResponse { - this := SimulationResponse{} - this.Decision = decision - this.MatchedPolicies = matchedPolicies - return &this -} - -// NewSimulationResponseWithDefaults instantiates a new SimulationResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSimulationResponseWithDefaults() *SimulationResponse { - this := SimulationResponse{} - return &this -} - -// GetDecision returns the Decision field value -func (o *SimulationResponse) GetDecision() string { - if o == nil { - var ret string - return ret - } - - return o.Decision -} - -// GetDecisionOk returns a tuple with the Decision field value -// and a boolean to check if the value has been set. -func (o *SimulationResponse) GetDecisionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Decision, true -} - -// SetDecision sets field value -func (o *SimulationResponse) SetDecision(v string) { - o.Decision = v -} - -// GetMatchedPolicies returns the MatchedPolicies field value -func (o *SimulationResponse) GetMatchedPolicies() []string { - if o == nil { - var ret []string - return ret - } - - return o.MatchedPolicies -} - -// GetMatchedPoliciesOk returns a tuple with the MatchedPolicies field value -// and a boolean to check if the value has been set. -func (o *SimulationResponse) GetMatchedPoliciesOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.MatchedPolicies, true -} - -// SetMatchedPolicies sets field value -func (o *SimulationResponse) SetMatchedPolicies(v []string) { - o.MatchedPolicies = v -} - -// GetReason returns the Reason field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SimulationResponse) GetReason() string { - if o == nil || IsNil(o.Reason.Get()) { - var ret string - return ret - } - return *o.Reason.Get() -} - -// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SimulationResponse) GetReasonOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Reason.Get(), o.Reason.IsSet() -} - -// HasReason returns a boolean if a field has been set. -func (o *SimulationResponse) HasReason() bool { - if o != nil && o.Reason.IsSet() { - return true - } - - return false -} - -// SetReason gets a reference to the given NullableString and assigns it to the Reason field. -func (o *SimulationResponse) SetReason(v string) { - o.Reason.Set(&v) -} -// SetReasonNil sets the value for Reason to be an explicit nil -func (o *SimulationResponse) SetReasonNil() { - o.Reason.Set(nil) -} - -// UnsetReason ensures that no value is present for Reason, not even an explicit nil -func (o *SimulationResponse) UnsetReason() { - o.Reason.Unset() -} - -// GetPolicyId returns the PolicyId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SimulationResponse) GetPolicyId() string { - if o == nil || IsNil(o.PolicyId.Get()) { - var ret string - return ret - } - return *o.PolicyId.Get() -} - -// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SimulationResponse) GetPolicyIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PolicyId.Get(), o.PolicyId.IsSet() -} - -// HasPolicyId returns a boolean if a field has been set. -func (o *SimulationResponse) HasPolicyId() bool { - if o != nil && o.PolicyId.IsSet() { - return true - } - - return false -} - -// SetPolicyId gets a reference to the given NullableString and assigns it to the PolicyId field. -func (o *SimulationResponse) SetPolicyId(v string) { - o.PolicyId.Set(&v) -} -// SetPolicyIdNil sets the value for PolicyId to be an explicit nil -func (o *SimulationResponse) SetPolicyIdNil() { - o.PolicyId.Set(nil) -} - -// UnsetPolicyId ensures that no value is present for PolicyId, not even an explicit nil -func (o *SimulationResponse) UnsetPolicyId() { - o.PolicyId.Unset() -} - -// GetExplainTrace returns the ExplainTrace field value if set, zero value otherwise. -func (o *SimulationResponse) GetExplainTrace() []map[string]interface{} { - if o == nil || IsNil(o.ExplainTrace) { - var ret []map[string]interface{} - return ret - } - return o.ExplainTrace -} - -// GetExplainTraceOk returns a tuple with the ExplainTrace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimulationResponse) GetExplainTraceOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.ExplainTrace) { - return nil, false - } - return o.ExplainTrace, true -} - -// HasExplainTrace returns a boolean if a field has been set. -func (o *SimulationResponse) HasExplainTrace() bool { - if o != nil && !IsNil(o.ExplainTrace) { - return true - } - - return false -} - -// SetExplainTrace gets a reference to the given []map[string]interface{} and assigns it to the ExplainTrace field. -func (o *SimulationResponse) SetExplainTrace(v []map[string]interface{}) { - o.ExplainTrace = v -} - -// GetFailedConditions returns the FailedConditions field value if set, zero value otherwise. -func (o *SimulationResponse) GetFailedConditions() []string { - if o == nil || IsNil(o.FailedConditions) { - var ret []string - return ret - } - return o.FailedConditions -} - -// GetFailedConditionsOk returns a tuple with the FailedConditions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimulationResponse) GetFailedConditionsOk() ([]string, bool) { - if o == nil || IsNil(o.FailedConditions) { - return nil, false - } - return o.FailedConditions, true -} - -// HasFailedConditions returns a boolean if a field has been set. -func (o *SimulationResponse) HasFailedConditions() bool { - if o != nil && !IsNil(o.FailedConditions) { - return true - } - - return false -} - -// SetFailedConditions gets a reference to the given []string and assigns it to the FailedConditions field. -func (o *SimulationResponse) SetFailedConditions(v []string) { - o.FailedConditions = v -} - -// GetRevision returns the Revision field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SimulationResponse) GetRevision() int32 { - if o == nil || IsNil(o.Revision.Get()) { - var ret int32 - return ret - } - return *o.Revision.Get() -} - -// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SimulationResponse) GetRevisionOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.Revision.Get(), o.Revision.IsSet() -} - -// HasRevision returns a boolean if a field has been set. -func (o *SimulationResponse) HasRevision() bool { - if o != nil && o.Revision.IsSet() { - return true - } - - return false -} - -// SetRevision gets a reference to the given NullableInt32 and assigns it to the Revision field. -func (o *SimulationResponse) SetRevision(v int32) { - o.Revision.Set(&v) -} -// SetRevisionNil sets the value for Revision to be an explicit nil -func (o *SimulationResponse) SetRevisionNil() { - o.Revision.Set(nil) -} - -// UnsetRevision ensures that no value is present for Revision, not even an explicit nil -func (o *SimulationResponse) UnsetRevision() { - o.Revision.Unset() -} - -func (o SimulationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SimulationResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["decision"] = o.Decision - toSerialize["matched_policies"] = o.MatchedPolicies - if o.Reason.IsSet() { - toSerialize["reason"] = o.Reason.Get() - } - if o.PolicyId.IsSet() { - toSerialize["policy_id"] = o.PolicyId.Get() - } - if !IsNil(o.ExplainTrace) { - toSerialize["explain_trace"] = o.ExplainTrace - } - if !IsNil(o.FailedConditions) { - toSerialize["failed_conditions"] = o.FailedConditions - } - if o.Revision.IsSet() { - toSerialize["revision"] = o.Revision.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SimulationResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "decision", - "matched_policies", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSimulationResponse := _SimulationResponse{} - - err = json.Unmarshal(data, &varSimulationResponse) - - if err != nil { - return err - } - - *o = SimulationResponse(varSimulationResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "decision") - delete(additionalProperties, "matched_policies") - delete(additionalProperties, "reason") - delete(additionalProperties, "policy_id") - delete(additionalProperties, "explain_trace") - delete(additionalProperties, "failed_conditions") - delete(additionalProperties, "revision") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSimulationResponse struct { - value *SimulationResponse - isSet bool -} - -func (v NullableSimulationResponse) Get() *SimulationResponse { - return v.value -} - -func (v *NullableSimulationResponse) Set(val *SimulationResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSimulationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSimulationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSimulationResponse(val *SimulationResponse) *NullableSimulationResponse { - return &NullableSimulationResponse{value: val, isSet: true} -} - -func (v NullableSimulationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSimulationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_access_decision_response_.go b/sdks/go/model_success_response_access_decision_response_.go deleted file mode 100644 index 395c9c6..0000000 --- a/sdks/go/model_success_response_access_decision_response_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseAccessDecisionResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseAccessDecisionResponse{} - -// SuccessResponseAccessDecisionResponse struct for SuccessResponseAccessDecisionResponse -type SuccessResponseAccessDecisionResponse struct { - Data AccessDecisionResponse `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseAccessDecisionResponse SuccessResponseAccessDecisionResponse - -// NewSuccessResponseAccessDecisionResponse instantiates a new SuccessResponseAccessDecisionResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseAccessDecisionResponse(data AccessDecisionResponse) *SuccessResponseAccessDecisionResponse { - this := SuccessResponseAccessDecisionResponse{} - this.Data = data - return &this -} - -// NewSuccessResponseAccessDecisionResponseWithDefaults instantiates a new SuccessResponseAccessDecisionResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseAccessDecisionResponseWithDefaults() *SuccessResponseAccessDecisionResponse { - this := SuccessResponseAccessDecisionResponse{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseAccessDecisionResponse) GetData() AccessDecisionResponse { - if o == nil { - var ret AccessDecisionResponse - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseAccessDecisionResponse) GetDataOk() (*AccessDecisionResponse, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseAccessDecisionResponse) SetData(v AccessDecisionResponse) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseAccessDecisionResponse) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseAccessDecisionResponse) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseAccessDecisionResponse) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseAccessDecisionResponse) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseAccessDecisionResponse) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseAccessDecisionResponse) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseAccessDecisionResponse) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseAccessDecisionResponse) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseAccessDecisionResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseAccessDecisionResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseAccessDecisionResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseAccessDecisionResponse := _SuccessResponseAccessDecisionResponse{} - - err = json.Unmarshal(data, &varSuccessResponseAccessDecisionResponse) - - if err != nil { - return err - } - - *o = SuccessResponseAccessDecisionResponse(varSuccessResponseAccessDecisionResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseAccessDecisionResponse struct { - value *SuccessResponseAccessDecisionResponse - isSet bool -} - -func (v NullableSuccessResponseAccessDecisionResponse) Get() *SuccessResponseAccessDecisionResponse { - return v.value -} - -func (v *NullableSuccessResponseAccessDecisionResponse) Set(val *SuccessResponseAccessDecisionResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseAccessDecisionResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseAccessDecisionResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseAccessDecisionResponse(val *SuccessResponseAccessDecisionResponse) *NullableSuccessResponseAccessDecisionResponse { - return &NullableSuccessResponseAccessDecisionResponse{value: val, isSet: true} -} - -func (v NullableSuccessResponseAccessDecisionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseAccessDecisionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_acl_out_.go b/sdks/go/model_success_response_acl_out_.go deleted file mode 100644 index e0544c2..0000000 --- a/sdks/go/model_success_response_acl_out_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseACLOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseACLOut{} - -// SuccessResponseACLOut struct for SuccessResponseACLOut -type SuccessResponseACLOut struct { - Data ACLOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseACLOut SuccessResponseACLOut - -// NewSuccessResponseACLOut instantiates a new SuccessResponseACLOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseACLOut(data ACLOut) *SuccessResponseACLOut { - this := SuccessResponseACLOut{} - this.Data = data - return &this -} - -// NewSuccessResponseACLOutWithDefaults instantiates a new SuccessResponseACLOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseACLOutWithDefaults() *SuccessResponseACLOut { - this := SuccessResponseACLOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseACLOut) GetData() ACLOut { - if o == nil { - var ret ACLOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseACLOut) GetDataOk() (*ACLOut, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseACLOut) SetData(v ACLOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseACLOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseACLOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseACLOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseACLOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseACLOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseACLOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseACLOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseACLOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseACLOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseACLOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseACLOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseACLOut := _SuccessResponseACLOut{} - - err = json.Unmarshal(data, &varSuccessResponseACLOut) - - if err != nil { - return err - } - - *o = SuccessResponseACLOut(varSuccessResponseACLOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseACLOut struct { - value *SuccessResponseACLOut - isSet bool -} - -func (v NullableSuccessResponseACLOut) Get() *SuccessResponseACLOut { - return v.value -} - -func (v *NullableSuccessResponseACLOut) Set(val *SuccessResponseACLOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseACLOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseACLOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseACLOut(val *SuccessResponseACLOut) *NullableSuccessResponseACLOut { - return &NullableSuccessResponseACLOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseACLOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseACLOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_admin_login_response_.go b/sdks/go/model_success_response_admin_login_response_.go deleted file mode 100644 index 4c0fdda..0000000 --- a/sdks/go/model_success_response_admin_login_response_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseAdminLoginResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseAdminLoginResponse{} - -// SuccessResponseAdminLoginResponse struct for SuccessResponseAdminLoginResponse -type SuccessResponseAdminLoginResponse struct { - Data AdminLoginResponse `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseAdminLoginResponse SuccessResponseAdminLoginResponse - -// NewSuccessResponseAdminLoginResponse instantiates a new SuccessResponseAdminLoginResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseAdminLoginResponse(data AdminLoginResponse) *SuccessResponseAdminLoginResponse { - this := SuccessResponseAdminLoginResponse{} - this.Data = data - return &this -} - -// NewSuccessResponseAdminLoginResponseWithDefaults instantiates a new SuccessResponseAdminLoginResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseAdminLoginResponseWithDefaults() *SuccessResponseAdminLoginResponse { - this := SuccessResponseAdminLoginResponse{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseAdminLoginResponse) GetData() AdminLoginResponse { - if o == nil { - var ret AdminLoginResponse - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseAdminLoginResponse) GetDataOk() (*AdminLoginResponse, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseAdminLoginResponse) SetData(v AdminLoginResponse) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseAdminLoginResponse) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseAdminLoginResponse) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseAdminLoginResponse) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseAdminLoginResponse) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseAdminLoginResponse) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseAdminLoginResponse) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseAdminLoginResponse) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseAdminLoginResponse) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseAdminLoginResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseAdminLoginResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseAdminLoginResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseAdminLoginResponse := _SuccessResponseAdminLoginResponse{} - - err = json.Unmarshal(data, &varSuccessResponseAdminLoginResponse) - - if err != nil { - return err - } - - *o = SuccessResponseAdminLoginResponse(varSuccessResponseAdminLoginResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseAdminLoginResponse struct { - value *SuccessResponseAdminLoginResponse - isSet bool -} - -func (v NullableSuccessResponseAdminLoginResponse) Get() *SuccessResponseAdminLoginResponse { - return v.value -} - -func (v *NullableSuccessResponseAdminLoginResponse) Set(val *SuccessResponseAdminLoginResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseAdminLoginResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseAdminLoginResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseAdminLoginResponse(val *SuccessResponseAdminLoginResponse) *NullableSuccessResponseAdminLoginResponse { - return &NullableSuccessResponseAdminLoginResponse{value: val, isSet: true} -} - -func (v NullableSuccessResponseAdminLoginResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseAdminLoginResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_auth_model_out_.go b/sdks/go/model_success_response_auth_model_out_.go deleted file mode 100644 index 949d6bd..0000000 --- a/sdks/go/model_success_response_auth_model_out_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseAuthModelOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseAuthModelOut{} - -// SuccessResponseAuthModelOut struct for SuccessResponseAuthModelOut -type SuccessResponseAuthModelOut struct { - Data AuthModelOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseAuthModelOut SuccessResponseAuthModelOut - -// NewSuccessResponseAuthModelOut instantiates a new SuccessResponseAuthModelOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseAuthModelOut(data AuthModelOut) *SuccessResponseAuthModelOut { - this := SuccessResponseAuthModelOut{} - this.Data = data - return &this -} - -// NewSuccessResponseAuthModelOutWithDefaults instantiates a new SuccessResponseAuthModelOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseAuthModelOutWithDefaults() *SuccessResponseAuthModelOut { - this := SuccessResponseAuthModelOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseAuthModelOut) GetData() AuthModelOut { - if o == nil { - var ret AuthModelOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseAuthModelOut) GetDataOk() (*AuthModelOut, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseAuthModelOut) SetData(v AuthModelOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseAuthModelOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseAuthModelOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseAuthModelOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseAuthModelOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseAuthModelOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseAuthModelOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseAuthModelOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseAuthModelOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseAuthModelOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseAuthModelOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseAuthModelOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseAuthModelOut := _SuccessResponseAuthModelOut{} - - err = json.Unmarshal(data, &varSuccessResponseAuthModelOut) - - if err != nil { - return err - } - - *o = SuccessResponseAuthModelOut(varSuccessResponseAuthModelOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseAuthModelOut struct { - value *SuccessResponseAuthModelOut - isSet bool -} - -func (v NullableSuccessResponseAuthModelOut) Get() *SuccessResponseAuthModelOut { - return v.value -} - -func (v *NullableSuccessResponseAuthModelOut) Set(val *SuccessResponseAuthModelOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseAuthModelOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseAuthModelOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseAuthModelOut(val *SuccessResponseAuthModelOut) *NullableSuccessResponseAuthModelOut { - return &NullableSuccessResponseAuthModelOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseAuthModelOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseAuthModelOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_batch_access_response_.go b/sdks/go/model_success_response_batch_access_response_.go deleted file mode 100644 index 327a963..0000000 --- a/sdks/go/model_success_response_batch_access_response_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseBatchAccessResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseBatchAccessResponse{} - -// SuccessResponseBatchAccessResponse struct for SuccessResponseBatchAccessResponse -type SuccessResponseBatchAccessResponse struct { - Data BatchAccessResponse `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseBatchAccessResponse SuccessResponseBatchAccessResponse - -// NewSuccessResponseBatchAccessResponse instantiates a new SuccessResponseBatchAccessResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseBatchAccessResponse(data BatchAccessResponse) *SuccessResponseBatchAccessResponse { - this := SuccessResponseBatchAccessResponse{} - this.Data = data - return &this -} - -// NewSuccessResponseBatchAccessResponseWithDefaults instantiates a new SuccessResponseBatchAccessResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseBatchAccessResponseWithDefaults() *SuccessResponseBatchAccessResponse { - this := SuccessResponseBatchAccessResponse{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseBatchAccessResponse) GetData() BatchAccessResponse { - if o == nil { - var ret BatchAccessResponse - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseBatchAccessResponse) GetDataOk() (*BatchAccessResponse, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseBatchAccessResponse) SetData(v BatchAccessResponse) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseBatchAccessResponse) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseBatchAccessResponse) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseBatchAccessResponse) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseBatchAccessResponse) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseBatchAccessResponse) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseBatchAccessResponse) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseBatchAccessResponse) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseBatchAccessResponse) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseBatchAccessResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseBatchAccessResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseBatchAccessResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseBatchAccessResponse := _SuccessResponseBatchAccessResponse{} - - err = json.Unmarshal(data, &varSuccessResponseBatchAccessResponse) - - if err != nil { - return err - } - - *o = SuccessResponseBatchAccessResponse(varSuccessResponseBatchAccessResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseBatchAccessResponse struct { - value *SuccessResponseBatchAccessResponse - isSet bool -} - -func (v NullableSuccessResponseBatchAccessResponse) Get() *SuccessResponseBatchAccessResponse { - return v.value -} - -func (v *NullableSuccessResponseBatchAccessResponse) Set(val *SuccessResponseBatchAccessResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseBatchAccessResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseBatchAccessResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseBatchAccessResponse(val *SuccessResponseBatchAccessResponse) *NullableSuccessResponseBatchAccessResponse { - return &NullableSuccessResponseBatchAccessResponse{value: val, isSet: true} -} - -func (v NullableSuccessResponseBatchAccessResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseBatchAccessResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_dict_str__any__.go b/sdks/go/model_success_response_dict_str__any__.go deleted file mode 100644 index e1663d5..0000000 --- a/sdks/go/model_success_response_dict_str__any__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseDictStrAny type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseDictStrAny{} - -// SuccessResponseDictStrAny struct for SuccessResponseDictStrAny -type SuccessResponseDictStrAny struct { - Data map[string]interface{} `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseDictStrAny SuccessResponseDictStrAny - -// NewSuccessResponseDictStrAny instantiates a new SuccessResponseDictStrAny object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseDictStrAny(data map[string]interface{}) *SuccessResponseDictStrAny { - this := SuccessResponseDictStrAny{} - this.Data = data - return &this -} - -// NewSuccessResponseDictStrAnyWithDefaults instantiates a new SuccessResponseDictStrAny object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseDictStrAnyWithDefaults() *SuccessResponseDictStrAny { - this := SuccessResponseDictStrAny{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseDictStrAny) GetData() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrAny) GetDataOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseDictStrAny) SetData(v map[string]interface{}) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseDictStrAny) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrAny) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseDictStrAny) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseDictStrAny) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrAny) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrAny) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseDictStrAny) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseDictStrAny) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseDictStrAny) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseDictStrAny) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseDictStrAny) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseDictStrAny := _SuccessResponseDictStrAny{} - - err = json.Unmarshal(data, &varSuccessResponseDictStrAny) - - if err != nil { - return err - } - - *o = SuccessResponseDictStrAny(varSuccessResponseDictStrAny) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseDictStrAny struct { - value *SuccessResponseDictStrAny - isSet bool -} - -func (v NullableSuccessResponseDictStrAny) Get() *SuccessResponseDictStrAny { - return v.value -} - -func (v *NullableSuccessResponseDictStrAny) Set(val *SuccessResponseDictStrAny) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseDictStrAny) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseDictStrAny) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseDictStrAny(val *SuccessResponseDictStrAny) *NullableSuccessResponseDictStrAny { - return &NullableSuccessResponseDictStrAny{value: val, isSet: true} -} - -func (v NullableSuccessResponseDictStrAny) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseDictStrAny) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_dict_str__int__.go b/sdks/go/model_success_response_dict_str__int__.go deleted file mode 100644 index 069a91c..0000000 --- a/sdks/go/model_success_response_dict_str__int__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseDictStrInt type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseDictStrInt{} - -// SuccessResponseDictStrInt struct for SuccessResponseDictStrInt -type SuccessResponseDictStrInt struct { - Data map[string]int32 `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseDictStrInt SuccessResponseDictStrInt - -// NewSuccessResponseDictStrInt instantiates a new SuccessResponseDictStrInt object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseDictStrInt(data map[string]int32) *SuccessResponseDictStrInt { - this := SuccessResponseDictStrInt{} - this.Data = data - return &this -} - -// NewSuccessResponseDictStrIntWithDefaults instantiates a new SuccessResponseDictStrInt object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseDictStrIntWithDefaults() *SuccessResponseDictStrInt { - this := SuccessResponseDictStrInt{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseDictStrInt) GetData() map[string]int32 { - if o == nil { - var ret map[string]int32 - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrInt) GetDataOk() (map[string]int32, bool) { - if o == nil { - return map[string]int32{}, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseDictStrInt) SetData(v map[string]int32) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseDictStrInt) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrInt) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseDictStrInt) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseDictStrInt) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrInt) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrInt) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseDictStrInt) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseDictStrInt) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseDictStrInt) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseDictStrInt) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseDictStrInt) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseDictStrInt := _SuccessResponseDictStrInt{} - - err = json.Unmarshal(data, &varSuccessResponseDictStrInt) - - if err != nil { - return err - } - - *o = SuccessResponseDictStrInt(varSuccessResponseDictStrInt) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseDictStrInt struct { - value *SuccessResponseDictStrInt - isSet bool -} - -func (v NullableSuccessResponseDictStrInt) Get() *SuccessResponseDictStrInt { - return v.value -} - -func (v *NullableSuccessResponseDictStrInt) Set(val *SuccessResponseDictStrInt) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseDictStrInt) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseDictStrInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseDictStrInt(val *SuccessResponseDictStrInt) *NullableSuccessResponseDictStrInt { - return &NullableSuccessResponseDictStrInt{value: val, isSet: true} -} - -func (v NullableSuccessResponseDictStrInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseDictStrInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_dict_str__object__.go b/sdks/go/model_success_response_dict_str__object__.go deleted file mode 100644 index 83ff0ff..0000000 --- a/sdks/go/model_success_response_dict_str__object__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseDictStrObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseDictStrObject{} - -// SuccessResponseDictStrObject struct for SuccessResponseDictStrObject -type SuccessResponseDictStrObject struct { - Data map[string]interface{} `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseDictStrObject SuccessResponseDictStrObject - -// NewSuccessResponseDictStrObject instantiates a new SuccessResponseDictStrObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseDictStrObject(data map[string]interface{}) *SuccessResponseDictStrObject { - this := SuccessResponseDictStrObject{} - this.Data = data - return &this -} - -// NewSuccessResponseDictStrObjectWithDefaults instantiates a new SuccessResponseDictStrObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseDictStrObjectWithDefaults() *SuccessResponseDictStrObject { - this := SuccessResponseDictStrObject{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseDictStrObject) GetData() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrObject) GetDataOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseDictStrObject) SetData(v map[string]interface{}) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseDictStrObject) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrObject) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseDictStrObject) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseDictStrObject) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrObject) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrObject) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseDictStrObject) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseDictStrObject) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseDictStrObject) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseDictStrObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseDictStrObject) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseDictStrObject := _SuccessResponseDictStrObject{} - - err = json.Unmarshal(data, &varSuccessResponseDictStrObject) - - if err != nil { - return err - } - - *o = SuccessResponseDictStrObject(varSuccessResponseDictStrObject) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseDictStrObject struct { - value *SuccessResponseDictStrObject - isSet bool -} - -func (v NullableSuccessResponseDictStrObject) Get() *SuccessResponseDictStrObject { - return v.value -} - -func (v *NullableSuccessResponseDictStrObject) Set(val *SuccessResponseDictStrObject) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseDictStrObject) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseDictStrObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseDictStrObject(val *SuccessResponseDictStrObject) *NullableSuccessResponseDictStrObject { - return &NullableSuccessResponseDictStrObject{value: val, isSet: true} -} - -func (v NullableSuccessResponseDictStrObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseDictStrObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_dict_str__str__.go b/sdks/go/model_success_response_dict_str__str__.go deleted file mode 100644 index 0ea4766..0000000 --- a/sdks/go/model_success_response_dict_str__str__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseDictStrStr type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseDictStrStr{} - -// SuccessResponseDictStrStr struct for SuccessResponseDictStrStr -type SuccessResponseDictStrStr struct { - Data map[string]string `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseDictStrStr SuccessResponseDictStrStr - -// NewSuccessResponseDictStrStr instantiates a new SuccessResponseDictStrStr object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseDictStrStr(data map[string]string) *SuccessResponseDictStrStr { - this := SuccessResponseDictStrStr{} - this.Data = data - return &this -} - -// NewSuccessResponseDictStrStrWithDefaults instantiates a new SuccessResponseDictStrStr object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseDictStrStrWithDefaults() *SuccessResponseDictStrStr { - this := SuccessResponseDictStrStr{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseDictStrStr) GetData() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrStr) GetDataOk() (map[string]string, bool) { - if o == nil { - return map[string]string{}, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseDictStrStr) SetData(v map[string]string) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseDictStrStr) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrStr) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseDictStrStr) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseDictStrStr) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrStr) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrStr) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseDictStrStr) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseDictStrStr) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseDictStrStr) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseDictStrStr) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseDictStrStr) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseDictStrStr := _SuccessResponseDictStrStr{} - - err = json.Unmarshal(data, &varSuccessResponseDictStrStr) - - if err != nil { - return err - } - - *o = SuccessResponseDictStrStr(varSuccessResponseDictStrStr) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseDictStrStr struct { - value *SuccessResponseDictStrStr - isSet bool -} - -func (v NullableSuccessResponseDictStrStr) Get() *SuccessResponseDictStrStr { - return v.value -} - -func (v *NullableSuccessResponseDictStrStr) Set(val *SuccessResponseDictStrStr) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseDictStrStr) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseDictStrStr) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseDictStrStr(val *SuccessResponseDictStrStr) *NullableSuccessResponseDictStrStr { - return &NullableSuccessResponseDictStrStr{value: val, isSet: true} -} - -func (v NullableSuccessResponseDictStrStr) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseDictStrStr) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_dict_str__union_int__str___.go b/sdks/go/model_success_response_dict_str__union_int__str___.go deleted file mode 100644 index 3d48fbb..0000000 --- a/sdks/go/model_success_response_dict_str__union_int__str___.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseDictStrUnionIntStr type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseDictStrUnionIntStr{} - -// SuccessResponseDictStrUnionIntStr struct for SuccessResponseDictStrUnionIntStr -type SuccessResponseDictStrUnionIntStr struct { - Data map[string]DataValue `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseDictStrUnionIntStr SuccessResponseDictStrUnionIntStr - -// NewSuccessResponseDictStrUnionIntStr instantiates a new SuccessResponseDictStrUnionIntStr object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseDictStrUnionIntStr(data map[string]DataValue) *SuccessResponseDictStrUnionIntStr { - this := SuccessResponseDictStrUnionIntStr{} - this.Data = data - return &this -} - -// NewSuccessResponseDictStrUnionIntStrWithDefaults instantiates a new SuccessResponseDictStrUnionIntStr object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseDictStrUnionIntStrWithDefaults() *SuccessResponseDictStrUnionIntStr { - this := SuccessResponseDictStrUnionIntStr{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseDictStrUnionIntStr) GetData() map[string]DataValue { - if o == nil { - var ret map[string]DataValue - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrUnionIntStr) GetDataOk() (map[string]DataValue, bool) { - if o == nil { - return map[string]DataValue{}, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseDictStrUnionIntStr) SetData(v map[string]DataValue) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseDictStrUnionIntStr) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrUnionIntStr) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseDictStrUnionIntStr) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseDictStrUnionIntStr) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseDictStrUnionIntStr) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseDictStrUnionIntStr) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseDictStrUnionIntStr) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseDictStrUnionIntStr) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseDictStrUnionIntStr) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseDictStrUnionIntStr) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseDictStrUnionIntStr) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseDictStrUnionIntStr := _SuccessResponseDictStrUnionIntStr{} - - err = json.Unmarshal(data, &varSuccessResponseDictStrUnionIntStr) - - if err != nil { - return err - } - - *o = SuccessResponseDictStrUnionIntStr(varSuccessResponseDictStrUnionIntStr) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseDictStrUnionIntStr struct { - value *SuccessResponseDictStrUnionIntStr - isSet bool -} - -func (v NullableSuccessResponseDictStrUnionIntStr) Get() *SuccessResponseDictStrUnionIntStr { - return v.value -} - -func (v *NullableSuccessResponseDictStrUnionIntStr) Set(val *SuccessResponseDictStrUnionIntStr) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseDictStrUnionIntStr) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseDictStrUnionIntStr) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseDictStrUnionIntStr(val *SuccessResponseDictStrUnionIntStr) *NullableSuccessResponseDictStrUnionIntStr { - return &NullableSuccessResponseDictStrUnionIntStr{value: val, isSet: true} -} - -func (v NullableSuccessResponseDictStrUnionIntStr) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseDictStrUnionIntStr) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_impact_analysis_response_.go b/sdks/go/model_success_response_impact_analysis_response_.go deleted file mode 100644 index 8700535..0000000 --- a/sdks/go/model_success_response_impact_analysis_response_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseImpactAnalysisResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseImpactAnalysisResponse{} - -// SuccessResponseImpactAnalysisResponse struct for SuccessResponseImpactAnalysisResponse -type SuccessResponseImpactAnalysisResponse struct { - Data ImpactAnalysisResponse `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseImpactAnalysisResponse SuccessResponseImpactAnalysisResponse - -// NewSuccessResponseImpactAnalysisResponse instantiates a new SuccessResponseImpactAnalysisResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseImpactAnalysisResponse(data ImpactAnalysisResponse) *SuccessResponseImpactAnalysisResponse { - this := SuccessResponseImpactAnalysisResponse{} - this.Data = data - return &this -} - -// NewSuccessResponseImpactAnalysisResponseWithDefaults instantiates a new SuccessResponseImpactAnalysisResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseImpactAnalysisResponseWithDefaults() *SuccessResponseImpactAnalysisResponse { - this := SuccessResponseImpactAnalysisResponse{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseImpactAnalysisResponse) GetData() ImpactAnalysisResponse { - if o == nil { - var ret ImpactAnalysisResponse - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseImpactAnalysisResponse) GetDataOk() (*ImpactAnalysisResponse, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseImpactAnalysisResponse) SetData(v ImpactAnalysisResponse) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseImpactAnalysisResponse) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseImpactAnalysisResponse) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseImpactAnalysisResponse) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseImpactAnalysisResponse) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseImpactAnalysisResponse) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseImpactAnalysisResponse) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseImpactAnalysisResponse) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseImpactAnalysisResponse) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseImpactAnalysisResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseImpactAnalysisResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseImpactAnalysisResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseImpactAnalysisResponse := _SuccessResponseImpactAnalysisResponse{} - - err = json.Unmarshal(data, &varSuccessResponseImpactAnalysisResponse) - - if err != nil { - return err - } - - *o = SuccessResponseImpactAnalysisResponse(varSuccessResponseImpactAnalysisResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseImpactAnalysisResponse struct { - value *SuccessResponseImpactAnalysisResponse - isSet bool -} - -func (v NullableSuccessResponseImpactAnalysisResponse) Get() *SuccessResponseImpactAnalysisResponse { - return v.value -} - -func (v *NullableSuccessResponseImpactAnalysisResponse) Set(val *SuccessResponseImpactAnalysisResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseImpactAnalysisResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseImpactAnalysisResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseImpactAnalysisResponse(val *SuccessResponseImpactAnalysisResponse) *NullableSuccessResponseImpactAnalysisResponse { - return &NullableSuccessResponseImpactAnalysisResponse{value: val, isSet: true} -} - -func (v NullableSuccessResponseImpactAnalysisResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseImpactAnalysisResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_list_acl_out__.go b/sdks/go/model_success_response_list_acl_out__.go deleted file mode 100644 index b7622af..0000000 --- a/sdks/go/model_success_response_list_acl_out__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseListACLOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseListACLOut{} - -// SuccessResponseListACLOut struct for SuccessResponseListACLOut -type SuccessResponseListACLOut struct { - Data []ACLOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseListACLOut SuccessResponseListACLOut - -// NewSuccessResponseListACLOut instantiates a new SuccessResponseListACLOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseListACLOut(data []ACLOut) *SuccessResponseListACLOut { - this := SuccessResponseListACLOut{} - this.Data = data - return &this -} - -// NewSuccessResponseListACLOutWithDefaults instantiates a new SuccessResponseListACLOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseListACLOutWithDefaults() *SuccessResponseListACLOut { - this := SuccessResponseListACLOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseListACLOut) GetData() []ACLOut { - if o == nil { - var ret []ACLOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseListACLOut) GetDataOk() ([]ACLOut, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseListACLOut) SetData(v []ACLOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseListACLOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListACLOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseListACLOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseListACLOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListACLOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListACLOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseListACLOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseListACLOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseListACLOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseListACLOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseListACLOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseListACLOut := _SuccessResponseListACLOut{} - - err = json.Unmarshal(data, &varSuccessResponseListACLOut) - - if err != nil { - return err - } - - *o = SuccessResponseListACLOut(varSuccessResponseListACLOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseListACLOut struct { - value *SuccessResponseListACLOut - isSet bool -} - -func (v NullableSuccessResponseListACLOut) Get() *SuccessResponseListACLOut { - return v.value -} - -func (v *NullableSuccessResponseListACLOut) Set(val *SuccessResponseListACLOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseListACLOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseListACLOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseListACLOut(val *SuccessResponseListACLOut) *NullableSuccessResponseListACLOut { - return &NullableSuccessResponseListACLOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseListACLOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseListACLOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_list_audit_record_out__.go b/sdks/go/model_success_response_list_audit_record_out__.go deleted file mode 100644 index 4d6b799..0000000 --- a/sdks/go/model_success_response_list_audit_record_out__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseListAuditRecordOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseListAuditRecordOut{} - -// SuccessResponseListAuditRecordOut struct for SuccessResponseListAuditRecordOut -type SuccessResponseListAuditRecordOut struct { - Data []AuditRecordOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseListAuditRecordOut SuccessResponseListAuditRecordOut - -// NewSuccessResponseListAuditRecordOut instantiates a new SuccessResponseListAuditRecordOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseListAuditRecordOut(data []AuditRecordOut) *SuccessResponseListAuditRecordOut { - this := SuccessResponseListAuditRecordOut{} - this.Data = data - return &this -} - -// NewSuccessResponseListAuditRecordOutWithDefaults instantiates a new SuccessResponseListAuditRecordOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseListAuditRecordOutWithDefaults() *SuccessResponseListAuditRecordOut { - this := SuccessResponseListAuditRecordOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseListAuditRecordOut) GetData() []AuditRecordOut { - if o == nil { - var ret []AuditRecordOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseListAuditRecordOut) GetDataOk() ([]AuditRecordOut, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseListAuditRecordOut) SetData(v []AuditRecordOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseListAuditRecordOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListAuditRecordOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseListAuditRecordOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseListAuditRecordOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListAuditRecordOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListAuditRecordOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseListAuditRecordOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseListAuditRecordOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseListAuditRecordOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseListAuditRecordOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseListAuditRecordOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseListAuditRecordOut := _SuccessResponseListAuditRecordOut{} - - err = json.Unmarshal(data, &varSuccessResponseListAuditRecordOut) - - if err != nil { - return err - } - - *o = SuccessResponseListAuditRecordOut(varSuccessResponseListAuditRecordOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseListAuditRecordOut struct { - value *SuccessResponseListAuditRecordOut - isSet bool -} - -func (v NullableSuccessResponseListAuditRecordOut) Get() *SuccessResponseListAuditRecordOut { - return v.value -} - -func (v *NullableSuccessResponseListAuditRecordOut) Set(val *SuccessResponseListAuditRecordOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseListAuditRecordOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseListAuditRecordOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseListAuditRecordOut(val *SuccessResponseListAuditRecordOut) *NullableSuccessResponseListAuditRecordOut { - return &NullableSuccessResponseListAuditRecordOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseListAuditRecordOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseListAuditRecordOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_list_dict_str__str___.go b/sdks/go/model_success_response_list_dict_str__str___.go deleted file mode 100644 index 243f1b6..0000000 --- a/sdks/go/model_success_response_list_dict_str__str___.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseListDictStrStr type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseListDictStrStr{} - -// SuccessResponseListDictStrStr struct for SuccessResponseListDictStrStr -type SuccessResponseListDictStrStr struct { - Data []map[string]string `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseListDictStrStr SuccessResponseListDictStrStr - -// NewSuccessResponseListDictStrStr instantiates a new SuccessResponseListDictStrStr object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseListDictStrStr(data []map[string]string) *SuccessResponseListDictStrStr { - this := SuccessResponseListDictStrStr{} - this.Data = data - return &this -} - -// NewSuccessResponseListDictStrStrWithDefaults instantiates a new SuccessResponseListDictStrStr object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseListDictStrStrWithDefaults() *SuccessResponseListDictStrStr { - this := SuccessResponseListDictStrStr{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseListDictStrStr) GetData() []map[string]string { - if o == nil { - var ret []map[string]string - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseListDictStrStr) GetDataOk() ([]map[string]string, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseListDictStrStr) SetData(v []map[string]string) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseListDictStrStr) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListDictStrStr) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseListDictStrStr) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseListDictStrStr) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListDictStrStr) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListDictStrStr) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseListDictStrStr) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseListDictStrStr) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseListDictStrStr) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseListDictStrStr) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseListDictStrStr) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseListDictStrStr := _SuccessResponseListDictStrStr{} - - err = json.Unmarshal(data, &varSuccessResponseListDictStrStr) - - if err != nil { - return err - } - - *o = SuccessResponseListDictStrStr(varSuccessResponseListDictStrStr) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseListDictStrStr struct { - value *SuccessResponseListDictStrStr - isSet bool -} - -func (v NullableSuccessResponseListDictStrStr) Get() *SuccessResponseListDictStrStr { - return v.value -} - -func (v *NullableSuccessResponseListDictStrStr) Set(val *SuccessResponseListDictStrStr) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseListDictStrStr) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseListDictStrStr) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseListDictStrStr(val *SuccessResponseListDictStrStr) *NullableSuccessResponseListDictStrStr { - return &NullableSuccessResponseListDictStrStr{value: val, isSet: true} -} - -func (v NullableSuccessResponseListDictStrStr) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseListDictStrStr) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_list_permission_out__.go b/sdks/go/model_success_response_list_permission_out__.go deleted file mode 100644 index e34f006..0000000 --- a/sdks/go/model_success_response_list_permission_out__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseListPermissionOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseListPermissionOut{} - -// SuccessResponseListPermissionOut struct for SuccessResponseListPermissionOut -type SuccessResponseListPermissionOut struct { - Data []PermissionOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseListPermissionOut SuccessResponseListPermissionOut - -// NewSuccessResponseListPermissionOut instantiates a new SuccessResponseListPermissionOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseListPermissionOut(data []PermissionOut) *SuccessResponseListPermissionOut { - this := SuccessResponseListPermissionOut{} - this.Data = data - return &this -} - -// NewSuccessResponseListPermissionOutWithDefaults instantiates a new SuccessResponseListPermissionOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseListPermissionOutWithDefaults() *SuccessResponseListPermissionOut { - this := SuccessResponseListPermissionOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseListPermissionOut) GetData() []PermissionOut { - if o == nil { - var ret []PermissionOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseListPermissionOut) GetDataOk() ([]PermissionOut, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseListPermissionOut) SetData(v []PermissionOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseListPermissionOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListPermissionOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseListPermissionOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseListPermissionOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListPermissionOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListPermissionOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseListPermissionOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseListPermissionOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseListPermissionOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseListPermissionOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseListPermissionOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseListPermissionOut := _SuccessResponseListPermissionOut{} - - err = json.Unmarshal(data, &varSuccessResponseListPermissionOut) - - if err != nil { - return err - } - - *o = SuccessResponseListPermissionOut(varSuccessResponseListPermissionOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseListPermissionOut struct { - value *SuccessResponseListPermissionOut - isSet bool -} - -func (v NullableSuccessResponseListPermissionOut) Get() *SuccessResponseListPermissionOut { - return v.value -} - -func (v *NullableSuccessResponseListPermissionOut) Set(val *SuccessResponseListPermissionOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseListPermissionOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseListPermissionOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseListPermissionOut(val *SuccessResponseListPermissionOut) *NullableSuccessResponseListPermissionOut { - return &NullableSuccessResponseListPermissionOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseListPermissionOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseListPermissionOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_list_policy_out__.go b/sdks/go/model_success_response_list_policy_out__.go deleted file mode 100644 index 0b98a31..0000000 --- a/sdks/go/model_success_response_list_policy_out__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseListPolicyOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseListPolicyOut{} - -// SuccessResponseListPolicyOut struct for SuccessResponseListPolicyOut -type SuccessResponseListPolicyOut struct { - Data []PolicyOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseListPolicyOut SuccessResponseListPolicyOut - -// NewSuccessResponseListPolicyOut instantiates a new SuccessResponseListPolicyOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseListPolicyOut(data []PolicyOut) *SuccessResponseListPolicyOut { - this := SuccessResponseListPolicyOut{} - this.Data = data - return &this -} - -// NewSuccessResponseListPolicyOutWithDefaults instantiates a new SuccessResponseListPolicyOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseListPolicyOutWithDefaults() *SuccessResponseListPolicyOut { - this := SuccessResponseListPolicyOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseListPolicyOut) GetData() []PolicyOut { - if o == nil { - var ret []PolicyOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseListPolicyOut) GetDataOk() ([]PolicyOut, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseListPolicyOut) SetData(v []PolicyOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseListPolicyOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListPolicyOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseListPolicyOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseListPolicyOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListPolicyOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListPolicyOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseListPolicyOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseListPolicyOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseListPolicyOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseListPolicyOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseListPolicyOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseListPolicyOut := _SuccessResponseListPolicyOut{} - - err = json.Unmarshal(data, &varSuccessResponseListPolicyOut) - - if err != nil { - return err - } - - *o = SuccessResponseListPolicyOut(varSuccessResponseListPolicyOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseListPolicyOut struct { - value *SuccessResponseListPolicyOut - isSet bool -} - -func (v NullableSuccessResponseListPolicyOut) Get() *SuccessResponseListPolicyOut { - return v.value -} - -func (v *NullableSuccessResponseListPolicyOut) Set(val *SuccessResponseListPolicyOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseListPolicyOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseListPolicyOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseListPolicyOut(val *SuccessResponseListPolicyOut) *NullableSuccessResponseListPolicyOut { - return &NullableSuccessResponseListPolicyOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseListPolicyOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseListPolicyOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_list_role_out__.go b/sdks/go/model_success_response_list_role_out__.go deleted file mode 100644 index 960a2bd..0000000 --- a/sdks/go/model_success_response_list_role_out__.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseListRoleOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseListRoleOut{} - -// SuccessResponseListRoleOut struct for SuccessResponseListRoleOut -type SuccessResponseListRoleOut struct { - Data []RoleOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseListRoleOut SuccessResponseListRoleOut - -// NewSuccessResponseListRoleOut instantiates a new SuccessResponseListRoleOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseListRoleOut(data []RoleOut) *SuccessResponseListRoleOut { - this := SuccessResponseListRoleOut{} - this.Data = data - return &this -} - -// NewSuccessResponseListRoleOutWithDefaults instantiates a new SuccessResponseListRoleOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseListRoleOutWithDefaults() *SuccessResponseListRoleOut { - this := SuccessResponseListRoleOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseListRoleOut) GetData() []RoleOut { - if o == nil { - var ret []RoleOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseListRoleOut) GetDataOk() ([]RoleOut, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseListRoleOut) SetData(v []RoleOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseListRoleOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListRoleOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseListRoleOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseListRoleOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseListRoleOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseListRoleOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseListRoleOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseListRoleOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseListRoleOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseListRoleOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseListRoleOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseListRoleOut := _SuccessResponseListRoleOut{} - - err = json.Unmarshal(data, &varSuccessResponseListRoleOut) - - if err != nil { - return err - } - - *o = SuccessResponseListRoleOut(varSuccessResponseListRoleOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseListRoleOut struct { - value *SuccessResponseListRoleOut - isSet bool -} - -func (v NullableSuccessResponseListRoleOut) Get() *SuccessResponseListRoleOut { - return v.value -} - -func (v *NullableSuccessResponseListRoleOut) Set(val *SuccessResponseListRoleOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseListRoleOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseListRoleOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseListRoleOut(val *SuccessResponseListRoleOut) *NullableSuccessResponseListRoleOut { - return &NullableSuccessResponseListRoleOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseListRoleOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseListRoleOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_permission_out_.go b/sdks/go/model_success_response_permission_out_.go deleted file mode 100644 index 57304e3..0000000 --- a/sdks/go/model_success_response_permission_out_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponsePermissionOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponsePermissionOut{} - -// SuccessResponsePermissionOut struct for SuccessResponsePermissionOut -type SuccessResponsePermissionOut struct { - Data PermissionOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponsePermissionOut SuccessResponsePermissionOut - -// NewSuccessResponsePermissionOut instantiates a new SuccessResponsePermissionOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponsePermissionOut(data PermissionOut) *SuccessResponsePermissionOut { - this := SuccessResponsePermissionOut{} - this.Data = data - return &this -} - -// NewSuccessResponsePermissionOutWithDefaults instantiates a new SuccessResponsePermissionOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponsePermissionOutWithDefaults() *SuccessResponsePermissionOut { - this := SuccessResponsePermissionOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponsePermissionOut) GetData() PermissionOut { - if o == nil { - var ret PermissionOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponsePermissionOut) GetDataOk() (*PermissionOut, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponsePermissionOut) SetData(v PermissionOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponsePermissionOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponsePermissionOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponsePermissionOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponsePermissionOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponsePermissionOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponsePermissionOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponsePermissionOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponsePermissionOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponsePermissionOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponsePermissionOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponsePermissionOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponsePermissionOut := _SuccessResponsePermissionOut{} - - err = json.Unmarshal(data, &varSuccessResponsePermissionOut) - - if err != nil { - return err - } - - *o = SuccessResponsePermissionOut(varSuccessResponsePermissionOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponsePermissionOut struct { - value *SuccessResponsePermissionOut - isSet bool -} - -func (v NullableSuccessResponsePermissionOut) Get() *SuccessResponsePermissionOut { - return v.value -} - -func (v *NullableSuccessResponsePermissionOut) Set(val *SuccessResponsePermissionOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponsePermissionOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponsePermissionOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponsePermissionOut(val *SuccessResponsePermissionOut) *NullableSuccessResponsePermissionOut { - return &NullableSuccessResponsePermissionOut{value: val, isSet: true} -} - -func (v NullableSuccessResponsePermissionOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponsePermissionOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_policy_out_.go b/sdks/go/model_success_response_policy_out_.go deleted file mode 100644 index 712db5e..0000000 --- a/sdks/go/model_success_response_policy_out_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponsePolicyOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponsePolicyOut{} - -// SuccessResponsePolicyOut struct for SuccessResponsePolicyOut -type SuccessResponsePolicyOut struct { - Data PolicyOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponsePolicyOut SuccessResponsePolicyOut - -// NewSuccessResponsePolicyOut instantiates a new SuccessResponsePolicyOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponsePolicyOut(data PolicyOut) *SuccessResponsePolicyOut { - this := SuccessResponsePolicyOut{} - this.Data = data - return &this -} - -// NewSuccessResponsePolicyOutWithDefaults instantiates a new SuccessResponsePolicyOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponsePolicyOutWithDefaults() *SuccessResponsePolicyOut { - this := SuccessResponsePolicyOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponsePolicyOut) GetData() PolicyOut { - if o == nil { - var ret PolicyOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponsePolicyOut) GetDataOk() (*PolicyOut, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponsePolicyOut) SetData(v PolicyOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponsePolicyOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponsePolicyOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponsePolicyOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponsePolicyOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponsePolicyOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponsePolicyOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponsePolicyOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponsePolicyOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponsePolicyOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponsePolicyOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponsePolicyOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponsePolicyOut := _SuccessResponsePolicyOut{} - - err = json.Unmarshal(data, &varSuccessResponsePolicyOut) - - if err != nil { - return err - } - - *o = SuccessResponsePolicyOut(varSuccessResponsePolicyOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponsePolicyOut struct { - value *SuccessResponsePolicyOut - isSet bool -} - -func (v NullableSuccessResponsePolicyOut) Get() *SuccessResponsePolicyOut { - return v.value -} - -func (v *NullableSuccessResponsePolicyOut) Set(val *SuccessResponsePolicyOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponsePolicyOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponsePolicyOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponsePolicyOut(val *SuccessResponsePolicyOut) *NullableSuccessResponsePolicyOut { - return &NullableSuccessResponsePolicyOut{value: val, isSet: true} -} - -func (v NullableSuccessResponsePolicyOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponsePolicyOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_policy_simulation_response_.go b/sdks/go/model_success_response_policy_simulation_response_.go deleted file mode 100644 index 2e584bc..0000000 --- a/sdks/go/model_success_response_policy_simulation_response_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponsePolicySimulationResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponsePolicySimulationResponse{} - -// SuccessResponsePolicySimulationResponse struct for SuccessResponsePolicySimulationResponse -type SuccessResponsePolicySimulationResponse struct { - Data PolicySimulationResponse `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponsePolicySimulationResponse SuccessResponsePolicySimulationResponse - -// NewSuccessResponsePolicySimulationResponse instantiates a new SuccessResponsePolicySimulationResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponsePolicySimulationResponse(data PolicySimulationResponse) *SuccessResponsePolicySimulationResponse { - this := SuccessResponsePolicySimulationResponse{} - this.Data = data - return &this -} - -// NewSuccessResponsePolicySimulationResponseWithDefaults instantiates a new SuccessResponsePolicySimulationResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponsePolicySimulationResponseWithDefaults() *SuccessResponsePolicySimulationResponse { - this := SuccessResponsePolicySimulationResponse{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponsePolicySimulationResponse) GetData() PolicySimulationResponse { - if o == nil { - var ret PolicySimulationResponse - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponsePolicySimulationResponse) GetDataOk() (*PolicySimulationResponse, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponsePolicySimulationResponse) SetData(v PolicySimulationResponse) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponsePolicySimulationResponse) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponsePolicySimulationResponse) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponsePolicySimulationResponse) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponsePolicySimulationResponse) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponsePolicySimulationResponse) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponsePolicySimulationResponse) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponsePolicySimulationResponse) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponsePolicySimulationResponse) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponsePolicySimulationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponsePolicySimulationResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponsePolicySimulationResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponsePolicySimulationResponse := _SuccessResponsePolicySimulationResponse{} - - err = json.Unmarshal(data, &varSuccessResponsePolicySimulationResponse) - - if err != nil { - return err - } - - *o = SuccessResponsePolicySimulationResponse(varSuccessResponsePolicySimulationResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponsePolicySimulationResponse struct { - value *SuccessResponsePolicySimulationResponse - isSet bool -} - -func (v NullableSuccessResponsePolicySimulationResponse) Get() *SuccessResponsePolicySimulationResponse { - return v.value -} - -func (v *NullableSuccessResponsePolicySimulationResponse) Set(val *SuccessResponsePolicySimulationResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponsePolicySimulationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponsePolicySimulationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponsePolicySimulationResponse(val *SuccessResponsePolicySimulationResponse) *NullableSuccessResponsePolicySimulationResponse { - return &NullableSuccessResponsePolicySimulationResponse{value: val, isSet: true} -} - -func (v NullableSuccessResponsePolicySimulationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponsePolicySimulationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_relationship_out_.go b/sdks/go/model_success_response_relationship_out_.go deleted file mode 100644 index 5461a1d..0000000 --- a/sdks/go/model_success_response_relationship_out_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseRelationshipOut type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseRelationshipOut{} - -// SuccessResponseRelationshipOut struct for SuccessResponseRelationshipOut -type SuccessResponseRelationshipOut struct { - Data RelationshipOut `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseRelationshipOut SuccessResponseRelationshipOut - -// NewSuccessResponseRelationshipOut instantiates a new SuccessResponseRelationshipOut object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseRelationshipOut(data RelationshipOut) *SuccessResponseRelationshipOut { - this := SuccessResponseRelationshipOut{} - this.Data = data - return &this -} - -// NewSuccessResponseRelationshipOutWithDefaults instantiates a new SuccessResponseRelationshipOut object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseRelationshipOutWithDefaults() *SuccessResponseRelationshipOut { - this := SuccessResponseRelationshipOut{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseRelationshipOut) GetData() RelationshipOut { - if o == nil { - var ret RelationshipOut - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseRelationshipOut) GetDataOk() (*RelationshipOut, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseRelationshipOut) SetData(v RelationshipOut) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseRelationshipOut) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseRelationshipOut) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseRelationshipOut) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseRelationshipOut) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseRelationshipOut) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseRelationshipOut) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseRelationshipOut) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseRelationshipOut) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseRelationshipOut) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseRelationshipOut) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseRelationshipOut) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseRelationshipOut := _SuccessResponseRelationshipOut{} - - err = json.Unmarshal(data, &varSuccessResponseRelationshipOut) - - if err != nil { - return err - } - - *o = SuccessResponseRelationshipOut(varSuccessResponseRelationshipOut) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseRelationshipOut struct { - value *SuccessResponseRelationshipOut - isSet bool -} - -func (v NullableSuccessResponseRelationshipOut) Get() *SuccessResponseRelationshipOut { - return v.value -} - -func (v *NullableSuccessResponseRelationshipOut) Set(val *SuccessResponseRelationshipOut) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseRelationshipOut) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseRelationshipOut) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseRelationshipOut(val *SuccessResponseRelationshipOut) *NullableSuccessResponseRelationshipOut { - return &NullableSuccessResponseRelationshipOut{value: val, isSet: true} -} - -func (v NullableSuccessResponseRelationshipOut) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseRelationshipOut) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_success_response_simulation_response_.go b/sdks/go/model_success_response_simulation_response_.go deleted file mode 100644 index 4bc2c49..0000000 --- a/sdks/go/model_success_response_simulation_response_.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the SuccessResponseSimulationResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuccessResponseSimulationResponse{} - -// SuccessResponseSimulationResponse struct for SuccessResponseSimulationResponse -type SuccessResponseSimulationResponse struct { - Data SimulationResponse `json:"data"` - Meta *MetaBody `json:"meta,omitempty"` - Error *interface{} `json:"error,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SuccessResponseSimulationResponse SuccessResponseSimulationResponse - -// NewSuccessResponseSimulationResponse instantiates a new SuccessResponseSimulationResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSuccessResponseSimulationResponse(data SimulationResponse) *SuccessResponseSimulationResponse { - this := SuccessResponseSimulationResponse{} - this.Data = data - return &this -} - -// NewSuccessResponseSimulationResponseWithDefaults instantiates a new SuccessResponseSimulationResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSuccessResponseSimulationResponseWithDefaults() *SuccessResponseSimulationResponse { - this := SuccessResponseSimulationResponse{} - return &this -} - -// GetData returns the Data field value -func (o *SuccessResponseSimulationResponse) GetData() SimulationResponse { - if o == nil { - var ret SimulationResponse - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *SuccessResponseSimulationResponse) GetDataOk() (*SimulationResponse, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *SuccessResponseSimulationResponse) SetData(v SimulationResponse) { - o.Data = v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *SuccessResponseSimulationResponse) GetMeta() MetaBody { - if o == nil || IsNil(o.Meta) { - var ret MetaBody - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseSimulationResponse) GetMetaOk() (*MetaBody, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *SuccessResponseSimulationResponse) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given MetaBody and assigns it to the Meta field. -func (o *SuccessResponseSimulationResponse) SetMeta(v MetaBody) { - o.Meta = &v -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *SuccessResponseSimulationResponse) GetError() interface{} { - if o == nil || IsNil(o.Error) { - var ret interface{} - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SuccessResponseSimulationResponse) GetErrorOk() (*interface{}, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *SuccessResponseSimulationResponse) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given interface{} and assigns it to the Error field. -func (o *SuccessResponseSimulationResponse) SetError(v interface{}) { - o.Error = &v -} - -func (o SuccessResponseSimulationResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SuccessResponseSimulationResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SuccessResponseSimulationResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSuccessResponseSimulationResponse := _SuccessResponseSimulationResponse{} - - err = json.Unmarshal(data, &varSuccessResponseSimulationResponse) - - if err != nil { - return err - } - - *o = SuccessResponseSimulationResponse(varSuccessResponseSimulationResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "data") - delete(additionalProperties, "meta") - delete(additionalProperties, "error") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSuccessResponseSimulationResponse struct { - value *SuccessResponseSimulationResponse - isSet bool -} - -func (v NullableSuccessResponseSimulationResponse) Get() *SuccessResponseSimulationResponse { - return v.value -} - -func (v *NullableSuccessResponseSimulationResponse) Set(val *SuccessResponseSimulationResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSuccessResponseSimulationResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSuccessResponseSimulationResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSuccessResponseSimulationResponse(val *SuccessResponseSimulationResponse) *NullableSuccessResponseSimulationResponse { - return &NullableSuccessResponseSimulationResponse{value: val, isSet: true} -} - -func (v NullableSuccessResponseSimulationResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSuccessResponseSimulationResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/model_validation_error.go b/sdks/go/model_validation_error.go deleted file mode 100644 index 52c5bb8..0000000 --- a/sdks/go/model_validation_error.go +++ /dev/null @@ -1,301 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "encoding/json" - "fmt" -) - -// checks if the ValidationError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ValidationError{} - -// ValidationError struct for ValidationError -type ValidationError struct { - Loc []LocationInner `json:"loc"` - Msg string `json:"msg"` - Type string `json:"type"` - Input interface{} `json:"input,omitempty"` - Ctx interface{} `json:"ctx,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ValidationError ValidationError - -// NewValidationError instantiates a new ValidationError object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewValidationError(loc []LocationInner, msg string, type_ string) *ValidationError { - this := ValidationError{} - this.Loc = loc - this.Msg = msg - this.Type = type_ - return &this -} - -// NewValidationErrorWithDefaults instantiates a new ValidationError object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewValidationErrorWithDefaults() *ValidationError { - this := ValidationError{} - return &this -} - -// GetLoc returns the Loc field value -func (o *ValidationError) GetLoc() []LocationInner { - if o == nil { - var ret []LocationInner - return ret - } - - return o.Loc -} - -// GetLocOk returns a tuple with the Loc field value -// and a boolean to check if the value has been set. -func (o *ValidationError) GetLocOk() ([]LocationInner, bool) { - if o == nil { - return nil, false - } - return o.Loc, true -} - -// SetLoc sets field value -func (o *ValidationError) SetLoc(v []LocationInner) { - o.Loc = v -} - -// GetMsg returns the Msg field value -func (o *ValidationError) GetMsg() string { - if o == nil { - var ret string - return ret - } - - return o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value -// and a boolean to check if the value has been set. -func (o *ValidationError) GetMsgOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Msg, true -} - -// SetMsg sets field value -func (o *ValidationError) SetMsg(v string) { - o.Msg = v -} - -// GetType returns the Type field value -func (o *ValidationError) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ValidationError) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ValidationError) SetType(v string) { - o.Type = v -} - -// GetInput returns the Input field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ValidationError) GetInput() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Input -} - -// GetInputOk returns a tuple with the Input field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ValidationError) GetInputOk() (*interface{}, bool) { - if o == nil || IsNil(o.Input) { - return nil, false - } - return &o.Input, true -} - -// HasInput returns a boolean if a field has been set. -func (o *ValidationError) HasInput() bool { - if o != nil && !IsNil(o.Input) { - return true - } - - return false -} - -// SetInput gets a reference to the given interface{} and assigns it to the Input field. -func (o *ValidationError) SetInput(v interface{}) { - o.Input = v -} - -// GetCtx returns the Ctx field value if set, zero value otherwise. -func (o *ValidationError) GetCtx() interface{} { - if o == nil || IsNil(o.Ctx) { - var ret interface{} - return ret - } - return o.Ctx -} - -// GetCtxOk returns a tuple with the Ctx field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ValidationError) GetCtxOk() (interface{}, bool) { - if o == nil || IsNil(o.Ctx) { - return interface{}{}, false - } - return o.Ctx, true -} - -// HasCtx returns a boolean if a field has been set. -func (o *ValidationError) HasCtx() bool { - if o != nil && !IsNil(o.Ctx) { - return true - } - - return false -} - -// SetCtx gets a reference to the given interface{} and assigns it to the Ctx field. -func (o *ValidationError) SetCtx(v interface{}) { - o.Ctx = v -} - -func (o ValidationError) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ValidationError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["loc"] = o.Loc - toSerialize["msg"] = o.Msg - toSerialize["type"] = o.Type - if o.Input != nil { - toSerialize["input"] = o.Input - } - if !IsNil(o.Ctx) { - toSerialize["ctx"] = o.Ctx - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ValidationError) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "loc", - "msg", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varValidationError := _ValidationError{} - - err = json.Unmarshal(data, &varValidationError) - - if err != nil { - return err - } - - *o = ValidationError(varValidationError) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "loc") - delete(additionalProperties, "msg") - delete(additionalProperties, "type") - delete(additionalProperties, "input") - delete(additionalProperties, "ctx") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableValidationError struct { - value *ValidationError - isSet bool -} - -func (v NullableValidationError) Get() *ValidationError { - return v.value -} - -func (v *NullableValidationError) Set(val *ValidationError) { - v.value = val - v.isSet = true -} - -func (v NullableValidationError) IsSet() bool { - return v.isSet -} - -func (v *NullableValidationError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableValidationError(val *ValidationError) *NullableValidationError { - return &NullableValidationError{value: val, isSet: true} -} - -func (v NullableValidationError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableValidationError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/sdks/go/response.go b/sdks/go/response.go deleted file mode 100644 index a8b0f1f..0000000 --- a/sdks/go/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/sdks/go/test/api_access_test.go b/sdks/go/test/api_access_test.go deleted file mode 100644 index 8a4f08e..0000000 --- a/sdks/go/test/api_access_test.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -KeyNetra - -Testing AccessAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package keynetra - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func Test_keynetra_AccessAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test AccessAPIService CheckAccessBatchCheckAccessBatchPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AccessAPI.CheckAccessBatchCheckAccessBatchPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AccessAPIService CheckAccessCheckAccessPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AccessAPI.CheckAccessCheckAccessPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AccessAPIService SimulateSimulatePost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AccessAPI.SimulateSimulatePost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdks/go/test/api_auth_test.go b/sdks/go/test/api_auth_test.go deleted file mode 100644 index 930491d..0000000 --- a/sdks/go/test/api_auth_test.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -KeyNetra - -Testing AuthAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package keynetra - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func Test_keynetra_AuthAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test AuthAPIService AdminLoginAdminLoginPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AuthAPI.AdminLoginAdminLoginPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AuthAPIService AdminLoginAdminLoginPost_1", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AuthAPI.AdminLoginAdminLoginPost_0(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdks/go/test/api_dev_test.go b/sdks/go/test/api_dev_test.go deleted file mode 100644 index f1153d3..0000000 --- a/sdks/go/test/api_dev_test.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -KeyNetra - -Testing DevAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package keynetra - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func Test_keynetra_DevAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test DevAPIService GetSampleDataDevSampleDataGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DevAPI.GetSampleDataDevSampleDataGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DevAPIService SeedSampleDataDevSampleDataSeedPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DevAPI.SeedSampleDataDevSampleDataSeedPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdks/go/test/api_health_test.go b/sdks/go/test/api_health_test.go deleted file mode 100644 index 475519c..0000000 --- a/sdks/go/test/api_health_test.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -KeyNetra - -Testing HealthAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package keynetra - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func Test_keynetra_HealthAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test HealthAPIService HealthHealthGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.HealthAPI.HealthHealthGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test HealthAPIService LivenessHealthLiveGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.HealthAPI.LivenessHealthLiveGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test HealthAPIService ReadinessHealthReadyGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.HealthAPI.ReadinessHealthReadyGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdks/go/test/api_management_test.go b/sdks/go/test/api_management_test.go deleted file mode 100644 index 41d813d..0000000 --- a/sdks/go/test/api_management_test.go +++ /dev/null @@ -1,391 +0,0 @@ -/* -KeyNetra - -Testing ManagementAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package keynetra - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func Test_keynetra_ManagementAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test ManagementAPIService AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var roleId int32 - var permissionId int32 - - resp, httpRes, err := apiClient.ManagementAPI.AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(context.Background(), roleId, permissionId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreateAclEntryAclPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreateAclEntryAclPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreateAuthModelAuthModelPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreateAuthModelAuthModelPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreatePermissionPermissionsPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreatePermissionPermissionsPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreatePolicyFromDslPoliciesDslPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreatePolicyFromDslPoliciesDslPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreatePolicyPoliciesPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreatePolicyPoliciesPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreateRelationshipRelationshipsPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreateRelationshipRelationshipsPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService CreateRoleRolesPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.CreateRoleRolesPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService DeleteAclEntryAclAclIdDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var aclId int32 - - resp, httpRes, err := apiClient.ManagementAPI.DeleteAclEntryAclAclIdDelete(context.Background(), aclId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService DeletePermissionPermissionsPermissionIdDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var permissionId int32 - - resp, httpRes, err := apiClient.ManagementAPI.DeletePermissionPermissionsPermissionIdDelete(context.Background(), permissionId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService DeletePolicyPoliciesPolicyKeyDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var policyKey string - - resp, httpRes, err := apiClient.ManagementAPI.DeletePolicyPoliciesPolicyKeyDelete(context.Background(), policyKey).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService DeleteRoleRolesRoleIdDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var roleId int32 - - resp, httpRes, err := apiClient.ManagementAPI.DeleteRoleRolesRoleIdDelete(context.Background(), roleId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService GetAuthModelAuthModelGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.GetAuthModelAuthModelGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ImpactAnalysisImpactAnalysisPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.ImpactAnalysisImpactAnalysisPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListAclEntriesAclResourceTypeResourceIdGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var resourceType string - var resourceId string - - resp, httpRes, err := apiClient.ManagementAPI.ListAclEntriesAclResourceTypeResourceIdGet(context.Background(), resourceType, resourceId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListAuditLogsAuditGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.ListAuditLogsAuditGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListPermissionRolesPermissionsPermissionIdRolesGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var permissionId int32 - - resp, httpRes, err := apiClient.ManagementAPI.ListPermissionRolesPermissionsPermissionIdRolesGet(context.Background(), permissionId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListPermissionsPermissionsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.ListPermissionsPermissionsGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListPoliciesPoliciesGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.ListPoliciesPoliciesGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListRelationshipsRelationshipsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.ListRelationshipsRelationshipsGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListRolePermissionsRolesRoleIdPermissionsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var roleId int32 - - resp, httpRes, err := apiClient.ManagementAPI.ListRolePermissionsRolesRoleIdPermissionsGet(context.Background(), roleId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService ListRolesRolesGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.ListRolesRolesGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var roleId int32 - var permissionId int32 - - resp, httpRes, err := apiClient.ManagementAPI.RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(context.Background(), roleId, permissionId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService RollbackPolicyPoliciesPolicyKeyRollbackVersionPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var policyKey string - var version int32 - - resp, httpRes, err := apiClient.ManagementAPI.RollbackPolicyPoliciesPolicyKeyRollbackVersionPost(context.Background(), policyKey, version).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService SimulatePolicySimulatePolicyPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ManagementAPI.SimulatePolicySimulatePolicyPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService UpdatePermissionPermissionsPermissionIdPut", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var permissionId int32 - - resp, httpRes, err := apiClient.ManagementAPI.UpdatePermissionPermissionsPermissionIdPut(context.Background(), permissionId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService UpdatePolicyPoliciesPolicyKeyPut", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var policyKey string - - resp, httpRes, err := apiClient.ManagementAPI.UpdatePolicyPoliciesPolicyKeyPut(context.Background(), policyKey).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ManagementAPIService UpdateRoleRolesRoleIdPut", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var roleId int32 - - resp, httpRes, err := apiClient.ManagementAPI.UpdateRoleRolesRoleIdPut(context.Background(), roleId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdks/go/test/api_playground_test.go b/sdks/go/test/api_playground_test.go deleted file mode 100644 index cf6311e..0000000 --- a/sdks/go/test/api_playground_test.go +++ /dev/null @@ -1,37 +0,0 @@ -/* -KeyNetra - -Testing PlaygroundAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package keynetra - -import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func Test_keynetra_PlaygroundAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test PlaygroundAPIService EvaluatePlaygroundEvaluatePost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.PlaygroundAPI.EvaluatePlaygroundEvaluatePost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/sdks/go/utils.go b/sdks/go/utils.go deleted file mode 100644 index 3b9e6bd..0000000 --- a/sdks/go/utils.go +++ /dev/null @@ -1,361 +0,0 @@ -/* -KeyNetra - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package keynetra - -import ( - "bytes" - "encoding/json" - "fmt" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// IsNil checks if an input is nil -func IsNil(i interface{}) bool { - if i == nil { - return true - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} \ No newline at end of file diff --git a/sdks/java/.github/workflows/maven.yml b/sdks/java/.github/workflows/maven.yml deleted file mode 100644 index aa35283..0000000 --- a/sdks/java/.github/workflows/maven.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven -# -# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) - -name: Java CI with Maven - -on: - push: - branches: [ main, master ] - pull_request: - branches: [ main, master ] - -jobs: - build: - name: Build KeyNetra - runs-on: ubuntu-latest - strategy: - matrix: - java: [ 17, 21 ] - steps: - - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: ${{ matrix.java }} - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/sdks/java/.gitignore b/sdks/java/.gitignore deleted file mode 100644 index a530464..0000000 --- a/sdks/java/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -*.class - -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - -# Package Files # -*.jar -*.war -*.ear - -# exclude jar for gradle wrapper -!gradle/wrapper/*.jar - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* - -# build files -**/target -target -.gradle -build diff --git a/sdks/java/.travis.yml b/sdks/java/.travis.yml deleted file mode 100644 index 1b6741c..0000000 --- a/sdks/java/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -# -# Generated by OpenAPI Generator: https://openapi-generator.tech -# -# Ref: https://docs.travis-ci.com/user/languages/java/ -# -language: java -jdk: - - openjdk12 - - openjdk11 - - openjdk10 - - openjdk9 - - openjdk8 -before_install: - # ensure gradlew has proper permission - - chmod a+x ./gradlew -script: - # test using maven - #- mvn test - # test using gradle - - gradle test - # test using sbt - # - sbt test diff --git a/sdks/java/README.md b/sdks/java/README.md deleted file mode 100644 index aff4f8b..0000000 --- a/sdks/java/README.md +++ /dev/null @@ -1,59 +0,0 @@ -# keynetra-client - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/java) - -Official Java Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Java applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash - - io.keynetra - keynetra-client - 0.1.1 - -``` - -## ๐Ÿš€ Quick Start - -```java -import io.keynetra.client.KeyNetraClient; -import io.keynetra.client.model.AccessRequest; - -KeyNetraClient client = new KeyNetraClient( - "http://localhost:8080", - "YOUR_API_KEY" -); - -// Perform an access check -var decision = client.getAccess().checkAccess( - new AccessRequest() - .subject("user:123") - .action("read") - .resource("document:456") -); -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/java). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-java](https://github.com/keynetra/keynetra-client-java) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-java/issues) -- **License**: Apache-2.0 - diff --git a/sdks/java/api/openapi.yaml b/sdks/java/api/openapi.yaml deleted file mode 100644 index 4b45366..0000000 --- a/sdks/java/api/openapi.yaml +++ /dev/null @@ -1,2903 +0,0 @@ -openapi: 3.1.0 -info: - title: KeyNetra - version: 0.1.1 -servers: -- url: / -paths: - /health: - get: - operationId: health_health_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - summary: Health - tags: - - health - x-accepts: - - application/json - /health/live: - get: - operationId: liveness_health_live_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - summary: Liveness - tags: - - health - x-accepts: - - application/json - /health/ready: - get: - operationId: readiness_health_ready_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - summary: Readiness - tags: - - health - x-accepts: - - application/json - /check-access: - post: - operationId: check_access_check_access_post - parameters: - - explode: true - in: query - name: policy_set - required: false - schema: - default: active - title: Policy Set - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AccessDecisionResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Check Access - tags: - - access - x-content-type: application/json - x-accepts: - - application/json - /simulate: - post: - operationId: simulate_simulate_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_SimulationResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Simulate - tags: - - access - x-content-type: application/json - x-accepts: - - application/json - /check-access-batch: - post: - operationId: check_access_batch_check_access_batch_post - parameters: - - explode: true - in: query - name: policy_set - required: false - schema: - default: active - title: Policy Set - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BatchAccessRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_BatchAccessResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Check Access Batch - tags: - - access - x-content-type: application/json - x-accepts: - - application/json - /admin/login: - post: - operationId: admin_login_admin_login_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AdminLoginRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AdminLoginResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - summary: Admin Login - tags: - - auth - - auth - x-content-type: application/json - x-accepts: - - application/json - /policies: - get: - operationId: list_policies_policies_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PolicyOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Policies - tags: - - management - x-accepts: - - application/json - post: - operationId: create_policy_policies_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Policy - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /policies/{policy_key}: - delete: - operationId: delete_policy_policies__policy_key__delete - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__str__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Policy - tags: - - management - x-accepts: - - application/json - put: - operationId: update_policy_policies__policy_key__put - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyCreate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Policy - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /policies/dsl: - post: - operationId: create_policy_from_dsl_policies_dsl_post - parameters: - - explode: true - in: query - name: dsl - required: true - schema: - title: Dsl - type: string - style: form - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicyOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Policy From Dsl - tags: - - management - x-accepts: - - application/json - /policies/{policy_key}/rollback/{version}: - post: - operationId: rollback_policy_policies__policy_key__rollback__version__post - parameters: - - explode: false - in: path - name: policy_key - required: true - schema: - title: Policy Key - type: string - style: simple - - explode: false - in: path - name: version - required: true - schema: - title: Version - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__Union_int__str___" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Rollback Policy - tags: - - management - x-accepts: - - application/json - /acl: - post: - operationId: create_acl_entry_acl_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ACLCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_ACLOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Acl Entry - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /acl/{resource_type}/{resource_id}: - get: - operationId: list_acl_entries_acl__resource_type___resource_id__get - parameters: - - explode: false - in: path - name: resource_type - required: true - schema: - title: Resource Type - type: string - style: simple - - explode: false - in: path - name: resource_id - required: true - schema: - title: Resource Id - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_ACLOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Acl Entries - tags: - - management - x-accepts: - - application/json - /acl/{acl_id}: - delete: - operationId: delete_acl_entry_acl__acl_id__delete - parameters: - - explode: false - in: path - name: acl_id - required: true - schema: - title: Acl Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Acl Entry - tags: - - management - x-accepts: - - application/json - /auth-model: - get: - operationId: get_auth_model_auth_model_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" - description: Successful Response - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Get Auth Model - tags: - - management - x-accepts: - - application/json - post: - operationId: create_auth_model_auth_model_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AuthModelCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_AuthModelOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Auth Model - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /simulate-policy: - post: - operationId: simulate_policy_simulate_policy_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PolicySimulationRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PolicySimulationResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Simulate Policy - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /impact-analysis: - post: - operationId: impact_analysis_impact_analysis_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImpactAnalysisRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_ImpactAnalysisResponse_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Impact Analysis - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /roles: - get: - operationId: list_roles_roles_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Roles - tags: - - management - x-accepts: - - application/json - post: - operationId: create_role_roles_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/RoleOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Role - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /roles/{role_id}: - delete: - operationId: delete_role_roles__role_id__delete - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Role - tags: - - management - x-accepts: - - application/json - put: - operationId: update_role_roles__role_id__put - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleUpdate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/RoleOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Role - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /roles/{role_id}/permissions: - get: - operationId: list_role_permissions_roles__role_id__permissions_get - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Role Permissions - tags: - - management - x-accepts: - - application/json - /roles/{role_id}/permissions/{permission_id}: - delete: - operationId: remove_permission_from_role_roles__role_id__permissions__permission_id__delete - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Remove Permission From Role - tags: - - management - x-accepts: - - application/json - post: - operationId: add_permission_to_role_roles__role_id__permissions__permission_id__post - parameters: - - explode: false - in: path - name: role_id - required: true - schema: - title: Role Id - type: integer - style: simple - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_PermissionOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Add Permission To Role - tags: - - management - x-accepts: - - application/json - /permissions: - get: - operationId: list_permissions_permissions_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_PermissionOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Permissions - tags: - - management - x-accepts: - - application/json - post: - operationId: create_permission_permissions_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Permission - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /permissions/{permission_id}: - delete: - operationId: delete_permission_permissions__permission_id__delete - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__int__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Delete Permission - tags: - - management - x-accepts: - - application/json - put: - operationId: update_permission_permissions__permission_id__put - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionUpdate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/PermissionOut" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Update Permission - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /permissions/{permission_id}/roles: - get: - operationId: list_permission_roles_permissions__permission_id__roles_get - parameters: - - explode: false - in: path - name: permission_id - required: true - schema: - title: Permission Id - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_RoleOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Permission Roles - tags: - - management - x-accepts: - - application/json - /relationships: - get: - operationId: list_relationships_relationships_get - parameters: - - explode: true - in: query - name: subject_type - required: true - schema: - title: Subject Type - type: string - style: form - - explode: true - in: query - name: subject_id - required: true - schema: - title: Subject Id - type: string - style: form - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_dict_str__str___" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Relationships - tags: - - management - x-accepts: - - application/json - post: - operationId: create_relationship_relationships_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RelationshipCreate" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_RelationshipOut_" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Create Relationship - tags: - - management - x-content-type: application/json - x-accepts: - - application/json - /audit: - get: - operationId: list_audit_logs_audit_get - parameters: - - explode: true - in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: cursor - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: user_id - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: resource_id - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: decision - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: start_time - required: false - schema: - format: date-time - nullable: true - type: string - style: form - - explode: true - in: query - name: end_time - required: false - schema: - format: date-time - nullable: true - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_list_AuditRecordOut__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: List Audit Logs - tags: - - management - x-accepts: - - application/json - /playground/evaluate: - post: - operationId: evaluate_playground_evaluate_post - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PlaygroundEvaluateRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__Any__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - security: - - HTTPBearer: [] - - APIKeyHeader: [] - summary: Evaluate - tags: - - playground - x-content-type: application/json - x-accepts: - - application/json - /dev/sample-data: - get: - operationId: get_sample_data_dev_sample_data_get - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - summary: Get Sample Data - tags: - - dev - x-accepts: - - application/json - /dev/sample-data/seed: - post: - operationId: seed_sample_data_dev_sample_data_seed_post - parameters: - - description: Clear the sample dataset before reseeding it. - explode: true - in: query - name: reset - required: false - schema: - default: false - description: Clear the sample dataset before reseeding it. - title: Reset - type: boolean - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SuccessResponse_dict_str__object__" - description: Successful Response - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/HTTPValidationError" - description: Validation Error - summary: Seed Sample Data - tags: - - dev - x-accepts: - - application/json -components: - schemas: - ACLCreate: - example: - subject_id: subject_id - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - resource_type: - title: Resource Type - type: string - resource_id: - title: Resource Id - type: string - action: - title: Action - type: string - effect: - title: Effect - type: string - required: - - action - - effect - - resource_id - - resource_type - - subject_id - - subject_type - title: ACLCreate - ACLOut: - example: - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - resource_type: - title: Resource Type - type: string - resource_id: - title: Resource Id - type: string - action: - title: Action - type: string - effect: - title: Effect - type: string - id: - title: Id - type: integer - tenant_id: - title: Tenant Id - type: integer - created_at: - format: date-time - nullable: true - type: string - required: - - action - - effect - - id - - resource_id - - resource_type - - subject_id - - subject_type - - tenant_id - title: ACLOut - AccessDecisionResponse: - example: - reason: reason - explain_trace: - - key: "" - - key: "" - decision: decision - policy_id: policy_id - allowed: true - matched_policies: - - matched_policies - - matched_policies - revision: 0 - properties: - allowed: - title: Allowed - type: boolean - decision: - title: Decision - type: string - matched_policies: - items: - type: string - title: Matched Policies - type: array - reason: - nullable: true - type: string - policy_id: - nullable: true - type: string - explain_trace: - items: - additionalProperties: true - type: object - title: Explain Trace - type: array - revision: - nullable: true - type: integer - required: - - allowed - - decision - title: AccessDecisionResponse - AccessRequest: - description: Explicit authorization request passed through the API boundary. - example: - resource: - key: "" - context: - key: "" - action: action - user: - key: "" - consistency: eventual - revision: 0 - properties: - user: - additionalProperties: true - title: User - type: object - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - context: - additionalProperties: true - title: Context - type: object - consistency: - default: eventual - title: Consistency - type: string - revision: - nullable: true - type: integer - required: - - action - title: AccessRequest - AdminLoginRequest: - example: - password: password - username: username - properties: - username: - title: Username - type: string - password: - title: Password - type: string - required: - - password - - username - title: AdminLoginRequest - AdminLoginResponse: - example: - access_token: access_token - role: admin - tenant_key: tenant_key - token_type: bearer - expires_in: 0 - properties: - access_token: - title: Access Token - type: string - token_type: - default: bearer - title: Token Type - type: string - expires_in: - title: Expires In - type: integer - role: - default: admin - title: Role - type: string - tenant_key: - title: Tenant Key - type: string - required: - - access_token - - expires_in - - tenant_key - title: AdminLoginResponse - AuditRecordOut: - example: - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - properties: - id: - title: Id - type: integer - principal_type: - title: Principal Type - type: string - principal_id: - title: Principal Id - type: string - correlation_id: - nullable: true - type: string - user: - additionalProperties: true - title: User - type: object - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - decision: - title: Decision - type: string - matched_policies: - items: {} - title: Matched Policies - type: array - reason: - nullable: true - type: string - evaluated_rules: - items: {} - title: Evaluated Rules - type: array - failed_conditions: - items: {} - title: Failed Conditions - type: array - created_at: - format: date-time - title: Created At - type: string - required: - - action - - created_at - - decision - - evaluated_rules - - failed_conditions - - id - - matched_policies - - principal_id - - principal_type - - resource - - user - title: AuditRecordOut - AuthModelCreate: - example: - schema: schema - properties: - schema: - title: Schema - type: string - required: - - schema - title: AuthModelCreate - AuthModelOut: - example: - tenant_id: 6 - schema: schema - compiled: - key: "" - parsed: - key: "" - id: 0 - properties: - id: - title: Id - type: integer - tenant_id: - title: Tenant Id - type: integer - schema: - title: Schema - type: string - parsed: - additionalProperties: true - title: Parsed - type: object - compiled: - additionalProperties: true - title: Compiled - type: object - required: - - compiled - - id - - parsed - - schema - - tenant_id - title: AuthModelOut - BatchAccessItem: - example: - resource: - key: "" - action: action - properties: - action: - title: Action - type: string - resource: - additionalProperties: true - title: Resource - type: object - required: - - action - title: BatchAccessItem - BatchAccessRequest: - example: - user: - key: "" - items: - - resource: - key: "" - action: action - - resource: - key: "" - action: action - consistency: eventual - revision: 0 - properties: - user: - additionalProperties: true - title: User - type: object - items: - items: - $ref: "#/components/schemas/BatchAccessItem" - title: Items - type: array - consistency: - default: eventual - title: Consistency - type: string - revision: - nullable: true - type: integer - required: - - items - title: BatchAccessRequest - BatchAccessResponse: - example: - results: - - allowed: true - action: action - revision: 0 - - allowed: true - action: action - revision: 0 - revision: 6 - properties: - results: - items: - $ref: "#/components/schemas/BatchAccessResult" - title: Results - type: array - revision: - nullable: true - type: integer - required: - - results - title: BatchAccessResponse - BatchAccessResult: - example: - allowed: true - action: action - revision: 0 - properties: - action: - title: Action - type: string - allowed: - title: Allowed - type: boolean - revision: - nullable: true - type: integer - required: - - action - - allowed - title: BatchAccessResult - HTTPValidationError: - example: - detail: - - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - properties: - detail: - items: - $ref: "#/components/schemas/ValidationError" - title: Detail - type: array - title: HTTPValidationError - ImpactAnalysisRequest: - example: - policy_change: policy_change - properties: - policy_change: - title: Policy Change - type: string - required: - - policy_change - title: ImpactAnalysisRequest - ImpactAnalysisResponse: - example: - gained_access: - - 0 - - 0 - lost_access: - - 6 - - 6 - properties: - gained_access: - items: - type: integer - title: Gained Access - type: array - lost_access: - items: - type: integer - title: Lost Access - type: array - title: ImpactAnalysisResponse - MetaBody: - example: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - properties: - request_id: - nullable: true - type: string - limit: - nullable: true - type: integer - next_cursor: - nullable: true - type: string - extra: - additionalProperties: true - title: Extra - type: object - title: MetaBody - PermissionCreate: - example: - action: action - properties: - action: - title: Action - type: string - required: - - action - title: PermissionCreate - PermissionOut: - example: - action: action - id: 0 - properties: - id: - title: Id - type: integer - action: - title: Action - type: string - required: - - action - - id - title: PermissionOut - PermissionUpdate: - example: - action: action - properties: - action: - title: Action - type: string - required: - - action - title: PermissionUpdate - PlaygroundEvaluateRequest: - example: - input: - resource: - key: "" - context: - key: "" - action: "" - user: - key: "" - policies: - - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - properties: - policies: - items: - $ref: "#/components/schemas/PlaygroundPolicy" - title: Policies - type: array - input: - $ref: "#/components/schemas/PlaygroundInput" - required: - - input - - policies - title: PlaygroundEvaluateRequest - PlaygroundInput: - example: - resource: - key: "" - context: - key: "" - action: "" - user: - key: "" - properties: - user: - additionalProperties: true - title: User - type: object - resource: - additionalProperties: true - title: Resource - type: object - action: - default: "" - title: Action - type: string - context: - additionalProperties: true - title: Context - type: object - title: PlaygroundInput - PlaygroundPolicy: - example: - policy_id: policy_id - effect: allow - action: action - priority: 0 - conditions: - key: "" - properties: - action: - title: Action - type: string - effect: - default: allow - title: Effect - type: string - priority: - default: 100 - title: Priority - type: integer - policy_id: - nullable: true - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - title: PlaygroundPolicy - PolicyCreate: - example: - effect: allow - action: action - state: active - priority: 0 - conditions: - key: "" - properties: - action: - title: Action - type: string - effect: - default: allow - title: Effect - type: string - priority: - default: 100 - title: Priority - type: integer - state: - default: active - title: State - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - title: PolicyCreate - PolicyOut: - example: - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - properties: - id: - title: Id - type: integer - action: - title: Action - type: string - effect: - title: Effect - type: string - priority: - title: Priority - type: integer - state: - default: active - title: State - type: string - conditions: - additionalProperties: true - title: Conditions - type: object - required: - - action - - conditions - - effect - - id - - priority - title: PolicyOut - PolicySimulationInput: - example: - relationship_change: - key: "" - role_change: - key: "" - policy_change: policy_change - properties: - policy_change: - nullable: true - type: string - relationship_change: - additionalProperties: true - nullable: true - type: object - role_change: - additionalProperties: true - nullable: true - type: object - title: PolicySimulationInput - PolicySimulationRequest: - example: - request: - key: "" - simulate: - relationship_change: - key: "" - role_change: - key: "" - policy_change: policy_change - properties: - simulate: - $ref: "#/components/schemas/PolicySimulationInput" - request: - additionalProperties: true - title: Request - type: object - title: PolicySimulationRequest - PolicySimulationResponse: - example: - decision_before: - key: "" - decision_after: - key: "" - properties: - decision_before: - additionalProperties: true - title: Decision Before - type: object - decision_after: - additionalProperties: true - title: Decision After - type: object - required: - - decision_after - - decision_before - title: PolicySimulationResponse - RelationshipCreate: - example: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - object_id: object_id - relation: relation - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - relation: - title: Relation - type: string - object_type: - title: Object Type - type: string - object_id: - title: Object Id - type: string - required: - - object_id - - object_type - - relation - - subject_id - - subject_type - title: RelationshipCreate - RelationshipOut: - example: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - id: 0 - object_id: object_id - relation: relation - properties: - subject_type: - title: Subject Type - type: string - subject_id: - title: Subject Id - type: string - relation: - title: Relation - type: string - object_type: - title: Object Type - type: string - object_id: - title: Object Id - type: string - id: - title: Id - type: integer - required: - - id - - object_id - - object_type - - relation - - subject_id - - subject_type - title: RelationshipOut - RoleCreate: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: RoleCreate - RoleOut: - example: - name: name - id: 0 - properties: - id: - title: Id - type: integer - name: - title: Name - type: string - required: - - id - - name - title: RoleOut - RoleUpdate: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: RoleUpdate - SimulationResponse: - example: - reason: reason - explain_trace: - - key: "" - - key: "" - failed_conditions: - - failed_conditions - - failed_conditions - decision: decision - policy_id: policy_id - matched_policies: - - matched_policies - - matched_policies - revision: 0 - properties: - decision: - title: Decision - type: string - matched_policies: - items: - type: string - title: Matched Policies - type: array - reason: - nullable: true - type: string - policy_id: - nullable: true - type: string - explain_trace: - items: - additionalProperties: true - type: object - title: Explain Trace - type: array - failed_conditions: - items: - type: string - title: Failed Conditions - type: array - revision: - nullable: true - type: integer - required: - - decision - - matched_policies - title: SimulationResponse - SuccessResponse_ACLOut_: - example: - data: - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/ACLOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[ACLOut]" - SuccessResponse_AccessDecisionResponse_: - example: - data: - reason: reason - explain_trace: - - key: "" - - key: "" - decision: decision - policy_id: policy_id - allowed: true - matched_policies: - - matched_policies - - matched_policies - revision: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AccessDecisionResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AccessDecisionResponse]" - SuccessResponse_AdminLoginResponse_: - example: - data: - access_token: access_token - role: admin - tenant_key: tenant_key - token_type: bearer - expires_in: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AdminLoginResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AdminLoginResponse]" - SuccessResponse_AuthModelOut_: - example: - data: - tenant_id: 6 - schema: schema - compiled: - key: "" - parsed: - key: "" - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/AuthModelOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[AuthModelOut]" - SuccessResponse_BatchAccessResponse_: - example: - data: - results: - - allowed: true - action: action - revision: 0 - - allowed: true - action: action - revision: 0 - revision: 6 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/BatchAccessResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[BatchAccessResponse]" - SuccessResponse_ImpactAnalysisResponse_: - example: - data: - gained_access: - - 0 - - 0 - lost_access: - - 6 - - 6 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/ImpactAnalysisResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[ImpactAnalysisResponse]" - SuccessResponse_PermissionOut_: - example: - data: - action: action - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PermissionOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PermissionOut]" - SuccessResponse_PolicyOut_: - example: - data: - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PolicyOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PolicyOut]" - SuccessResponse_PolicySimulationResponse_: - example: - data: - decision_before: - key: "" - decision_after: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/PolicySimulationResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[PolicySimulationResponse]" - SuccessResponse_RelationshipOut_: - example: - data: - subject_id: subject_id - subject_type: subject_type - object_type: object_type - id: 0 - object_id: object_id - relation: relation - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/RelationshipOut" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[RelationshipOut]" - SuccessResponse_SimulationResponse_: - example: - data: - reason: reason - explain_trace: - - key: "" - - key: "" - failed_conditions: - - failed_conditions - - failed_conditions - decision: decision - policy_id: policy_id - matched_policies: - - matched_policies - - matched_policies - revision: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - $ref: "#/components/schemas/SimulationResponse" - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[SimulationResponse]" - SuccessResponse_dict_str__Any__: - example: - data: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: true - title: Data - type: object - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, Any]]" - SuccessResponse_dict_str__Union_int__str___: - example: - data: - key: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - $ref: "#/components/schemas/Data_value" - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, Union[int, str]]]" - SuccessResponse_dict_str__int__: - example: - data: - key: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - type: integer - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, int]]" - SuccessResponse_dict_str__object__: - example: - data: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: true - title: Data - type: object - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, object]]" - SuccessResponse_dict_str__str__: - example: - data: - key: data - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - additionalProperties: - type: string - title: Data - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[dict[str, str]]" - SuccessResponse_list_ACLOut__: - example: - data: - - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - - subject_id: subject_id - tenant_id: 6 - subject_type: subject_type - effect: effect - resource_type: resource_type - resource_id: resource_id - action: action - created_at: 2000-01-23T04:56:07.000+00:00 - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/ACLOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[ACLOut]]" - SuccessResponse_list_AuditRecordOut__: - example: - data: - - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - - reason: reason - failed_conditions: - - "" - - "" - decision: decision - resource: - key: "" - created_at: 2000-01-23T04:56:07.000+00:00 - principal_id: principal_id - matched_policies: - - "" - - "" - correlation_id: correlation_id - action: action - id: 0 - principal_type: principal_type - user: - key: "" - evaluated_rules: - - "" - - "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/AuditRecordOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[AuditRecordOut]]" - SuccessResponse_list_PermissionOut__: - example: - data: - - action: action - id: 0 - - action: action - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/PermissionOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[PermissionOut]]" - SuccessResponse_list_PolicyOut__: - example: - data: - - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - - effect: effect - action: action - id: 0 - state: active - priority: 6 - conditions: - key: "" - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/PolicyOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[PolicyOut]]" - SuccessResponse_list_RoleOut__: - example: - data: - - name: name - id: 0 - - name: name - id: 0 - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - $ref: "#/components/schemas/RoleOut" - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[RoleOut]]" - SuccessResponse_list_dict_str__str___: - example: - data: - - key: data - - key: data - meta: - next_cursor: next_cursor - extra: - key: "" - limit: 0 - request_id: request_id - error: "" - properties: - data: - items: - additionalProperties: - type: string - title: Data - type: array - meta: - $ref: "#/components/schemas/MetaBody" - error: - title: Error - required: - - data - title: "SuccessResponse[list[dict[str, str]]]" - ValidationError: - example: - msg: msg - loc: - - Location_inner - - Location_inner - input: "" - ctx: "{}" - type: type - properties: - loc: - items: - $ref: "#/components/schemas/Location_inner" - title: Location - type: array - msg: - title: Message - type: string - type: - title: Error Type - type: string - input: - title: Input - ctx: - title: Context - type: object - required: - - loc - - msg - - type - title: ValidationError - Data_value: - anyOf: - - type: integer - - type: string - Location_inner: - anyOf: - - type: string - - type: integer - securitySchemes: - HTTPBearer: - scheme: bearer - type: http - APIKeyHeader: - in: header - name: X-API-Key - type: apiKey - diff --git a/sdks/java/build.gradle b/sdks/java/build.gradle deleted file mode 100644 index 655d9b5..0000000 --- a/sdks/java/build.gradle +++ /dev/null @@ -1,166 +0,0 @@ -apply plugin: 'idea' -apply plugin: 'eclipse' -apply plugin: 'java' -apply plugin: 'com.diffplug.spotless' - -group = 'io.keynetra' -version = '0.1.1' - -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.3.+' - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' - classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0' - } -} - -repositories { - mavenCentral() -} -sourceSets { - main.java.srcDirs = ['src/main/java'] -} - -if(hasProperty('target') && target == 'android') { - - apply plugin: 'com.android.library' - apply plugin: 'com.github.dcendents.android-maven' - - android { - compileSdkVersion 25 - buildToolsVersion '25.0.2' - defaultConfig { - minSdkVersion 14 - targetSdkVersion 25 - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - // Rename the aar correctly - libraryVariants.all { variant -> - variant.outputs.each { output -> - def outputFile = output.outputFile - if (outputFile != null && outputFile.name.endsWith('.aar')) { - def fileName = "${project.name}-${variant.baseName}-${version}.aar" - output.outputFile = new File(outputFile.parent, fileName) - } - } - } - - dependencies { - provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - } - } - - afterEvaluate { - android.libraryVariants.all { variant -> - def task = project.tasks.create "jar${variant.name.capitalize()}", Jar - task.description = "Create jar artifact for ${variant.name}" - task.dependsOn variant.javaCompile - task.from variant.javaCompile.destinationDirectory - task.destinationDirectory = project.file("${project.buildDir}/outputs/jar") - task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar" - artifacts.add('archives', task) - } - } - - task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs - classifier = 'sources' - } - - artifacts { - archives sourcesJar - } - -} else { - - apply plugin: 'java' - apply plugin: 'maven-publish' - - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - - publishing { - publications { - maven(MavenPublication) { - artifactId = 'keynetra-client' - from components.java - } - } - } - - task execute(type:JavaExec) { - main = System.getProperty('mainClass') - classpath = sourceSets.main.runtimeClasspath - } -} - -ext { - jakarta_annotation_version = "1.3.5" -} - -dependencies { - implementation "com.google.code.findbugs:jsr305:3.0.2" - implementation 'com.squareup.okhttp3:okhttp:4.12.0' - implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' - implementation 'com.google.code.gson:gson:2.9.1' - implementation 'io.gsonfire:gson-fire:1.9.0' - implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' - implementation 'org.openapitools:jackson-databind-nullable:0.2.9' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0' - implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' - testImplementation 'org.mockito:mockito-core:3.12.4' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' -} - -javadoc { - options.tags = [ "http.response.details:a:Http Response Details" ] -} - -// Use spotless plugin to automatically format code, remove unused import, etc -// To apply changes directly to the file, run `gradlew spotlessApply` -// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle -spotless { - // comment out below to run spotless as part of the `check` task - enforceCheck false - - format 'misc', { - // define the files (e.g. '*.gradle', '*.md') to apply `misc` to - target '.gitignore' - - // define the steps to apply to those files - trimTrailingWhitespace() - indentWithSpaces() // Takes an integer argument if you don't like 4 - endWithNewline() - } - java { - // don't need to set target, it is inferred from java - - // apply a specific flavor of google-java-format - googleJavaFormat('1.8').aosp().reflowLongStrings() - - removeUnusedImports() - importOrder() - } -} - -test { - // Enable JUnit 5 (Gradle 4.6+). - useJUnitPlatform() - - // Always run tests, even when nothing changed. - dependsOn 'cleanTest' - - // Show test results. - testLogging { - events "passed", "skipped", "failed" - } - -} diff --git a/sdks/java/build.sbt b/sdks/java/build.sbt deleted file mode 100644 index ffe58a6..0000000 --- a/sdks/java/build.sbt +++ /dev/null @@ -1,27 +0,0 @@ -lazy val root = (project in file(".")). - settings( - organization := "io.keynetra", - name := "keynetra-client", - version := "0.1.1", - scalaVersion := "2.11.12", - scalacOptions ++= Seq("-feature"), - compile / javacOptions ++= Seq("-Xlint:deprecation"), - Compile / packageDoc / publishArtifact := false, - resolvers += Resolver.mavenLocal, - libraryDependencies ++= Seq( - "io.swagger" % "swagger-annotations" % "1.6.5", - "com.squareup.okhttp3" % "okhttp" % "4.12.0", - "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", - "com.google.code.gson" % "gson" % "2.9.1", - "org.apache.commons" % "commons-lang3" % "3.18.0", - "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", - "org.openapitools" % "jackson-databind-nullable" % "0.2.9", - "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", - "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", - "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "org.junit.jupiter" % "junit-jupiter-api" % "5.10.3" % "test", - "com.novocode" % "junit-interface" % "0.10" % "test", - "org.mockito" % "mockito-core" % "3.12.4" % "test" - ) - ) diff --git a/sdks/java/docs/ACLCreate.md b/sdks/java/docs/ACLCreate.md deleted file mode 100644 index 2252315..0000000 --- a/sdks/java/docs/ACLCreate.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# ACLCreate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**subjectType** | **String** | | | -|**subjectId** | **String** | | | -|**resourceType** | **String** | | | -|**resourceId** | **String** | | | -|**action** | **String** | | | -|**effect** | **String** | | | - - - diff --git a/sdks/java/docs/ACLOut.md b/sdks/java/docs/ACLOut.md deleted file mode 100644 index d85fa01..0000000 --- a/sdks/java/docs/ACLOut.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ACLOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**subjectType** | **String** | | | -|**subjectId** | **String** | | | -|**resourceType** | **String** | | | -|**resourceId** | **String** | | | -|**action** | **String** | | | -|**effect** | **String** | | | -|**id** | **Integer** | | | -|**tenantId** | **Integer** | | | -|**createdAt** | **OffsetDateTime** | | [optional] | - - - diff --git a/sdks/java/docs/AccessApi.md b/sdks/java/docs/AccessApi.md deleted file mode 100644 index 8aca415..0000000 --- a/sdks/java/docs/AccessApi.md +++ /dev/null @@ -1,231 +0,0 @@ -# AccessApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**checkAccessBatchCheckAccessBatchPost**](AccessApi.md#checkAccessBatchCheckAccessBatchPost) | **POST** /check-access-batch | Check Access Batch | -| [**checkAccessCheckAccessPost**](AccessApi.md#checkAccessCheckAccessPost) | **POST** /check-access | Check Access | -| [**simulateSimulatePost**](AccessApi.md#simulateSimulatePost) | **POST** /simulate | Simulate | - - - -# **checkAccessBatchCheckAccessBatchPost** -> SuccessResponseBatchAccessResponse checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) - -Check Access Batch - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.AccessApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - AccessApi apiInstance = new AccessApi(defaultClient); - BatchAccessRequest batchAccessRequest = new BatchAccessRequest(); // BatchAccessRequest | - String policySet = "active"; // String | - try { - SuccessResponseBatchAccessResponse result = apiInstance.checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AccessApi#checkAccessBatchCheckAccessBatchPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md)| | | -| **policySet** | **String**| | [optional] [default to active] | - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **checkAccessCheckAccessPost** -> SuccessResponseAccessDecisionResponse checkAccessCheckAccessPost(accessRequest, policySet) - -Check Access - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.AccessApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - AccessApi apiInstance = new AccessApi(defaultClient); - AccessRequest accessRequest = new AccessRequest(); // AccessRequest | - String policySet = "active"; // String | - try { - SuccessResponseAccessDecisionResponse result = apiInstance.checkAccessCheckAccessPost(accessRequest, policySet); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AccessApi#checkAccessCheckAccessPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | -| **policySet** | **String**| | [optional] [default to active] | - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **simulateSimulatePost** -> SuccessResponseSimulationResponse simulateSimulatePost(accessRequest) - -Simulate - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.AccessApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - AccessApi apiInstance = new AccessApi(defaultClient); - AccessRequest accessRequest = new AccessRequest(); // AccessRequest | - try { - SuccessResponseSimulationResponse result = apiInstance.simulateSimulatePost(accessRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AccessApi#simulateSimulatePost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - diff --git a/sdks/java/docs/AccessDecisionResponse.md b/sdks/java/docs/AccessDecisionResponse.md deleted file mode 100644 index c91dcfd..0000000 --- a/sdks/java/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# AccessDecisionResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allowed** | **Boolean** | | | -|**decision** | **String** | | | -|**matchedPolicies** | **List<String>** | | [optional] | -|**reason** | **String** | | [optional] | -|**policyId** | **String** | | [optional] | -|**explainTrace** | **List<Map<String, Object>>** | | [optional] | -|**revision** | **Integer** | | [optional] | - - - diff --git a/sdks/java/docs/AccessRequest.md b/sdks/java/docs/AccessRequest.md deleted file mode 100644 index ec894f3..0000000 --- a/sdks/java/docs/AccessRequest.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# AccessRequest - -Explicit authorization request passed through the API boundary. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**user** | **Map<String, Object>** | | [optional] | -|**action** | **String** | | | -|**resource** | **Map<String, Object>** | | [optional] | -|**context** | **Map<String, Object>** | | [optional] | -|**consistency** | **String** | | [optional] | -|**revision** | **Integer** | | [optional] | - - - diff --git a/sdks/java/docs/AdminLoginRequest.md b/sdks/java/docs/AdminLoginRequest.md deleted file mode 100644 index 34d38cd..0000000 --- a/sdks/java/docs/AdminLoginRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AdminLoginRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**username** | **String** | | | -|**password** | **String** | | | - - - diff --git a/sdks/java/docs/AdminLoginResponse.md b/sdks/java/docs/AdminLoginResponse.md deleted file mode 100644 index 77d600d..0000000 --- a/sdks/java/docs/AdminLoginResponse.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# AdminLoginResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accessToken** | **String** | | | -|**tokenType** | **String** | | [optional] | -|**expiresIn** | **Integer** | | | -|**role** | **String** | | [optional] | -|**tenantKey** | **String** | | | - - - diff --git a/sdks/java/docs/AuditRecordOut.md b/sdks/java/docs/AuditRecordOut.md deleted file mode 100644 index 8d773e1..0000000 --- a/sdks/java/docs/AuditRecordOut.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# AuditRecordOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **Integer** | | | -|**principalType** | **String** | | | -|**principalId** | **String** | | | -|**correlationId** | **String** | | [optional] | -|**user** | **Map<String, Object>** | | | -|**action** | **String** | | | -|**resource** | **Map<String, Object>** | | | -|**decision** | **String** | | | -|**matchedPolicies** | **List<Object>** | | | -|**reason** | **String** | | [optional] | -|**evaluatedRules** | **List<Object>** | | | -|**failedConditions** | **List<Object>** | | | -|**createdAt** | **OffsetDateTime** | | | - - - diff --git a/sdks/java/docs/AuthApi.md b/sdks/java/docs/AuthApi.md deleted file mode 100644 index 3dfe3be..0000000 --- a/sdks/java/docs/AuthApi.md +++ /dev/null @@ -1,132 +0,0 @@ -# AuthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**adminLoginAdminLoginPost**](AuthApi.md#adminLoginAdminLoginPost) | **POST** /admin/login | Admin Login | -| [**adminLoginAdminLoginPost_0**](AuthApi.md#adminLoginAdminLoginPost_0) | **POST** /admin/login | Admin Login | - - - -# **adminLoginAdminLoginPost** -> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost(adminLoginRequest) - -Admin Login - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.AuthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - AuthApi apiInstance = new AuthApi(defaultClient); - AdminLoginRequest adminLoginRequest = new AdminLoginRequest(); // AdminLoginRequest | - try { - SuccessResponseAdminLoginResponse result = apiInstance.adminLoginAdminLoginPost(adminLoginRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthApi#adminLoginAdminLoginPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **adminLoginAdminLoginPost_0** -> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost_0(adminLoginRequest) - -Admin Login - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.AuthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - AuthApi apiInstance = new AuthApi(defaultClient); - AdminLoginRequest adminLoginRequest = new AdminLoginRequest(); // AdminLoginRequest | - try { - SuccessResponseAdminLoginResponse result = apiInstance.adminLoginAdminLoginPost_0(adminLoginRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthApi#adminLoginAdminLoginPost_0"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - diff --git a/sdks/java/docs/AuthModelCreate.md b/sdks/java/docs/AuthModelCreate.md deleted file mode 100644 index 1a6ad8f..0000000 --- a/sdks/java/docs/AuthModelCreate.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# AuthModelCreate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**schema** | **String** | | | - - - diff --git a/sdks/java/docs/AuthModelOut.md b/sdks/java/docs/AuthModelOut.md deleted file mode 100644 index 2796670..0000000 --- a/sdks/java/docs/AuthModelOut.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# AuthModelOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **Integer** | | | -|**tenantId** | **Integer** | | | -|**schema** | **String** | | | -|**parsed** | **Map<String, Object>** | | | -|**compiled** | **Map<String, Object>** | | | - - - diff --git a/sdks/java/docs/BatchAccessItem.md b/sdks/java/docs/BatchAccessItem.md deleted file mode 100644 index ecdd19d..0000000 --- a/sdks/java/docs/BatchAccessItem.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# BatchAccessItem - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | -|**resource** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/BatchAccessRequest.md b/sdks/java/docs/BatchAccessRequest.md deleted file mode 100644 index ed98a95..0000000 --- a/sdks/java/docs/BatchAccessRequest.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# BatchAccessRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**user** | **Map<String, Object>** | | [optional] | -|**items** | [**List<BatchAccessItem>**](BatchAccessItem.md) | | | -|**consistency** | **String** | | [optional] | -|**revision** | **Integer** | | [optional] | - - - diff --git a/sdks/java/docs/BatchAccessResponse.md b/sdks/java/docs/BatchAccessResponse.md deleted file mode 100644 index b386f79..0000000 --- a/sdks/java/docs/BatchAccessResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# BatchAccessResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**results** | [**List<BatchAccessResult>**](BatchAccessResult.md) | | | -|**revision** | **Integer** | | [optional] | - - - diff --git a/sdks/java/docs/BatchAccessResult.md b/sdks/java/docs/BatchAccessResult.md deleted file mode 100644 index fe44760..0000000 --- a/sdks/java/docs/BatchAccessResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# BatchAccessResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | -|**allowed** | **Boolean** | | | -|**revision** | **Integer** | | [optional] | - - - diff --git a/sdks/java/docs/DataValue.md b/sdks/java/docs/DataValue.md deleted file mode 100644 index 59f42d8..0000000 --- a/sdks/java/docs/DataValue.md +++ /dev/null @@ -1,12 +0,0 @@ - - -# DataValue - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| - - - diff --git a/sdks/java/docs/DevApi.md b/sdks/java/docs/DevApi.md deleted file mode 100644 index 5c2f86f..0000000 --- a/sdks/java/docs/DevApi.md +++ /dev/null @@ -1,127 +0,0 @@ -# DevApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getSampleDataDevSampleDataGet**](DevApi.md#getSampleDataDevSampleDataGet) | **GET** /dev/sample-data | Get Sample Data | -| [**seedSampleDataDevSampleDataSeedPost**](DevApi.md#seedSampleDataDevSampleDataSeedPost) | **POST** /dev/sample-data/seed | Seed Sample Data | - - - -# **getSampleDataDevSampleDataGet** -> SuccessResponseDictStrObject getSampleDataDevSampleDataGet() - -Get Sample Data - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.DevApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - DevApi apiInstance = new DevApi(defaultClient); - try { - SuccessResponseDictStrObject result = apiInstance.getSampleDataDevSampleDataGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DevApi#getSampleDataDevSampleDataGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - - -# **seedSampleDataDevSampleDataSeedPost** -> SuccessResponseDictStrObject seedSampleDataDevSampleDataSeedPost(reset) - -Seed Sample Data - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.DevApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - DevApi apiInstance = new DevApi(defaultClient); - Boolean reset = false; // Boolean | Clear the sample dataset before reseeding it. - try { - SuccessResponseDictStrObject result = apiInstance.seedSampleDataDevSampleDataSeedPost(reset); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DevApi#seedSampleDataDevSampleDataSeedPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **reset** | **Boolean**| Clear the sample dataset before reseeding it. | [optional] [default to false] | - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - diff --git a/sdks/java/docs/HTTPValidationError.md b/sdks/java/docs/HTTPValidationError.md deleted file mode 100644 index d2d806c..0000000 --- a/sdks/java/docs/HTTPValidationError.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# HTTPValidationError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**detail** | [**List<ValidationError>**](ValidationError.md) | | [optional] | - - - diff --git a/sdks/java/docs/HealthApi.md b/sdks/java/docs/HealthApi.md deleted file mode 100644 index 829d260..0000000 --- a/sdks/java/docs/HealthApi.md +++ /dev/null @@ -1,179 +0,0 @@ -# HealthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**healthHealthGet**](HealthApi.md#healthHealthGet) | **GET** /health | Health | -| [**livenessHealthLiveGet**](HealthApi.md#livenessHealthLiveGet) | **GET** /health/live | Liveness | -| [**readinessHealthReadyGet**](HealthApi.md#readinessHealthReadyGet) | **GET** /health/ready | Readiness | - - - -# **healthHealthGet** -> SuccessResponseDictStrStr healthHealthGet() - -Health - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.HealthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - HealthApi apiInstance = new HealthApi(defaultClient); - try { - SuccessResponseDictStrStr result = apiInstance.healthHealthGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling HealthApi#healthHealthGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - - -# **livenessHealthLiveGet** -> SuccessResponseDictStrStr livenessHealthLiveGet() - -Liveness - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.HealthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - HealthApi apiInstance = new HealthApi(defaultClient); - try { - SuccessResponseDictStrStr result = apiInstance.livenessHealthLiveGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling HealthApi#livenessHealthLiveGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - - -# **readinessHealthReadyGet** -> SuccessResponseDictStrObject readinessHealthReadyGet() - -Readiness - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.models.*; -import io.keynetra.client.api.HealthApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - HealthApi apiInstance = new HealthApi(defaultClient); - try { - SuccessResponseDictStrObject result = apiInstance.readinessHealthReadyGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling HealthApi#readinessHealthReadyGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - diff --git a/sdks/java/docs/ImpactAnalysisRequest.md b/sdks/java/docs/ImpactAnalysisRequest.md deleted file mode 100644 index 6f4688d..0000000 --- a/sdks/java/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ImpactAnalysisRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**policyChange** | **String** | | | - - - diff --git a/sdks/java/docs/ImpactAnalysisResponse.md b/sdks/java/docs/ImpactAnalysisResponse.md deleted file mode 100644 index 51ed84b..0000000 --- a/sdks/java/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ImpactAnalysisResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**gainedAccess** | **List<Integer>** | | [optional] | -|**lostAccess** | **List<Integer>** | | [optional] | - - - diff --git a/sdks/java/docs/LocationInner.md b/sdks/java/docs/LocationInner.md deleted file mode 100644 index c1e1d16..0000000 --- a/sdks/java/docs/LocationInner.md +++ /dev/null @@ -1,12 +0,0 @@ - - -# LocationInner - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| - - - diff --git a/sdks/java/docs/ManagementApi.md b/sdks/java/docs/ManagementApi.md deleted file mode 100644 index 5988823..0000000 --- a/sdks/java/docs/ManagementApi.md +++ /dev/null @@ -1,2085 +0,0 @@ -# ManagementApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| [**createAclEntryAclPost**](ManagementApi.md#createAclEntryAclPost) | **POST** /acl | Create Acl Entry | -| [**createAuthModelAuthModelPost**](ManagementApi.md#createAuthModelAuthModelPost) | **POST** /auth-model | Create Auth Model | -| [**createPermissionPermissionsPost**](ManagementApi.md#createPermissionPermissionsPost) | **POST** /permissions | Create Permission | -| [**createPolicyFromDslPoliciesDslPost**](ManagementApi.md#createPolicyFromDslPoliciesDslPost) | **POST** /policies/dsl | Create Policy From Dsl | -| [**createPolicyPoliciesPost**](ManagementApi.md#createPolicyPoliciesPost) | **POST** /policies | Create Policy | -| [**createRelationshipRelationshipsPost**](ManagementApi.md#createRelationshipRelationshipsPost) | **POST** /relationships | Create Relationship | -| [**createRoleRolesPost**](ManagementApi.md#createRoleRolesPost) | **POST** /roles | Create Role | -| [**deleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteAclEntryAclAclIdDelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| [**deletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletePermissionPermissionsPermissionIdDelete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| [**deletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletePolicyPoliciesPolicyKeyDelete) | **DELETE** /policies/{policy_key} | Delete Policy | -| [**deleteRoleRolesRoleIdDelete**](ManagementApi.md#deleteRoleRolesRoleIdDelete) | **DELETE** /roles/{role_id} | Delete Role | -| [**getAuthModelAuthModelGet**](ManagementApi.md#getAuthModelAuthModelGet) | **GET** /auth-model | Get Auth Model | -| [**impactAnalysisImpactAnalysisPost**](ManagementApi.md#impactAnalysisImpactAnalysisPost) | **POST** /impact-analysis | Impact Analysis | -| [**listAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listAclEntriesAclResourceTypeResourceIdGet) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| [**listAuditLogsAuditGet**](ManagementApi.md#listAuditLogsAuditGet) | **GET** /audit | List Audit Logs | -| [**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listPermissionRolesPermissionsPermissionIdRolesGet) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| [**listPermissionsPermissionsGet**](ManagementApi.md#listPermissionsPermissionsGet) | **GET** /permissions | List Permissions | -| [**listPoliciesPoliciesGet**](ManagementApi.md#listPoliciesPoliciesGet) | **GET** /policies | List Policies | -| [**listRelationshipsRelationshipsGet**](ManagementApi.md#listRelationshipsRelationshipsGet) | **GET** /relationships | List Relationships | -| [**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listRolePermissionsRolesRoleIdPermissionsGet) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| [**listRolesRolesGet**](ManagementApi.md#listRolesRolesGet) | **GET** /roles | List Roles | -| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| [**simulatePolicySimulatePolicyPost**](ManagementApi.md#simulatePolicySimulatePolicyPost) | **POST** /simulate-policy | Simulate Policy | -| [**updatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatePermissionPermissionsPermissionIdPut) | **PUT** /permissions/{permission_id} | Update Permission | -| [**updatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatePolicyPoliciesPolicyKeyPut) | **PUT** /policies/{policy_key} | Update Policy | -| [**updateRoleRolesRoleIdPut**](ManagementApi.md#updateRoleRolesRoleIdPut) | **PUT** /roles/{role_id} | Update Role | - - - -# **addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** -> SuccessResponsePermissionOut addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) - -Add Permission To Role - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | - Integer permissionId = 56; // Integer | - try { - SuccessResponsePermissionOut result = apiInstance.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | **Integer**| | | -| **permissionId** | **Integer**| | | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createAclEntryAclPost** -> SuccessResponseACLOut createAclEntryAclPost(acLCreate) - -Create Acl Entry - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - ACLCreate acLCreate = new ACLCreate(); // ACLCreate | - try { - SuccessResponseACLOut result = apiInstance.createAclEntryAclPost(acLCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createAclEntryAclPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **acLCreate** | [**ACLCreate**](ACLCreate.md)| | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createAuthModelAuthModelPost** -> SuccessResponseAuthModelOut createAuthModelAuthModelPost(authModelCreate) - -Create Auth Model - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - AuthModelCreate authModelCreate = new AuthModelCreate(); // AuthModelCreate | - try { - SuccessResponseAuthModelOut result = apiInstance.createAuthModelAuthModelPost(authModelCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createAuthModelAuthModelPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md)| | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createPermissionPermissionsPost** -> PermissionOut createPermissionPermissionsPost(permissionCreate) - -Create Permission - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - PermissionCreate permissionCreate = new PermissionCreate(); // PermissionCreate | - try { - PermissionOut result = apiInstance.createPermissionPermissionsPost(permissionCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createPermissionPermissionsPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionCreate** | [**PermissionCreate**](PermissionCreate.md)| | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createPolicyFromDslPoliciesDslPost** -> SuccessResponsePolicyOut createPolicyFromDslPoliciesDslPost(dsl) - -Create Policy From Dsl - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - String dsl = "dsl_example"; // String | - try { - SuccessResponsePolicyOut result = apiInstance.createPolicyFromDslPoliciesDslPost(dsl); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createPolicyFromDslPoliciesDslPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **dsl** | **String**| | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createPolicyPoliciesPost** -> SuccessResponsePolicyOut createPolicyPoliciesPost(policyCreate) - -Create Policy - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - PolicyCreate policyCreate = new PolicyCreate(); // PolicyCreate | - try { - SuccessResponsePolicyOut result = apiInstance.createPolicyPoliciesPost(policyCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createPolicyPoliciesPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createRelationshipRelationshipsPost** -> SuccessResponseRelationshipOut createRelationshipRelationshipsPost(relationshipCreate) - -Create Relationship - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - RelationshipCreate relationshipCreate = new RelationshipCreate(); // RelationshipCreate | - try { - SuccessResponseRelationshipOut result = apiInstance.createRelationshipRelationshipsPost(relationshipCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createRelationshipRelationshipsPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md)| | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **createRoleRolesPost** -> RoleOut createRoleRolesPost(roleCreate) - -Create Role - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - RoleCreate roleCreate = new RoleCreate(); // RoleCreate | - try { - RoleOut result = apiInstance.createRoleRolesPost(roleCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createRoleRolesPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleCreate** | [**RoleCreate**](RoleCreate.md)| | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - - -# **deleteAclEntryAclAclIdDelete** -> SuccessResponseDictStrInt deleteAclEntryAclAclIdDelete(aclId) - -Delete Acl Entry - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer aclId = 56; // Integer | - try { - SuccessResponseDictStrInt result = apiInstance.deleteAclEntryAclAclIdDelete(aclId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteAclEntryAclAclIdDelete"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **aclId** | **Integer**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **deletePermissionPermissionsPermissionIdDelete** -> SuccessResponseDictStrInt deletePermissionPermissionsPermissionIdDelete(permissionId) - -Delete Permission - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer permissionId = 56; // Integer | - try { - SuccessResponseDictStrInt result = apiInstance.deletePermissionPermissionsPermissionIdDelete(permissionId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deletePermissionPermissionsPermissionIdDelete"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionId** | **Integer**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **deletePolicyPoliciesPolicyKeyDelete** -> SuccessResponseDictStrStr deletePolicyPoliciesPolicyKeyDelete(policyKey) - -Delete Policy - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - String policyKey = "policyKey_example"; // String | - try { - SuccessResponseDictStrStr result = apiInstance.deletePolicyPoliciesPolicyKeyDelete(policyKey); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deletePolicyPoliciesPolicyKeyDelete"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyKey** | **String**| | | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **deleteRoleRolesRoleIdDelete** -> SuccessResponseDictStrInt deleteRoleRolesRoleIdDelete(roleId) - -Delete Role - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | - try { - SuccessResponseDictStrInt result = apiInstance.deleteRoleRolesRoleIdDelete(roleId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteRoleRolesRoleIdDelete"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | **Integer**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **getAuthModelAuthModelGet** -> SuccessResponseAuthModelOut getAuthModelAuthModelGet() - -Get Auth Model - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - try { - SuccessResponseAuthModelOut result = apiInstance.getAuthModelAuthModelGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAuthModelAuthModelGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - - -# **impactAnalysisImpactAnalysisPost** -> SuccessResponseImpactAnalysisResponse impactAnalysisImpactAnalysisPost(impactAnalysisRequest) - -Impact Analysis - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - ImpactAnalysisRequest impactAnalysisRequest = new ImpactAnalysisRequest(); // ImpactAnalysisRequest | - try { - SuccessResponseImpactAnalysisResponse result = apiInstance.impactAnalysisImpactAnalysisPost(impactAnalysisRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#impactAnalysisImpactAnalysisPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md)| | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listAclEntriesAclResourceTypeResourceIdGet** -> SuccessResponseListACLOut listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) - -List Acl Entries - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - String resourceType = "resourceType_example"; // String | - String resourceId = "resourceId_example"; // String | - try { - SuccessResponseListACLOut result = apiInstance.listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listAclEntriesAclResourceTypeResourceIdGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **resourceType** | **String**| | | -| **resourceId** | **String**| | | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listAuditLogsAuditGet** -> SuccessResponseListAuditRecordOut listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) - -List Audit Logs - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer limit = 50; // Integer | - String cursor = "cursor_example"; // String | - String userId = "userId_example"; // String | - String resourceId = "resourceId_example"; // String | - String decision = "decision_example"; // String | - OffsetDateTime startTime = OffsetDateTime.now(); // OffsetDateTime | - OffsetDateTime endTime = OffsetDateTime.now(); // OffsetDateTime | - try { - SuccessResponseListAuditRecordOut result = apiInstance.listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listAuditLogsAuditGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | **Integer**| | [optional] [default to 50] | -| **cursor** | **String**| | [optional] | -| **userId** | **String**| | [optional] | -| **resourceId** | **String**| | [optional] | -| **decision** | **String**| | [optional] | -| **startTime** | **OffsetDateTime**| | [optional] | -| **endTime** | **OffsetDateTime**| | [optional] | - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listPermissionRolesPermissionsPermissionIdRolesGet** -> SuccessResponseListRoleOut listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) - -List Permission Roles - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer permissionId = 56; // Integer | - try { - SuccessResponseListRoleOut result = apiInstance.listPermissionRolesPermissionsPermissionIdRolesGet(permissionId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listPermissionRolesPermissionsPermissionIdRolesGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionId** | **Integer**| | | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listPermissionsPermissionsGet** -> SuccessResponseListPermissionOut listPermissionsPermissionsGet(limit, cursor) - -List Permissions - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer limit = 50; // Integer | - String cursor = "cursor_example"; // String | - try { - SuccessResponseListPermissionOut result = apiInstance.listPermissionsPermissionsGet(limit, cursor); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listPermissionsPermissionsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | **Integer**| | [optional] [default to 50] | -| **cursor** | **String**| | [optional] | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listPoliciesPoliciesGet** -> SuccessResponseListPolicyOut listPoliciesPoliciesGet(limit, cursor) - -List Policies - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer limit = 50; // Integer | - String cursor = "cursor_example"; // String | - try { - SuccessResponseListPolicyOut result = apiInstance.listPoliciesPoliciesGet(limit, cursor); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listPoliciesPoliciesGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | **Integer**| | [optional] [default to 50] | -| **cursor** | **String**| | [optional] | - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listRelationshipsRelationshipsGet** -> SuccessResponseListDictStrStr listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) - -List Relationships - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - String subjectType = "subjectType_example"; // String | - String subjectId = "subjectId_example"; // String | - Integer limit = 50; // Integer | - String cursor = "cursor_example"; // String | - try { - SuccessResponseListDictStrStr result = apiInstance.listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listRelationshipsRelationshipsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **subjectType** | **String**| | | -| **subjectId** | **String**| | | -| **limit** | **Integer**| | [optional] [default to 50] | -| **cursor** | **String**| | [optional] | - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listRolePermissionsRolesRoleIdPermissionsGet** -> SuccessResponseListPermissionOut listRolePermissionsRolesRoleIdPermissionsGet(roleId) - -List Role Permissions - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | - try { - SuccessResponseListPermissionOut result = apiInstance.listRolePermissionsRolesRoleIdPermissionsGet(roleId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listRolePermissionsRolesRoleIdPermissionsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | **Integer**| | | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **listRolesRolesGet** -> SuccessResponseListRoleOut listRolesRolesGet(limit, cursor) - -List Roles - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer limit = 50; // Integer | - String cursor = "cursor_example"; // String | - try { - SuccessResponseListRoleOut result = apiInstance.listRolesRolesGet(limit, cursor); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listRolesRolesGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | **Integer**| | [optional] [default to 50] | -| **cursor** | **String**| | [optional] | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** -> SuccessResponseDictStrInt removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) - -Remove Permission From Role - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | - Integer permissionId = 56; // Integer | - try { - SuccessResponseDictStrInt result = apiInstance.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | **Integer**| | | -| **permissionId** | **Integer**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **rollbackPolicyPoliciesPolicyKeyRollbackVersionPost** -> SuccessResponseDictStrUnionIntStr rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) - -Rollback Policy - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - String policyKey = "policyKey_example"; // String | - Integer version = 56; // Integer | - try { - SuccessResponseDictStrUnionIntStr result = apiInstance.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyKey** | **String**| | | -| **version** | **Integer**| | | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **simulatePolicySimulatePolicyPost** -> SuccessResponsePolicySimulationResponse simulatePolicySimulatePolicyPost(policySimulationRequest) - -Simulate Policy - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - PolicySimulationRequest policySimulationRequest = new PolicySimulationRequest(); // PolicySimulationRequest | - try { - SuccessResponsePolicySimulationResponse result = apiInstance.simulatePolicySimulatePolicyPost(policySimulationRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#simulatePolicySimulatePolicyPost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md)| | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **updatePermissionPermissionsPermissionIdPut** -> PermissionOut updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) - -Update Permission - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer permissionId = 56; // Integer | - PermissionUpdate permissionUpdate = new PermissionUpdate(); // PermissionUpdate | - try { - PermissionOut result = apiInstance.updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#updatePermissionPermissionsPermissionIdPut"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionId** | **Integer**| | | -| **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md)| | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **updatePolicyPoliciesPolicyKeyPut** -> SuccessResponsePolicyOut updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) - -Update Policy - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - String policyKey = "policyKey_example"; // String | - PolicyCreate policyCreate = new PolicyCreate(); // PolicyCreate | - try { - SuccessResponsePolicyOut result = apiInstance.updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#updatePolicyPoliciesPolicyKeyPut"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyKey** | **String**| | | -| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **updateRoleRolesRoleIdPut** -> RoleOut updateRoleRolesRoleIdPut(roleId, roleUpdate) - -Update Role - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.ManagementApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | - RoleUpdate roleUpdate = new RoleUpdate(); // RoleUpdate | - try { - RoleOut result = apiInstance.updateRoleRolesRoleIdPut(roleId, roleUpdate); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#updateRoleRolesRoleIdPut"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | **Integer**| | | -| **roleUpdate** | [**RoleUpdate**](RoleUpdate.md)| | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - diff --git a/sdks/java/docs/MetaBody.md b/sdks/java/docs/MetaBody.md deleted file mode 100644 index 0e3f817..0000000 --- a/sdks/java/docs/MetaBody.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# MetaBody - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**requestId** | **String** | | [optional] | -|**limit** | **Integer** | | [optional] | -|**nextCursor** | **String** | | [optional] | -|**extra** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/PermissionCreate.md b/sdks/java/docs/PermissionCreate.md deleted file mode 100644 index fdeef2f..0000000 --- a/sdks/java/docs/PermissionCreate.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# PermissionCreate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | - - - diff --git a/sdks/java/docs/PermissionOut.md b/sdks/java/docs/PermissionOut.md deleted file mode 100644 index 7b7ead0..0000000 --- a/sdks/java/docs/PermissionOut.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PermissionOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **Integer** | | | -|**action** | **String** | | | - - - diff --git a/sdks/java/docs/PermissionUpdate.md b/sdks/java/docs/PermissionUpdate.md deleted file mode 100644 index cccf0ad..0000000 --- a/sdks/java/docs/PermissionUpdate.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# PermissionUpdate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | - - - diff --git a/sdks/java/docs/PlaygroundApi.md b/sdks/java/docs/PlaygroundApi.md deleted file mode 100644 index 469a603..0000000 --- a/sdks/java/docs/PlaygroundApi.md +++ /dev/null @@ -1,81 +0,0 @@ -# PlaygroundApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**evaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluatePlaygroundEvaluatePost) | **POST** /playground/evaluate | Evaluate | - - - -# **evaluatePlaygroundEvaluatePost** -> SuccessResponseDictStrAny evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) - -Evaluate - -### Example -```java -// Import classes: -import io.keynetra.client.ApiClient; -import io.keynetra.client.ApiException; -import io.keynetra.client.Configuration; -import io.keynetra.client.auth.*; -import io.keynetra.client.models.*; -import io.keynetra.client.api.PlaygroundApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: APIKeyHeader - ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader"); - APIKeyHeader.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //APIKeyHeader.setApiKeyPrefix("Token"); - - // Configure HTTP bearer authorization: HTTPBearer - HttpBearerAuth HTTPBearer = (HttpBearerAuth) defaultClient.getAuthentication("HTTPBearer"); - HTTPBearer.setBearerToken("BEARER TOKEN"); - - PlaygroundApi apiInstance = new PlaygroundApi(defaultClient); - PlaygroundEvaluateRequest playgroundEvaluateRequest = new PlaygroundEvaluateRequest(); // PlaygroundEvaluateRequest | - try { - SuccessResponseDictStrAny result = apiInstance.evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PlaygroundApi#evaluatePlaygroundEvaluatePost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md)| | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - diff --git a/sdks/java/docs/PlaygroundEvaluateRequest.md b/sdks/java/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index 23e524e..0000000 --- a/sdks/java/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PlaygroundEvaluateRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**policies** | [**List<PlaygroundPolicy>**](PlaygroundPolicy.md) | | | -|**input** | [**PlaygroundInput**](PlaygroundInput.md) | | | - - - diff --git a/sdks/java/docs/PlaygroundInput.md b/sdks/java/docs/PlaygroundInput.md deleted file mode 100644 index 212aec7..0000000 --- a/sdks/java/docs/PlaygroundInput.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# PlaygroundInput - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**user** | **Map<String, Object>** | | [optional] | -|**resource** | **Map<String, Object>** | | [optional] | -|**action** | **String** | | [optional] | -|**context** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/PlaygroundPolicy.md b/sdks/java/docs/PlaygroundPolicy.md deleted file mode 100644 index 34e1277..0000000 --- a/sdks/java/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# PlaygroundPolicy - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | -|**effect** | **String** | | [optional] | -|**priority** | **Integer** | | [optional] | -|**policyId** | **String** | | [optional] | -|**conditions** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/PolicyCreate.md b/sdks/java/docs/PolicyCreate.md deleted file mode 100644 index 92d81ec..0000000 --- a/sdks/java/docs/PolicyCreate.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# PolicyCreate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | -|**effect** | **String** | | [optional] | -|**priority** | **Integer** | | [optional] | -|**state** | **String** | | [optional] | -|**conditions** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/PolicyOut.md b/sdks/java/docs/PolicyOut.md deleted file mode 100644 index 343e38f..0000000 --- a/sdks/java/docs/PolicyOut.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# PolicyOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **Integer** | | | -|**action** | **String** | | | -|**effect** | **String** | | | -|**priority** | **Integer** | | | -|**state** | **String** | | [optional] | -|**conditions** | **Map<String, Object>** | | | - - - diff --git a/sdks/java/docs/PolicySimulationInput.md b/sdks/java/docs/PolicySimulationInput.md deleted file mode 100644 index 8f7d6af..0000000 --- a/sdks/java/docs/PolicySimulationInput.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# PolicySimulationInput - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**policyChange** | **String** | | [optional] | -|**relationshipChange** | **Map<String, Object>** | | [optional] | -|**roleChange** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/PolicySimulationRequest.md b/sdks/java/docs/PolicySimulationRequest.md deleted file mode 100644 index a3b74f7..0000000 --- a/sdks/java/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PolicySimulationRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] | -|**request** | **Map<String, Object>** | | [optional] | - - - diff --git a/sdks/java/docs/PolicySimulationResponse.md b/sdks/java/docs/PolicySimulationResponse.md deleted file mode 100644 index fcf863b..0000000 --- a/sdks/java/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PolicySimulationResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**decisionBefore** | **Map<String, Object>** | | | -|**decisionAfter** | **Map<String, Object>** | | | - - - diff --git a/sdks/java/docs/RelationshipCreate.md b/sdks/java/docs/RelationshipCreate.md deleted file mode 100644 index f60e1cc..0000000 --- a/sdks/java/docs/RelationshipCreate.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# RelationshipCreate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**subjectType** | **String** | | | -|**subjectId** | **String** | | | -|**relation** | **String** | | | -|**objectType** | **String** | | | -|**objectId** | **String** | | | - - - diff --git a/sdks/java/docs/RelationshipOut.md b/sdks/java/docs/RelationshipOut.md deleted file mode 100644 index f0f4bd5..0000000 --- a/sdks/java/docs/RelationshipOut.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# RelationshipOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**subjectType** | **String** | | | -|**subjectId** | **String** | | | -|**relation** | **String** | | | -|**objectType** | **String** | | | -|**objectId** | **String** | | | -|**id** | **Integer** | | | - - - diff --git a/sdks/java/docs/RoleCreate.md b/sdks/java/docs/RoleCreate.md deleted file mode 100644 index 2b64d31..0000000 --- a/sdks/java/docs/RoleCreate.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RoleCreate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | - - - diff --git a/sdks/java/docs/RoleOut.md b/sdks/java/docs/RoleOut.md deleted file mode 100644 index 06e09d7..0000000 --- a/sdks/java/docs/RoleOut.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# RoleOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **Integer** | | | -|**name** | **String** | | | - - - diff --git a/sdks/java/docs/RoleUpdate.md b/sdks/java/docs/RoleUpdate.md deleted file mode 100644 index 08d067b..0000000 --- a/sdks/java/docs/RoleUpdate.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RoleUpdate - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | - - - diff --git a/sdks/java/docs/SimulationResponse.md b/sdks/java/docs/SimulationResponse.md deleted file mode 100644 index 68b727c..0000000 --- a/sdks/java/docs/SimulationResponse.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# SimulationResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**decision** | **String** | | | -|**matchedPolicies** | **List<String>** | | | -|**reason** | **String** | | [optional] | -|**policyId** | **String** | | [optional] | -|**explainTrace** | **List<Map<String, Object>>** | | [optional] | -|**failedConditions** | **List<String>** | | [optional] | -|**revision** | **Integer** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseACLOut.md b/sdks/java/docs/SuccessResponseACLOut.md deleted file mode 100644 index fbe803f..0000000 --- a/sdks/java/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseACLOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ACLOut**](ACLOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseAccessDecisionResponse.md b/sdks/java/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index 0b1b03e..0000000 --- a/sdks/java/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseAccessDecisionResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseAdminLoginResponse.md b/sdks/java/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index 1a55086..0000000 --- a/sdks/java/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseAdminLoginResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseAuthModelOut.md b/sdks/java/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index a3ca425..0000000 --- a/sdks/java/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseAuthModelOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**AuthModelOut**](AuthModelOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseBatchAccessResponse.md b/sdks/java/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index 7c848dc..0000000 --- a/sdks/java/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseBatchAccessResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseDictStrAny.md b/sdks/java/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index e2e3314..0000000 --- a/sdks/java/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseDictStrAny - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | **Map<String, Object>** | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseDictStrInt.md b/sdks/java/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 952add1..0000000 --- a/sdks/java/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseDictStrInt - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | **Map<String, Integer>** | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseDictStrObject.md b/sdks/java/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index dbed9ca..0000000 --- a/sdks/java/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseDictStrObject - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | **Map<String, Object>** | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseDictStrStr.md b/sdks/java/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index edfccee..0000000 --- a/sdks/java/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseDictStrStr - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | **Map<String, String>** | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index d0110e9..0000000 --- a/sdks/java/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseDictStrUnionIntStr - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**Map<String, DataValue>**](DataValue.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index 39c01d6..0000000 --- a/sdks/java/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseImpactAnalysisResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseListACLOut.md b/sdks/java/docs/SuccessResponseListACLOut.md deleted file mode 100644 index aee97e3..0000000 --- a/sdks/java/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseListACLOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<ACLOut>**](ACLOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseListAuditRecordOut.md b/sdks/java/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 3916d21..0000000 --- a/sdks/java/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseListAuditRecordOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<AuditRecordOut>**](AuditRecordOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseListDictStrStr.md b/sdks/java/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index d73c099..0000000 --- a/sdks/java/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseListDictStrStr - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | **List<Map<String, String>>** | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseListPermissionOut.md b/sdks/java/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index c3607b3..0000000 --- a/sdks/java/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseListPermissionOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<PermissionOut>**](PermissionOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseListPolicyOut.md b/sdks/java/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index 9934b27..0000000 --- a/sdks/java/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseListPolicyOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<PolicyOut>**](PolicyOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseListRoleOut.md b/sdks/java/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index 920b211..0000000 --- a/sdks/java/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseListRoleOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<RoleOut>**](RoleOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponsePermissionOut.md b/sdks/java/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index 6e6c299..0000000 --- a/sdks/java/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponsePermissionOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**PermissionOut**](PermissionOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponsePolicyOut.md b/sdks/java/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index 8fd1af7..0000000 --- a/sdks/java/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponsePolicyOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**PolicyOut**](PolicyOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponsePolicySimulationResponse.md b/sdks/java/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index e39f6e8..0000000 --- a/sdks/java/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponsePolicySimulationResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseRelationshipOut.md b/sdks/java/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index d09ccc8..0000000 --- a/sdks/java/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseRelationshipOut - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**RelationshipOut**](RelationshipOut.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/SuccessResponseSimulationResponse.md b/sdks/java/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index 4f71cdf..0000000 --- a/sdks/java/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SuccessResponseSimulationResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**SimulationResponse**](SimulationResponse.md) | | | -|**meta** | [**MetaBody**](MetaBody.md) | | [optional] | -|**error** | **Object** | | [optional] | - - - diff --git a/sdks/java/docs/ValidationError.md b/sdks/java/docs/ValidationError.md deleted file mode 100644 index c8f7c74..0000000 --- a/sdks/java/docs/ValidationError.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# ValidationError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**loc** | [**List<LocationInner>**](LocationInner.md) | | | -|**msg** | **String** | | | -|**type** | **String** | | | -|**input** | **Object** | | [optional] | -|**ctx** | **Object** | | [optional] | - - - diff --git a/sdks/java/git_push.sh b/sdks/java/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/java/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/java/gradle.properties b/sdks/java/gradle.properties deleted file mode 100644 index a340857..0000000 --- a/sdks/java/gradle.properties +++ /dev/null @@ -1,6 +0,0 @@ -# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). -# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. -# -# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties -# For example, uncomment below to build for Android -#target = android diff --git a/sdks/java/gradle/wrapper/gradle-wrapper.jar b/sdks/java/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index e6441136f3d4ba8a0da8d277868979cfbc8ad796..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vSTxF-Vi3+ZOI=Thq2} zyQgjYY1_7^ZQHh{?P))4+qUiQJLi1&{yE>h?~jU%tjdV0h|FENbM3X(KnJdPKc?~k zh=^Ixv*+smUll!DTWH!jrV*wSh*(mx0o6}1@JExzF(#9FXgmTXVoU+>kDe68N)dkQ zH#_98Zv$}lQwjKL@yBd;U(UD0UCl322=pav<=6g>03{O_3oKTq;9bLFX1ia*lw;#K zOiYDcBJf)82->83N_Y(J7Kr_3lE)hAu;)Q(nUVydv+l+nQ$?|%MWTy`t>{havFSQloHwiIkGK9YZ79^9?AZo0ZyQlVR#}lF%dn5n%xYksXf8gnBm=wO7g_^! zauQ-bH1Dc@3ItZ-9D_*pH}p!IG7j8A_o94#~>$LR|TFq zZ-b00*nuw|-5C2lJDCw&8p5N~Z1J&TrcyErds&!l3$eSz%`(*izc;-?HAFD9AHb-| z>)id`QCrzRws^9(#&=pIx9OEf2rmlob8sK&xPCWS+nD~qzU|qG6KwA{zbikcfQrdH z+ zQg>O<`K4L8rN7`GJB0*3<3`z({lWe#K!4AZLsI{%z#ja^OpfjU{!{)x0ZH~RB0W5X zTwN^w=|nA!4PEU2=LR05x~}|B&ZP?#pNgDMwD*ajI6oJqv!L81gu=KpqH22avXf0w zX3HjbCI!n9>l046)5rr5&v5ja!xkKK42zmqHzPx$9Nn_MZk`gLeSLgC=LFf;H1O#B zn=8|^1iRrujHfbgA+8i<9jaXc;CQBAmQvMGQPhFec2H1knCK2x!T`e6soyrqCamX% zTQ4dX_E*8so)E*TB$*io{$c6X)~{aWfaqdTh=xEeGvOAN9H&-t5tEE-qso<+C!2>+ zskX51H-H}#X{A75wqFe-J{?o8Bx|>fTBtl&tcbdR|132Ztqu5X0i-pisB-z8n71%q%>EF}yy5?z=Ve`}hVh{Drv1YWL zW=%ug_&chF11gDv3D6B)Tz5g54H0mDHNjuKZ+)CKFk4Z|$RD zfRuKLW`1B>B?*RUfVd0+u8h3r-{@fZ{k)c!93t1b0+Q9vOaRnEn1*IL>5Z4E4dZ!7 ztp4GP-^1d>8~LMeb}bW!(aAnB1tM_*la=Xx)q(I0Y@__Zd$!KYb8T2VBRw%e$iSdZ zkwdMwd}eV9q*;YvrBFTv1>1+}{H!JK2M*C|TNe$ZSA>UHKk);wz$(F$rXVc|sI^lD zV^?_J!3cLM;GJuBMbftbaRUs$;F}HDEDtIeHQ)^EJJ1F9FKJTGH<(Jj`phE6OuvE) zqK^K`;3S{Y#1M@8yRQwH`?kHMq4tHX#rJ>5lY3DM#o@or4&^_xtBC(|JpGTfrbGkA z2Tu+AyT^pHannww!4^!$5?@5v`LYy~T`qs7SYt$JgrY(w%C+IWA;ZkwEF)u5sDvOK zGk;G>Mh&elvXDcV69J_h02l&O;!{$({fng9Rlc3ID#tmB^FIG^w{HLUpF+iB`|
NnX)EH+Nua)3Y(c z&{(nX_ht=QbJ%DzAya}!&uNu!4V0xI)QE$SY__m)SAKcN0P(&JcoK*Lxr@P zY&P=}&B3*UWNlc|&$Oh{BEqwK2+N2U$4WB7Fd|aIal`FGANUa9E-O)!gV`((ZGCc$ zBJA|FFrlg~9OBp#f7aHodCe{6= zay$6vN~zj1ddMZ9gQ4p32(7wD?(dE>KA2;SOzXRmPBiBc6g`eOsy+pVcHu=;Yd8@{ zSGgXf@%sKKQz~;!J;|2fC@emm#^_rnO0esEn^QxXgJYd`#FPWOUU5b;9eMAF zZhfiZb|gk8aJIw*YLp4!*(=3l8Cp{(%p?ho22*vN9+5NLV0TTazNY$B5L6UKUrd$n zjbX%#m7&F#U?QNOBXkiiWB*_tk+H?N3`vg;1F-I+83{M2!8<^nydGr5XX}tC!10&e z7D36bLaB56WrjL&HiiMVtpff|K%|*{t*ltt^5ood{FOG0<>k&1h95qPio)2`eL${YAGIx(b4VN*~nKn6E~SIQUuRH zQ+5zP6jfnP$S0iJ@~t!Ai3o`X7biohli;E zT#yXyl{bojG@-TGZzpdVDXhbmF%F9+-^YSIv|MT1l3j zrxOFq>gd2%U}?6}8mIj?M zc077Zc9fq(-)4+gXv?Az26IO6eV`RAJz8e3)SC7~>%rlzDwySVx*q$ygTR5kW2ds- z!HBgcq0KON9*8Ff$X0wOq$`T7ml(@TF)VeoF}x1OttjuVHn3~sHrMB++}f7f9H%@f z=|kP_?#+fve@{0MlbkC9tyvQ_R?lRdRJ@$qcB(8*jyMyeME5ns6ypVI1Xm*Zr{DuS zZ!1)rQfa89c~;l~VkCiHI|PCBd`S*2RLNQM8!g9L6?n`^evQNEwfO@&JJRme+uopQX0%Jo zgd5G&#&{nX{o?TQwQvF1<^Cg3?2co;_06=~Hcb6~4XWpNFL!WU{+CK;>gH%|BLOh7@!hsa(>pNDAmpcuVO-?;Bic17R}^|6@8DahH)G z!EmhsfunLL|3b=M0MeK2vqZ|OqUqS8npxwge$w-4pFVXFq$_EKrZY?BuP@Az@(k`L z`ViQBSk`y+YwRT;&W| z2e3UfkCo^uTA4}Qmmtqs+nk#gNr2W4 zTH%hhErhB)pkXR{B!q5P3-OM+M;qu~f>}IjtF%>w{~K-0*jPVLl?Chz&zIdxp}bjx zStp&Iufr58FTQ36AHU)0+CmvaOpKF;W@sMTFpJ`j;3d)J_$tNQI^c<^1o<49Z(~K> z;EZTBaVT%14(bFw2ob@?JLQ2@(1pCdg3S%E4*dJ}dA*v}_a4_P(a`cHnBFJxNobAv zf&Zl-Yt*lhn-wjZsq<9v-IsXxAxMZ58C@e0!rzhJ+D@9^3~?~yllY^s$?&oNwyH!#~6x4gUrfxplCvK#!f z$viuszW>MFEcFL?>ux*((!L$;R?xc*myjRIjgnQX79@UPD$6Dz0jutM@7h_pq z0Zr)#O<^y_K6jfY^X%A-ip>P%3saX{!v;fxT-*0C_j4=UMH+Xth(XVkVGiiKE#f)q z%Jp=JT)uy{&}Iq2E*xr4YsJ5>w^=#-mRZ4vPXpI6q~1aFwi+lQcimO45V-JXP;>(Q zo={U`{=_JF`EQj87Wf}{Qy35s8r1*9Mxg({CvOt}?Vh9d&(}iI-quvs-rm~P;eRA@ zG5?1HO}puruc@S{YNAF3vmUc2B4!k*yi))<5BQmvd3tr}cIs#9)*AX>t`=~{f#Uz0 z0&Nk!7sSZwJe}=)-R^$0{yeS!V`Dh7w{w5rZ9ir!Z7Cd7dwZcK;BT#V0bzTt>;@Cl z#|#A!-IL6CZ@eHH!CG>OO8!%G8&8t4)Ro@}USB*k>oEUo0LsljsJ-%5Mo^MJF2I8- z#v7a5VdJ-Cd%(a+y6QwTmi+?f8Nxtm{g-+WGL>t;s#epv7ug>inqimZCVm!uT5Pf6 ziEgQt7^%xJf#!aPWbuC_3Nxfb&CFbQy!(8ANpkWLI4oSnH?Q3f?0k1t$3d+lkQs{~(>06l&v|MpcFsyAv zin6N!-;pggosR*vV=DO(#+}4ps|5$`udE%Kdmp?G7B#y%H`R|i8skKOd9Xzx8xgR$>Zo2R2Ytktq^w#ul4uicxW#{ zFjG_RNlBroV_n;a7U(KIpcp*{M~e~@>Q#Av90Jc5v%0c>egEdY4v3%|K1XvB{O_8G zkTWLC>OZKf;XguMH2-Pw{BKbFzaY;4v2seZV0>^7Q~d4O=AwaPhP3h|!hw5aqOtT@ z!SNz}$of**Bl3TK209@F=Tn1+mgZa8yh(Png%Zd6Mt}^NSjy)etQrF zme*llAW=N_8R*O~d2!apJnF%(JcN??=`$qs3Y+~xs>L9x`0^NIn!8mMRFA_tg`etw z3k{9JAjnl@ygIiJcNHTy02GMAvBVqEss&t2<2mnw!; zU`J)0>lWiqVqo|ex7!+@0i>B~BSU1A_0w#Ee+2pJx0BFiZ7RDHEvE*ptc9md(B{&+ zKE>TM)+Pd>HEmdJao7U@S>nL(qq*A)#eLOuIfAS@j`_sK0UEY6OAJJ-kOrHG zjHx`g!9j*_jRcJ%>CE9K2MVf?BUZKFHY?EpV6ai7sET-tqk=nDFh-(65rhjtlKEY% z@G&cQ<5BKatfdA1FKuB=i>CCC5(|9TMW%K~GbA4}80I5%B}(gck#Wlq@$nO3%@QP_ z8nvPkJFa|znk>V92cA!K1rKtr)skHEJD;k8P|R8RkCq1Rh^&}Evwa4BUJz2f!2=MH zo4j8Y$YL2313}H~F7@J7mh>u%556Hw0VUOz-Un@ZASCL)y8}4XXS`t1AC*^>PLwIc zUQok5PFS=*#)Z!3JZN&eZ6ZDP^-c@StY*t20JhCnbMxXf=LK#;`4KHEqMZ-Ly9KsS zI2VUJGY&PmdbM+iT)zek)#Qc#_i4uH43 z@T5SZBrhNCiK~~esjsO9!qBpaWK<`>!-`b71Y5ReXQ4AJU~T2Njri1CEp5oKw;Lnm)-Y@Z3sEY}XIgSy%xo=uek(kAAH5MsV$V3uTUsoTzxp_rF=tx zV07vlJNKtJhCu`b}*#m&5LV4TAE&%KtHViDAdv#c^x`J7bg z&N;#I2GkF@SIGht6p-V}`!F_~lCXjl1BdTLIjD2hH$J^YFN`7f{Q?OHPFEM$65^!u zNwkelo*5+$ZT|oQ%o%;rBX$+?xhvjb)SHgNHE_yP%wYkkvXHS{Bf$OiKJ5d1gI0j< zF6N}Aq=(WDo(J{e-uOecxPD>XZ@|u-tgTR<972`q8;&ZD!cep^@B5CaqFz|oU!iFj zU0;6fQX&~15E53EW&w1s9gQQ~Zk16X%6 zjG`j0yq}4deX2?Tr(03kg>C(!7a|b9qFI?jcE^Y>-VhudI@&LI6Qa}WQ>4H_!UVyF z((cm&!3gmq@;BD#5P~0;_2qgZhtJS|>WdtjY=q zLnHH~Fm!cxw|Z?Vw8*~?I$g#9j&uvgm7vPr#&iZgPP~v~BI4jOv;*OQ?jYJtzO<^y z7-#C={r7CO810!^s(MT!@@Vz_SVU)7VBi(e1%1rvS!?PTa}Uv`J!EP3s6Y!xUgM^8 z4f!fq<3Wer_#;u!5ECZ|^c1{|q_lh3m^9|nsMR1#Qm|?4Yp5~|er2?W^7~cl;_r4WSme_o68J9p03~Hc%X#VcX!xAu%1`R!dfGJCp zV*&m47>s^%Ib0~-2f$6oSgn3jg8m%UA;ArcdcRyM5;}|r;)?a^D*lel5C`V5G=c~k zy*w_&BfySOxE!(~PI$*dwG><+-%KT5p?whOUMA*k<9*gi#T{h3DAxzAPxN&Xws8o9Cp*`PA5>d9*Z-ynV# z9yY*1WR^D8|C%I@vo+d8r^pjJ$>eo|j>XiLWvTWLl(^;JHCsoPgem6PvegHb-OTf| zvTgsHSa;BkbG=(NgPO|CZu9gUCGr$8*EoH2_Z#^BnxF0yM~t`|9ws_xZ8X8iZYqh! zAh;HXJ)3P&)Q0(&F>!LN0g#bdbis-cQxyGn9Qgh`q+~49Fqd2epikEUw9caM%V6WgP)532RMRW}8gNS%V%Hx7apSz}tn@bQy!<=lbhmAH=FsMD?leawbnP5BWM0 z5{)@EEIYMu5;u)!+HQWhQ;D3_Cm_NADNeb-f56}<{41aYq8p4=93d=-=q0Yx#knGYfXVt z+kMxlus}t2T5FEyCN~!}90O_X@@PQpuy;kuGz@bWft%diBTx?d)_xWd_-(!LmVrh**oKg!1CNF&LX4{*j|) zIvjCR0I2UUuuEXh<9}oT_zT#jOrJAHNLFT~Ilh9hGJPI1<5`C-WA{tUYlyMeoy!+U zhA#=p!u1R7DNg9u4|QfED-2TuKI}>p#2P9--z;Bbf4Op*;Q9LCbO&aL2i<0O$ByoI z!9;Ght733FC>Pz>$_mw(F`zU?`m@>gE`9_p*=7o=7av`-&ifU(^)UU`Kg3Kw`h9-1 z6`e6+im=|m2v`pN(2dE%%n8YyQz;#3Q-|x`91z?gj68cMrHl}C25|6(_dIGk*8cA3 zRHB|Nwv{@sP4W+YZM)VKI>RlB`n=Oj~Rzx~M+Khz$N$45rLn6k1nvvD^&HtsMA4`s=MmuOJID@$s8Ph4E zAmSV^+s-z8cfv~Yd(40Sh4JG#F~aB>WFoX7ykaOr3JaJ&Lb49=B8Vk-SQT9%7TYhv z?-Pprt{|=Y5ZQ1?od|A<_IJU93|l4oAfBm?3-wk{O<8ea+`}u%(kub(LFo2zFtd?4 zwpN|2mBNywv+d^y_8#<$r>*5+$wRTCygFLcrwT(qc^n&@9r+}Kd_u@Ithz(6Qb4}A zWo_HdBj#V$VE#l6pD0a=NfB0l^6W^g`vm^sta>Tly?$E&{F?TTX~DsKF~poFfmN%2 z4x`Dc{u{Lkqz&y!33;X}weD}&;7p>xiI&ZUb1H9iD25a(gI|`|;G^NwJPv=1S5e)j z;U;`?n}jnY6rA{V^ zxTd{bK)Gi^odL3l989DQlN+Zs39Xe&otGeY(b5>rlIqfc7Ap4}EC?j<{M=hlH{1+d zw|c}}yx88_xQr`{98Z!d^FNH77=u(p-L{W6RvIn40f-BldeF-YD>p6#)(Qzf)lfZj z?3wAMtPPp>vMehkT`3gToPd%|D8~4`5WK{`#+}{L{jRUMt zrFz+O$C7y8$M&E4@+p+oV5c%uYzbqd2Y%SSgYy#xh4G3hQv>V*BnuKQhBa#=oZB~w{azUB+q%bRe_R^ z>fHBilnRTUfaJ201czL8^~Ix#+qOHSO)A|xWLqOxB$dT2W~)e-r9;bm=;p;RjYahB z*1hegN(VKK+ztr~h1}YP@6cfj{e#|sS`;3tJhIJK=tVJ-*h-5y9n*&cYCSdg#EHE# zSIx=r#qOaLJoVVf6v;(okg6?*L_55atl^W(gm^yjR?$GplNP>BZsBYEf_>wM0Lc;T zhf&gpzOWNxS>m+mN92N0{;4uw`P+9^*|-1~$uXpggj4- z^SFc4`uzj2OwdEVT@}Q`(^EcQ_5(ZtXTql*yGzdS&vrS_w>~~ra|Nb5abwf}Y!uq6R5f&6g2ge~2p(%c< z@O)cz%%rr4*cRJ5f`n@lvHNk@lE1a*96Kw6lJ~B-XfJW%?&-y?;E&?1AacU@`N`!O z6}V>8^%RZ7SQnZ-z$(jsX`amu*5Fj8g!3RTRwK^`2_QHe;_2y_n|6gSaGyPmI#kA0sYV<_qOZc#-2BO%hX)f$s-Z3xlI!ub z^;3ru11DA`4heAu%}HIXo&ctujzE2!6DIGE{?Zs>2}J+p&C$rc7gJC35gxhflorvsb%sGOxpuWhF)dL_&7&Z99=5M0b~Qa;Mo!j&Ti_kXW!86N%n= zSC@6Lw>UQ__F&+&Rzv?gscwAz8IP!n63>SP)^62(HK98nGjLY2*e^OwOq`3O|C92? z;TVhZ2SK%9AGW4ZavTB9?)mUbOoF`V7S=XM;#3EUpR+^oHtdV!GK^nXzCu>tpR|89 zdD{fnvCaN^^LL%amZ^}-E+214g&^56rpdc@yv0b<3}Ys?)f|fXN4oHf$six)-@<;W&&_kj z-B}M5U*1sb4)77aR=@%I?|Wkn-QJVuA96an25;~!gq(g1@O-5VGo7y&E_srxL6ZfS z*R%$gR}dyONgju*D&?geiSj7SZ@ftyA|}(*Y4KbvU!YLsi1EDQQCnb+-cM=K1io78o!v*);o<XwjaQH%)uIP&Zm?)Nfbfn;jIr z)d#!$gOe3QHp}2NBak@yYv3m(CPKkwI|{;d=gi552u?xj9ObCU^DJFQp4t4e1tPzM zvsRIGZ6VF+{6PvqsplMZWhz10YwS={?`~O0Ec$`-!klNUYtzWA^f9m7tkEzCy<_nS z=&<(awFeZvt51>@o_~>PLs05CY)$;}Oo$VDO)?l-{CS1Co=nxjqben*O1BR>#9`0^ zkwk^k-wcLCLGh|XLjdWv0_Hg54B&OzCE^3NCP}~OajK-LuRW53CkV~Su0U>zN%yQP zH8UH#W5P3-!ToO-2k&)}nFe`t+mdqCxxAHgcifup^gKpMObbox9LFK;LP3}0dP-UW z?Zo*^nrQ6*$FtZ(>kLCc2LY*|{!dUn$^RW~m9leoF|@Jy|M5p-G~j%+P0_#orRKf8 zvuu5<*XO!B?1E}-*SY~MOa$6c%2cM+xa8}_8x*aVn~57v&W(0mqN1W`5a7*VN{SUH zXz98DDyCnX2EPl-`Lesf`=AQT%YSDb`$%;(jUTrNen$NPJrlpPDP}prI>Ml!r6bCT;mjsg@X^#&<}CGf0JtR{Ecwd&)2zuhr#nqdgHj+g2n}GK9CHuwO zk>oZxy{vcOL)$8-}L^iVfJHAGfwN$prHjYV0ju}8%jWquw>}_W6j~m<}Jf!G?~r5&Rx)!9JNX!ts#SGe2HzobV5); zpj@&`cNcO&q+%*<%D7za|?m5qlmFK$=MJ_iv{aRs+BGVrs)98BlN^nMr{V_fcl_;jkzRju+c-y?gqBC_@J0dFLq-D9@VN&-`R9U;nv$Hg?>$oe4N&Ht$V_(JR3TG^! zzJsbQbi zFE6-{#9{G{+Z}ww!ycl*7rRdmU#_&|DqPfX3CR1I{Kk;bHwF6jh0opI`UV2W{*|nn zf_Y@%wW6APb&9RrbEN=PQRBEpM(N1w`81s=(xQj6 z-eO0k9=Al|>Ej|Mw&G`%q8e$2xVz1v4DXAi8G};R$y)ww638Y=9y$ZYFDM$}vzusg zUf+~BPX>(SjA|tgaFZr_e0{)+z9i6G#lgt=F_n$d=beAt0Sa0a7>z-?vcjl3e+W}+ z1&9=|vC=$co}-Zh*%3588G?v&U7%N1Qf-wNWJ)(v`iO5KHSkC5&g7CrKu8V}uQGcfcz zmBz#Lbqwqy#Z~UzHgOQ;Q-rPxrRNvl(&u6ts4~0=KkeS;zqURz%!-ERppmd%0v>iRlEf+H$yl{_8TMJzo0 z>n)`On|7=WQdsqhXI?#V{>+~}qt-cQbokEbgwV3QvSP7&hK4R{Z{aGHVS3;+h{|Hz z6$Js}_AJr383c_+6sNR|$qu6dqHXQTc6?(XWPCVZv=)D#6_;D_8P-=zOGEN5&?~8S zl5jQ?NL$c%O)*bOohdNwGIKM#jSAC?BVY={@A#c9GmX0=T(0G}xs`-%f3r=m6-cpK z!%waekyAvm9C3%>sixdZj+I(wQlbB4wv9xKI*T13DYG^T%}zZYJ|0$Oj^YtY+d$V$ zAVudSc-)FMl|54n=N{BnZTM|!>=bhaja?o7s+v1*U$!v!qQ%`T-6fBvmdPbVmro&d zk07TOp*KuxRUSTLRrBj{mjsnF8`d}rMViY8j`jo~Hp$fkv9F_g(jUo#Arp;Xw0M$~ zRIN!B22~$kx;QYmOkos@%|5k)!QypDMVe}1M9tZfkpXKGOxvKXB!=lo`p?|R1l=tA zp(1}c6T3Fwj_CPJwVsYtgeRKg?9?}%oRq0F+r+kdB=bFUdVDRPa;E~~>2$w}>O>v=?|e>#(-Lyx?nbg=ckJ#5U6;RT zNvHhXk$P}m9wSvFyU3}=7!y?Y z=fg$PbV8d7g25&-jOcs{%}wTDKm>!Vk);&rr;O1nvO0VrU&Q?TtYVU=ir`te8SLlS zKSNmV=+vF|ATGg`4$N1uS|n??f}C_4Sz!f|4Ly8#yTW-FBfvS48Tef|-46C(wEO_%pPhUC5$-~Y?!0vFZ^Gu`x=m7X99_?C-`|h zfmMM&Y@zdfitA@KPw4Mc(YHcY1)3*1xvW9V-r4n-9ZuBpFcf{yz+SR{ zo$ZSU_|fgwF~aakGr(9Be`~A|3)B=9`$M-TWKipq-NqRDRQc}ABo*s_5kV%doIX7LRLRau_gd@Rd_aLFXGSU+U?uAqh z8qusWWcvgQ&wu{|sRXmv?sl=xc<$6AR$+cl& zFNh5q1~kffG{3lDUdvEZu5c(aAG~+64FxdlfwY^*;JSS|m~CJusvi-!$XR`6@XtY2 znDHSz7}_Bx7zGq-^5{stTRy|I@N=>*y$zz>m^}^{d&~h;0kYiq8<^Wq7Dz0w31ShO^~LUfW6rfitR0(=3;Uue`Y%y@ex#eKPOW zO~V?)M#AeHB2kovn1v=n^D?2{2jhIQd9t|_Q+c|ZFaWt+r&#yrOu-!4pXAJuxM+Cx z*H&>eZ0v8Y`t}8{TV6smOj=__gFC=eah)mZt9gwz>>W$!>b3O;Rm^Ig*POZP8Rl0f zT~o=Nu1J|lO>}xX&#P58%Yl z83`HRs5#32Qm9mdCrMlV|NKNC+Z~ z9OB8xk5HJ>gBLi+m@(pvpw)1(OaVJKs*$Ou#@Knd#bk+V@y;YXT?)4eP9E5{J%KGtYinNYJUH9PU3A}66c>Xn zZ{Bn0<;8$WCOAL$^NqTjwM?5d=RHgw3!72WRo0c;+houoUA@HWLZM;^U$&sycWrFd zE7ekt9;kb0`lps{>R(}YnXlyGY}5pPd9zBpgXeJTY_jwaJGSJQC#-KJqmh-;ad&F- z-Y)E>!&`Rz!HtCz>%yOJ|v(u7P*I$jqEY3}(Z-orn4 zlI?CYKNl`6I){#2P1h)y(6?i;^z`N3bxTV%wNvQW+eu|x=kbj~s8rhCR*0H=iGkSj zk23lr9kr|p7#qKL=UjgO`@UnvzU)`&fI>1Qs7ubq{@+lK{hH* zvl6eSb9%yngRn^T<;jG1SVa)eA>T^XX=yUS@NCKpk?ovCW1D@!=@kn;l_BrG;hOTC z6K&H{<8K#dI(A+zw-MWxS+~{g$tI7|SfP$EYKxA}LlVO^sT#Oby^grkdZ^^lA}uEF zBSj$weBJG{+Bh@Yffzsw=HyChS(dtLE3i*}Zj@~!_T-Ay7z=B)+*~3|?w`Zd)Co2t zC&4DyB!o&YgSw+fJn6`sn$e)29`kUwAc+1MND7YjV%lO;H2}fNy>hD#=gT ze+-aFNpyKIoXY~Vq-}OWPBe?Rfu^{ps8>Xy%42r@RV#*QV~P83jdlFNgkPN=T|Kt7 zV*M`Rh*30&AWlb$;ae130e@}Tqi3zx2^JQHpM>j$6x`#{mu%tZlwx9Gj@Hc92IuY* zarmT|*d0E~vt6<+r?W^UW0&#U&)8B6+1+;k^2|FWBRP9?C4Rk)HAh&=AS8FS|NQaZ z2j!iZ)nbEyg4ZTp-zHwVlfLC~tXIrv(xrP8PAtR{*c;T24ycA-;auWsya-!kF~CWZ zw_uZ|%urXgUbc@x=L=_g@QJ@m#5beS@6W195Hn7>_}z@Xt{DIEA`A&V82bc^#!q8$ zFh?z_Vn|ozJ;NPd^5uu(9tspo8t%&-U9Ckay-s@DnM*R5rtu|4)~e)`z0P-sy?)kc zs_k&J@0&0!q4~%cKL)2l;N*T&0;mqX5T{Qy60%JtKTQZ-xb%KOcgqwJmb%MOOKk7N zgq})R_6**{8A|6H?fO+2`#QU)p$Ei2&nbj6TpLSIT^D$|`TcSeh+)}VMb}LmvZ{O| ze*1IdCt3+yhdYVxcM)Q_V0bIXLgr6~%JS<<&dxIgfL=Vnx4YHuU@I34JXA|+$_S3~ zy~X#gO_X!cSs^XM{yzDGNM>?v(+sF#<0;AH^YrE8smx<36bUsHbN#y57K8WEu(`qHvQ6cAZPo=J5C(lSmUCZ57Rj6cx!e^rfaI5%w}unz}4 zoX=nt)FVNV%QDJH`o!u9olLD4O5fl)xp+#RloZlaA92o3x4->?rB4`gS$;WO{R;Z3>cG3IgFX2EA?PK^M}@%1%A;?f6}s&CV$cIyEr#q5;yHdNZ9h{| z-=dX+a5elJoDo?Eq&Og!nN6A)5yYpnGEp}?=!C-V)(*~z-+?kY1Q7qs#Rsy%hu_60rdbB+QQNr?S1 z?;xtjUv|*E3}HmuNyB9aFL5H~3Ho0UsmuMZELp1a#CA1g`P{-mT?BchuLEtK}!QZ=3AWakRu~?f9V~3F;TV`5%9Pcs_$gq&CcU}r8gOO zC2&SWPsSG{&o-LIGTBqp6SLQZPvYKp$$7L4WRRZ0BR$Kf0I0SCFkqveCp@f)o8W)! z$%7D1R`&j7W9Q9CGus_)b%+B#J2G;l*FLz#s$hw{BHS~WNLODV#(!u_2Pe&tMsq={ zdm7>_WecWF#D=?eMjLj=-_z`aHMZ=3_-&E8;ibPmM}61i6J3is*=dKf%HC>=xbj4$ zS|Q-hWQ8T5mWde6h@;mS+?k=89?1FU<%qH9B(l&O>k|u_aD|DY*@~(`_pb|B#rJ&g zR0(~(68fpUPz6TdS@4JT5MOPrqDh5_H(eX1$P2SQrkvN8sTxwV>l0)Qq z0pzTuvtEAKRDkKGhhv^jk%|HQ1DdF%5oKq5BS>szk-CIke{%js?~%@$uaN3^Uz6Wf z_iyx{bZ(;9y4X&>LPV=L=d+A}7I4GkK0c1Xts{rrW1Q7apHf-))`BgC^0^F(>At1* za@e7{lq%yAkn*NH8Q1{@{lKhRg*^TfGvv!Sn*ed*x@6>M%aaqySxR|oNadYt1mpUZ z6H(rupHYf&Z z29$5g#|0MX#aR6TZ$@eGxxABRKakDYtD%5BmKp;HbG_ZbT+=81E&=XRk6m_3t9PvD zr5Cqy(v?gHcYvYvXkNH@S#Po~q(_7MOuCAB8G$a9BC##gw^5mW16cML=T=ERL7wsk zzNEayTG?mtB=x*wc@ifBCJ|irFVMOvH)AFRW8WE~U()QT=HBCe@s$dA9O!@`zAAT) zaOZ7l6vyR+Nk_OOF!ZlZmjoImKh)dxFbbR~z(cMhfeX1l7S_`;h|v3gI}n9$sSQ>+3@AFAy9=B_y$)q;Wdl|C-X|VV3w8 z2S#>|5dGA8^9%Bu&fhmVRrTX>Z7{~3V&0UpJNEl0=N32euvDGCJ>#6dUSi&PxFW*s zS`}TB>?}H(T2lxBJ!V#2taV;q%zd6fOr=SGHpoSG*4PDaiG0pdb5`jelVipkEk%FV zThLc@Hc_AL1#D&T4D=w@UezYNJ%0=f3iVRuVL5H?eeZM}4W*bomebEU@e2d`M<~uW zf#Bugwf`VezG|^Qbt6R_=U0}|=k;mIIakz99*>FrsQR{0aQRP6ko?5<7bkDN8evZ& zB@_KqQG?ErKL=1*ZM9_5?Pq%lcS4uLSzN(Mr5=t6xHLS~Ym`UgM@D&VNu8e?_=nSFtF$u@hpPSmI4Vo_t&v?>$~K4y(O~Rb*(MFy_igM7 z*~yYUyR6yQgzWnWMUgDov!!g=lInM+=lOmOk4L`O?{i&qxy&D*_qorRbDwj6?)!ef z#JLd7F6Z2I$S0iYI={rZNk*<{HtIl^mx=h>Cim*04K4+Z4IJtd*-)%6XV2(MCscPiw_a+y*?BKbTS@BZ3AUao^%Zi#PhoY9Vib4N>SE%4>=Jco0v zH_Miey{E;FkdlZSq)e<{`+S3W=*ttvD#hB8w=|2aV*D=yOV}(&p%0LbEWH$&@$X3x~CiF-?ejQ*N+-M zc8zT@3iwkdRT2t(XS`d7`tJQAjRmKAhiw{WOqpuvFp`i@Q@!KMhwKgsA}%@sw8Xo5Y=F zhRJZg)O4uqNWj?V&&vth*H#je6T}}p_<>!Dr#89q@uSjWv~JuW(>FqoJ5^ho0%K?E z9?x_Q;kmcsQ@5=}z@tdljMSt9-Z3xn$k)kEjK|qXS>EfuDmu(Z8|(W?gY6-l z@R_#M8=vxKMAoi&PwnaIYw2COJM@atcgfr=zK1bvjW?9B`-+Voe$Q+H$j!1$Tjn+* z&LY<%)L@;zhnJlB^Og6I&BOR-m?{IW;tyYC%FZ!&Z>kGjHJ6cqM-F z&19n+e1=9AH1VrVeHrIzqlC`w9=*zfmrerF?JMzO&|Mmv;!4DKc(sp+jy^Dx?(8>1 zH&yS_4yL7m&GWX~mdfgH*AB4{CKo;+egw=PrvkTaoBU+P-4u?E|&!c z)DKc;>$$B6u*Zr1SjUh2)FeuWLWHl5TH(UHWkf zLs>7px!c5n;rbe^lO@qlYLzlDVp(z?6rPZel=YB)Uv&n!2{+Mb$-vQl=xKw( zve&>xYx+jW_NJh!FV||r?;hdP*jOXYcLCp>DOtJ?2S^)DkM{{Eb zS$!L$e_o0(^}n3tA1R3-$SNvgBq;DOEo}fNc|tB%%#g4RA3{|euq)p+xd3I8^4E&m zFrD%}nvG^HUAIKe9_{tXB;tl|G<%>yk6R;8L2)KUJw4yHJXUOPM>(-+jxq4R;z8H#>rnJy*)8N+$wA$^F zN+H*3t)eFEgxLw+Nw3};4WV$qj&_D`%ADV2%r zJCPCo%{=z7;`F98(us5JnT(G@sKTZ^;2FVitXyLe-S5(hV&Ium+1pIUB(CZ#h|g)u zSLJJ<@HgrDiA-}V_6B^x1>c9B6%~847JkQ!^KLZ2skm;q*edo;UA)~?SghG8;QbHh z_6M;ouo_1rq9=x$<`Y@EA{C%6-pEV}B(1#sDoe_e1s3^Y>n#1Sw;N|}8D|s|VPd+g z-_$QhCz`vLxxrVMx3ape1xu3*wjx=yKSlM~nFgkNWb4?DDr*!?U)L_VeffF<+!j|b zZ$Wn2$TDv3C3V@BHpSgv3JUif8%hk%OsGZ=OxH@8&4`bbf$`aAMchl^qN>Eyu3JH} z9-S!x8-s4fE=lad%Pkp8hAs~u?|uRnL48O|;*DEU! zuS0{cpk%1E0nc__2%;apFsTm0bKtd&A0~S3Cj^?72-*Owk3V!ZG*PswDfS~}2<8le z5+W^`Y(&R)yVF*tU_s!XMcJS`;(Tr`J0%>p=Z&InR%D3@KEzzI+-2)HK zuoNZ&o=wUC&+*?ofPb0a(E6(<2Amd6%uSu_^-<1?hsxs~0K5^f(LsGqgEF^+0_H=uNk9S0bb!|O8d?m5gQjUKevPaO+*VfSn^2892K~%crWM8+6 z25@V?Y@J<9w%@NXh-2!}SK_(X)O4AM1-WTg>sj1{lj5@=q&dxE^9xng1_z9w9DK>| z6Iybcd0e zyi;Ew!KBRIfGPGytQ6}z}MeXCfLY0?9%RiyagSp_D1?N&c{ zyo>VbJ4Gy`@Fv+5cKgUgs~na$>BV{*em7PU3%lloy_aEovR+J7TfQKh8BJXyL6|P8un-Jnq(ghd!_HEOh$zlv2$~y3krgeH;9zC}V3f`uDtW(%mT#944DQa~^8ZI+zAUu4U(j0YcDfKR$bK#gvn_{JZ>|gZ5+)u?T$w7Q%F^;!Wk?G z(le7r!ufT*cxS}PR6hIVtXa)i`d$-_1KkyBU>qmgz-=T};uxx&sKgv48akIWQ89F{ z0XiY?WM^~;|T8zBOr zs#zuOONzH?svv*jokd5SK8wG>+yMC)LYL|vLqm^PMHcT=`}V$=nIRHe2?h)8WQa6O zPAU}d`1y(>kZiP~Gr=mtJLMu`i<2CspL|q2DqAgAD^7*$xzM`PU4^ga`ilE134XBQ z99P(LhHU@7qvl9Yzg$M`+dlS=x^(m-_3t|h>S}E0bcFMn=C|KamQ)=w2^e)35p`zY zRV8X?d;s^>Cof2SPR&nP3E+-LCkS0J$H!eh8~k0qo$}00b=7!H_I2O+Ro@3O$nPdm ztmbOO^B+IHzQ5w>@@@J4cKw5&^_w6s!s=H%&byAbUtczPQ7}wfTqxxtQNfn*u73Qw zGuWsrky_ajPx-5`R<)6xHf>C(oqGf_Fw|-U*GfS?xLML$kv;h_pZ@Kk$y0X(S+K80 z6^|z)*`5VUkawg}=z`S;VhZhxyDfrE0$(PMurAxl~<>lfZa>JZ288ULK7D` zl9|#L^JL}Y$j*j`0-K6kH#?bRmg#5L3iB4Z)%iF@SqT+Lp|{i`m%R-|ZE94Np7Pa5 zCqC^V3}B(FR340pmF*qaa}M}+h6}mqE~7Sh!9bDv9YRT|>vBNAqv09zXHMlcuhKD| zcjjA(b*XCIwJ33?CB!+;{)vX@9xns_b-VO{i0y?}{!sdXj1GM8+$#v>W7nw;+O_9B z_{4L;C6ol?(?W0<6taGEn1^uG=?Q3i29sE`RfYCaV$3DKc_;?HsL?D_fSYg}SuO5U zOB_f4^vZ_x%o`5|C@9C5+o=mFy@au{s)sKw!UgC&L35aH(sgDxRE2De%(%OT=VUdN ziVLEmdOvJ&5*tCMKRyXctCwQu_RH%;m*$YK&m;jtbdH#Ak~13T1^f89tn`A%QEHWs~jnY~E}p_Z$XC z=?YXLCkzVSK+Id`xZYTegb@W8_baLt-Fq`Tv|=)JPbFsKRm)4UW;yT+J`<)%#ue9DPOkje)YF2fsCilK9MIIK>p*`fkoD5nGfmLwt)!KOT+> zOFq*VZktDDyM3P5UOg`~XL#cbzC}eL%qMB=Q5$d89MKuN#$6|4gx_Jt0Gfn8w&q}%lq4QU%6#jT*MRT% zrLz~C8FYKHawn-EQWN1B75O&quS+Z81(zN)G>~vN8VwC+e+y(`>HcxC{MrJ;H1Z4k zZWuv$w_F0-Ub%MVcpIc){4PGL^I7M{>;hS?;eH!;gmcOE66z3;Z1Phqo(t zVP(Hg6q#0gIKgsg7L7WE!{Y#1nI(45tx2{$34dDd#!Z0NIyrm)HOn5W#7;f4pQci# zDW!FI(g4e668kI9{2+mLwB+=#9bfqgX%!B34V-$wwSN(_cm*^{y0jQtv*4}eO^sOV z*9xoNvX)c9isB}Tgx&ZRjp3kwhTVK?r9;n!x>^XYT z@Q^7zp{rkIs{2mUSE^2!Gf6$6;j~&4=-0cSJJDizZp6LTe8b45;{AKM%v99}{{FfC zz709%u0mC=1KXTo(=TqmZQ;c?$M3z(!xah>aywrj40sc2y3rKFw4jCq+Y+u=CH@_V zxz|qeTwa>+<|H%8Dz5u>ZI5MmjTFwXS-Fv!TDd*`>3{krWoNVx$<133`(ftS?ZPyY z&4@ah^3^i`vL$BZa>O|Nt?ucewzsF)0zX3qmM^|waXr=T0pfIb0*$AwU=?Ipl|1Y; z*Pk6{C-p4MY;j@IJ|DW>QHZQJcp;Z~?8(Q+Kk3^0qJ}SCk^*n4W zu9ZFwLHUx-$6xvaQ)SUQcYd6fF8&x)V`1bIuX@>{mE$b|Yd(qomn3;bPwnDUc0F=; zh*6_((%bqAYQWQ~odER?h>1mkL4kpb3s7`0m@rDKGU*oyF)$j~Ffd4fXV$?`f~rHf zB%Y)@5SXZvfwm10RY5X?TEo)PK_`L6qgBp=#>fO49$D zDq8Ozj0q6213tV5Qq=;fZ0$|KroY{Dz=l@lU^J)?Ko@ti20TRplXzphBi>XGx4bou zEWrkNjz0t5j!_ke{g5I#PUlEU$Km8g8TE|XK=MkU@PT4T><2OVamoK;wJ}3X0L$vX zgd7gNa359*nc)R-0!`2X@FOTB`+oETOPc=ubp5R)VQgY+5BTZZJ2?9QwnO=dnulIUF3gFn;BODC2)65)HeVd%t86sL7Rv^Y+nbn+&l z6BAJY(ETvwI)Ts$aiE8rht4KD*qNyE{8{x6R|%akbTBzw;2+6Echkt+W+`u^XX z_z&x%n '} -case $link in #( -/*) app_path=$link ;; #( -*) app_path=$APP_HOME$link ;; -esac -done - -# This is normally unused -# shellcheck disable=SC2034 -APP_BASE_NAME=${0##*/} -# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { -echo "$*" -} >&2 - -die () { -echo -echo "$*" -echo -exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( -CYGWIN* ) cygwin=true ;; #( -Darwin* ) darwin=true ;; #( -MSYS* | MINGW* ) msys=true ;; #( -NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then -if [ -x "$JAVA_HOME/jre/sh/java" ] ; then -# IBM's JDK on AIX uses strange locations for the executables -JAVACMD=$JAVA_HOME/jre/sh/java -else -JAVACMD=$JAVA_HOME/bin/java -fi -if [ ! -x "$JAVACMD" ] ; then -die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -else -JAVACMD=java -if ! command -v java >/dev/null 2>&1 -then -die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then -case $MAX_FD in #( -max*) -# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. -# shellcheck disable=SC2039,SC3045 -MAX_FD=$( ulimit -H -n ) || -warn "Could not query maximum file descriptor limit" -esac -case $MAX_FD in #( -'' | soft) :;; #( -*) -# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. -# shellcheck disable=SC2039,SC3045 -ulimit -n "$MAX_FD" || -warn "Could not set maximum file descriptor limit to $MAX_FD" -esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then -APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) -CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - -JAVACMD=$( cygpath --unix "$JAVACMD" ) - -# Now convert the arguments - kludge to limit ourselves to /bin/sh -for arg do -if -case $arg in #( --*) false ;; # don't mess with options #( -/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath -[ -e "$t" ] ;; #( -*) false ;; -esac -then -arg=$( cygpath --path --ignore --mixed "$arg" ) -fi -# Roll the args list around exactly as many times as the number of -# args, so each arg winds up back in the position where it started, but -# possibly modified. -# -# NB: a `for` loop captures its iteration list before it begins, so -# changing the positional parameters here affects neither the number of -# iterations, nor the values presented in `arg`. -shift # remove old arg -set -- "$@" "$arg" # push replacement arg -done -fi - - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, -# and any embedded shellness will be escaped. -# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be -# treated as '${Hostname}' itself on the command line. - -set -- \ -"-Dorg.gradle.appname=$APP_BASE_NAME" \ --classpath "$CLASSPATH" \ -org.gradle.wrapper.GradleWrapperMain \ -"$@" - -# Stop when "xargs" is not available. -if ! command -v xargs >/dev/null 2>&1 -then -die "xargs is not available" -fi - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( -printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | -xargs -n1 | -sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | -tr '\n' ' ' -)" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/sdks/java/gradlew.bat b/sdks/java/gradlew.bat deleted file mode 100644 index 25da30d..0000000 --- a/sdks/java/gradlew.bat +++ /dev/null @@ -1,92 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/sdks/java/pom.xml b/sdks/java/pom.xml deleted file mode 100644 index 88cf31b..0000000 --- a/sdks/java/pom.xml +++ /dev/null @@ -1,340 +0,0 @@ - - 4.0.0 - io.keynetra - keynetra-client - jar - keynetra-client - 0.1.1 - https://github.com/openapitools/openapi-generator - Official Java Client SDK for the KeyNetra authorization platform. - - scm:git:git://github.com/keynetra/keynetra-client-java.git - scm:git:ssh://github.com:keynetra/keynetra-client-java.git - https://github.com/keynetra/keynetra-client-java - - - - - Unlicense - http://unlicense.org - repo - - - - - - Sainath Sapa - business.keynetra@gmail.com - KeyNetra - https://keynetra.com - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - true - 128m - 512m - - -Xlint:all - -J-Xss4m - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.4.1 - - - enforce-maven - - enforce - - - - - 2.2.0 - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - - - - loggerPath - conf/log4j.properties - - - -Xms512m -Xmx1500m - methods - 10 - - - - - org.junit.jupiter - junit-jupiter-engine - ${junit-version} - - - - - maven-dependency-plugin - 3.6.1 - - - package - - copy-dependencies - - - ${project.build.directory}/lib - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.3.0 - - - - test-jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.5.0 - - - add_sources - generate-sources - - add-source - - - - src/main/java - - - - - add_test_sources - generate-test-sources - - add-test-source - - - - src/test/java - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.6.3 - - - attach-javadocs - - jar - - - - - none - - - http.response.details - a - Http Response Details: - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.3.0 - - - attach-sources - - jar-no-fork - - - - - - - com.diffplug.spotless - spotless-maven-plugin - ${spotless.version} - - - - - - - .gitignore - - - - - - true - 4 - - - - - - - - - - 1.8 - - true - - - - - - - - - - - - - - sign-artifacts - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.2.1 - - - sign-artifacts - verify - - sign - - - - - - - - - - - - - com.google.code.findbugs - jsr305 - 3.0.2 - - - com.squareup.okhttp3 - okhttp - ${okhttp-version} - - - com.squareup.okhttp3 - logging-interceptor - ${okhttp-version} - - - com.google.code.gson - gson - ${gson-version} - - - io.gsonfire - gson-fire - ${gson-fire-version} - - - org.apache.commons - commons-lang3 - ${commons-lang3-version} - - - jakarta.annotation - jakarta.annotation-api - ${jakarta-annotation-version} - provided - - - org.openapitools - jackson-databind-nullable - ${jackson-databind-nullable-version} - - - jakarta.ws.rs - jakarta.ws.rs-api - ${jakarta.ws.rs-api-version} - - - - org.junit.jupiter - junit-jupiter-engine - ${junit-version} - test - - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - - - - 1.8 - ${java.version} - ${java.version} - 1.9.0 - 4.12.0 - 2.10.1 - 3.18.0 - 0.2.9 - 1.3.5 - 2.0.2 - 5.10.3 - 1.10.0 - 2.1.6 - 1.1.1 - UTF-8 - 2.43.0 - - diff --git a/sdks/java/settings.gradle b/sdks/java/settings.gradle deleted file mode 100644 index 6ce65b0..0000000 --- a/sdks/java/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "keynetra-client" \ No newline at end of file diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md deleted file mode 100644 index 342c323..0000000 --- a/sdks/kotlin/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# keynetra-client-kotlin - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/kotlin) - -Official Kotlin Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Kotlin applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -implementation("io.keynetra:keynetra-client-kotlin:0.1.1") -``` - -## ๐Ÿš€ Quick Start - -```kotlin -import io.keynetra.client.KeyNetraClient - -val client = KeyNetraClient( - baseUrl = "http://localhost:8080", - apiKey = "YOUR_API_KEY" -) - -// Perform an access check -val decision = client.accessApi.checkAccess(...) -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/kotlin). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-kotlin](https://github.com/keynetra/keynetra-client-kotlin) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-kotlin/issues) -- **License**: Apache-2.0 - diff --git a/sdks/kotlin/build.gradle.kts b/sdks/kotlin/build.gradle.kts deleted file mode 100644 index f09c9d0..0000000 --- a/sdks/kotlin/build.gradle.kts +++ /dev/null @@ -1,98 +0,0 @@ -import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget - -plugins { - kotlin("multiplatform") version "2.2.20" // kotlin_version - kotlin("plugin.serialization") version "2.2.20" // kotlin_version -} - -group = "io.keynetra" -version = "0.1.1" - -val kotlin_version = "2.2.20" -val coroutines_version = "1.10.2" -val serialization_version = "1.9.0" -val ktor_version = "3.2.3" - -repositories { - mavenCentral() -} - -kotlin { - jvm() - iosX64() - iosArm64() - iosSimulatorArm64() - js { - browser() - nodejs() - } - - sourceSets { - commonMain { - dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serialization_version") - - api("io.ktor:ktor-client-core:$ktor_version") - api("io.ktor:ktor-client-serialization:$ktor_version") - api("io.ktor:ktor-client-content-negotiation:$ktor_version") - api("io.ktor:ktor-serialization-kotlinx-json:$ktor_version") - - api("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1") - } - } - - commonTest { - dependencies { - implementation(kotlin("test")) - implementation("io.ktor:ktor-client-mock:$ktor_version") - } - } - - jvmMain { - dependencies { - implementation(kotlin("stdlib-jdk7")) - implementation("io.ktor:ktor-client-cio-jvm:$ktor_version") - } - } - - jvmTest { - dependencies { - implementation(kotlin("test-junit")) - } - } - - iosMain { - dependencies { - api("io.ktor:ktor-client-ios:$ktor_version") - } - } - - jsMain { - dependencies { - api("io.ktor:ktor-client-js:$ktor_version") - } - } - - all { - languageSettings { - optIn("kotlin.time.ExperimentalTime") - } - } - } -} - -tasks { - register("iosTest") { - val device = project.findProperty("device")?.toString() ?: "iPhone 8" - dependsOn("linkDebugTestIosX64") - group = JavaBasePlugin.VERIFICATION_GROUP - description = "Execute unit tests on ${device} simulator" - val binary = kotlin.targets.getByName("iosX64").binaries.getTest("DEBUG") - commandLine("xcrun", "simctl", "spawn", device, binary.outputFile) - } - register("test") { - dependsOn("allTests") - } -} diff --git a/sdks/kotlin/docs/ACLCreate.md b/sdks/kotlin/docs/ACLCreate.md deleted file mode 100644 index d29e53e..0000000 --- a/sdks/kotlin/docs/ACLCreate.md +++ /dev/null @@ -1,15 +0,0 @@ - -# ACLCreate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **subjectType** | **kotlin.String** | | | -| **subjectId** | **kotlin.String** | | | -| **resourceType** | **kotlin.String** | | | -| **resourceId** | **kotlin.String** | | | -| **action** | **kotlin.String** | | | -| **effect** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/ACLOut.md b/sdks/kotlin/docs/ACLOut.md deleted file mode 100644 index 87cc616..0000000 --- a/sdks/kotlin/docs/ACLOut.md +++ /dev/null @@ -1,18 +0,0 @@ - -# ACLOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **subjectType** | **kotlin.String** | | | -| **subjectId** | **kotlin.String** | | | -| **resourceType** | **kotlin.String** | | | -| **resourceId** | **kotlin.String** | | | -| **action** | **kotlin.String** | | | -| **effect** | **kotlin.String** | | | -| **id** | **kotlin.Int** | | | -| **tenantId** | **kotlin.Int** | | | -| **createdAt** | [**kotlin.time.Instant**](kotlin.time.Instant.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/AccessApi.md b/sdks/kotlin/docs/AccessApi.md deleted file mode 100644 index cc7636a..0000000 --- a/sdks/kotlin/docs/AccessApi.md +++ /dev/null @@ -1,162 +0,0 @@ -# AccessApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**checkAccessBatchCheckAccessBatchPost**](AccessApi.md#checkAccessBatchCheckAccessBatchPost) | **POST** /check-access-batch | Check Access Batch | -| [**checkAccessCheckAccessPost**](AccessApi.md#checkAccessCheckAccessPost) | **POST** /check-access | Check Access | -| [**simulateSimulatePost**](AccessApi.md#simulateSimulatePost) | **POST** /simulate | Simulate | - - - -# **checkAccessBatchCheckAccessBatchPost** -> SuccessResponseBatchAccessResponse checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) - -Check Access Batch - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = AccessApi() -val batchAccessRequest : BatchAccessRequest = // BatchAccessRequest | -val policySet : kotlin.String = policySet_example // kotlin.String | -try { - val result : SuccessResponseBatchAccessResponse = apiInstance.checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) - println(result) -} catch (e: ClientException) { - println("4xx response calling AccessApi#checkAccessBatchCheckAccessBatchPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling AccessApi#checkAccessBatchCheckAccessBatchPost") - e.printStackTrace() -} -``` - -### Parameters -| **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md)| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policySet** | **kotlin.String**| | [optional] [default to "active"] | - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **checkAccessCheckAccessPost** -> SuccessResponseAccessDecisionResponse checkAccessCheckAccessPost(accessRequest, policySet) - -Check Access - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = AccessApi() -val accessRequest : AccessRequest = // AccessRequest | -val policySet : kotlin.String = policySet_example // kotlin.String | -try { - val result : SuccessResponseAccessDecisionResponse = apiInstance.checkAccessCheckAccessPost(accessRequest, policySet) - println(result) -} catch (e: ClientException) { - println("4xx response calling AccessApi#checkAccessCheckAccessPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling AccessApi#checkAccessCheckAccessPost") - e.printStackTrace() -} -``` - -### Parameters -| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policySet** | **kotlin.String**| | [optional] [default to "active"] | - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **simulateSimulatePost** -> SuccessResponseSimulationResponse simulateSimulatePost(accessRequest) - -Simulate - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = AccessApi() -val accessRequest : AccessRequest = // AccessRequest | -try { - val result : SuccessResponseSimulationResponse = apiInstance.simulateSimulatePost(accessRequest) - println(result) -} catch (e: ClientException) { - println("4xx response calling AccessApi#simulateSimulatePost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling AccessApi#simulateSimulatePost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **accessRequest** | [**AccessRequest**](AccessRequest.md)| | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/sdks/kotlin/docs/AccessDecisionResponse.md b/sdks/kotlin/docs/AccessDecisionResponse.md deleted file mode 100644 index ed79de5..0000000 --- a/sdks/kotlin/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - -# AccessDecisionResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **allowed** | **kotlin.Boolean** | | | -| **decision** | **kotlin.String** | | | -| **matchedPolicies** | **kotlin.collections.List<kotlin.String>** | | [optional] | -| **reason** | **kotlin.String** | | [optional] | -| **policyId** | **kotlin.String** | | [optional] | -| **explainTrace** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.Any>>** | | [optional] | -| **revision** | **kotlin.Int** | | [optional] | - - - diff --git a/sdks/kotlin/docs/AccessRequest.md b/sdks/kotlin/docs/AccessRequest.md deleted file mode 100644 index f2947c1..0000000 --- a/sdks/kotlin/docs/AccessRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - -# AccessRequest - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | -| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **context** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **consistency** | **kotlin.String** | | [optional] | -| **revision** | **kotlin.Int** | | [optional] | - - - diff --git a/sdks/kotlin/docs/AdminLoginRequest.md b/sdks/kotlin/docs/AdminLoginRequest.md deleted file mode 100644 index 45259f8..0000000 --- a/sdks/kotlin/docs/AdminLoginRequest.md +++ /dev/null @@ -1,11 +0,0 @@ - -# AdminLoginRequest - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **username** | **kotlin.String** | | | -| **password** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/AdminLoginResponse.md b/sdks/kotlin/docs/AdminLoginResponse.md deleted file mode 100644 index d4d55e6..0000000 --- a/sdks/kotlin/docs/AdminLoginResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - -# AdminLoginResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **accessToken** | **kotlin.String** | | | -| **expiresIn** | **kotlin.Int** | | | -| **tenantKey** | **kotlin.String** | | | -| **tokenType** | **kotlin.String** | | [optional] | -| **role** | **kotlin.String** | | [optional] | - - - diff --git a/sdks/kotlin/docs/AuditRecordOut.md b/sdks/kotlin/docs/AuditRecordOut.md deleted file mode 100644 index 9c053a3..0000000 --- a/sdks/kotlin/docs/AuditRecordOut.md +++ /dev/null @@ -1,22 +0,0 @@ - -# AuditRecordOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **kotlin.Int** | | | -| **principalType** | **kotlin.String** | | | -| **principalId** | **kotlin.String** | | | -| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **action** | **kotlin.String** | | | -| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **decision** | **kotlin.String** | | | -| **matchedPolicies** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | | -| **evaluatedRules** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | | -| **failedConditions** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | | -| **createdAt** | [**kotlin.time.Instant**](kotlin.time.Instant.md) | | | -| **correlationId** | **kotlin.String** | | [optional] | -| **reason** | **kotlin.String** | | [optional] | - - - diff --git a/sdks/kotlin/docs/AuthApi.md b/sdks/kotlin/docs/AuthApi.md deleted file mode 100644 index d31e2ac..0000000 --- a/sdks/kotlin/docs/AuthApi.md +++ /dev/null @@ -1,98 +0,0 @@ -# AuthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**adminLoginAdminLoginPost**](AuthApi.md#adminLoginAdminLoginPost) | **POST** /admin/login | Admin Login | -| [**adminLoginAdminLoginPost_0**](AuthApi.md#adminLoginAdminLoginPost_0) | **POST** /admin/login | Admin Login | - - - -# **adminLoginAdminLoginPost** -> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost(adminLoginRequest) - -Admin Login - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = AuthApi() -val adminLoginRequest : AdminLoginRequest = // AdminLoginRequest | -try { - val result : SuccessResponseAdminLoginResponse = apiInstance.adminLoginAdminLoginPost(adminLoginRequest) - println(result) -} catch (e: ClientException) { - println("4xx response calling AuthApi#adminLoginAdminLoginPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling AuthApi#adminLoginAdminLoginPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **adminLoginAdminLoginPost_0** -> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost_0(adminLoginRequest) - -Admin Login - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = AuthApi() -val adminLoginRequest : AdminLoginRequest = // AdminLoginRequest | -try { - val result : SuccessResponseAdminLoginResponse = apiInstance.adminLoginAdminLoginPost_0(adminLoginRequest) - println(result) -} catch (e: ClientException) { - println("4xx response calling AuthApi#adminLoginAdminLoginPost_0") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling AuthApi#adminLoginAdminLoginPost_0") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md)| | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/sdks/kotlin/docs/AuthModelCreate.md b/sdks/kotlin/docs/AuthModelCreate.md deleted file mode 100644 index c1aa17b..0000000 --- a/sdks/kotlin/docs/AuthModelCreate.md +++ /dev/null @@ -1,10 +0,0 @@ - -# AuthModelCreate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **schema** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/AuthModelOut.md b/sdks/kotlin/docs/AuthModelOut.md deleted file mode 100644 index c004dce..0000000 --- a/sdks/kotlin/docs/AuthModelOut.md +++ /dev/null @@ -1,14 +0,0 @@ - -# AuthModelOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **kotlin.Int** | | | -| **tenantId** | **kotlin.Int** | | | -| **schema** | **kotlin.String** | | | -| **parsed** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **compiled** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | - - - diff --git a/sdks/kotlin/docs/BatchAccessItem.md b/sdks/kotlin/docs/BatchAccessItem.md deleted file mode 100644 index d01441f..0000000 --- a/sdks/kotlin/docs/BatchAccessItem.md +++ /dev/null @@ -1,11 +0,0 @@ - -# BatchAccessItem - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | -| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/BatchAccessRequest.md b/sdks/kotlin/docs/BatchAccessRequest.md deleted file mode 100644 index 023f935..0000000 --- a/sdks/kotlin/docs/BatchAccessRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - -# BatchAccessRequest - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **items** | [**kotlin.collections.List<BatchAccessItem>**](BatchAccessItem.md) | | | -| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **consistency** | **kotlin.String** | | [optional] | -| **revision** | **kotlin.Int** | | [optional] | - - - diff --git a/sdks/kotlin/docs/BatchAccessResponse.md b/sdks/kotlin/docs/BatchAccessResponse.md deleted file mode 100644 index 07f0b9f..0000000 --- a/sdks/kotlin/docs/BatchAccessResponse.md +++ /dev/null @@ -1,11 +0,0 @@ - -# BatchAccessResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **results** | [**kotlin.collections.List<BatchAccessResult>**](BatchAccessResult.md) | | | -| **revision** | **kotlin.Int** | | [optional] | - - - diff --git a/sdks/kotlin/docs/BatchAccessResult.md b/sdks/kotlin/docs/BatchAccessResult.md deleted file mode 100644 index 2278420..0000000 --- a/sdks/kotlin/docs/BatchAccessResult.md +++ /dev/null @@ -1,12 +0,0 @@ - -# BatchAccessResult - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | -| **allowed** | **kotlin.Boolean** | | | -| **revision** | **kotlin.Int** | | [optional] | - - - diff --git a/sdks/kotlin/docs/DataValue.md b/sdks/kotlin/docs/DataValue.md deleted file mode 100644 index 8eeb8d7..0000000 --- a/sdks/kotlin/docs/DataValue.md +++ /dev/null @@ -1,9 +0,0 @@ - -# DataValue - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | - - - diff --git a/sdks/kotlin/docs/DevApi.md b/sdks/kotlin/docs/DevApi.md deleted file mode 100644 index c717253..0000000 --- a/sdks/kotlin/docs/DevApi.md +++ /dev/null @@ -1,95 +0,0 @@ -# DevApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**getSampleDataDevSampleDataGet**](DevApi.md#getSampleDataDevSampleDataGet) | **GET** /dev/sample-data | Get Sample Data | -| [**seedSampleDataDevSampleDataSeedPost**](DevApi.md#seedSampleDataDevSampleDataSeedPost) | **POST** /dev/sample-data/seed | Seed Sample Data | - - - -# **getSampleDataDevSampleDataGet** -> SuccessResponseDictStrObject getSampleDataDevSampleDataGet() - -Get Sample Data - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = DevApi() -try { - val result : SuccessResponseDictStrObject = apiInstance.getSampleDataDevSampleDataGet() - println(result) -} catch (e: ClientException) { - println("4xx response calling DevApi#getSampleDataDevSampleDataGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling DevApi#getSampleDataDevSampleDataGet") - e.printStackTrace() -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **seedSampleDataDevSampleDataSeedPost** -> SuccessResponseDictStrObject seedSampleDataDevSampleDataSeedPost(reset) - -Seed Sample Data - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = DevApi() -val reset : kotlin.Boolean = true // kotlin.Boolean | Clear the sample dataset before reseeding it. -try { - val result : SuccessResponseDictStrObject = apiInstance.seedSampleDataDevSampleDataSeedPost(reset) - println(result) -} catch (e: ClientException) { - println("4xx response calling DevApi#seedSampleDataDevSampleDataSeedPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling DevApi#seedSampleDataDevSampleDataSeedPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **reset** | **kotlin.Boolean**| Clear the sample dataset before reseeding it. | [optional] [default to false] | - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - diff --git a/sdks/kotlin/docs/HTTPValidationError.md b/sdks/kotlin/docs/HTTPValidationError.md deleted file mode 100644 index ef9e2ca..0000000 --- a/sdks/kotlin/docs/HTTPValidationError.md +++ /dev/null @@ -1,10 +0,0 @@ - -# HTTPValidationError - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **detail** | [**kotlin.collections.List<ValidationError>**](ValidationError.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/HealthApi.md b/sdks/kotlin/docs/HealthApi.md deleted file mode 100644 index 5651c85..0000000 --- a/sdks/kotlin/docs/HealthApi.md +++ /dev/null @@ -1,134 +0,0 @@ -# HealthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**healthHealthGet**](HealthApi.md#healthHealthGet) | **GET** /health | Health | -| [**livenessHealthLiveGet**](HealthApi.md#livenessHealthLiveGet) | **GET** /health/live | Liveness | -| [**readinessHealthReadyGet**](HealthApi.md#readinessHealthReadyGet) | **GET** /health/ready | Readiness | - - - -# **healthHealthGet** -> SuccessResponseDictStrStr healthHealthGet() - -Health - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = HealthApi() -try { - val result : SuccessResponseDictStrStr = apiInstance.healthHealthGet() - println(result) -} catch (e: ClientException) { - println("4xx response calling HealthApi#healthHealthGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling HealthApi#healthHealthGet") - e.printStackTrace() -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **livenessHealthLiveGet** -> SuccessResponseDictStrStr livenessHealthLiveGet() - -Liveness - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = HealthApi() -try { - val result : SuccessResponseDictStrStr = apiInstance.livenessHealthLiveGet() - println(result) -} catch (e: ClientException) { - println("4xx response calling HealthApi#livenessHealthLiveGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling HealthApi#livenessHealthLiveGet") - e.printStackTrace() -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **readinessHealthReadyGet** -> SuccessResponseDictStrObject readinessHealthReadyGet() - -Readiness - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = HealthApi() -try { - val result : SuccessResponseDictStrObject = apiInstance.readinessHealthReadyGet() - println(result) -} catch (e: ClientException) { - println("4xx response calling HealthApi#readinessHealthReadyGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling HealthApi#readinessHealthReadyGet") - e.printStackTrace() -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - diff --git a/sdks/kotlin/docs/ImpactAnalysisRequest.md b/sdks/kotlin/docs/ImpactAnalysisRequest.md deleted file mode 100644 index 4ece68c..0000000 --- a/sdks/kotlin/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,10 +0,0 @@ - -# ImpactAnalysisRequest - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **policyChange** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/ImpactAnalysisResponse.md b/sdks/kotlin/docs/ImpactAnalysisResponse.md deleted file mode 100644 index 988f40b..0000000 --- a/sdks/kotlin/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,11 +0,0 @@ - -# ImpactAnalysisResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **gainedAccess** | **kotlin.collections.List<kotlin.Int>** | | [optional] | -| **lostAccess** | **kotlin.collections.List<kotlin.Int>** | | [optional] | - - - diff --git a/sdks/kotlin/docs/LocationInner.md b/sdks/kotlin/docs/LocationInner.md deleted file mode 100644 index 7d15d8a..0000000 --- a/sdks/kotlin/docs/LocationInner.md +++ /dev/null @@ -1,9 +0,0 @@ - -# LocationInner - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | - - - diff --git a/sdks/kotlin/docs/ManagementApi.md b/sdks/kotlin/docs/ManagementApi.md deleted file mode 100644 index b409a73..0000000 --- a/sdks/kotlin/docs/ManagementApi.md +++ /dev/null @@ -1,1443 +0,0 @@ -# ManagementApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| [**createAclEntryAclPost**](ManagementApi.md#createAclEntryAclPost) | **POST** /acl | Create Acl Entry | -| [**createAuthModelAuthModelPost**](ManagementApi.md#createAuthModelAuthModelPost) | **POST** /auth-model | Create Auth Model | -| [**createPermissionPermissionsPost**](ManagementApi.md#createPermissionPermissionsPost) | **POST** /permissions | Create Permission | -| [**createPolicyFromDslPoliciesDslPost**](ManagementApi.md#createPolicyFromDslPoliciesDslPost) | **POST** /policies/dsl | Create Policy From Dsl | -| [**createPolicyPoliciesPost**](ManagementApi.md#createPolicyPoliciesPost) | **POST** /policies | Create Policy | -| [**createRelationshipRelationshipsPost**](ManagementApi.md#createRelationshipRelationshipsPost) | **POST** /relationships | Create Relationship | -| [**createRoleRolesPost**](ManagementApi.md#createRoleRolesPost) | **POST** /roles | Create Role | -| [**deleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteAclEntryAclAclIdDelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| [**deletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletePermissionPermissionsPermissionIdDelete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| [**deletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletePolicyPoliciesPolicyKeyDelete) | **DELETE** /policies/{policy_key} | Delete Policy | -| [**deleteRoleRolesRoleIdDelete**](ManagementApi.md#deleteRoleRolesRoleIdDelete) | **DELETE** /roles/{role_id} | Delete Role | -| [**getAuthModelAuthModelGet**](ManagementApi.md#getAuthModelAuthModelGet) | **GET** /auth-model | Get Auth Model | -| [**impactAnalysisImpactAnalysisPost**](ManagementApi.md#impactAnalysisImpactAnalysisPost) | **POST** /impact-analysis | Impact Analysis | -| [**listAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listAclEntriesAclResourceTypeResourceIdGet) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| [**listAuditLogsAuditGet**](ManagementApi.md#listAuditLogsAuditGet) | **GET** /audit | List Audit Logs | -| [**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listPermissionRolesPermissionsPermissionIdRolesGet) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| [**listPermissionsPermissionsGet**](ManagementApi.md#listPermissionsPermissionsGet) | **GET** /permissions | List Permissions | -| [**listPoliciesPoliciesGet**](ManagementApi.md#listPoliciesPoliciesGet) | **GET** /policies | List Policies | -| [**listRelationshipsRelationshipsGet**](ManagementApi.md#listRelationshipsRelationshipsGet) | **GET** /relationships | List Relationships | -| [**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listRolePermissionsRolesRoleIdPermissionsGet) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| [**listRolesRolesGet**](ManagementApi.md#listRolesRolesGet) | **GET** /roles | List Roles | -| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| [**simulatePolicySimulatePolicyPost**](ManagementApi.md#simulatePolicySimulatePolicyPost) | **POST** /simulate-policy | Simulate Policy | -| [**updatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatePermissionPermissionsPermissionIdPut) | **PUT** /permissions/{permission_id} | Update Permission | -| [**updatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatePolicyPoliciesPolicyKeyPut) | **PUT** /policies/{policy_key} | Update Policy | -| [**updateRoleRolesRoleIdPut**](ManagementApi.md#updateRoleRolesRoleIdPut) | **PUT** /roles/{role_id} | Update Role | - - - -# **addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** -> SuccessResponsePermissionOut addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) - -Add Permission To Role - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val roleId : kotlin.Int = 56 // kotlin.Int | -val permissionId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponsePermissionOut = apiInstance.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost") - e.printStackTrace() -} -``` - -### Parameters -| **roleId** | **kotlin.Int**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **createAclEntryAclPost** -> SuccessResponseACLOut createAclEntryAclPost(acLCreate) - -Create Acl Entry - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val acLCreate : ACLCreate = // ACLCreate | -try { - val result : SuccessResponseACLOut = apiInstance.createAclEntryAclPost(acLCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createAclEntryAclPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createAclEntryAclPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **acLCreate** | [**ACLCreate**](ACLCreate.md)| | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **createAuthModelAuthModelPost** -> SuccessResponseAuthModelOut createAuthModelAuthModelPost(authModelCreate) - -Create Auth Model - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val authModelCreate : AuthModelCreate = // AuthModelCreate | -try { - val result : SuccessResponseAuthModelOut = apiInstance.createAuthModelAuthModelPost(authModelCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createAuthModelAuthModelPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createAuthModelAuthModelPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md)| | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **createPermissionPermissionsPost** -> PermissionOut createPermissionPermissionsPost(permissionCreate) - -Create Permission - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val permissionCreate : PermissionCreate = // PermissionCreate | -try { - val result : PermissionOut = apiInstance.createPermissionPermissionsPost(permissionCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createPermissionPermissionsPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createPermissionPermissionsPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionCreate** | [**PermissionCreate**](PermissionCreate.md)| | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **createPolicyFromDslPoliciesDslPost** -> SuccessResponsePolicyOut createPolicyFromDslPoliciesDslPost(dsl) - -Create Policy From Dsl - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val dsl : kotlin.String = dsl_example // kotlin.String | -try { - val result : SuccessResponsePolicyOut = apiInstance.createPolicyFromDslPoliciesDslPost(dsl) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createPolicyFromDslPoliciesDslPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createPolicyFromDslPoliciesDslPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **dsl** | **kotlin.String**| | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **createPolicyPoliciesPost** -> SuccessResponsePolicyOut createPolicyPoliciesPost(policyCreate) - -Create Policy - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val policyCreate : PolicyCreate = // PolicyCreate | -try { - val result : SuccessResponsePolicyOut = apiInstance.createPolicyPoliciesPost(policyCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createPolicyPoliciesPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createPolicyPoliciesPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **createRelationshipRelationshipsPost** -> SuccessResponseRelationshipOut createRelationshipRelationshipsPost(relationshipCreate) - -Create Relationship - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val relationshipCreate : RelationshipCreate = // RelationshipCreate | -try { - val result : SuccessResponseRelationshipOut = apiInstance.createRelationshipRelationshipsPost(relationshipCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createRelationshipRelationshipsPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createRelationshipRelationshipsPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md)| | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **createRoleRolesPost** -> RoleOut createRoleRolesPost(roleCreate) - -Create Role - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val roleCreate : RoleCreate = // RoleCreate | -try { - val result : RoleOut = apiInstance.createRoleRolesPost(roleCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#createRoleRolesPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#createRoleRolesPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleCreate** | [**RoleCreate**](RoleCreate.md)| | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **deleteAclEntryAclAclIdDelete** -> SuccessResponseDictStrInt deleteAclEntryAclAclIdDelete(aclId) - -Delete Acl Entry - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val aclId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseDictStrInt = apiInstance.deleteAclEntryAclAclIdDelete(aclId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#deleteAclEntryAclAclIdDelete") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#deleteAclEntryAclAclIdDelete") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **aclId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **deletePermissionPermissionsPermissionIdDelete** -> SuccessResponseDictStrInt deletePermissionPermissionsPermissionIdDelete(permissionId) - -Delete Permission - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val permissionId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseDictStrInt = apiInstance.deletePermissionPermissionsPermissionIdDelete(permissionId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#deletePermissionPermissionsPermissionIdDelete") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#deletePermissionPermissionsPermissionIdDelete") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **deletePolicyPoliciesPolicyKeyDelete** -> SuccessResponseDictStrStr deletePolicyPoliciesPolicyKeyDelete(policyKey) - -Delete Policy - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val policyKey : kotlin.String = policyKey_example // kotlin.String | -try { - val result : SuccessResponseDictStrStr = apiInstance.deletePolicyPoliciesPolicyKeyDelete(policyKey) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#deletePolicyPoliciesPolicyKeyDelete") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#deletePolicyPoliciesPolicyKeyDelete") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyKey** | **kotlin.String**| | | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **deleteRoleRolesRoleIdDelete** -> SuccessResponseDictStrInt deleteRoleRolesRoleIdDelete(roleId) - -Delete Role - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val roleId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseDictStrInt = apiInstance.deleteRoleRolesRoleIdDelete(roleId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#deleteRoleRolesRoleIdDelete") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#deleteRoleRolesRoleIdDelete") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **getAuthModelAuthModelGet** -> SuccessResponseAuthModelOut getAuthModelAuthModelGet() - -Get Auth Model - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -try { - val result : SuccessResponseAuthModelOut = apiInstance.getAuthModelAuthModelGet() - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#getAuthModelAuthModelGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#getAuthModelAuthModelGet") - e.printStackTrace() -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **impactAnalysisImpactAnalysisPost** -> SuccessResponseImpactAnalysisResponse impactAnalysisImpactAnalysisPost(impactAnalysisRequest) - -Impact Analysis - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val impactAnalysisRequest : ImpactAnalysisRequest = // ImpactAnalysisRequest | -try { - val result : SuccessResponseImpactAnalysisResponse = apiInstance.impactAnalysisImpactAnalysisPost(impactAnalysisRequest) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#impactAnalysisImpactAnalysisPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#impactAnalysisImpactAnalysisPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md)| | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **listAclEntriesAclResourceTypeResourceIdGet** -> SuccessResponseListACLOut listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) - -List Acl Entries - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val resourceType : kotlin.String = resourceType_example // kotlin.String | -val resourceId : kotlin.String = resourceId_example // kotlin.String | -try { - val result : SuccessResponseListACLOut = apiInstance.listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listAclEntriesAclResourceTypeResourceIdGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listAclEntriesAclResourceTypeResourceIdGet") - e.printStackTrace() -} -``` - -### Parameters -| **resourceType** | **kotlin.String**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **resourceId** | **kotlin.String**| | | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listAuditLogsAuditGet** -> SuccessResponseListAuditRecordOut listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) - -List Audit Logs - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val limit : kotlin.Int = 56 // kotlin.Int | -val cursor : kotlin.String = cursor_example // kotlin.String | -val userId : kotlin.String = userId_example // kotlin.String | -val resourceId : kotlin.String = resourceId_example // kotlin.String | -val decision : kotlin.String = decision_example // kotlin.String | -val startTime : kotlin.time.Instant = 2013-10-20T19:20:30+01:00 // kotlin.time.Instant | -val endTime : kotlin.time.Instant = 2013-10-20T19:20:30+01:00 // kotlin.time.Instant | -try { - val result : SuccessResponseListAuditRecordOut = apiInstance.listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listAuditLogsAuditGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listAuditLogsAuditGet") - e.printStackTrace() -} -``` - -### Parameters -| **limit** | **kotlin.Int**| | [optional] [default to 50] | -| **cursor** | **kotlin.String**| | [optional] | -| **userId** | **kotlin.String**| | [optional] | -| **resourceId** | **kotlin.String**| | [optional] | -| **decision** | **kotlin.String**| | [optional] | -| **startTime** | **kotlin.time.Instant**| | [optional] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **endTime** | **kotlin.time.Instant**| | [optional] | - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listPermissionRolesPermissionsPermissionIdRolesGet** -> SuccessResponseListRoleOut listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) - -List Permission Roles - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val permissionId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseListRoleOut = apiInstance.listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listPermissionRolesPermissionsPermissionIdRolesGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listPermissionRolesPermissionsPermissionIdRolesGet") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listPermissionsPermissionsGet** -> SuccessResponseListPermissionOut listPermissionsPermissionsGet(limit, cursor) - -List Permissions - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val limit : kotlin.Int = 56 // kotlin.Int | -val cursor : kotlin.String = cursor_example // kotlin.String | -try { - val result : SuccessResponseListPermissionOut = apiInstance.listPermissionsPermissionsGet(limit, cursor) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listPermissionsPermissionsGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listPermissionsPermissionsGet") - e.printStackTrace() -} -``` - -### Parameters -| **limit** | **kotlin.Int**| | [optional] [default to 50] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **cursor** | **kotlin.String**| | [optional] | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listPoliciesPoliciesGet** -> SuccessResponseListPolicyOut listPoliciesPoliciesGet(limit, cursor) - -List Policies - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val limit : kotlin.Int = 56 // kotlin.Int | -val cursor : kotlin.String = cursor_example // kotlin.String | -try { - val result : SuccessResponseListPolicyOut = apiInstance.listPoliciesPoliciesGet(limit, cursor) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listPoliciesPoliciesGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listPoliciesPoliciesGet") - e.printStackTrace() -} -``` - -### Parameters -| **limit** | **kotlin.Int**| | [optional] [default to 50] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **cursor** | **kotlin.String**| | [optional] | - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listRelationshipsRelationshipsGet** -> SuccessResponseListDictStrStr listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) - -List Relationships - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val subjectType : kotlin.String = subjectType_example // kotlin.String | -val subjectId : kotlin.String = subjectId_example // kotlin.String | -val limit : kotlin.Int = 56 // kotlin.Int | -val cursor : kotlin.String = cursor_example // kotlin.String | -try { - val result : SuccessResponseListDictStrStr = apiInstance.listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listRelationshipsRelationshipsGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listRelationshipsRelationshipsGet") - e.printStackTrace() -} -``` - -### Parameters -| **subjectType** | **kotlin.String**| | | -| **subjectId** | **kotlin.String**| | | -| **limit** | **kotlin.Int**| | [optional] [default to 50] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **cursor** | **kotlin.String**| | [optional] | - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listRolePermissionsRolesRoleIdPermissionsGet** -> SuccessResponseListPermissionOut listRolePermissionsRolesRoleIdPermissionsGet(roleId) - -List Role Permissions - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val roleId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseListPermissionOut = apiInstance.listRolePermissionsRolesRoleIdPermissionsGet(roleId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listRolePermissionsRolesRoleIdPermissionsGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listRolePermissionsRolesRoleIdPermissionsGet") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **listRolesRolesGet** -> SuccessResponseListRoleOut listRolesRolesGet(limit, cursor) - -List Roles - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val limit : kotlin.Int = 56 // kotlin.Int | -val cursor : kotlin.String = cursor_example // kotlin.String | -try { - val result : SuccessResponseListRoleOut = apiInstance.listRolesRolesGet(limit, cursor) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#listRolesRolesGet") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#listRolesRolesGet") - e.printStackTrace() -} -``` - -### Parameters -| **limit** | **kotlin.Int**| | [optional] [default to 50] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **cursor** | **kotlin.String**| | [optional] | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** -> SuccessResponseDictStrInt removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) - -Remove Permission From Role - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val roleId : kotlin.Int = 56 // kotlin.Int | -val permissionId : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseDictStrInt = apiInstance.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete") - e.printStackTrace() -} -``` - -### Parameters -| **roleId** | **kotlin.Int**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **rollbackPolicyPoliciesPolicyKeyRollbackVersionPost** -> SuccessResponseDictStrUnionIntStr rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) - -Rollback Policy - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val policyKey : kotlin.String = policyKey_example // kotlin.String | -val version : kotlin.Int = 56 // kotlin.Int | -try { - val result : SuccessResponseDictStrUnionIntStr = apiInstance.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost") - e.printStackTrace() -} -``` - -### Parameters -| **policyKey** | **kotlin.String**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **version** | **kotlin.Int**| | | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **simulatePolicySimulatePolicyPost** -> SuccessResponsePolicySimulationResponse simulatePolicySimulatePolicyPost(policySimulationRequest) - -Simulate Policy - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val policySimulationRequest : PolicySimulationRequest = // PolicySimulationRequest | -try { - val result : SuccessResponsePolicySimulationResponse = apiInstance.simulatePolicySimulatePolicyPost(policySimulationRequest) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#simulatePolicySimulatePolicyPost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#simulatePolicySimulatePolicyPost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md)| | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **updatePermissionPermissionsPermissionIdPut** -> PermissionOut updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) - -Update Permission - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val permissionId : kotlin.Int = 56 // kotlin.Int | -val permissionUpdate : PermissionUpdate = // PermissionUpdate | -try { - val result : PermissionOut = apiInstance.updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#updatePermissionPermissionsPermissionIdPut") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#updatePermissionPermissionsPermissionIdPut") - e.printStackTrace() -} -``` - -### Parameters -| **permissionId** | **kotlin.Int**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md)| | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **updatePolicyPoliciesPolicyKeyPut** -> SuccessResponsePolicyOut updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) - -Update Policy - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val policyKey : kotlin.String = policyKey_example // kotlin.String | -val policyCreate : PolicyCreate = // PolicyCreate | -try { - val result : SuccessResponsePolicyOut = apiInstance.updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#updatePolicyPoliciesPolicyKeyPut") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#updatePolicyPoliciesPolicyKeyPut") - e.printStackTrace() -} -``` - -### Parameters -| **policyKey** | **kotlin.String**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyCreate** | [**PolicyCreate**](PolicyCreate.md)| | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **updateRoleRolesRoleIdPut** -> RoleOut updateRoleRolesRoleIdPut(roleId, roleUpdate) - -Update Role - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = ManagementApi() -val roleId : kotlin.Int = 56 // kotlin.Int | -val roleUpdate : RoleUpdate = // RoleUpdate | -try { - val result : RoleOut = apiInstance.updateRoleRolesRoleIdPut(roleId, roleUpdate) - println(result) -} catch (e: ClientException) { - println("4xx response calling ManagementApi#updateRoleRolesRoleIdPut") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ManagementApi#updateRoleRolesRoleIdPut") - e.printStackTrace() -} -``` - -### Parameters -| **roleId** | **kotlin.Int**| | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleUpdate** | [**RoleUpdate**](RoleUpdate.md)| | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/sdks/kotlin/docs/MetaBody.md b/sdks/kotlin/docs/MetaBody.md deleted file mode 100644 index c3ec1f9..0000000 --- a/sdks/kotlin/docs/MetaBody.md +++ /dev/null @@ -1,13 +0,0 @@ - -# MetaBody - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **requestId** | **kotlin.String** | | [optional] | -| **limit** | **kotlin.Int** | | [optional] | -| **nextCursor** | **kotlin.String** | | [optional] | -| **extra** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/PermissionCreate.md b/sdks/kotlin/docs/PermissionCreate.md deleted file mode 100644 index 9e82160..0000000 --- a/sdks/kotlin/docs/PermissionCreate.md +++ /dev/null @@ -1,10 +0,0 @@ - -# PermissionCreate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/PermissionOut.md b/sdks/kotlin/docs/PermissionOut.md deleted file mode 100644 index 4aa346f..0000000 --- a/sdks/kotlin/docs/PermissionOut.md +++ /dev/null @@ -1,11 +0,0 @@ - -# PermissionOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **kotlin.Int** | | | -| **action** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/PermissionUpdate.md b/sdks/kotlin/docs/PermissionUpdate.md deleted file mode 100644 index d425dda..0000000 --- a/sdks/kotlin/docs/PermissionUpdate.md +++ /dev/null @@ -1,10 +0,0 @@ - -# PermissionUpdate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/PlaygroundApi.md b/sdks/kotlin/docs/PlaygroundApi.md deleted file mode 100644 index 50273c5..0000000 --- a/sdks/kotlin/docs/PlaygroundApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# PlaygroundApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**evaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluatePlaygroundEvaluatePost) | **POST** /playground/evaluate | Evaluate | - - - -# **evaluatePlaygroundEvaluatePost** -> SuccessResponseDictStrAny evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) - -Evaluate - -### Example -```kotlin -// Import classes: -//import io.keynetra.client.infrastructure.* -//import io.keynetra.client.models.* - -val apiInstance = PlaygroundApi() -val playgroundEvaluateRequest : PlaygroundEvaluateRequest = // PlaygroundEvaluateRequest | -try { - val result : SuccessResponseDictStrAny = apiInstance.evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) - println(result) -} catch (e: ClientException) { - println("4xx response calling PlaygroundApi#evaluatePlaygroundEvaluatePost") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling PlaygroundApi#evaluatePlaygroundEvaluatePost") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md)| | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - - -Configure APIKeyHeader: - ApiClient.apiKey["X-API-Key"] = "" - ApiClient.apiKeyPrefix["X-API-Key"] = "" -Configure HTTPBearer: - ApiClient.accessToken = "" - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/sdks/kotlin/docs/PlaygroundEvaluateRequest.md b/sdks/kotlin/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index 13e3914..0000000 --- a/sdks/kotlin/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,11 +0,0 @@ - -# PlaygroundEvaluateRequest - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **policies** | [**kotlin.collections.List<PlaygroundPolicy>**](PlaygroundPolicy.md) | | | -| **input** | [**PlaygroundInput**](PlaygroundInput.md) | | | - - - diff --git a/sdks/kotlin/docs/PlaygroundInput.md b/sdks/kotlin/docs/PlaygroundInput.md deleted file mode 100644 index 19bc925..0000000 --- a/sdks/kotlin/docs/PlaygroundInput.md +++ /dev/null @@ -1,13 +0,0 @@ - -# PlaygroundInput - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **user** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **resource** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **action** | **kotlin.String** | | [optional] | -| **context** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/PlaygroundPolicy.md b/sdks/kotlin/docs/PlaygroundPolicy.md deleted file mode 100644 index 6a29c15..0000000 --- a/sdks/kotlin/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,14 +0,0 @@ - -# PlaygroundPolicy - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | -| **effect** | **kotlin.String** | | [optional] | -| **priority** | **kotlin.Int** | | [optional] | -| **policyId** | **kotlin.String** | | [optional] | -| **conditions** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/PolicyCreate.md b/sdks/kotlin/docs/PolicyCreate.md deleted file mode 100644 index 44465b1..0000000 --- a/sdks/kotlin/docs/PolicyCreate.md +++ /dev/null @@ -1,14 +0,0 @@ - -# PolicyCreate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **action** | **kotlin.String** | | | -| **effect** | **kotlin.String** | | [optional] | -| **priority** | **kotlin.Int** | | [optional] | -| **state** | **kotlin.String** | | [optional] | -| **conditions** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/PolicyOut.md b/sdks/kotlin/docs/PolicyOut.md deleted file mode 100644 index 1dfe7f6..0000000 --- a/sdks/kotlin/docs/PolicyOut.md +++ /dev/null @@ -1,15 +0,0 @@ - -# PolicyOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **kotlin.Int** | | | -| **action** | **kotlin.String** | | | -| **effect** | **kotlin.String** | | | -| **priority** | **kotlin.Int** | | | -| **conditions** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **state** | **kotlin.String** | | [optional] | - - - diff --git a/sdks/kotlin/docs/PolicySimulationInput.md b/sdks/kotlin/docs/PolicySimulationInput.md deleted file mode 100644 index 39b5ea6..0000000 --- a/sdks/kotlin/docs/PolicySimulationInput.md +++ /dev/null @@ -1,12 +0,0 @@ - -# PolicySimulationInput - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **policyChange** | **kotlin.String** | | [optional] | -| **relationshipChange** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | -| **roleChange** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/PolicySimulationRequest.md b/sdks/kotlin/docs/PolicySimulationRequest.md deleted file mode 100644 index ae99ed7..0000000 --- a/sdks/kotlin/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,11 +0,0 @@ - -# PolicySimulationRequest - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] | -| **request** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/PolicySimulationResponse.md b/sdks/kotlin/docs/PolicySimulationResponse.md deleted file mode 100644 index 9045c09..0000000 --- a/sdks/kotlin/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ - -# PolicySimulationResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **decisionBefore** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **decisionAfter** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | - - - diff --git a/sdks/kotlin/docs/RelationshipCreate.md b/sdks/kotlin/docs/RelationshipCreate.md deleted file mode 100644 index 412ff1d..0000000 --- a/sdks/kotlin/docs/RelationshipCreate.md +++ /dev/null @@ -1,14 +0,0 @@ - -# RelationshipCreate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **subjectType** | **kotlin.String** | | | -| **subjectId** | **kotlin.String** | | | -| **relation** | **kotlin.String** | | | -| **objectType** | **kotlin.String** | | | -| **objectId** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/RelationshipOut.md b/sdks/kotlin/docs/RelationshipOut.md deleted file mode 100644 index 66145ae..0000000 --- a/sdks/kotlin/docs/RelationshipOut.md +++ /dev/null @@ -1,15 +0,0 @@ - -# RelationshipOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **subjectType** | **kotlin.String** | | | -| **subjectId** | **kotlin.String** | | | -| **relation** | **kotlin.String** | | | -| **objectType** | **kotlin.String** | | | -| **objectId** | **kotlin.String** | | | -| **id** | **kotlin.Int** | | | - - - diff --git a/sdks/kotlin/docs/RoleCreate.md b/sdks/kotlin/docs/RoleCreate.md deleted file mode 100644 index 54bb77e..0000000 --- a/sdks/kotlin/docs/RoleCreate.md +++ /dev/null @@ -1,10 +0,0 @@ - -# RoleCreate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **name** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/RoleOut.md b/sdks/kotlin/docs/RoleOut.md deleted file mode 100644 index b47d54e..0000000 --- a/sdks/kotlin/docs/RoleOut.md +++ /dev/null @@ -1,11 +0,0 @@ - -# RoleOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | **kotlin.Int** | | | -| **name** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/RoleUpdate.md b/sdks/kotlin/docs/RoleUpdate.md deleted file mode 100644 index 6743584..0000000 --- a/sdks/kotlin/docs/RoleUpdate.md +++ /dev/null @@ -1,10 +0,0 @@ - -# RoleUpdate - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **name** | **kotlin.String** | | | - - - diff --git a/sdks/kotlin/docs/SimulationResponse.md b/sdks/kotlin/docs/SimulationResponse.md deleted file mode 100644 index b36e9e6..0000000 --- a/sdks/kotlin/docs/SimulationResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - -# SimulationResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **decision** | **kotlin.String** | | | -| **matchedPolicies** | **kotlin.collections.List<kotlin.String>** | | | -| **reason** | **kotlin.String** | | [optional] | -| **policyId** | **kotlin.String** | | [optional] | -| **explainTrace** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.Any>>** | | [optional] | -| **failedConditions** | **kotlin.collections.List<kotlin.String>** | | [optional] | -| **revision** | **kotlin.Int** | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseACLOut.md b/sdks/kotlin/docs/SuccessResponseACLOut.md deleted file mode 100644 index 39e5178..0000000 --- a/sdks/kotlin/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseACLOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**ACLOut**](ACLOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md b/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index 2b81c7e..0000000 --- a/sdks/kotlin/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseAccessDecisionResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md b/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index 7e5bb8f..0000000 --- a/sdks/kotlin/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseAdminLoginResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md b/sdks/kotlin/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index 9aba610..0000000 --- a/sdks/kotlin/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseAuthModelOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**AuthModelOut**](AuthModelOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md b/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index 96377a6..0000000 --- a/sdks/kotlin/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseBatchAccessResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseDictStrAny.md b/sdks/kotlin/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index 86ec0f6..0000000 --- a/sdks/kotlin/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseDictStrAny - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseDictStrInt.md b/sdks/kotlin/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 1b156ac..0000000 --- a/sdks/kotlin/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseDictStrInt - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.Int>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseDictStrObject.md b/sdks/kotlin/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index 3678873..0000000 --- a/sdks/kotlin/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseDictStrObject - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseDictStrStr.md b/sdks/kotlin/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index 0868957..0000000 --- a/sdks/kotlin/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseDictStrStr - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index 77fc409..0000000 --- a/sdks/kotlin/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseDictStrUnionIntStr - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.Map<kotlin.String, DataValue>**](DataValue.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index 4170d13..0000000 --- a/sdks/kotlin/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseImpactAnalysisResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseListACLOut.md b/sdks/kotlin/docs/SuccessResponseListACLOut.md deleted file mode 100644 index f2f5f7d..0000000 --- a/sdks/kotlin/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseListACLOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.List<ACLOut>**](ACLOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md b/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 3ea0257..0000000 --- a/sdks/kotlin/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseListAuditRecordOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.List<AuditRecordOut>**](AuditRecordOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md b/sdks/kotlin/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index 2170c27..0000000 --- a/sdks/kotlin/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseListDictStrStr - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | **kotlin.collections.List<kotlin.collections.Map<kotlin.String, kotlin.String>>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md b/sdks/kotlin/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index cfa5fd0..0000000 --- a/sdks/kotlin/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseListPermissionOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.List<PermissionOut>**](PermissionOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md b/sdks/kotlin/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index d915e7b..0000000 --- a/sdks/kotlin/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseListPolicyOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.List<PolicyOut>**](PolicyOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseListRoleOut.md b/sdks/kotlin/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index dcf3856..0000000 --- a/sdks/kotlin/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseListRoleOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**kotlin.collections.List<RoleOut>**](RoleOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponsePermissionOut.md b/sdks/kotlin/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index b736c2e..0000000 --- a/sdks/kotlin/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponsePermissionOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**PermissionOut**](PermissionOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponsePolicyOut.md b/sdks/kotlin/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index cc10bbd..0000000 --- a/sdks/kotlin/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponsePolicyOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**PolicyOut**](PolicyOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md b/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index cc1038d..0000000 --- a/sdks/kotlin/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponsePolicySimulationResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md b/sdks/kotlin/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index 5ac0b18..0000000 --- a/sdks/kotlin/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseRelationshipOut - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**RelationshipOut**](RelationshipOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md b/sdks/kotlin/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index d2fbe0a..0000000 --- a/sdks/kotlin/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ - -# SuccessResponseSimulationResponse - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **`data`** | [**SimulationResponse**](SimulationResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | [**KotlinxserializationjsonJsonElement**](KotlinxserializationjsonJsonElement.md) | | [optional] | - - - diff --git a/sdks/kotlin/docs/ValidationError.md b/sdks/kotlin/docs/ValidationError.md deleted file mode 100644 index bc0be30..0000000 --- a/sdks/kotlin/docs/ValidationError.md +++ /dev/null @@ -1,14 +0,0 @@ - -# ValidationError - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **loc** | [**kotlin.collections.List<LocationInner>**](LocationInner.md) | | | -| **msg** | **kotlin.String** | | | -| **type** | **kotlin.String** | | | -| **input** | [**kotlin.Any**](.md) | | [optional] | -| **ctx** | [**KotlinxserializationjsonJsonElement**](.md) | | [optional] | - - - diff --git a/sdks/kotlin/gradle/wrapper/gradle-wrapper.jar b/sdks/kotlin/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 2c3521197d7c4586c843d1d3e9090525f1898cde..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43504 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vW>HF-ViB*%t0;Thq2} z+qP}n=Cp0wwr%5S+qN<7?r+``=l(h0z2`^8j;g2~Q4u?{cIL{JYY%l|iw&YH4FL(8 z1-*E#ANDHi+1f%lMJbRfq*`nG)*#?EJEVoDH5XdfqwR-C{zmbQoh?E zhW!|TvYv~>R*OAnyZf@gC+=%}6N90yU@E;0b_OV#xL9B?GX(D&7BkujjFC@HVKFci zb_>I5e!yuHA1LC`xm&;wnn|3ht3h7|rDaOsh0ePhcg_^Wh8Bq|AGe`4t5Gk(9^F;M z8mFr{uCm{)Uq0Xa$Fw6+da`C4%)M_#jaX$xj;}&Lzc8wTc%r!Y#1akd|6FMf(a4I6 z`cQqS_{rm0iLnhMG~CfDZc96G3O=Tihnv8g;*w?)C4N4LE0m#H1?-P=4{KeC+o}8b zZX)x#(zEysFm$v9W8-4lkW%VJIjM~iQIVW)A*RCO{Oe_L;rQ3BmF*bhWa}!=wcu@# zaRWW{&7~V-e_$s)j!lJsa-J?z;54!;KnU3vuhp~(9KRU2GKYfPj{qA?;#}H5f$Wv-_ zGrTb(EAnpR0*pKft3a}6$npzzq{}ApC&=C&9KoM3Ge@24D^8ZWJDiXq@r{hP=-02& z@Qrn-cbr2YFc$7XR0j7{jAyR;4LLBf_XNSrmd{dV3;ae;fsEjds*2DZ&@#e)Qcc}w zLgkfW=9Kz|eeM$E`-+=jQSt}*kAwbMBn7AZSAjkHUn4n||NBq*|2QPcKaceA6m)g5 z_}3?DX>90X|35eI7?n+>f9+hl5b>#q`2+`FXbOu9Q94UX-GWH;d*dpmSFd~7WM#H2 zvKNxjOtC)U_tx*0(J)eAI8xAD8SvhZ+VRUA?)| zeJjvg9)vi`Qx;;1QP!c_6hJp1=J=*%!>ug}%O!CoSh-D_6LK0JyiY}rOaqSeja&jb#P|DR7 z_JannlfrFeaE$irfrRIiN|huXmQhQUN6VG*6`bzN4Z3!*G?FjN8!`ZTn6Wn4n=Ync z_|Sq=pO7+~{W2}599SfKz@umgRYj6LR9u0*BaHqdEw^i)dKo5HomT9zzB$I6w$r?6 zs2gu*wNOAMK`+5yPBIxSOJpL$@SN&iUaM zQ3%$EQt%zQBNd`+rl9R~utRDAH%7XP@2Z1s=)ks77I(>#FuwydE5>LzFx)8ye4ClM zb*e2i*E$Te%hTKh7`&rQXz;gvm4Dam(r-!FBEcw*b$U%Wo9DIPOwlC5Ywm3WRCM4{ zF42rnEbBzUP>o>MA){;KANhAW7=FKR=DKK&S1AqSxyP;k z;fp_GVuV}y6YqAd)5p=tJ~0KtaeRQv^nvO?*hZEK-qA;vuIo!}Xgec4QGW2ipf2HK z&G&ppF*1aC`C!FR9(j4&r|SHy74IiDky~3Ab)z@9r&vF+Bapx<{u~gb2?*J zSl{6YcZ$&m*X)X?|8<2S}WDrWN3yhyY7wlf*q`n^z3LT4T$@$y``b{m953kfBBPpQ7hT;zs(Nme`Qw@{_pUO0OG zfugi3N?l|jn-Du3Qn{Aa2#6w&qT+oof=YM!Zq~Xi`vlg<;^)Jreeb^x6_4HL-j}sU z1U^^;-WetwPLKMsdx4QZ$haq3)rA#ATpEh{NXto-tOXjCwO~nJ(Z9F%plZ{z(ZW!e zF>nv&4ViOTs58M+f+sGimF^9cB*9b(gAizwyu5|--SLmBOP-uftqVnVBd$f7YrkJ8!jm*QQEQC zEQ+@T*AA1kV@SPF6H5sT%^$$6!e5;#N((^=OA5t}bqIdqf`PiMMFEDhnV#AQWSfLp zX=|ZEsbLt8Sk&wegQU0&kMC|cuY`&@<#r{t2*sq2$%epiTVpJxWm#OPC^wo_4p++U zU|%XFYs+ZCS4JHSRaVET)jV?lbYAd4ouXx0Ka6*wIFBRgvBgmg$kTNQEvs0=2s^sU z_909)3`Ut!m}}@sv<63E@aQx}-!qVdOjSOnAXTh~MKvr$0nr(1Fj-3uS{U6-T9NG1Y(Ua)Nc}Mi< zOBQz^&^v*$BqmTIO^;r@kpaq3n!BI?L{#bw)pdFV&M?D0HKqC*YBxa;QD_4(RlawI z5wBK;7T^4dT7zt%%P<*-M~m?Et;S^tdNgQSn?4$mFvIHHL!`-@K~_Ar4vBnhy{xuy zigp!>UAwPyl!@~(bkOY;un&B~Evy@5#Y&cEmzGm+)L~4o4~|g0uu&9bh8N0`&{B2b zDj2>biRE1`iw}lv!rl$Smn(4Ob>j<{4dT^TfLe-`cm#S!w_9f;U)@aXWSU4}90LuR zVcbw;`2|6ra88#Cjf#u62xq?J)}I)_y{`@hzES(@mX~}cPWI8}SRoH-H;o~`>JWU$ zhLudK3ug%iS=xjv9tnmOdTXcq_?&o30O;(+VmC&p+%+pd_`V}RY4ibQMNE&N5O+hb3bQ8bxk^33Fu4DB2*~t1909gqoutQHx^plq~;@g$d_+rzS0`2;}2UR2h#?p35B=B*f0BZS4ysiWC!kw?4B-dM%m6_BfRbey1Wh? zT1!@>-y=U}^fxH0A`u1)Mz90G6-<4aW^a@l_9L6Y;cd$3<#xIrhup)XLkFi$W&Ohu z8_j~-VeVXDf9b&6aGelt$g*BzEHgzh)KDgII_Y zb$fcY8?XI6-GEGTZVWW%O;njZld)29a_&1QvNYJ@OpFrUH{er@mnh*}326TYAK7_Z zA={KnK_o3QLk|%m@bx3U#^tCChLxjPxMesOc5D4G+&mvp@Clicz^=kQlWp1|+z|V7 zkU#7l61m@^#`1`{+m2L{sZC#j?#>0)2z4}}kqGhB{NX%~+3{5jOyij!e$5-OAs zDvq+>I2(XsY9%NNhNvKiF<%!6t^7&k{L7~FLdkP9!h%=2Kt$bUt(Zwp*&xq_+nco5 zK#5RCM_@b4WBK*~$CsWj!N!3sF>ijS=~$}_iw@vbKaSp5Jfg89?peR@51M5}xwcHW z(@1TK_kq$c4lmyb=aX3-JORe+JmuNkPP=bM*B?};c=_;h2gT-nt#qbriPkpaqoF@q z<)!80iKvTu`T-B3VT%qKO^lfPQ#m5Ei6Y%Fs@%Pt!8yX&C#tL$=|Ma8i?*^9;}Fk> zyzdQQC5YTBO&gx6kB~yhUUT&%q3a3o+zueh>5D7tdByYVcMz@>j!C@Iyg{N1)veYl`SPshuH6Rk=O6pvVrI71rI5*%uU3u81DpD%qmXsbKWMFR@2m4vO_^l6MMbO9a()DcWmYT&?0B_ zuY~tDiQ6*X7;9B*5pj?;xy_B}*{G}LjW*qU&%*QAyt30@-@O&NQTARZ+%VScr>`s^KX;M!p; z?8)|}P}L_CbOn!u(A{c5?g{s31Kn#7i)U@+_KNU-ZyVD$H7rtOjSht8%N(ST-)%r` z63;Hyp^KIm-?D;E-EnpAAWgz2#z{fawTx_;MR7)O6X~*jm*VUkam7>ueT^@+Gb3-Y zN3@wZls8ibbpaoR2xH=$b3x1Ng5Tai=LT2@_P&4JuBQ!r#Py3ew!ZVH4~T!^TcdyC ze#^@k4a(nNe~G+y zI~yXK@1HHWU4pj{gWT6v@$c(x){cLq*KlFeKy?f$_u##)hDu0X_mwL6uKei~oPd9( zRaF_k&w(J3J8b_`F~?0(Ei_pH}U^c&r$uSYawB8Ybs-JZ|&;vKLWX! z|HFZ%-uBDaP*hMcQKf*|j5!b%H40SPD*#{A`kj|~esk@1?q}-O7WyAm3mD@-vHzw( zTSOlO(K9>GW;@?@xSwpk%X3Ui4_Psm;c*HF~RW+q+C#RO_VT5(x!5B#On-W`T|u z>>=t)W{=B-8wWZejxMaBC9sHzBZGv5uz_uu281kxHg2cll_sZBC&1AKD`CYh2vKeW zm#|MMdC}6A&^DX=>_(etx8f}9o}`(G?Y``M?D+aTPJbZqONmSs>y>WSbvs>7PE~cb zjO+1Y)PMi*!=06^$%< z*{b^66BIl{7zKvz^jut7ylDQBt)ba_F*$UkDgJ2gSNfHB6+`OEiz@xs$Tcrl>X4?o zu9~~b&Xl0?w(7lJXu8-9Yh6V|A3f?)1|~+u-q&6#YV`U2i?XIqUw*lc-QTXwuf@8d zSjMe1BhBKY`Mo{$s%Ce~Hv(^B{K%w{yndEtvyYjjbvFY^rn2>C1Lbi!3RV7F>&;zlSDSk}R>{twI}V zA~NK%T!z=^!qbw(OEgsmSj?#?GR&A$0&K>^(?^4iphc3rN_(xXA%joi)k~DmRLEXl zaWmwMolK%@YiyI|HvX{X$*Ei7y+zJ%m{b}$?N7_SN&p+FpeT%4Z_2`0CP=}Y3D-*@ zL|4W4ja#8*%SfkZzn5sfVknpJv&>glRk^oUqykedE8yCgIwCV)fC1iVwMr4hc#KcV!|M-r_N|nQWw@`j+0(Ywct~kLXQ)Qyncmi{Q4`Ur7A{Ep)n`zCtm8D zVX`kxa8Syc`g$6$($Qc-(_|LtQKWZXDrTir5s*pSVmGhk#dKJzCYT?vqA9}N9DGv> zw}N$byrt?Mk*ZZbN5&zb>pv;rU}EH@Rp54)vhZ=330bLvrKPEPu!WqR%yeM3LB!(E zw|J05Y!tajnZ9Ml*-aX&5T8YtuWDq@on)_*FMhz-?m|>RT0~e3OHllrEMthVY(KwQ zu>ijTc4>Xz-q1(g!ESjaZ+C+Zk5FgmF)rFX29_RmU!`7Pw+0}>8xK^=pOxtUDV)ok zw-=p=OvEH&VO3wToRdI!hPHc`qX+_{T_mj!NxcA&xOgkEuvz`-Aa`ZlNv>qnD0`YT1T3USO0ec!%{KE~UOGPJX%I5_rZDGx@|w zVIMsRPP+}^Xxa&{x!q{hY1wat8jDO7YP0(8xHWeEdrd79lUjB8%)v{X1pQu|1dr*y9M&a(J`038}4>lK&K zIM~6wnX{XA?pFHz{hOmEq{oYBnB@56twXqEcFrFqvCy)sH9B{pQ`G50o{W^t&onwY z-l{ur4#8ylPV5YRLD%%j^d0&_WI>0nmfZ8! zaZ&vo@7D`!=?215+Vk181*U@^{U>VyoXh2F&ZNzZx5tDDtlLc)gi2=|o=GC`uaH;< zFuuF?Q9Q`>S#c(~2p|s49RA`3242`2P+)F)t2N!CIrcl^0#gN@MLRDQ2W4S#MXZJO z8<(9P>MvW;rf2qZ$6sHxCVIr0B-gP?G{5jEDn%W#{T#2_&eIjvlVqm8J$*8A#n`5r zs6PuC!JuZJ@<8cFbbP{cRnIZs>B`?`rPWWL*A?1C3QqGEG?*&!*S0|DgB~`vo_xIo z&n_Sa(>6<$P7%Py{R<>n6Jy?3W|mYYoxe5h^b6C#+UoKJ(zl?^WcBn#|7wMI5=?S# zRgk8l-J`oM%GV&jFc)9&h#9mAyowg^v%Fc-7_^ou5$*YvELa!1q>4tHfX7&PCGqW* zu8In~5`Q5qQvMdToE$w+RP^_cIS2xJjghjCTp6Z(za_D<$S;0Xjt?mAE8~Ym{)zfb zV62v9|59XOvR}wEpm~Cnhyr`=JfC$*o15k?T`3s-ZqF6Gy;Gm+_6H$%oJPywWA^Wl zzn$L=N%{VT8DkQba0|2LqGR#O2Pw!b%LV4#Ojcx5`?Cm;+aLpkyZ=!r1z@E}V= z$2v6v%Ai)MMd`@IM&UD!%%(63VH8+m0Ebk<5Du#0=WeK(E<2~3@>8TceT$wy5F52n zRFtY>G9Gp~h#&R92{G{jLruZSNJ4)gNK+zg*$P zW@~Hf>_Do)tvfEAAMKE1nQ=8coTgog&S;wj(s?Xa0!r?UU5#2>18V#|tKvay1Ka53 zl$RxpMqrkv`Sv&#!_u8$8PMken`QL0_sD2)r&dZziefzSlAdKNKroVU;gRJE#o*}w zP_bO{F4g;|t!iroy^xf~(Q5qc8a3<+vBW%VIOQ1!??d;yEn1at1wpt}*n- z0iQtfu}Isw4ZfH~8p~#RQUKwf<$XeqUr-5?8TSqokdHL7tY|47R; z#d+4NS%Cqp>LQbvvAMIhcCX@|HozKXl)%*5o>P2ZegGuOerV&_MeA}|+o-3L!ZNJd z#1xB^(r!IfE~i>*5r{u;pIfCjhY^Oev$Y1MT16w8pJ0?9@&FH*`d;hS=c#F6fq z{mqsHd*xa;>Hg?j80MwZ%}anqc@&s&2v{vHQS68fueNi5Z(VD2eH>jmv4uvE|HEQm z^=b&?1R9?<@=kjtUfm*I!wPf5Xnma(4*DfPk}Es*H$%NGCIM1qt(LSvbl7&tV>e2$ zUqvZOTiwQyxDoxL(mn?n_x%Tre?L&!FYCOy0>o}#DTC3uSPnyGBv*}!*Yv5IV)Bg_t%V+UrTXfr!Q8+eX}ANR*YLzwme7Rl z@q_*fP7wP2AZ(3WG*)4Z(q@)~c{Je&7?w^?&Wy3)v0{TvNQRGle9mIG>$M2TtQ(Vf z3*PV@1mX)}beRTPjoG#&&IO#Mn(DLGp}mn)_0e=9kXDewC8Pk@yo<8@XZjFP-_zic z{mocvT9Eo)H4Oj$>1->^#DbbiJn^M4?v7XbK>co+v=7g$hE{#HoG6ZEat!s~I<^_s zlFee93KDSbJKlv_+GPfC6P8b>(;dlJ5r9&Pc4kC2uR(0{Kjf+SMeUktef``iXD}8` zGufkM9*Sx4>+5WcK#Vqm$g#5z1DUhc_#gLGe4_icSzN5GKr|J&eB)LS;jTXWA$?(k zy?*%U9Q#Y88(blIlxrtKp6^jksNF>-K1?8=pmYAPj?qq}yO5L>_s8CAv=LQMe3J6? zOfWD>Kx_5A4jRoIU}&aICTgdYMqC|45}St;@0~7>Af+uK3vps9D!9qD)1;Y6Fz>4^ zR1X$s{QNZl7l%}Zwo2wXP+Cj-K|^wqZW?)s1WUw_APZLhH55g{wNW3liInD)WHh${ zOz&K>sB*4inVY3m)3z8w!yUz+CKF%_-s2KVr7DpwTUuZjPS9k-em^;>H4*?*B0Bg7 zLy2nfU=ac5N}x1+Tlq^lkNmB~Dj+t&l#fO&%|7~2iw*N!*xBy+ZBQ>#g_;I*+J{W* z=@*15><)Bh9f>>dgQrEhkrr2FEJ;R2rH%`kda8sD-FY6e#7S-<)V*zQA>)Ps)L- zgUuu@5;Ych#jX_KZ+;qEJJbu{_Z9WSsLSo#XqLpCK$gFidk}gddW(9$v}iyGm_OoH ztn$pv81zROq686_7@avq2heXZnkRi4n(3{5jTDO?9iP%u8S4KEqGL?^uBeg(-ws#1 z9!!Y_2Q~D?gCL3MQZO!n$+Wy(Twr5AS3{F7ak2f)Bu0iG^k^x??0}b6l!>Vjp{e*F z8r*(Y?3ZDDoS1G?lz#J4`d9jAEc9YGq1LbpYoFl!W!(j8-33Ey)@yx+BVpDIVyvpZ zq5QgKy>P}LlV?Bgy@I)JvefCG)I69H1;q@{8E8Ytw^s-rC7m5>Q>ZO(`$`9@`49s2)q#{2eN0A?~qS8%wxh%P*99h*Sv` zW_z3<=iRZBQKaDsKw^TfN;6`mRck|6Yt&e$R~tMA0ix;qgw$n~fe=62aG2v0S`7mU zI}gR#W)f+Gn=e3mm*F^r^tcv&S`Rym`X`6K`i8g-a0!p|#69@Bl!*&)QJ9(E7ycxz z)5-m9v`~$N1zszFi^=m%vw}Y{ZyYub!-6^KIY@mwF|W+|t~bZ%@rifEZ-28I@s$C` z>E+k~R1JC-M>8iC_GR>V9f9+uL2wPRATL9bC(sxd;AMJ>v6c#PcG|Xx1N5^1>ISd0 z4%vf-SNOw+1%yQq1YP`>iqq>5Q590_pr?OxS|HbLjx=9~Y)QO37RihG%JrJ^=Nj>g zPTcO$6r{jdE_096b&L;Wm8vcxUVxF0mA%W`aZz4n6XtvOi($ zaL!{WUCh&{5ar=>u)!mit|&EkGY$|YG<_)ZD)I32uEIWwu`R-_ z`FVeKyrx3>8Ep#2~%VVrQ%u#exo!anPe`bc)-M=^IP1n1?L2UQ@# zpNjoq-0+XCfqXS!LwMgFvG$PkX}5^6yxW)6%`S8{r~BA2-c%-u5SE#%mQ~5JQ=o$c z%+qa0udVq9`|=2n=0k#M=yiEh_vp?(tB|{J{EhVLPM^S@f-O*Lgb390BvwK7{wfdMKqUc0uIXKj5>g^z z#2`5^)>T73Eci+=E4n&jl42E@VYF2*UDiWLUOgF#p9`E4&-A#MJLUa&^hB@g7KL+n zr_bz+kfCcLIlAevILckIq~RCwh6dc5@%yN@#f3lhHIx4fZ_yT~o0#3@h#!HCN(rHHC6#0$+1AMq?bY~(3nn{o5g8{*e_#4RhW)xPmK zTYBEntuYd)`?`bzDksI9*MG$=^w!iiIcWg1lD&kM1NF@qKha0fDVz^W7JCam^!AQFxY@7*`a3tfBwN0uK_~YBQ18@^i%=YB}K0Iq(Q3 z=7hNZ#!N@YErE7{T|{kjVFZ+f9Hn($zih;f&q^wO)PJSF`K)|LdT>!^JLf=zXG>>G z15TmM=X`1%Ynk&dvu$Vic!XyFC(c=qM33v&SIl|p+z6Ah9(XQ0CWE^N-LgE#WF6Z+ zb_v`7^Rz8%KKg_@B>5*s-q*TVwu~MCRiXvVx&_3#r1h&L+{rM&-H6 zrcgH@I>0eY8WBX#Qj}Vml+fpv?;EQXBbD0lx%L?E4)b-nvrmMQS^}p_CI3M24IK(f| zV?tWzkaJXH87MBz^HyVKT&oHB;A4DRhZy;fIC-TlvECK)nu4-3s7qJfF-ZZGt7+6C3xZt!ZX4`M{eN|q!y*d^B+cF5W- zc9C|FzL;$bAfh56fg&y0j!PF8mjBV!qA=z$=~r-orU-{0AcQUt4 zNYC=_9(MOWe$Br9_50i#0z!*a1>U6ZvH>JYS9U$kkrCt7!mEUJR$W#Jt5vT?U&LCD zd@)kn%y|rkV|CijnZ((B2=j_rB;`b}F9+E1T46sg_aOPp+&*W~44r9t3AI}z)yUFJ z+}z5E6|oq+oPC3Jli)EPh9)o^B4KUYkk~AU9!g`OvC`a!#Q>JmDiMLTx>96_iDD9h@nW%Je4%>URwYM%5YU1&Dcdulvv3IH3GSrA4$)QjlGwUt6 zsR6+PnyJ$1x{|R=ogzErr~U|X!+b+F8=6y?Yi`E$yjWXsdmxZa^hIqa)YV9ubUqOj&IGY}bk zH4*DEn({py@MG5LQCI;J#6+98GaZYGW-K-&C`(r5#?R0Z){DlY8ZZk}lIi$xG}Q@2 z0LJhzuus-7dLAEpG1Lf+KOxn&NSwO{wn_~e0=}dovX)T(|WRMTqacoW8;A>8tTDr+0yRa+U!LW z!H#Gnf^iCy$tTk3kBBC=r@xhskjf1}NOkEEM4*r+A4`yNAIjz`_JMUI#xTf$+{UA7 zpBO_aJkKz)iaKqRA{8a6AtpdUwtc#Y-hxtZnWz~i(sfjMk`lq|kGea=`62V6y)TMPZw8q}tFDDHrW_n(Z84ZxWvRrntcw;F|Mv4ff9iaM% z4IM{=*zw}vIpbg=9%w&v`sA+a3UV@Rpn<6`c&5h+8a7izP>E@7CSsCv*AAvd-izwU z!sGJQ?fpCbt+LK`6m2Z3&cKtgcElAl){*m0b^0U#n<7?`8ktdIe#ytZTvaZy728o6 z3GDmw=vhh*U#hCo0gb9s#V5(IILXkw>(6a?BFdIb0%3~Y*5FiMh&JWHd2n(|y@?F8 zL$%!)uFu&n+1(6)oW6Hx*?{d~y zBeR)N*Z{7*gMlhMOad#k4gf`37OzEJ&pH?h!Z4#mNNCfnDI@LbiU~&2Gd^q7ix8~Y6$a=B9bK(BaTEO0$Oh=VCkBPwt0 zf#QuB25&2!m7MWY5xV_~sf(0|Y*#Wf8+FQI(sl2wgdM5H7V{aH6|ntE+OcLsTC`u; zeyrlkJgzdIb5=n#SCH)+kjN)rYW7=rppN3Eb;q_^8Zi}6jtL@eZ2XO^w{mCwX(q!t ztM^`%`ndZ5c+2@?p>R*dDNeVk#v>rsn>vEo;cP2Ecp=@E>A#n0!jZACKZ1=D0`f|{ zZnF;Ocp;$j86m}Gt~N+Ch6CJo7+Wzv|nlsXBvm z?St-5Ke&6hbGAWoO!Z2Rd8ARJhOY|a1rm*sOif%Th`*=^jlgWo%e9`3sS51n*>+Mh(9C7g@*mE|r%h*3k6I_uo;C!N z7CVMIX4kbA#gPZf_0%m18+BVeS4?D;U$QC`TT;X zP#H}tMsa=zS6N7n#BA$Fy8#R7vOesiCLM@d1UO6Tsnwv^gb}Q9I}ZQLI?--C8ok&S z9Idy06+V(_aj?M78-*vYBu|AaJ9mlEJpFEIP}{tRwm?G{ag>6u(ReBKAAx zDR6qe!3G88NQP$i99DZ~CW9lzz}iGynvGA4!yL}_9t`l*SZbEL-%N{n$%JgpDHJRn zvh<{AqR7z@ylV`kXdk+uEu-WWAt^=A4n(J=A1e8DpeLzAd;Nl#qlmp#KcHU!8`YJY zvBZy@>WiBZpx*wQ8JzKw?@k}8l99Wo&H>__vCFL}>m~MTmGvae% zPTn9?iR=@7NJ)?e+n-4kx$V#qS4tLpVUX*Je0@`f5LICdxLnph&Vjbxd*|+PbzS(l zBqqMlUeNoo8wL&_HKnM^8{iDI3IdzJAt32UupSr6XXh9KH2LjWD)Pz+`cmps%eHeD zU%i1SbPuSddp6?th;;DfUlxYnjRpd~i7vQ4V`cD%4+a9*!{+#QRBr5^Q$5Ec?gpju zv@dk9;G>d7QNEdRy}fgeA?i=~KFeibDtYffy)^OP?Ro~-X!onDpm+uGpe&6)*f@xJ zE1I3Qh}`1<7aFB@TS#}ee={<#9%1wOL%cuvOd($y4MC2?`1Nin=pVLXPkknn*0kx> z!9XHW${hYEV;r6F#iz7W=fg|a@GY0UG5>>9>$3Bj5@!N{nWDD`;JOdz_ZaZVVIUgH zo+<=+n8VGL*U%M|J$A~#ll__<`y+jL>bv;TpC!&|d=q%E2B|5p=)b-Q+ZrFO%+D_u z4%rc8BmOAO6{n(i(802yZW93?U;K^ZZlo0Gvs7B+<%}R;$%O}pe*Gi;!xP-M73W`k zXLv473Ex_VPcM-M^JO|H>KD;!sEGJ|E}Qepen;yNG2 zXqgD5sjQUDI(XLM+^8ZX1s_(X+PeyQ$Q5RukRt|Kwr-FSnW!^9?OG64UYX1^bU9d8 zJ}8K&UEYG+Je^cThf8W*^RqG07nSCmp*o5Z;#F zS?jochDWX@p+%CZ%dOKUl}q{9)^U@}qkQtA3zBF)`I&zyIKgb{mv)KtZ}?_h{r#VZ z%C+hwv&nB?we0^H+H`OKGw-&8FaF;=ei!tAclS5Q?qH9J$nt+YxdKkbRFLnWvn7GH zezC6<{mK0dd763JlLFqy&Oe|7UXII;K&2pye~yG4jldY~N;M9&rX}m76NsP=R#FEw zt(9h+=m9^zfl=6pH*D;JP~OVgbJkXh(+2MO_^;%F{V@pc2nGn~=U)Qx|JEV-e=vXk zPxA2J<9~IH{}29#X~KW$(1reJv}lc4_1JF31gdev>!CddVhf_62nsr6%w)?IWxz}{ z(}~~@w>c07!r=FZANq4R!F2Qi2?QGavZ{)PCq~X}3x;4ylsd&m;dQe;0GFSn5 zZ*J<=Xg1fEGYYDZ0{Z4}Jh*xlXa}@412nlKSM#@wjMM z*0(k>Gfd1Mj)smUuX}EM6m)811%n5zzr}T?$ZzH~*3b`3q3gHSpA<3cbzTeRDi`SA zT{O)l3%bH(CN0EEF9ph1(Osw5y$SJolG&Db~uL!I3U{X`h(h%^KsL71`2B1Yn z7(xI+Fk?|xS_Y5)x?oqk$xmjG@_+JdErI(q95~UBTvOXTQaJs?lgrC6Wa@d0%O0cC zzvslIeWMo0|C0({iEWX{=5F)t4Z*`rh@-t0ZTMse3VaJ`5`1zeUK0~F^KRY zj2z-gr%sR<(u0@SNEp%Lj38AB2v-+cd<8pKdtRU&8t3eYH#h7qH%bvKup4cnnrN>l z!5fve)~Y5_U9US`uXDFoOtx2gI&Z!t&VPIoqiv>&H(&1;J9b}kZhcOX7EiW*Bujy#MaCl52%NO-l|@2$aRKvZ!YjwpXwC#nA(tJtd1p?jx&U|?&jcb!0MT6oBlWurVRyiSCX?sN3j}d zh3==XK$^*8#zr+U^wk(UkF}bta4bKVgr`elH^az{w(m}3%23;y7dsEnH*pp{HW$Uk zV9J^I9ea7vp_A}0F8qF{>|rj`CeHZ?lf%HImvEJF<@7cgc1Tw%vAUA47{Qe(sP^5M zT=z<~l%*ZjJvObcWtlN?0$b%NdAj&l`Cr|x((dFs-njsj9%IIqoN|Q?tYtJYlRNIu zY(LtC-F14)Og*_V@gjGH^tLV4uN?f^#=dscCFV~a`r8_o?$gj3HrSk=YK2k^UW)sJ z&=a&&JkMkWshp0sto$c6j8f$J!Bsn*MTjC`3cv@l@7cINa!}fNcu(0XF7ZCAYbX|WJIL$iGx8l zGFFQsw}x|i!jOZIaP{@sw0BrV5Z5u!TGe@JGTzvH$}55Gf<;rieZlz+6E1}z_o3m2 z(t;Cp^Geen7iSt)ZVtC`+tzuv^<6--M`^5JXBeeLXV)>2;f7=l%(-4?+<5~;@=Th{1#>rK3+rLn(44TAFS@u(}dunUSYu}~))W*fr` zkBL}3k_@a4pXJ#u*_N|e#1gTqxE&WPsfDa=`@LL?PRR()9^HxG?~^SNmeO#^-5tMw zeGEW&CuX(Uz#-wZOEt8MmF}hQc%14L)0=ebo`e$$G6nVrb)afh!>+Nfa5P;N zCCOQ^NRel#saUVt$Ds0rGd%gkKP2LsQRxq6)g*`-r(FGM!Q51c|9lk!ha8Um3ys1{ zWpT7XDWYshQ{_F!8D8@3hvXhQDw;GlkUOzni&T1>^uD){WH3wRONgjh$u4u7?+$(Y zqTXEF>1aPNZCXP0nJ;zs6_%6;+D&J_|ugcih**y(4ApT`RKAi5>SZe0Bz|+l7z>P14>0ljIH*LhK z@}2O#{?1RNa&!~sEPBvIkm-uIt^Pt#%JnsbJ`-T0%pb ze}d;dzJFu7oQ=i`VHNt%Sv@?7$*oO`Rt*bRNhXh{FArB`9#f%ksG%q?Z`_<19;dBW z5pIoIo-JIK9N$IE1)g8@+4}_`sE7;Lus&WNAJ^H&=4rGjeAJP%Dw!tn*koQ&PrNZw zY88=H7qpHz11f}oTD!0lWO>pMI;i4sauS`%_!zM!n@91sLH#rz1~iEAu#1b%LA zhB}7{1(8{1{V8+SEs=*f=FcRE^;`6Pxm$Hie~|aD~W1BYy#@Y$C?pxJh*cC!T@8C9{xx*T*8P zhbkRk3*6)Zbk%}u>^?ItOhxdmX$j9KyoxxN>NrYGKMkLF4*fLsL_PRjHNNHCyaUHN z7W8yEhf&ag07fc9FD>B{t0#Civsoy0hvVepDREX(NK1LbK0n*>UJp&1FygZMg7T^G z(02BS)g#qMOI{RJIh7}pGNS8WhSH@kG+4n=(8j<+gVfTur)s*hYus70AHUBS2bN6Zp_GOHYxsbg{-Rcet{@0gzE`t$M0_!ZIqSAIW53j+Ln7N~8J zLZ0DOUjp^j`MvX#hq5dFixo^1szoQ=FTqa|@m>9F@%>7OuF9&_C_MDco&-{wfLKNrDMEN4pRUS8-SD6@GP`>_7$;r>dJo>KbeXm>GfQS? zjFS+Y6^%pDCaI0?9(z^ELsAE1`WhbhNv5DJ$Y}~r;>FynHjmjmA{bfDbseZXsKUv`%Fekv)1@f%7ti;B5hhs}5db1dP+P0${1DgKtb(DvN}6H6;0*LP6blg*rpr;Z(7? zrve>M`x6ZI(wtQc4%lO?v5vr{0iTPl&JT!@k-7qUN8b$O9YuItu7zrQ*$?xJIN#~b z#@z|*5z&D7g5>!o(^v+3N?JnJns5O2W4EkF>re*q1uVjgT#6ROP5>Ho)XTJoHDNRC zuLC(Cd_ZM?FAFPoMw;3FM4Ln0=!+vgTYBx2TdXpM@EhDCorzTS6@2`swp4J^9C0)U zq?)H8)=D;i+H`EVYge>kPy8d*AxKl};iumYu^UeM+e_3>O+LY`D4?pD%;Vextj!(; zomJ(u+dR(0m>+-61HTV7!>03vqozyo@uY@Zh^KrW`w7^ENCYh86_P2VC|4}(ilMBe zwa&B|1a7%Qkd>d14}2*_yYr@8-N}^&?LfSwr)C~UUHr)ydENu=?ZHkvoLS~xTiBH= zD%A=OdoC+10l7@rXif~Z#^AvW+4M-(KQBj=Nhgts)>xmA--IJf1jSZF6>@Ns&nmv} zXRk`|`@P5_9W4O-SI|f^DCZ-n*yX@2gf6N)epc~lRWl7QgCyXdx|zr^gy>q`Vwn^y z&r3_zS}N=HmrVtTZhAQS`3$kBmVZDqr4+o(oNok?tqel9kn3;uUerFRti=k+&W{bb zT{ZtEf51Qf+|Jc*@(nyn#U+nr1SFpu4(I7<1a=)M_yPUAcKVF+(vK!|DTL2;P)yG~ zrI*7V)wN_92cM)j`PtAOFz_dO)jIfTeawh2{d@x0nd^#?pDkBTBzr0Oxgmvjt`U^$ zcTPl=iwuen=;7ExMVh7LLFSKUrTiPJpMB&*Ml32>wl} zYn(H0N4+>MCrm2BC4p{meYPafDEXd4yf$i%ylWpC|9%R4XZBUQiha(x%wgQ5iJ?K_wQBRfw z+pYuKoIameAWV7Ex4$PCd>bYD7)A9J`ri&bwTRN*w~7DR0EeLXW|I2()Zkl6vxiw? zFBX){0zT@w_4YUT4~@TXa;nPb^Tu$DJ=vluc~9)mZ}uHd#4*V_eS7)^eZ9oI%Wws_ z`;97^W|?_Z6xHSsE!3EKHPN<3IZ^jTJW=Il{rMmlnR#OuoE6dqOO1KOMpW84ZtDHNn)(pYvs=frO`$X}sY zKY0At$G85&2>B|-{*+B*aqQn&Mqjt*DVH2kdwEm5f}~Xwn9+tPt?EPwh8=8=VWA8rjt*bHEs1FJ92QohQ)Y z4sQH~AzB5!Pisyf?pVa0?L4gthx2;SKlrr?XRU`?Y>RJgUeJn!az#sNF7oDbzksrD zw8)f=f1t*UK&$}_ktf!yf4Rjt{56ffTA{A=9n})E7~iXaQkE+%GW4zqbmlYF(|hE@ z421q9`UQf$uA5yDLx67`=EnSTxdEaG!6C%9_obpb?;u-^QFX% zU1wQ}Li{PeT^fS;&Sk2#$ZM#Zpxrn7jsd<@qhfWy*H)cw9q!I9!fDOCw~4zg zbW`EHsTp9IQUCETUse)!ZmuRICx}0Oe1KVoqdK+u>67A8v`*X*!*_i5`_qTzYRkbYXg#4vT5~A{lK#bA}Oc4ePu5hr-@;i%Z!4Y;-(yR z(1rHYTc7i1h1aipP4DaIY3g2kF#MX{XW7g&zL!39ohO98=eo5nZtq+nz}2E$OZpxx z&OFaOM1O;?mxq+`%k>YS!-=H7BB&WhqSTUC{S!x*k9E zcB;u0I!h%3nEchQwu1GnNkaQxuWnW0D@Xq5j@5WE@E(WlgDU;FLsT*eV|Bh)aH0;~@^yygFj<=+Vu3p)LlF%1AA%y5z-Oh`2 z$RDKk_6r+f#I`8fQ%y#Wx%~de1qkWL2(q^~veLKwht-dIcpt(@lc>`~@mISRIPKPm zD!Za&aX@7dy*CT!&Z7JC1jP2@8+ro8SmlH>_gzRte%ojgiwfd?TR+%Ny0`sp`QRLy zl5TiQkFhIC!2aaJ&=Ua`c9UuOk9GkSFZ}!IGeMZ5MXrL zGtMj`m{(X9+l%=d|L zW2OY?8!_pyhvJ1@O!Chsf6}@3HmKq@)x;CFItPMpkSr@npO&8zMc_O?*|sqkuL^U? zV9+x3vbr|6;Ft0J^J>IH_xpa<{S5K?u-sQWC7FB9YFMwoCKK3WZ*gvO-wAApF`K%#7@1 z^sEj4*%hH`f0@sRDGI|#Dl20o$Z*gttP$q(_?#~2!H9(!d=)I93-3)?e%@$1^*F=t9t&OQ9!p84Z`+y<$yQ9wlamK~Hz2CRpS8dWJfBl@(M2qX!9d_F= zd|4A&U~8dX^M25wyC7$Swa22$G61V;fl{%Q4Lh!t_#=SP(sr_pvQ=wqOi`R)do~QX zk*_gsy75$xoi5XE&h7;-xVECk;DLoO0lJ3|6(Ba~ezi73_SYdCZPItS5MKaGE_1My zdQpx?h&RuoQ7I=UY{2Qf ziGQ-FpR%piffR_4X{74~>Q!=i`)J@T415!{8e`AXy`J#ZK)5WWm3oH?x1PVvcAqE@ zWI|DEUgxyN({@Y99vCJVwiGyx@9)y2jNg`R{$s2o;`4!^6nDX_pb~fTuzf>ZoPV@X zXKe1ehcZ+3dxCB+vikgKz8pvH?>ZzlOEObd{(-aWY;F0XIbuIjSA+!%TNy87a>BoX zsae$}Fcw&+)z@n{Fvzo;SkAw0U*}?unSO)^-+sbpNRjD8&qyfp%GNH;YKdHlz^)4( z;n%`#2Pw&DPA8tc)R9FW7EBR3?GDWhf@0(u3G4ijQV;{qp3B)`Fd}kMV}gB2U%4Sy z3x>YU&`V^PU$xWc4J!OG{Jglti@E3rdYo62K31iu!BU&pdo}S66Ctq{NB<88P92Y9 zTOqX$h6HH_8fKH(I>MEJZl1_2GB~xI+!|BLvN;CnQrjHuh?grzUO7h;1AbzLi|_O= z2S=(0tX#nBjN92gRsv;7`rDCATA!o(ZA}6)+;g;T#+1~HXGFD1@3D#|Ky9!E@)u=h z3@zg3Us0BCYmq(pB`^QTp|RB9!lX*{;7r|Z(^>J+av(0-oUmIdR78c4(q%hP#=R@W ze{;yy$T^8kXr(oC*#NQMZSQlgU)aa=BrZDwpLUk5tm&(AkNt&Gel`=ydcL*<@Ypx{ z2uOxl>2vSY2g3%Si&JU<9D5#{_z{9PzJh=miNH;STk^;5#%8iMRfPe#G~T>^U_zt? zgSE)`UQhb!G$at%yCf5MU)<&(L73(hY3*%qqPbX;`%QDHed3ZaWw^k)8Vjd#ePg@;I&pMe+A18k+S+bou|QX?8eQ`{P-0vrm=uR;Y(bHV>d>Gen4LHILqcm_ z3peDMRE3JMA8wWgPkSthI^K<|8aal38qvIcEgLjHAFB0P#IfqP2y}L>=8eBR}Fm^V*mw2Q4+o=exP@*#=Zs zIqHh@neG)Vy%v4cB1!L}w9J>IqAo}CsqbFPrUVc@;~Ld7t_2IIG=15mT7Itrjq#2~ zqX*&nwZP>vso$6W!#` z-YZ}jhBwQku-Qc>TIMpn%_z~`^u4v3Skyf)KA}V{`dr!Q;3xK1TuGYdl}$sKF^9X!*a-R*Oq1#tLq!W)gO}{q`1HM;oh1-k4FU@8W(qe>P05$+ z`ud2&;4IW4vq8#2yA{G>OH=G+pS_jctJ*BqD$j-MI#avR+<>m-`H1@{3VgKYn2_Ih z0`2_1qUMRuzgj_V^*;5Ax_0s{_3tYR>|$i#c!F7)#`oVGmsD*M2?%930cBSI4Mj>P zTm&JmUrvDXlB%zeA_7$&ogjGK3>SOlV$ct{4)P0k)Kua%*fx9?)_fkvz<(G=F`KCp zE`0j*=FzH$^Y@iUI}MM2Hf#Yr@oQdlJMB5xe0$aGNk%tgex;0)NEuVYtLEvOt{}ti zL`o$K9HnnUnl*;DTGTNiwr&ydfDp@3Y)g5$pcY9l1-9g;yn6SBr_S9MV8Xl+RWgwb zXL%kZLE4#4rUO(Pj484!=`jy74tQxD0Zg>99vvQ}R$7~GW)-0DVJR@$5}drsp3IQG zlrJL}M{+SdWbrO@+g2BY^a}0VdQtuoml`jJ2s6GsG5D@(^$5pMi3$27psEIOe^n=*Nj|Ug7VXN0OrwMrRq&@sR&vdnsRlI%*$vfmJ~)s z^?lstAT$Ked`b&UZ@A6I<(uCHGZ9pLqNhD_g-kj*Sa#0%(=8j}4zd;@!o;#vJ+Bsd z4&K4RIP>6It9Ir)ey?M6Gi6@JzKNg;=jM=$)gs2#u_WhvuTRwm1x2^*!e%l&j02xz zYInQgI$_V7Epzf3*BU~gos}|EurFj8l}hsI(!5yX!~ECL%cnYMS-e<`AKDL%(G)62 zPU;uF1(~(YbH2444JGh58coXT>(*CdEwaFuyvB|%CULgVQesH$ znB`vk3BMP<-QauWOZ0W6xB5y7?tE5cisG|V;bhY^8+*BH1T0ZLbn&gi12|a9Oa%;I zxvaxX_xe3@ng%;4C?zPHQ1v%dbhjA6Sl7w<*)Nr#F{Ahzj}%n9c&!g5HVrlvUO&R2C)_$x6M9 zahficAbeHL2%jILO>Pq&RPPxl;i{K5#O*Yt15AORTCvkjNfJ)LrN4K{sY7>tGuTQ@ z^?N*+xssG&sfp0c$^vV*H)U1O!fTHk8;Q7@42MT@z6UTd^&DKSxVcC-1OLjl7m63& zBb&goU!hes(GF^yc!107bkV6Pr%;A-WWd@DK2;&=zyiK*0i^0@f?fh2c)4&DRSjrI zk!W^=l^JKlPW9US{*yo?_XT@T2Bx+Cm^+r{*5LVcKVw*ll3+)lkebA-4)o z8f5xHWOx0!FDSs4nv@o@>mxTQrOeKzj@5uL`d>mXSp|#{FE54EE_!KtQNq>-G(&5) ztz?xkqPU16A-8@-quJ|SU^ClZ?bJ2kCJPB|6L>NTDYBprw$WcwCH{B z5qlJ6wK_9sT@Kl6G|Q&$gsl@WT>hE;nDAbH#%f1ZwuOkvWLj{qV$m3LF423&l!^iV zhym*>R>Yyens++~6F5+uZQTCz9t~PEW+e?w)XF2g!^^%6k?@Jcu;MG0FG9!T+Gx{Z zK;31y@(J{!-$k4E{5#Sv(2DGy3EZQY}G_*z*G&CZ_J?m&Fg4IBrvPx1w z1zAb3k}6nT?E)HNCi%}aR^?)%w-DcpBR*tD(r_c{QU6V&2vU-j0;{TVDN6los%YJZ z5C(*ZE#kv-BvlGLDf9>EO#RH_jtolA)iRJ>tSfJpF!#DO+tk% zBAKCwVZwO^p)(Rhk2en$XLfWjQQ`ix>K}Ru6-sn8Ih6k&$$y`zQ}}4dj~o@9gX9_= z#~EkchJqd5$**l}~~6mOl(q#GMIcFg&XCKO;$w>!K14 zko1egAORiG{r|8qj*FsN>?7d`han?*MD#xe^)sOqj;o;hgdaVnBH$BM{_73?znS+R z*G2VHM!Jw6#<FfJ-J%-9AuDW$@mc-Eyk~F{Jbvt` zn;(%DbBDnKIYr~|I>ZTvbH@cxUyw%bp*)OSs}lwO^HTJ2M#u5QsPF0?Jv*OVPfdKv z+t$Z5P!~jzZ~Y!d#iP?S{?M_g%Ua0Q)WawbIx+2uYpcf(7Im%W=rAu4dSceo7RZh# zN38=RmwOJQE$qbPXIuO^E`wSeJKCx3Q76irp~QS#19dusEVCWPrKhK9{7cbIMg9U} TZiJi*F`$tkWLn) diff --git a/sdks/kotlin/gradle/wrapper/gradle-wrapper.properties b/sdks/kotlin/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 7705927..0000000 --- a/sdks/kotlin/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,7 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip -networkTimeout=10000 -validateDistributionUrl=true -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/sdks/kotlin/gradlew b/sdks/kotlin/gradlew deleted file mode 100755 index 51eb8bb..0000000 --- a/sdks/kotlin/gradlew +++ /dev/null @@ -1,252 +0,0 @@ -#!/bin/sh - -# -# Copyright ยฉ 2015-2021 the original authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 -# - -############################################################################## -# -# Gradle start up script for POSIX generated by Gradle. -# -# Important for running: -# -# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is -# noncompliant, but you have some other compliant shell such as ksh or -# bash, then to run this script, type that shell name before the whole -# command line, like: -# -# ksh Gradle -# -# Busybox and similar reduced shells will NOT work, because this script -# requires all of these POSIX shell features: -# * functions; -# * expansions ยซ$varยป, ยซ${var}ยป, ยซ${var:-default}ยป, ยซ${var+SET}ยป, -# ยซ${var#prefix}ยป, ยซ${var%suffix}ยป, and ยซ$( cmd )ยป; -# * compound commands having a testable exit status, especially ยซcaseยป; -# * various built-in commands including ยซcommandยป, ยซsetยป, and ยซulimitยป. -# -# Important for patching: -# -# (2) This script targets any POSIX shell, so it avoids extensions provided -# by Bash, Ksh, etc; in particular arrays are avoided. -# -# The "traditional" practice of packing multiple parameters into a -# space-separated string is a well documented source of bugs and security -# problems, so this is (mostly) avoided, by progressively accumulating -# options in "$@", and eventually passing that to Java. -# -# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, -# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; -# see the in-line comments for details. -# -# There are tweaks for specific operating systems such as AIX, CygWin, -# Darwin, MinGW, and NonStop. -# -# (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt -# within the Gradle project. -# -# You can find Gradle at https://github.com/gradle/gradle/. -# -############################################################################## - -# Attempt to set APP_HOME - -# Resolve links: $0 may be a link -app_path=$0 - -# Need this for daisy-chained symlinks. -while -APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path -[ -h "$app_path" ] -do -ls=$( ls -ld "$app_path" ) -link=${ls#*' -> '} -case $link in #( -/*) app_path=$link ;; #( -*) app_path=$APP_HOME$link ;; -esac -done - -# This is normally unused -# shellcheck disable=SC2034 -APP_BASE_NAME=${0##*/} -# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s -' "$PWD" ) || exit - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { -echo "$*" -} >&2 - -die () { -echo -echo "$*" -echo -exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( -CYGWIN* ) cygwin=true ;; #( -Darwin* ) darwin=true ;; #( -MSYS* | MINGW* ) msys=true ;; #( -NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then -if [ -x "$JAVA_HOME/jre/sh/java" ] ; then -# IBM's JDK on AIX uses strange locations for the executables -JAVACMD=$JAVA_HOME/jre/sh/java -else -JAVACMD=$JAVA_HOME/bin/java -fi -if [ ! -x "$JAVACMD" ] ; then -die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -else -JAVACMD=java -if ! command -v java >/dev/null 2>&1 -then -die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then -case $MAX_FD in #( -max*) -# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. -# shellcheck disable=SC2039,SC3045 -MAX_FD=$( ulimit -H -n ) || -warn "Could not query maximum file descriptor limit" -esac -case $MAX_FD in #( -'' | soft) :;; #( -*) -# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. -# shellcheck disable=SC2039,SC3045 -ulimit -n "$MAX_FD" || -warn "Could not set maximum file descriptor limit to $MAX_FD" -esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then -APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) -CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - -JAVACMD=$( cygpath --unix "$JAVACMD" ) - -# Now convert the arguments - kludge to limit ourselves to /bin/sh -for arg do -if -case $arg in #( --*) false ;; # don't mess with options #( -/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath -[ -e "$t" ] ;; #( -*) false ;; -esac -then -arg=$( cygpath --path --ignore --mixed "$arg" ) -fi -# Roll the args list around exactly as many times as the number of -# args, so each arg winds up back in the position where it started, but -# possibly modified. -# -# NB: a `for` loop captures its iteration list before it begins, so -# changing the positional parameters here affects neither the number of -# iterations, nor the values presented in `arg`. -shift # remove old arg -set -- "$@" "$arg" # push replacement arg -done -fi - - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, -# and any embedded shellness will be escaped. -# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be -# treated as '${Hostname}' itself on the command line. - -set -- \ -"-Dorg.gradle.appname=$APP_BASE_NAME" \ --classpath "$CLASSPATH" \ -org.gradle.wrapper.GradleWrapperMain \ -"$@" - -# Stop when "xargs" is not available. -if ! command -v xargs >/dev/null 2>&1 -then -die "xargs is not available" -fi - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( -printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | -xargs -n1 | -sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | -tr '\n' ' ' -)" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/sdks/kotlin/gradlew.bat b/sdks/kotlin/gradlew.bat deleted file mode 100644 index 9d21a21..0000000 --- a/sdks/kotlin/gradlew.bat +++ /dev/null @@ -1,94 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem -@rem SPDX-License-Identifier: Apache-2.0 -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/sdks/kotlin/settings.gradle.kts b/sdks/kotlin/settings.gradle.kts deleted file mode 100644 index d8a4ef1..0000000 --- a/sdks/kotlin/settings.gradle.kts +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "keynetra-client-kotlin" diff --git a/sdks/php/.gitignore b/sdks/php/.gitignore deleted file mode 100644 index 9f1681c..0000000 --- a/sdks/php/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore - -composer.phar -/vendor/ - -# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -# composer.lock - -# php-cs-fixer cache -.php_cs.cache -.php-cs-fixer.cache - -# PHPUnit cache -.phpunit.result.cache diff --git a/sdks/php/.php-cs-fixer.dist.php b/sdks/php/.php-cs-fixer.dist.php deleted file mode 100644 index af9cf39..0000000 --- a/sdks/php/.php-cs-fixer.dist.php +++ /dev/null @@ -1,29 +0,0 @@ -in(__DIR__) - ->exclude('vendor') - ->exclude('test') - ->exclude('tests') -; - -$config = new PhpCsFixer\Config(); -return $config->setRules([ - '@PSR12' => true, - 'phpdoc_order' => true, - 'array_syntax' => [ 'syntax' => 'short' ], - 'strict_comparison' => true, - 'strict_param' => true, - 'no_trailing_whitespace' => false, - 'no_trailing_whitespace_in_comment' => false, - 'braces' => false, - 'single_blank_line_at_eof' => false, - 'blank_line_after_namespace' => false, - 'no_leading_import_slash' => false, - ]) - ->setFinder($finder) -; diff --git a/sdks/php/.travis.yml b/sdks/php/.travis.yml deleted file mode 100644 index 667b815..0000000 --- a/sdks/php/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: php -# Bionic environment has preinstalled PHP from 7.1 to 7.4 -# https://docs.travis-ci.com/user/reference/bionic/#php-support -dist: bionic -php: - - 7.4 -before_install: "composer install" -script: "vendor/bin/phpunit" diff --git a/sdks/php/README.md b/sdks/php/README.md deleted file mode 100644 index bcc37c5..0000000 --- a/sdks/php/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# keynetra/client - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/php) - -Official PHP Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your PHP applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -composer require keynetra/client -``` - -## ๐Ÿš€ Quick Start - -```php -use KeyNetra\Client\KeyNetraClient; - -$client = new KeyNetraClient( - "http://localhost:8080", - "YOUR_API_KEY" -); - -// Perform an access check -$decision = $client->getAccessApi()->checkAccess(...); -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/php). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-php](https://github.com/keynetra/keynetra-client-php) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-php/issues) -- **License**: Apache-2.0 - diff --git a/sdks/php/composer.json b/sdks/php/composer.json deleted file mode 100644 index b53b708..0000000 --- a/sdks/php/composer.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "keynetra/client", - "description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)", - "keywords": [ - "openapitools", - "openapi-generator", - "openapi", - "php", - "sdk", - "rest", - "api" - ], - "homepage": "https://openapi-generator.tech", - "license": "Apache-2.0", - "authors": [ - { - "name": "KeyNetra", - "homepage": "https://keynetra.com" - } - ], - "require": { - "php": "^8.1", - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*", - "guzzlehttp/guzzle": "^7.3", - "guzzlehttp/psr7": "^1.7 || ^2.0" - }, - "require-dev": { - "phpunit/phpunit": "^8.0 || ^9.0", - "friendsofphp/php-cs-fixer": "^3.5" - }, - "autoload": { - "psr-4": { "KeyNetra\\Client\\" : "lib/" } - }, - "autoload-dev": { - "psr-4": { "KeyNetra\\Client\\Test\\" : "test/" } - } -} diff --git a/sdks/php/docs/Api/AccessApi.md b/sdks/php/docs/Api/AccessApi.md deleted file mode 100644 index 99a4604..0000000 --- a/sdks/php/docs/Api/AccessApi.md +++ /dev/null @@ -1,205 +0,0 @@ -# KeyNetra\Client\AccessApi - - - -All URIs are relative to http://localhost, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**checkAccessBatchCheckAccessBatchPost()**](AccessApi.md#checkAccessBatchCheckAccessBatchPost) | **POST** /check-access-batch | Check Access Batch | -| [**checkAccessCheckAccessPost()**](AccessApi.md#checkAccessCheckAccessPost) | **POST** /check-access | Check Access | -| [**simulateSimulatePost()**](AccessApi.md#simulateSimulatePost) | **POST** /simulate | Simulate | - - -## `checkAccessBatchCheckAccessBatchPost()` - -```php -checkAccessBatchCheckAccessBatchPost($batchAccessRequest, $policySet): \KeyNetra\Client\Model\SuccessResponseBatchAccessResponse -``` - -Check Access Batch - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\AccessApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$batchAccessRequest = new \KeyNetra\Client\Model\BatchAccessRequest(); // \KeyNetra\Client\Model\BatchAccessRequest -$policySet = 'active'; // string - -try { - $result = $apiInstance->checkAccessBatchCheckAccessBatchPost($batchAccessRequest, $policySet); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AccessApi->checkAccessBatchCheckAccessBatchPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **batchAccessRequest** | [**\KeyNetra\Client\Model\BatchAccessRequest**](../Model/BatchAccessRequest.md)| | | -| **policySet** | **string**| | [optional] [default to 'active'] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseBatchAccessResponse**](../Model/SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `checkAccessCheckAccessPost()` - -```php -checkAccessCheckAccessPost($accessRequest, $policySet): \KeyNetra\Client\Model\SuccessResponseAccessDecisionResponse -``` - -Check Access - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\AccessApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$accessRequest = new \KeyNetra\Client\Model\AccessRequest(); // \KeyNetra\Client\Model\AccessRequest -$policySet = 'active'; // string - -try { - $result = $apiInstance->checkAccessCheckAccessPost($accessRequest, $policySet); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AccessApi->checkAccessCheckAccessPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **accessRequest** | [**\KeyNetra\Client\Model\AccessRequest**](../Model/AccessRequest.md)| | | -| **policySet** | **string**| | [optional] [default to 'active'] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseAccessDecisionResponse**](../Model/SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `simulateSimulatePost()` - -```php -simulateSimulatePost($accessRequest): \KeyNetra\Client\Model\SuccessResponseSimulationResponse -``` - -Simulate - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\AccessApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$accessRequest = new \KeyNetra\Client\Model\AccessRequest(); // \KeyNetra\Client\Model\AccessRequest - -try { - $result = $apiInstance->simulateSimulatePost($accessRequest); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AccessApi->simulateSimulatePost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **accessRequest** | [**\KeyNetra\Client\Model\AccessRequest**](../Model/AccessRequest.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseSimulationResponse**](../Model/SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/AuthApi.md b/sdks/php/docs/Api/AuthApi.md deleted file mode 100644 index b78b2cc..0000000 --- a/sdks/php/docs/Api/AuthApi.md +++ /dev/null @@ -1,119 +0,0 @@ -# KeyNetra\Client\AuthApi - - - -All URIs are relative to http://localhost, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**adminLoginAdminLoginPost()**](AuthApi.md#adminLoginAdminLoginPost) | **POST** /admin/login | Admin Login | -| [**adminLoginAdminLoginPost_0()**](AuthApi.md#adminLoginAdminLoginPost_0) | **POST** /admin/login | Admin Login | - - -## `adminLoginAdminLoginPost()` - -```php -adminLoginAdminLoginPost($adminLoginRequest): \KeyNetra\Client\Model\SuccessResponseAdminLoginResponse -``` - -Admin Login - -### Example - -```php -adminLoginAdminLoginPost($adminLoginRequest); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AuthApi->adminLoginAdminLoginPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **adminLoginRequest** | [**\KeyNetra\Client\Model\AdminLoginRequest**](../Model/AdminLoginRequest.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseAdminLoginResponse**](../Model/SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `adminLoginAdminLoginPost_0()` - -```php -adminLoginAdminLoginPost_0($adminLoginRequest): \KeyNetra\Client\Model\SuccessResponseAdminLoginResponse -``` - -Admin Login - -### Example - -```php -adminLoginAdminLoginPost_0($adminLoginRequest); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AuthApi->adminLoginAdminLoginPost_0: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **adminLoginRequest** | [**\KeyNetra\Client\Model\AdminLoginRequest**](../Model/AdminLoginRequest.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseAdminLoginResponse**](../Model/SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/DevApi.md b/sdks/php/docs/Api/DevApi.md deleted file mode 100644 index 4ff9fa1..0000000 --- a/sdks/php/docs/Api/DevApi.md +++ /dev/null @@ -1,116 +0,0 @@ -# KeyNetra\Client\DevApi - - - -All URIs are relative to http://localhost, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**getSampleDataDevSampleDataGet()**](DevApi.md#getSampleDataDevSampleDataGet) | **GET** /dev/sample-data | Get Sample Data | -| [**seedSampleDataDevSampleDataSeedPost()**](DevApi.md#seedSampleDataDevSampleDataSeedPost) | **POST** /dev/sample-data/seed | Seed Sample Data | - - -## `getSampleDataDevSampleDataGet()` - -```php -getSampleDataDevSampleDataGet(): \KeyNetra\Client\Model\SuccessResponseDictStrObject -``` - -Get Sample Data - -### Example - -```php -getSampleDataDevSampleDataGet(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling DevApi->getSampleDataDevSampleDataGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrObject**](../Model/SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `seedSampleDataDevSampleDataSeedPost()` - -```php -seedSampleDataDevSampleDataSeedPost($reset): \KeyNetra\Client\Model\SuccessResponseDictStrObject -``` - -Seed Sample Data - -### Example - -```php -seedSampleDataDevSampleDataSeedPost($reset); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling DevApi->seedSampleDataDevSampleDataSeedPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **reset** | **bool**| Clear the sample dataset before reseeding it. | [optional] [default to false] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrObject**](../Model/SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/HealthApi.md b/sdks/php/docs/Api/HealthApi.md deleted file mode 100644 index 100e222..0000000 --- a/sdks/php/docs/Api/HealthApi.md +++ /dev/null @@ -1,165 +0,0 @@ -# KeyNetra\Client\HealthApi - - - -All URIs are relative to http://localhost, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**healthHealthGet()**](HealthApi.md#healthHealthGet) | **GET** /health | Health | -| [**livenessHealthLiveGet()**](HealthApi.md#livenessHealthLiveGet) | **GET** /health/live | Liveness | -| [**readinessHealthReadyGet()**](HealthApi.md#readinessHealthReadyGet) | **GET** /health/ready | Readiness | - - -## `healthHealthGet()` - -```php -healthHealthGet(): \KeyNetra\Client\Model\SuccessResponseDictStrStr -``` - -Health - -### Example - -```php -healthHealthGet(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling HealthApi->healthHealthGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrStr**](../Model/SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `livenessHealthLiveGet()` - -```php -livenessHealthLiveGet(): \KeyNetra\Client\Model\SuccessResponseDictStrStr -``` - -Liveness - -### Example - -```php -livenessHealthLiveGet(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling HealthApi->livenessHealthLiveGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrStr**](../Model/SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `readinessHealthReadyGet()` - -```php -readinessHealthReadyGet(): \KeyNetra\Client\Model\SuccessResponseDictStrObject -``` - -Readiness - -### Example - -```php -readinessHealthReadyGet(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling HealthApi->readinessHealthReadyGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrObject**](../Model/SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/ManagementApi.md b/sdks/php/docs/Api/ManagementApi.md deleted file mode 100644 index c02e8fb..0000000 --- a/sdks/php/docs/Api/ManagementApi.md +++ /dev/null @@ -1,1836 +0,0 @@ -# KeyNetra\Client\ManagementApi - - - -All URIs are relative to http://localhost, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost()**](ManagementApi.md#addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| [**createAclEntryAclPost()**](ManagementApi.md#createAclEntryAclPost) | **POST** /acl | Create Acl Entry | -| [**createAuthModelAuthModelPost()**](ManagementApi.md#createAuthModelAuthModelPost) | **POST** /auth-model | Create Auth Model | -| [**createPermissionPermissionsPost()**](ManagementApi.md#createPermissionPermissionsPost) | **POST** /permissions | Create Permission | -| [**createPolicyFromDslPoliciesDslPost()**](ManagementApi.md#createPolicyFromDslPoliciesDslPost) | **POST** /policies/dsl | Create Policy From Dsl | -| [**createPolicyPoliciesPost()**](ManagementApi.md#createPolicyPoliciesPost) | **POST** /policies | Create Policy | -| [**createRelationshipRelationshipsPost()**](ManagementApi.md#createRelationshipRelationshipsPost) | **POST** /relationships | Create Relationship | -| [**createRoleRolesPost()**](ManagementApi.md#createRoleRolesPost) | **POST** /roles | Create Role | -| [**deleteAclEntryAclAclIdDelete()**](ManagementApi.md#deleteAclEntryAclAclIdDelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| [**deletePermissionPermissionsPermissionIdDelete()**](ManagementApi.md#deletePermissionPermissionsPermissionIdDelete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| [**deletePolicyPoliciesPolicyKeyDelete()**](ManagementApi.md#deletePolicyPoliciesPolicyKeyDelete) | **DELETE** /policies/{policy_key} | Delete Policy | -| [**deleteRoleRolesRoleIdDelete()**](ManagementApi.md#deleteRoleRolesRoleIdDelete) | **DELETE** /roles/{role_id} | Delete Role | -| [**getAuthModelAuthModelGet()**](ManagementApi.md#getAuthModelAuthModelGet) | **GET** /auth-model | Get Auth Model | -| [**impactAnalysisImpactAnalysisPost()**](ManagementApi.md#impactAnalysisImpactAnalysisPost) | **POST** /impact-analysis | Impact Analysis | -| [**listAclEntriesAclResourceTypeResourceIdGet()**](ManagementApi.md#listAclEntriesAclResourceTypeResourceIdGet) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| [**listAuditLogsAuditGet()**](ManagementApi.md#listAuditLogsAuditGet) | **GET** /audit | List Audit Logs | -| [**listPermissionRolesPermissionsPermissionIdRolesGet()**](ManagementApi.md#listPermissionRolesPermissionsPermissionIdRolesGet) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| [**listPermissionsPermissionsGet()**](ManagementApi.md#listPermissionsPermissionsGet) | **GET** /permissions | List Permissions | -| [**listPoliciesPoliciesGet()**](ManagementApi.md#listPoliciesPoliciesGet) | **GET** /policies | List Policies | -| [**listRelationshipsRelationshipsGet()**](ManagementApi.md#listRelationshipsRelationshipsGet) | **GET** /relationships | List Relationships | -| [**listRolePermissionsRolesRoleIdPermissionsGet()**](ManagementApi.md#listRolePermissionsRolesRoleIdPermissionsGet) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| [**listRolesRolesGet()**](ManagementApi.md#listRolesRolesGet) | **GET** /roles | List Roles | -| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete()**](ManagementApi.md#removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost()**](ManagementApi.md#rollbackPolicyPoliciesPolicyKeyRollbackVersionPost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| [**simulatePolicySimulatePolicyPost()**](ManagementApi.md#simulatePolicySimulatePolicyPost) | **POST** /simulate-policy | Simulate Policy | -| [**updatePermissionPermissionsPermissionIdPut()**](ManagementApi.md#updatePermissionPermissionsPermissionIdPut) | **PUT** /permissions/{permission_id} | Update Permission | -| [**updatePolicyPoliciesPolicyKeyPut()**](ManagementApi.md#updatePolicyPoliciesPolicyKeyPut) | **PUT** /policies/{policy_key} | Update Policy | -| [**updateRoleRolesRoleIdPut()**](ManagementApi.md#updateRoleRolesRoleIdPut) | **PUT** /roles/{role_id} | Update Role | - - -## `addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost()` - -```php -addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost($roleId, $permissionId): \KeyNetra\Client\Model\SuccessResponsePermissionOut -``` - -Add Permission To Role - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$roleId = 56; // int -$permissionId = 56; // int - -try { - $result = $apiInstance->addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost($roleId, $permissionId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **int**| | | -| **permissionId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponsePermissionOut**](../Model/SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createAclEntryAclPost()` - -```php -createAclEntryAclPost($aCLCreate): \KeyNetra\Client\Model\SuccessResponseACLOut -``` - -Create Acl Entry - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$aCLCreate = new \KeyNetra\Client\Model\ACLCreate(); // \KeyNetra\Client\Model\ACLCreate - -try { - $result = $apiInstance->createAclEntryAclPost($aCLCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createAclEntryAclPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **aCLCreate** | [**\KeyNetra\Client\Model\ACLCreate**](../Model/ACLCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseACLOut**](../Model/SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createAuthModelAuthModelPost()` - -```php -createAuthModelAuthModelPost($authModelCreate): \KeyNetra\Client\Model\SuccessResponseAuthModelOut -``` - -Create Auth Model - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$authModelCreate = new \KeyNetra\Client\Model\AuthModelCreate(); // \KeyNetra\Client\Model\AuthModelCreate - -try { - $result = $apiInstance->createAuthModelAuthModelPost($authModelCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createAuthModelAuthModelPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **authModelCreate** | [**\KeyNetra\Client\Model\AuthModelCreate**](../Model/AuthModelCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseAuthModelOut**](../Model/SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createPermissionPermissionsPost()` - -```php -createPermissionPermissionsPost($permissionCreate): \KeyNetra\Client\Model\PermissionOut -``` - -Create Permission - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$permissionCreate = new \KeyNetra\Client\Model\PermissionCreate(); // \KeyNetra\Client\Model\PermissionCreate - -try { - $result = $apiInstance->createPermissionPermissionsPost($permissionCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createPermissionPermissionsPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionCreate** | [**\KeyNetra\Client\Model\PermissionCreate**](../Model/PermissionCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\PermissionOut**](../Model/PermissionOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createPolicyFromDslPoliciesDslPost()` - -```php -createPolicyFromDslPoliciesDslPost($dsl): \KeyNetra\Client\Model\SuccessResponsePolicyOut -``` - -Create Policy From Dsl - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$dsl = 'dsl_example'; // string - -try { - $result = $apiInstance->createPolicyFromDslPoliciesDslPost($dsl); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createPolicyFromDslPoliciesDslPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **dsl** | **string**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponsePolicyOut**](../Model/SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createPolicyPoliciesPost()` - -```php -createPolicyPoliciesPost($policyCreate): \KeyNetra\Client\Model\SuccessResponsePolicyOut -``` - -Create Policy - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$policyCreate = new \KeyNetra\Client\Model\PolicyCreate(); // \KeyNetra\Client\Model\PolicyCreate - -try { - $result = $apiInstance->createPolicyPoliciesPost($policyCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createPolicyPoliciesPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyCreate** | [**\KeyNetra\Client\Model\PolicyCreate**](../Model/PolicyCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponsePolicyOut**](../Model/SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createRelationshipRelationshipsPost()` - -```php -createRelationshipRelationshipsPost($relationshipCreate): \KeyNetra\Client\Model\SuccessResponseRelationshipOut -``` - -Create Relationship - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$relationshipCreate = new \KeyNetra\Client\Model\RelationshipCreate(); // \KeyNetra\Client\Model\RelationshipCreate - -try { - $result = $apiInstance->createRelationshipRelationshipsPost($relationshipCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createRelationshipRelationshipsPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **relationshipCreate** | [**\KeyNetra\Client\Model\RelationshipCreate**](../Model/RelationshipCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseRelationshipOut**](../Model/SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `createRoleRolesPost()` - -```php -createRoleRolesPost($roleCreate): \KeyNetra\Client\Model\RoleOut -``` - -Create Role - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$roleCreate = new \KeyNetra\Client\Model\RoleCreate(); // \KeyNetra\Client\Model\RoleCreate - -try { - $result = $apiInstance->createRoleRolesPost($roleCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->createRoleRolesPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleCreate** | [**\KeyNetra\Client\Model\RoleCreate**](../Model/RoleCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\RoleOut**](../Model/RoleOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `deleteAclEntryAclAclIdDelete()` - -```php -deleteAclEntryAclAclIdDelete($aclId): \KeyNetra\Client\Model\SuccessResponseDictStrInt -``` - -Delete Acl Entry - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$aclId = 56; // int - -try { - $result = $apiInstance->deleteAclEntryAclAclIdDelete($aclId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->deleteAclEntryAclAclIdDelete: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **aclId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `deletePermissionPermissionsPermissionIdDelete()` - -```php -deletePermissionPermissionsPermissionIdDelete($permissionId): \KeyNetra\Client\Model\SuccessResponseDictStrInt -``` - -Delete Permission - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$permissionId = 56; // int - -try { - $result = $apiInstance->deletePermissionPermissionsPermissionIdDelete($permissionId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->deletePermissionPermissionsPermissionIdDelete: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `deletePolicyPoliciesPolicyKeyDelete()` - -```php -deletePolicyPoliciesPolicyKeyDelete($policyKey): \KeyNetra\Client\Model\SuccessResponseDictStrStr -``` - -Delete Policy - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$policyKey = 'policyKey_example'; // string - -try { - $result = $apiInstance->deletePolicyPoliciesPolicyKeyDelete($policyKey); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->deletePolicyPoliciesPolicyKeyDelete: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyKey** | **string**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrStr**](../Model/SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `deleteRoleRolesRoleIdDelete()` - -```php -deleteRoleRolesRoleIdDelete($roleId): \KeyNetra\Client\Model\SuccessResponseDictStrInt -``` - -Delete Role - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$roleId = 56; // int - -try { - $result = $apiInstance->deleteRoleRolesRoleIdDelete($roleId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->deleteRoleRolesRoleIdDelete: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `getAuthModelAuthModelGet()` - -```php -getAuthModelAuthModelGet(): \KeyNetra\Client\Model\SuccessResponseAuthModelOut -``` - -Get Auth Model - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); - -try { - $result = $apiInstance->getAuthModelAuthModelGet(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->getAuthModelAuthModelGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseAuthModelOut**](../Model/SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `impactAnalysisImpactAnalysisPost()` - -```php -impactAnalysisImpactAnalysisPost($impactAnalysisRequest): \KeyNetra\Client\Model\SuccessResponseImpactAnalysisResponse -``` - -Impact Analysis - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$impactAnalysisRequest = new \KeyNetra\Client\Model\ImpactAnalysisRequest(); // \KeyNetra\Client\Model\ImpactAnalysisRequest - -try { - $result = $apiInstance->impactAnalysisImpactAnalysisPost($impactAnalysisRequest); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->impactAnalysisImpactAnalysisPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **impactAnalysisRequest** | [**\KeyNetra\Client\Model\ImpactAnalysisRequest**](../Model/ImpactAnalysisRequest.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseImpactAnalysisResponse**](../Model/SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listAclEntriesAclResourceTypeResourceIdGet()` - -```php -listAclEntriesAclResourceTypeResourceIdGet($resourceType, $resourceId): \KeyNetra\Client\Model\SuccessResponseListACLOut -``` - -List Acl Entries - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$resourceType = 'resourceType_example'; // string -$resourceId = 'resourceId_example'; // string - -try { - $result = $apiInstance->listAclEntriesAclResourceTypeResourceIdGet($resourceType, $resourceId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listAclEntriesAclResourceTypeResourceIdGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **resourceType** | **string**| | | -| **resourceId** | **string**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListACLOut**](../Model/SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listAuditLogsAuditGet()` - -```php -listAuditLogsAuditGet($limit, $cursor, $userId, $resourceId, $decision, $startTime, $endTime): \KeyNetra\Client\Model\SuccessResponseListAuditRecordOut -``` - -List Audit Logs - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$limit = 50; // int -$cursor = 'cursor_example'; // string -$userId = 'userId_example'; // string -$resourceId = 'resourceId_example'; // string -$decision = 'decision_example'; // string -$startTime = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime -$endTime = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime - -try { - $result = $apiInstance->listAuditLogsAuditGet($limit, $cursor, $userId, $resourceId, $decision, $startTime, $endTime); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listAuditLogsAuditGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **limit** | **int**| | [optional] [default to 50] | -| **cursor** | **string**| | [optional] | -| **userId** | **string**| | [optional] | -| **resourceId** | **string**| | [optional] | -| **decision** | **string**| | [optional] | -| **startTime** | **\DateTime**| | [optional] | -| **endTime** | **\DateTime**| | [optional] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListAuditRecordOut**](../Model/SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listPermissionRolesPermissionsPermissionIdRolesGet()` - -```php -listPermissionRolesPermissionsPermissionIdRolesGet($permissionId): \KeyNetra\Client\Model\SuccessResponseListRoleOut -``` - -List Permission Roles - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$permissionId = 56; // int - -try { - $result = $apiInstance->listPermissionRolesPermissionsPermissionIdRolesGet($permissionId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listPermissionRolesPermissionsPermissionIdRolesGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListRoleOut**](../Model/SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listPermissionsPermissionsGet()` - -```php -listPermissionsPermissionsGet($limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListPermissionOut -``` - -List Permissions - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$limit = 50; // int -$cursor = 'cursor_example'; // string - -try { - $result = $apiInstance->listPermissionsPermissionsGet($limit, $cursor); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listPermissionsPermissionsGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **limit** | **int**| | [optional] [default to 50] | -| **cursor** | **string**| | [optional] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListPermissionOut**](../Model/SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listPoliciesPoliciesGet()` - -```php -listPoliciesPoliciesGet($limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListPolicyOut -``` - -List Policies - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$limit = 50; // int -$cursor = 'cursor_example'; // string - -try { - $result = $apiInstance->listPoliciesPoliciesGet($limit, $cursor); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listPoliciesPoliciesGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **limit** | **int**| | [optional] [default to 50] | -| **cursor** | **string**| | [optional] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListPolicyOut**](../Model/SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listRelationshipsRelationshipsGet()` - -```php -listRelationshipsRelationshipsGet($subjectType, $subjectId, $limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListDictStrStr -``` - -List Relationships - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$subjectType = 'subjectType_example'; // string -$subjectId = 'subjectId_example'; // string -$limit = 50; // int -$cursor = 'cursor_example'; // string - -try { - $result = $apiInstance->listRelationshipsRelationshipsGet($subjectType, $subjectId, $limit, $cursor); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listRelationshipsRelationshipsGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **subjectType** | **string**| | | -| **subjectId** | **string**| | | -| **limit** | **int**| | [optional] [default to 50] | -| **cursor** | **string**| | [optional] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListDictStrStr**](../Model/SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listRolePermissionsRolesRoleIdPermissionsGet()` - -```php -listRolePermissionsRolesRoleIdPermissionsGet($roleId): \KeyNetra\Client\Model\SuccessResponseListPermissionOut -``` - -List Role Permissions - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$roleId = 56; // int - -try { - $result = $apiInstance->listRolePermissionsRolesRoleIdPermissionsGet($roleId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listRolePermissionsRolesRoleIdPermissionsGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListPermissionOut**](../Model/SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `listRolesRolesGet()` - -```php -listRolesRolesGet($limit, $cursor): \KeyNetra\Client\Model\SuccessResponseListRoleOut -``` - -List Roles - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$limit = 50; // int -$cursor = 'cursor_example'; // string - -try { - $result = $apiInstance->listRolesRolesGet($limit, $cursor); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->listRolesRolesGet: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **limit** | **int**| | [optional] [default to 50] | -| **cursor** | **string**| | [optional] | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseListRoleOut**](../Model/SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete()` - -```php -removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete($roleId, $permissionId): \KeyNetra\Client\Model\SuccessResponseDictStrInt -``` - -Remove Permission From Role - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$roleId = 56; // int -$permissionId = 56; // int - -try { - $result = $apiInstance->removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete($roleId, $permissionId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **int**| | | -| **permissionId** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrInt**](../Model/SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `rollbackPolicyPoliciesPolicyKeyRollbackVersionPost()` - -```php -rollbackPolicyPoliciesPolicyKeyRollbackVersionPost($policyKey, $version): \KeyNetra\Client\Model\SuccessResponseDictStrUnionIntStr -``` - -Rollback Policy - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$policyKey = 'policyKey_example'; // string -$version = 56; // int - -try { - $result = $apiInstance->rollbackPolicyPoliciesPolicyKeyRollbackVersionPost($policyKey, $version); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->rollbackPolicyPoliciesPolicyKeyRollbackVersionPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyKey** | **string**| | | -| **version** | **int**| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrUnionIntStr**](../Model/SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `simulatePolicySimulatePolicyPost()` - -```php -simulatePolicySimulatePolicyPost($policySimulationRequest): \KeyNetra\Client\Model\SuccessResponsePolicySimulationResponse -``` - -Simulate Policy - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$policySimulationRequest = new \KeyNetra\Client\Model\PolicySimulationRequest(); // \KeyNetra\Client\Model\PolicySimulationRequest - -try { - $result = $apiInstance->simulatePolicySimulatePolicyPost($policySimulationRequest); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->simulatePolicySimulatePolicyPost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policySimulationRequest** | [**\KeyNetra\Client\Model\PolicySimulationRequest**](../Model/PolicySimulationRequest.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponsePolicySimulationResponse**](../Model/SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `updatePermissionPermissionsPermissionIdPut()` - -```php -updatePermissionPermissionsPermissionIdPut($permissionId, $permissionUpdate): \KeyNetra\Client\Model\PermissionOut -``` - -Update Permission - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$permissionId = 56; // int -$permissionUpdate = new \KeyNetra\Client\Model\PermissionUpdate(); // \KeyNetra\Client\Model\PermissionUpdate - -try { - $result = $apiInstance->updatePermissionPermissionsPermissionIdPut($permissionId, $permissionUpdate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->updatePermissionPermissionsPermissionIdPut: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **permissionId** | **int**| | | -| **permissionUpdate** | [**\KeyNetra\Client\Model\PermissionUpdate**](../Model/PermissionUpdate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\PermissionOut**](../Model/PermissionOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `updatePolicyPoliciesPolicyKeyPut()` - -```php -updatePolicyPoliciesPolicyKeyPut($policyKey, $policyCreate): \KeyNetra\Client\Model\SuccessResponsePolicyOut -``` - -Update Policy - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$policyKey = 'policyKey_example'; // string -$policyCreate = new \KeyNetra\Client\Model\PolicyCreate(); // \KeyNetra\Client\Model\PolicyCreate - -try { - $result = $apiInstance->updatePolicyPoliciesPolicyKeyPut($policyKey, $policyCreate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->updatePolicyPoliciesPolicyKeyPut: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **policyKey** | **string**| | | -| **policyCreate** | [**\KeyNetra\Client\Model\PolicyCreate**](../Model/PolicyCreate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponsePolicyOut**](../Model/SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `updateRoleRolesRoleIdPut()` - -```php -updateRoleRolesRoleIdPut($roleId, $roleUpdate): \KeyNetra\Client\Model\RoleOut -``` - -Update Role - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\ManagementApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$roleId = 56; // int -$roleUpdate = new \KeyNetra\Client\Model\RoleUpdate(); // \KeyNetra\Client\Model\RoleUpdate - -try { - $result = $apiInstance->updateRoleRolesRoleIdPut($roleId, $roleUpdate); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ManagementApi->updateRoleRolesRoleIdPut: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **roleId** | **int**| | | -| **roleUpdate** | [**\KeyNetra\Client\Model\RoleUpdate**](../Model/RoleUpdate.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\RoleOut**](../Model/RoleOut.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Api/PlaygroundApi.md b/sdks/php/docs/Api/PlaygroundApi.md deleted file mode 100644 index f19ff74..0000000 --- a/sdks/php/docs/Api/PlaygroundApi.md +++ /dev/null @@ -1,73 +0,0 @@ -# KeyNetra\Client\PlaygroundApi - - - -All URIs are relative to http://localhost, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**evaluatePlaygroundEvaluatePost()**](PlaygroundApi.md#evaluatePlaygroundEvaluatePost) | **POST** /playground/evaluate | Evaluate | - - -## `evaluatePlaygroundEvaluatePost()` - -```php -evaluatePlaygroundEvaluatePost($playgroundEvaluateRequest): \KeyNetra\Client\Model\SuccessResponseDictStrAny -``` - -Evaluate - -### Example - -```php -setApiKey('X-API-Key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); - -// Configure Bearer authorization: HTTPBearer -$config = KeyNetra\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - - -$apiInstance = new KeyNetra\Client\Api\PlaygroundApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$playgroundEvaluateRequest = new \KeyNetra\Client\Model\PlaygroundEvaluateRequest(); // \KeyNetra\Client\Model\PlaygroundEvaluateRequest - -try { - $result = $apiInstance->evaluatePlaygroundEvaluatePost($playgroundEvaluateRequest); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling PlaygroundApi->evaluatePlaygroundEvaluatePost: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **playgroundEvaluateRequest** | [**\KeyNetra\Client\Model\PlaygroundEvaluateRequest**](../Model/PlaygroundEvaluateRequest.md)| | | - -### Return type - -[**\KeyNetra\Client\Model\SuccessResponseDictStrAny**](../Model/SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../../README.md#APIKeyHeader), [HTTPBearer](../../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ACLCreate.md b/sdks/php/docs/Model/ACLCreate.md deleted file mode 100644 index 4514625..0000000 --- a/sdks/php/docs/Model/ACLCreate.md +++ /dev/null @@ -1,14 +0,0 @@ -# ACLCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **string** | | -**subjectId** | **string** | | -**resourceType** | **string** | | -**resourceId** | **string** | | -**action** | **string** | | -**effect** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ACLOut.md b/sdks/php/docs/Model/ACLOut.md deleted file mode 100644 index a0580f6..0000000 --- a/sdks/php/docs/Model/ACLOut.md +++ /dev/null @@ -1,17 +0,0 @@ -# ACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **string** | | -**subjectId** | **string** | | -**resourceType** | **string** | | -**resourceId** | **string** | | -**action** | **string** | | -**effect** | **string** | | -**id** | **int** | | -**tenantId** | **int** | | -**createdAt** | **\DateTime** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AccessDecisionResponse.md b/sdks/php/docs/Model/AccessDecisionResponse.md deleted file mode 100644 index 7608955..0000000 --- a/sdks/php/docs/Model/AccessDecisionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# AccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **bool** | | -**decision** | **string** | | -**matchedPolicies** | **string[]** | | [optional] -**reason** | **string** | | [optional] -**policyId** | **string** | | [optional] -**explainTrace** | **array[]** | | [optional] -**revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AccessRequest.md b/sdks/php/docs/Model/AccessRequest.md deleted file mode 100644 index 9224992..0000000 --- a/sdks/php/docs/Model/AccessRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# AccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **array** | | [optional] -**action** | **string** | | -**resource** | **array** | | [optional] -**context** | **array** | | [optional] -**consistency** | **string** | | [optional] [default to 'eventual'] -**revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AdminLoginRequest.md b/sdks/php/docs/Model/AdminLoginRequest.md deleted file mode 100644 index 049306c..0000000 --- a/sdks/php/docs/Model/AdminLoginRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# AdminLoginRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**username** | **string** | | -**password** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AdminLoginResponse.md b/sdks/php/docs/Model/AdminLoginResponse.md deleted file mode 100644 index 9bde3dd..0000000 --- a/sdks/php/docs/Model/AdminLoginResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# AdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **string** | | -**tokenType** | **string** | | [optional] [default to 'bearer'] -**expiresIn** | **int** | | -**role** | **string** | | [optional] [default to 'admin'] -**tenantKey** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AuditRecordOut.md b/sdks/php/docs/Model/AuditRecordOut.md deleted file mode 100644 index 94c57e7..0000000 --- a/sdks/php/docs/Model/AuditRecordOut.md +++ /dev/null @@ -1,21 +0,0 @@ -# AuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**principalType** | **string** | | -**principalId** | **string** | | -**correlationId** | **string** | | [optional] -**user** | **array** | | -**action** | **string** | | -**resource** | **array** | | -**decision** | **string** | | -**matchedPolicies** | **mixed[]** | | -**reason** | **string** | | [optional] -**evaluatedRules** | **mixed[]** | | -**failedConditions** | **mixed[]** | | -**createdAt** | **\DateTime** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AuthModelCreate.md b/sdks/php/docs/Model/AuthModelCreate.md deleted file mode 100644 index 560f3e2..0000000 --- a/sdks/php/docs/Model/AuthModelCreate.md +++ /dev/null @@ -1,9 +0,0 @@ -# AuthModelCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**schema** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/AuthModelOut.md b/sdks/php/docs/Model/AuthModelOut.md deleted file mode 100644 index 9970262..0000000 --- a/sdks/php/docs/Model/AuthModelOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# AuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**tenantId** | **int** | | -**schema** | **string** | | -**parsed** | **array** | | -**compiled** | **array** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessItem.md b/sdks/php/docs/Model/BatchAccessItem.md deleted file mode 100644 index f28fdaa..0000000 --- a/sdks/php/docs/Model/BatchAccessItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# BatchAccessItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **string** | | -**resource** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessRequest.md b/sdks/php/docs/Model/BatchAccessRequest.md deleted file mode 100644 index 50d08b9..0000000 --- a/sdks/php/docs/Model/BatchAccessRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# BatchAccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **array** | | [optional] -**items** | [**\KeyNetra\Client\Model\BatchAccessItem[]**](BatchAccessItem.md) | | -**consistency** | **string** | | [optional] [default to 'eventual'] -**revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessResponse.md b/sdks/php/docs/Model/BatchAccessResponse.md deleted file mode 100644 index fd68c18..0000000 --- a/sdks/php/docs/Model/BatchAccessResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# BatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**\KeyNetra\Client\Model\BatchAccessResult[]**](BatchAccessResult.md) | | -**revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/BatchAccessResult.md b/sdks/php/docs/Model/BatchAccessResult.md deleted file mode 100644 index 9a599a0..0000000 --- a/sdks/php/docs/Model/BatchAccessResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# BatchAccessResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **string** | | -**allowed** | **bool** | | -**revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/DataValue.md b/sdks/php/docs/Model/DataValue.md deleted file mode 100644 index 52cd496..0000000 --- a/sdks/php/docs/Model/DataValue.md +++ /dev/null @@ -1,8 +0,0 @@ -# DataValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/HTTPValidationError.md b/sdks/php/docs/Model/HTTPValidationError.md deleted file mode 100644 index e55cd24..0000000 --- a/sdks/php/docs/Model/HTTPValidationError.md +++ /dev/null @@ -1,9 +0,0 @@ -# HTTPValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**detail** | [**\KeyNetra\Client\Model\ValidationError[]**](ValidationError.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ImpactAnalysisRequest.md b/sdks/php/docs/Model/ImpactAnalysisRequest.md deleted file mode 100644 index 9888070..0000000 --- a/sdks/php/docs/Model/ImpactAnalysisRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# ImpactAnalysisRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policyChange** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ImpactAnalysisResponse.md b/sdks/php/docs/Model/ImpactAnalysisResponse.md deleted file mode 100644 index 8b93229..0000000 --- a/sdks/php/docs/Model/ImpactAnalysisResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# ImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gainedAccess** | **int[]** | | [optional] -**lostAccess** | **int[]** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/LocationInner.md b/sdks/php/docs/Model/LocationInner.md deleted file mode 100644 index 801e8ed..0000000 --- a/sdks/php/docs/Model/LocationInner.md +++ /dev/null @@ -1,8 +0,0 @@ -# LocationInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/MetaBody.md b/sdks/php/docs/Model/MetaBody.md deleted file mode 100644 index 205affc..0000000 --- a/sdks/php/docs/Model/MetaBody.md +++ /dev/null @@ -1,12 +0,0 @@ -# MetaBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **string** | | [optional] -**limit** | **int** | | [optional] -**nextCursor** | **string** | | [optional] -**extra** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PermissionCreate.md b/sdks/php/docs/Model/PermissionCreate.md deleted file mode 100644 index a21f3bc..0000000 --- a/sdks/php/docs/Model/PermissionCreate.md +++ /dev/null @@ -1,9 +0,0 @@ -# PermissionCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PermissionOut.md b/sdks/php/docs/Model/PermissionOut.md deleted file mode 100644 index 9e480a6..0000000 --- a/sdks/php/docs/Model/PermissionOut.md +++ /dev/null @@ -1,10 +0,0 @@ -# PermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**action** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PermissionUpdate.md b/sdks/php/docs/Model/PermissionUpdate.md deleted file mode 100644 index 8ca9baf..0000000 --- a/sdks/php/docs/Model/PermissionUpdate.md +++ /dev/null @@ -1,9 +0,0 @@ -# PermissionUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PlaygroundEvaluateRequest.md b/sdks/php/docs/Model/PlaygroundEvaluateRequest.md deleted file mode 100644 index fe9ab47..0000000 --- a/sdks/php/docs/Model/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# PlaygroundEvaluateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policies** | [**\KeyNetra\Client\Model\PlaygroundPolicy[]**](PlaygroundPolicy.md) | | -**input** | [**\KeyNetra\Client\Model\PlaygroundInput**](PlaygroundInput.md) | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PlaygroundInput.md b/sdks/php/docs/Model/PlaygroundInput.md deleted file mode 100644 index 4877b56..0000000 --- a/sdks/php/docs/Model/PlaygroundInput.md +++ /dev/null @@ -1,12 +0,0 @@ -# PlaygroundInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **array** | | [optional] -**resource** | **array** | | [optional] -**action** | **string** | | [optional] [default to ''] -**context** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PlaygroundPolicy.md b/sdks/php/docs/Model/PlaygroundPolicy.md deleted file mode 100644 index 907f56a..0000000 --- a/sdks/php/docs/Model/PlaygroundPolicy.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlaygroundPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **string** | | -**effect** | **string** | | [optional] [default to 'allow'] -**priority** | **int** | | [optional] [default to 100] -**policyId** | **string** | | [optional] -**conditions** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicyCreate.md b/sdks/php/docs/Model/PolicyCreate.md deleted file mode 100644 index 3f782a7..0000000 --- a/sdks/php/docs/Model/PolicyCreate.md +++ /dev/null @@ -1,13 +0,0 @@ -# PolicyCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **string** | | -**effect** | **string** | | [optional] [default to 'allow'] -**priority** | **int** | | [optional] [default to 100] -**state** | **string** | | [optional] [default to 'active'] -**conditions** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicyOut.md b/sdks/php/docs/Model/PolicyOut.md deleted file mode 100644 index 9d488cc..0000000 --- a/sdks/php/docs/Model/PolicyOut.md +++ /dev/null @@ -1,14 +0,0 @@ -# PolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**action** | **string** | | -**effect** | **string** | | -**priority** | **int** | | -**state** | **string** | | [optional] [default to 'active'] -**conditions** | **array** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicySimulationInput.md b/sdks/php/docs/Model/PolicySimulationInput.md deleted file mode 100644 index 4083614..0000000 --- a/sdks/php/docs/Model/PolicySimulationInput.md +++ /dev/null @@ -1,11 +0,0 @@ -# PolicySimulationInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policyChange** | **string** | | [optional] -**relationshipChange** | **array** | | [optional] -**roleChange** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicySimulationRequest.md b/sdks/php/docs/Model/PolicySimulationRequest.md deleted file mode 100644 index 7b454fa..0000000 --- a/sdks/php/docs/Model/PolicySimulationRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# PolicySimulationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**simulate** | [**\KeyNetra\Client\Model\PolicySimulationInput**](PolicySimulationInput.md) | | [optional] -**request** | **array** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/PolicySimulationResponse.md b/sdks/php/docs/Model/PolicySimulationResponse.md deleted file mode 100644 index 1a4d942..0000000 --- a/sdks/php/docs/Model/PolicySimulationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# PolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decisionBefore** | **array** | | -**decisionAfter** | **array** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RelationshipCreate.md b/sdks/php/docs/Model/RelationshipCreate.md deleted file mode 100644 index 50522c4..0000000 --- a/sdks/php/docs/Model/RelationshipCreate.md +++ /dev/null @@ -1,13 +0,0 @@ -# RelationshipCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **string** | | -**subjectId** | **string** | | -**relation** | **string** | | -**objectType** | **string** | | -**objectId** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RelationshipOut.md b/sdks/php/docs/Model/RelationshipOut.md deleted file mode 100644 index 18cc96f..0000000 --- a/sdks/php/docs/Model/RelationshipOut.md +++ /dev/null @@ -1,14 +0,0 @@ -# RelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **string** | | -**subjectId** | **string** | | -**relation** | **string** | | -**objectType** | **string** | | -**objectId** | **string** | | -**id** | **int** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RoleCreate.md b/sdks/php/docs/Model/RoleCreate.md deleted file mode 100644 index 01a4c14..0000000 --- a/sdks/php/docs/Model/RoleCreate.md +++ /dev/null @@ -1,9 +0,0 @@ -# RoleCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RoleOut.md b/sdks/php/docs/Model/RoleOut.md deleted file mode 100644 index 3f58067..0000000 --- a/sdks/php/docs/Model/RoleOut.md +++ /dev/null @@ -1,10 +0,0 @@ -# RoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**name** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/RoleUpdate.md b/sdks/php/docs/Model/RoleUpdate.md deleted file mode 100644 index 68347db..0000000 --- a/sdks/php/docs/Model/RoleUpdate.md +++ /dev/null @@ -1,9 +0,0 @@ -# RoleUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SimulationResponse.md b/sdks/php/docs/Model/SimulationResponse.md deleted file mode 100644 index c637561..0000000 --- a/sdks/php/docs/Model/SimulationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# SimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decision** | **string** | | -**matchedPolicies** | **string[]** | | -**reason** | **string** | | [optional] -**policyId** | **string** | | [optional] -**explainTrace** | **array[]** | | [optional] -**failedConditions** | **string[]** | | [optional] -**revision** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseACLOut.md b/sdks/php/docs/Model/SuccessResponseACLOut.md deleted file mode 100644 index 6413186..0000000 --- a/sdks/php/docs/Model/SuccessResponseACLOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\ACLOut**](ACLOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md b/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index 24198ec..0000000 --- a/sdks/php/docs/Model/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseAccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\AccessDecisionResponse**](AccessDecisionResponse.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md b/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index f43cd07..0000000 --- a/sdks/php/docs/Model/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseAdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\AdminLoginResponse**](AdminLoginResponse.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseAuthModelOut.md b/sdks/php/docs/Model/SuccessResponseAuthModelOut.md deleted file mode 100644 index 1f2be7f..0000000 --- a/sdks/php/docs/Model/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseAuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\AuthModelOut**](AuthModelOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md b/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index b22dc86..0000000 --- a/sdks/php/docs/Model/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseBatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\BatchAccessResponse**](BatchAccessResponse.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrAny.md b/sdks/php/docs/Model/SuccessResponseDictStrAny.md deleted file mode 100644 index 3ddbe2f..0000000 --- a/sdks/php/docs/Model/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseDictStrAny - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **array** | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrInt.md b/sdks/php/docs/Model/SuccessResponseDictStrInt.md deleted file mode 100644 index 3a45c87..0000000 --- a/sdks/php/docs/Model/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseDictStrInt - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **array** | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrObject.md b/sdks/php/docs/Model/SuccessResponseDictStrObject.md deleted file mode 100644 index c1d9804..0000000 --- a/sdks/php/docs/Model/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseDictStrObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **array** | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrStr.md b/sdks/php/docs/Model/SuccessResponseDictStrStr.md deleted file mode 100644 index 3cbb057..0000000 --- a/sdks/php/docs/Model/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **array** | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md b/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index 0de5869..0000000 --- a/sdks/php/docs/Model/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseDictStrUnionIntStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**array**](DataValue.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md b/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index f13bdca..0000000 --- a/sdks/php/docs/Model/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListACLOut.md b/sdks/php/docs/Model/SuccessResponseListACLOut.md deleted file mode 100644 index f265b1e..0000000 --- a/sdks/php/docs/Model/SuccessResponseListACLOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseListACLOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\ACLOut[]**](ACLOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md b/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index d4f4fc6..0000000 --- a/sdks/php/docs/Model/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseListAuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\AuditRecordOut[]**](AuditRecordOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListDictStrStr.md b/sdks/php/docs/Model/SuccessResponseListDictStrStr.md deleted file mode 100644 index be44a87..0000000 --- a/sdks/php/docs/Model/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseListDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **array[]** | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListPermissionOut.md b/sdks/php/docs/Model/SuccessResponseListPermissionOut.md deleted file mode 100644 index ce89e6f..0000000 --- a/sdks/php/docs/Model/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseListPermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\PermissionOut[]**](PermissionOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListPolicyOut.md b/sdks/php/docs/Model/SuccessResponseListPolicyOut.md deleted file mode 100644 index 64ab5d0..0000000 --- a/sdks/php/docs/Model/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseListPolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\PolicyOut[]**](PolicyOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseListRoleOut.md b/sdks/php/docs/Model/SuccessResponseListRoleOut.md deleted file mode 100644 index fe89db4..0000000 --- a/sdks/php/docs/Model/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseListRoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\RoleOut[]**](RoleOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePermissionOut.md b/sdks/php/docs/Model/SuccessResponsePermissionOut.md deleted file mode 100644 index 7ed3d60..0000000 --- a/sdks/php/docs/Model/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponsePermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\PermissionOut**](PermissionOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePolicyOut.md b/sdks/php/docs/Model/SuccessResponsePolicyOut.md deleted file mode 100644 index 60a45d1..0000000 --- a/sdks/php/docs/Model/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponsePolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\PolicyOut**](PolicyOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md b/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index def64d3..0000000 --- a/sdks/php/docs/Model/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponsePolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\PolicySimulationResponse**](PolicySimulationResponse.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseRelationshipOut.md b/sdks/php/docs/Model/SuccessResponseRelationshipOut.md deleted file mode 100644 index 8397265..0000000 --- a/sdks/php/docs/Model/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseRelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\RelationshipOut**](RelationshipOut.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SuccessResponseSimulationResponse.md b/sdks/php/docs/Model/SuccessResponseSimulationResponse.md deleted file mode 100644 index b4aaa28..0000000 --- a/sdks/php/docs/Model/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SuccessResponseSimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\KeyNetra\Client\Model\SimulationResponse**](SimulationResponse.md) | | -**meta** | [**\KeyNetra\Client\Model\MetaBody**](MetaBody.md) | | [optional] -**error** | **mixed** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/ValidationError.md b/sdks/php/docs/Model/ValidationError.md deleted file mode 100644 index 8a70c36..0000000 --- a/sdks/php/docs/Model/ValidationError.md +++ /dev/null @@ -1,13 +0,0 @@ -# ValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loc** | [**\KeyNetra\Client\Model\LocationInner[]**](LocationInner.md) | | -**msg** | **string** | | -**type** | **string** | | -**input** | **mixed** | | [optional] -**ctx** | **object** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/git_push.sh b/sdks/php/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/php/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/php/phpunit.xml.dist b/sdks/php/phpunit.xml.dist deleted file mode 100644 index 485899a..0000000 --- a/sdks/php/phpunit.xml.dist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - ./lib/Api - ./lib/Model - - - - - ./test/Api - ./test/Model - - - - - - diff --git a/sdks/php/test/Api/AccessApiTest.php b/sdks/php/test/Api/AccessApiTest.php deleted file mode 100644 index 8fa0c59..0000000 --- a/sdks/php/test/Api/AccessApiTest.php +++ /dev/null @@ -1,109 +0,0 @@ - SuccessResponseBatchAccessResponse check_access_batch_check_access_batch_post(batch_access_request, policy_set=policy_set) - -Check Access Batch - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.batch_access_request import BatchAccessRequest -from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.AccessApi(api_client) - batch_access_request = keynetra_client.BatchAccessRequest() # BatchAccessRequest | - policy_set = 'active' # str | (optional) (default to 'active') - - try: - # Check Access Batch - api_response = api_instance.check_access_batch_check_access_batch_post(batch_access_request, policy_set=policy_set) - print("The response of AccessApi->check_access_batch_check_access_batch_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AccessApi->check_access_batch_check_access_batch_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **batch_access_request** | [**BatchAccessRequest**](BatchAccessRequest.md)| | - **policy_set** | **str**| | [optional] [default to 'active'] - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **check_access_check_access_post** -> SuccessResponseAccessDecisionResponse check_access_check_access_post(access_request, policy_set=policy_set) - -Check Access - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.access_request import AccessRequest -from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.AccessApi(api_client) - access_request = keynetra_client.AccessRequest() # AccessRequest | - policy_set = 'active' # str | (optional) (default to 'active') - - try: - # Check Access - api_response = api_instance.check_access_check_access_post(access_request, policy_set=policy_set) - print("The response of AccessApi->check_access_check_access_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AccessApi->check_access_check_access_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **access_request** | [**AccessRequest**](AccessRequest.md)| | - **policy_set** | **str**| | [optional] [default to 'active'] - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **simulate_simulate_post** -> SuccessResponseSimulationResponse simulate_simulate_post(access_request) - -Simulate - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.access_request import AccessRequest -from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.AccessApi(api_client) - access_request = keynetra_client.AccessRequest() # AccessRequest | - - try: - # Simulate - api_response = api_instance.simulate_simulate_post(access_request) - print("The response of AccessApi->simulate_simulate_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AccessApi->simulate_simulate_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **access_request** | [**AccessRequest**](AccessRequest.md)| | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/python/docs/AccessDecisionResponse.md b/sdks/python/docs/AccessDecisionResponse.md deleted file mode 100644 index 5903c6b..0000000 --- a/sdks/python/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# AccessDecisionResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **bool** | | -**decision** | **str** | | -**matched_policies** | **List[str]** | | [optional] -**reason** | **str** | | [optional] -**policy_id** | **str** | | [optional] -**explain_trace** | **List[Dict[str, object]]** | | [optional] -**revision** | **int** | | [optional] - -## Example - -```python -from keynetra_client.models.access_decision_response import AccessDecisionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AccessDecisionResponse from a JSON string -access_decision_response_instance = AccessDecisionResponse.from_json(json) -# print the JSON string representation of the object -print(AccessDecisionResponse.to_json()) - -# convert the object into a dict -access_decision_response_dict = access_decision_response_instance.to_dict() -# create an instance of AccessDecisionResponse from a dict -access_decision_response_from_dict = AccessDecisionResponse.from_dict(access_decision_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/AccessRequest.md b/sdks/python/docs/AccessRequest.md deleted file mode 100644 index 02274a0..0000000 --- a/sdks/python/docs/AccessRequest.md +++ /dev/null @@ -1,35 +0,0 @@ -# AccessRequest - -Explicit authorization request passed through the API boundary. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **Dict[str, object]** | | [optional] -**action** | **str** | | -**resource** | **Dict[str, object]** | | [optional] -**context** | **Dict[str, object]** | | [optional] -**consistency** | **str** | | [optional] [default to 'eventual'] -**revision** | **int** | | [optional] - -## Example - -```python -from keynetra_client.models.access_request import AccessRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AccessRequest from a JSON string -access_request_instance = AccessRequest.from_json(json) -# print the JSON string representation of the object -print(AccessRequest.to_json()) - -# convert the object into a dict -access_request_dict = access_request_instance.to_dict() -# create an instance of AccessRequest from a dict -access_request_from_dict = AccessRequest.from_dict(access_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/AdminLoginRequest.md b/sdks/python/docs/AdminLoginRequest.md deleted file mode 100644 index 991f64c..0000000 --- a/sdks/python/docs/AdminLoginRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# AdminLoginRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**username** | **str** | | -**password** | **str** | | - -## Example - -```python -from keynetra_client.models.admin_login_request import AdminLoginRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AdminLoginRequest from a JSON string -admin_login_request_instance = AdminLoginRequest.from_json(json) -# print the JSON string representation of the object -print(AdminLoginRequest.to_json()) - -# convert the object into a dict -admin_login_request_dict = admin_login_request_instance.to_dict() -# create an instance of AdminLoginRequest from a dict -admin_login_request_from_dict = AdminLoginRequest.from_dict(admin_login_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/AdminLoginResponse.md b/sdks/python/docs/AdminLoginResponse.md deleted file mode 100644 index 9048a4d..0000000 --- a/sdks/python/docs/AdminLoginResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# AdminLoginResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **str** | | -**token_type** | **str** | | [optional] [default to 'bearer'] -**expires_in** | **int** | | -**role** | **str** | | [optional] [default to 'admin'] -**tenant_key** | **str** | | - -## Example - -```python -from keynetra_client.models.admin_login_response import AdminLoginResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AdminLoginResponse from a JSON string -admin_login_response_instance = AdminLoginResponse.from_json(json) -# print the JSON string representation of the object -print(AdminLoginResponse.to_json()) - -# convert the object into a dict -admin_login_response_dict = admin_login_response_instance.to_dict() -# create an instance of AdminLoginResponse from a dict -admin_login_response_from_dict = AdminLoginResponse.from_dict(admin_login_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/AuditRecordOut.md b/sdks/python/docs/AuditRecordOut.md deleted file mode 100644 index 773fd12..0000000 --- a/sdks/python/docs/AuditRecordOut.md +++ /dev/null @@ -1,41 +0,0 @@ -# AuditRecordOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**principal_type** | **str** | | -**principal_id** | **str** | | -**correlation_id** | **str** | | [optional] -**user** | **Dict[str, object]** | | -**action** | **str** | | -**resource** | **Dict[str, object]** | | -**decision** | **str** | | -**matched_policies** | **List[object]** | | -**reason** | **str** | | [optional] -**evaluated_rules** | **List[object]** | | -**failed_conditions** | **List[object]** | | -**created_at** | **datetime** | | - -## Example - -```python -from keynetra_client.models.audit_record_out import AuditRecordOut - -# TODO update the JSON string below -json = "{}" -# create an instance of AuditRecordOut from a JSON string -audit_record_out_instance = AuditRecordOut.from_json(json) -# print the JSON string representation of the object -print(AuditRecordOut.to_json()) - -# convert the object into a dict -audit_record_out_dict = audit_record_out_instance.to_dict() -# create an instance of AuditRecordOut from a dict -audit_record_out_from_dict = AuditRecordOut.from_dict(audit_record_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/AuthApi.md b/sdks/python/docs/AuthApi.md deleted file mode 100644 index e7511e5..0000000 --- a/sdks/python/docs/AuthApi.md +++ /dev/null @@ -1,146 +0,0 @@ -# keynetra_client.AuthApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_login_admin_login_post**](AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login -[**admin_login_admin_login_post_0**](AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login - - -# **admin_login_admin_login_post** -> SuccessResponseAdminLoginResponse admin_login_admin_login_post(admin_login_request) - -Admin Login - -### Example - - -```python -import keynetra_client -from keynetra_client.models.admin_login_request import AdminLoginRequest -from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.AuthApi(api_client) - admin_login_request = keynetra_client.AdminLoginRequest() # AdminLoginRequest | - - try: - # Admin Login - api_response = api_instance.admin_login_admin_login_post(admin_login_request) - print("The response of AuthApi->admin_login_admin_login_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthApi->admin_login_admin_login_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md)| | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **admin_login_admin_login_post_0** -> SuccessResponseAdminLoginResponse admin_login_admin_login_post_0(admin_login_request) - -Admin Login - -### Example - - -```python -import keynetra_client -from keynetra_client.models.admin_login_request import AdminLoginRequest -from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.AuthApi(api_client) - admin_login_request = keynetra_client.AdminLoginRequest() # AdminLoginRequest | - - try: - # Admin Login - api_response = api_instance.admin_login_admin_login_post_0(admin_login_request) - print("The response of AuthApi->admin_login_admin_login_post_0:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthApi->admin_login_admin_login_post_0: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md)| | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/python/docs/AuthModelCreate.md b/sdks/python/docs/AuthModelCreate.md deleted file mode 100644 index aa26fc7..0000000 --- a/sdks/python/docs/AuthModelCreate.md +++ /dev/null @@ -1,29 +0,0 @@ -# AuthModelCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_schema** | **str** | | - -## Example - -```python -from keynetra_client.models.auth_model_create import AuthModelCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of AuthModelCreate from a JSON string -auth_model_create_instance = AuthModelCreate.from_json(json) -# print the JSON string representation of the object -print(AuthModelCreate.to_json()) - -# convert the object into a dict -auth_model_create_dict = auth_model_create_instance.to_dict() -# create an instance of AuthModelCreate from a dict -auth_model_create_from_dict = AuthModelCreate.from_dict(auth_model_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/AuthModelOut.md b/sdks/python/docs/AuthModelOut.md deleted file mode 100644 index 97baa1f..0000000 --- a/sdks/python/docs/AuthModelOut.md +++ /dev/null @@ -1,33 +0,0 @@ -# AuthModelOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**tenant_id** | **int** | | -**var_schema** | **str** | | -**parsed** | **Dict[str, object]** | | -**compiled** | **Dict[str, object]** | | - -## Example - -```python -from keynetra_client.models.auth_model_out import AuthModelOut - -# TODO update the JSON string below -json = "{}" -# create an instance of AuthModelOut from a JSON string -auth_model_out_instance = AuthModelOut.from_json(json) -# print the JSON string representation of the object -print(AuthModelOut.to_json()) - -# convert the object into a dict -auth_model_out_dict = auth_model_out_instance.to_dict() -# create an instance of AuthModelOut from a dict -auth_model_out_from_dict = AuthModelOut.from_dict(auth_model_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/BatchAccessItem.md b/sdks/python/docs/BatchAccessItem.md deleted file mode 100644 index 9a0cd4c..0000000 --- a/sdks/python/docs/BatchAccessItem.md +++ /dev/null @@ -1,30 +0,0 @@ -# BatchAccessItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | -**resource** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.batch_access_item import BatchAccessItem - -# TODO update the JSON string below -json = "{}" -# create an instance of BatchAccessItem from a JSON string -batch_access_item_instance = BatchAccessItem.from_json(json) -# print the JSON string representation of the object -print(BatchAccessItem.to_json()) - -# convert the object into a dict -batch_access_item_dict = batch_access_item_instance.to_dict() -# create an instance of BatchAccessItem from a dict -batch_access_item_from_dict = BatchAccessItem.from_dict(batch_access_item_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/BatchAccessRequest.md b/sdks/python/docs/BatchAccessRequest.md deleted file mode 100644 index a215b0b..0000000 --- a/sdks/python/docs/BatchAccessRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# BatchAccessRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **Dict[str, object]** | | [optional] -**items** | [**List[BatchAccessItem]**](BatchAccessItem.md) | | -**consistency** | **str** | | [optional] [default to 'eventual'] -**revision** | **int** | | [optional] - -## Example - -```python -from keynetra_client.models.batch_access_request import BatchAccessRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of BatchAccessRequest from a JSON string -batch_access_request_instance = BatchAccessRequest.from_json(json) -# print the JSON string representation of the object -print(BatchAccessRequest.to_json()) - -# convert the object into a dict -batch_access_request_dict = batch_access_request_instance.to_dict() -# create an instance of BatchAccessRequest from a dict -batch_access_request_from_dict = BatchAccessRequest.from_dict(batch_access_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/BatchAccessResponse.md b/sdks/python/docs/BatchAccessResponse.md deleted file mode 100644 index 7968cf8..0000000 --- a/sdks/python/docs/BatchAccessResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# BatchAccessResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[BatchAccessResult]**](BatchAccessResult.md) | | -**revision** | **int** | | [optional] - -## Example - -```python -from keynetra_client.models.batch_access_response import BatchAccessResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BatchAccessResponse from a JSON string -batch_access_response_instance = BatchAccessResponse.from_json(json) -# print the JSON string representation of the object -print(BatchAccessResponse.to_json()) - -# convert the object into a dict -batch_access_response_dict = batch_access_response_instance.to_dict() -# create an instance of BatchAccessResponse from a dict -batch_access_response_from_dict = BatchAccessResponse.from_dict(batch_access_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/BatchAccessResult.md b/sdks/python/docs/BatchAccessResult.md deleted file mode 100644 index f7a3173..0000000 --- a/sdks/python/docs/BatchAccessResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# BatchAccessResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | -**allowed** | **bool** | | -**revision** | **int** | | [optional] - -## Example - -```python -from keynetra_client.models.batch_access_result import BatchAccessResult - -# TODO update the JSON string below -json = "{}" -# create an instance of BatchAccessResult from a JSON string -batch_access_result_instance = BatchAccessResult.from_json(json) -# print the JSON string representation of the object -print(BatchAccessResult.to_json()) - -# convert the object into a dict -batch_access_result_dict = batch_access_result_instance.to_dict() -# create an instance of BatchAccessResult from a dict -batch_access_result_from_dict = BatchAccessResult.from_dict(batch_access_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/DataValue.md b/sdks/python/docs/DataValue.md deleted file mode 100644 index 3ae7867..0000000 --- a/sdks/python/docs/DataValue.md +++ /dev/null @@ -1,28 +0,0 @@ -# DataValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from keynetra_client.models.data_value import DataValue - -# TODO update the JSON string below -json = "{}" -# create an instance of DataValue from a JSON string -data_value_instance = DataValue.from_json(json) -# print the JSON string representation of the object -print(DataValue.to_json()) - -# convert the object into a dict -data_value_dict = data_value_instance.to_dict() -# create an instance of DataValue from a dict -data_value_from_dict = DataValue.from_dict(data_value_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/DevApi.md b/sdks/python/docs/DevApi.md deleted file mode 100644 index 73c37de..0000000 --- a/sdks/python/docs/DevApi.md +++ /dev/null @@ -1,139 +0,0 @@ -# keynetra_client.DevApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_sample_data_dev_sample_data_get**](DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data -[**seed_sample_data_dev_sample_data_seed_post**](DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data - - -# **get_sample_data_dev_sample_data_get** -> SuccessResponseDictStrObject get_sample_data_dev_sample_data_get() - -Get Sample Data - -### Example - - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.DevApi(api_client) - - try: - # Get Sample Data - api_response = api_instance.get_sample_data_dev_sample_data_get() - print("The response of DevApi->get_sample_data_dev_sample_data_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DevApi->get_sample_data_dev_sample_data_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **seed_sample_data_dev_sample_data_seed_post** -> SuccessResponseDictStrObject seed_sample_data_dev_sample_data_seed_post(reset=reset) - -Seed Sample Data - -### Example - - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.DevApi(api_client) - reset = False # bool | Clear the sample dataset before reseeding it. (optional) (default to False) - - try: - # Seed Sample Data - api_response = api_instance.seed_sample_data_dev_sample_data_seed_post(reset=reset) - print("The response of DevApi->seed_sample_data_dev_sample_data_seed_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DevApi->seed_sample_data_dev_sample_data_seed_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reset** | **bool**| Clear the sample dataset before reseeding it. | [optional] [default to False] - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/python/docs/HTTPValidationError.md b/sdks/python/docs/HTTPValidationError.md deleted file mode 100644 index c81c8ad..0000000 --- a/sdks/python/docs/HTTPValidationError.md +++ /dev/null @@ -1,29 +0,0 @@ -# HTTPValidationError - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**detail** | [**List[ValidationError]**](ValidationError.md) | | [optional] - -## Example - -```python -from keynetra_client.models.http_validation_error import HTTPValidationError - -# TODO update the JSON string below -json = "{}" -# create an instance of HTTPValidationError from a JSON string -http_validation_error_instance = HTTPValidationError.from_json(json) -# print the JSON string representation of the object -print(HTTPValidationError.to_json()) - -# convert the object into a dict -http_validation_error_dict = http_validation_error_instance.to_dict() -# create an instance of HTTPValidationError from a dict -http_validation_error_from_dict = HTTPValidationError.from_dict(http_validation_error_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/HealthApi.md b/sdks/python/docs/HealthApi.md deleted file mode 100644 index ea81925..0000000 --- a/sdks/python/docs/HealthApi.md +++ /dev/null @@ -1,197 +0,0 @@ -# keynetra_client.HealthApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**health_health_get**](HealthApi.md#health_health_get) | **GET** /health | Health -[**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness -[**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness - - -# **health_health_get** -> SuccessResponseDictStrStr health_health_get() - -Health - -### Example - - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.HealthApi(api_client) - - try: - # Health - api_response = api_instance.health_health_get() - print("The response of HealthApi->health_health_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling HealthApi->health_health_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **liveness_health_live_get** -> SuccessResponseDictStrStr liveness_health_live_get() - -Liveness - -### Example - - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.HealthApi(api_client) - - try: - # Liveness - api_response = api_instance.liveness_health_live_get() - print("The response of HealthApi->liveness_health_live_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling HealthApi->liveness_health_live_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **readiness_health_ready_get** -> SuccessResponseDictStrObject readiness_health_ready_get() - -Readiness - -### Example - - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.HealthApi(api_client) - - try: - # Readiness - api_response = api_instance.readiness_health_ready_get() - print("The response of HealthApi->readiness_health_ready_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling HealthApi->readiness_health_ready_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/python/docs/ImpactAnalysisRequest.md b/sdks/python/docs/ImpactAnalysisRequest.md deleted file mode 100644 index 31947f6..0000000 --- a/sdks/python/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# ImpactAnalysisRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policy_change** | **str** | | - -## Example - -```python -from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of ImpactAnalysisRequest from a JSON string -impact_analysis_request_instance = ImpactAnalysisRequest.from_json(json) -# print the JSON string representation of the object -print(ImpactAnalysisRequest.to_json()) - -# convert the object into a dict -impact_analysis_request_dict = impact_analysis_request_instance.to_dict() -# create an instance of ImpactAnalysisRequest from a dict -impact_analysis_request_from_dict = ImpactAnalysisRequest.from_dict(impact_analysis_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/ImpactAnalysisResponse.md b/sdks/python/docs/ImpactAnalysisResponse.md deleted file mode 100644 index 3425b7b..0000000 --- a/sdks/python/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ImpactAnalysisResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gained_access** | **List[int]** | | [optional] -**lost_access** | **List[int]** | | [optional] - -## Example - -```python -from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ImpactAnalysisResponse from a JSON string -impact_analysis_response_instance = ImpactAnalysisResponse.from_json(json) -# print the JSON string representation of the object -print(ImpactAnalysisResponse.to_json()) - -# convert the object into a dict -impact_analysis_response_dict = impact_analysis_response_instance.to_dict() -# create an instance of ImpactAnalysisResponse from a dict -impact_analysis_response_from_dict = ImpactAnalysisResponse.from_dict(impact_analysis_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/LocationInner.md b/sdks/python/docs/LocationInner.md deleted file mode 100644 index 58e2966..0000000 --- a/sdks/python/docs/LocationInner.md +++ /dev/null @@ -1,28 +0,0 @@ -# LocationInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from keynetra_client.models.location_inner import LocationInner - -# TODO update the JSON string below -json = "{}" -# create an instance of LocationInner from a JSON string -location_inner_instance = LocationInner.from_json(json) -# print the JSON string representation of the object -print(LocationInner.to_json()) - -# convert the object into a dict -location_inner_dict = location_inner_instance.to_dict() -# create an instance of LocationInner from a dict -location_inner_from_dict = LocationInner.from_dict(location_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/ManagementApi.md b/sdks/python/docs/ManagementApi.md deleted file mode 100644 index 005f3d1..0000000 --- a/sdks/python/docs/ManagementApi.md +++ /dev/null @@ -1,2432 +0,0 @@ -# keynetra_client.ManagementApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_permission_to_role_roles_role_id_permissions_permission_id_post**](ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -[**create_acl_entry_acl_post**](ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry -[**create_auth_model_auth_model_post**](ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model -[**create_permission_permissions_post**](ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission -[**create_policy_from_dsl_policies_dsl_post**](ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl -[**create_policy_policies_post**](ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy -[**create_relationship_relationships_post**](ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship -[**create_role_roles_post**](ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role -[**delete_acl_entry_acl_acl_id_delete**](ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -[**delete_permission_permissions_permission_id_delete**](ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission -[**delete_policy_policies_policy_key_delete**](ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy -[**delete_role_roles_role_id_delete**](ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role -[**get_auth_model_auth_model_get**](ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model -[**impact_analysis_impact_analysis_post**](ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis -[**list_acl_entries_acl_resource_type_resource_id_get**](ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -[**list_audit_logs_audit_get**](ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs -[**list_permission_roles_permissions_permission_id_roles_get**](ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles -[**list_permissions_permissions_get**](ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions -[**list_policies_policies_get**](ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies -[**list_relationships_relationships_get**](ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships -[**list_role_permissions_roles_role_id_permissions_get**](ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions -[**list_roles_roles_get**](ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles -[**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -[**rollback_policy_policies_policy_key_rollback_version_post**](ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -[**simulate_policy_simulate_policy_post**](ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy -[**update_permission_permissions_permission_id_put**](ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission -[**update_policy_policies_policy_key_put**](ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy -[**update_role_roles_role_id_put**](ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role - - -# **add_permission_to_role_roles_role_id_permissions_permission_id_post** -> SuccessResponsePermissionOut add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) - -Add Permission To Role - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - role_id = 56 # int | - permission_id = 56 # int | - - try: - # Add Permission To Role - api_response = api_instance.add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) - print("The response of ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_id** | **int**| | - **permission_id** | **int**| | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_acl_entry_acl_post** -> SuccessResponseACLOut create_acl_entry_acl_post(acl_create) - -Create Acl Entry - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.acl_create import ACLCreate -from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - acl_create = keynetra_client.ACLCreate() # ACLCreate | - - try: - # Create Acl Entry - api_response = api_instance.create_acl_entry_acl_post(acl_create) - print("The response of ManagementApi->create_acl_entry_acl_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_acl_entry_acl_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **acl_create** | [**ACLCreate**](ACLCreate.md)| | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_auth_model_auth_model_post** -> SuccessResponseAuthModelOut create_auth_model_auth_model_post(auth_model_create) - -Create Auth Model - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.auth_model_create import AuthModelCreate -from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - auth_model_create = keynetra_client.AuthModelCreate() # AuthModelCreate | - - try: - # Create Auth Model - api_response = api_instance.create_auth_model_auth_model_post(auth_model_create) - print("The response of ManagementApi->create_auth_model_auth_model_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_auth_model_auth_model_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **auth_model_create** | [**AuthModelCreate**](AuthModelCreate.md)| | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_permission_permissions_post** -> PermissionOut create_permission_permissions_post(permission_create) - -Create Permission - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.permission_create import PermissionCreate -from keynetra_client.models.permission_out import PermissionOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - permission_create = keynetra_client.PermissionCreate() # PermissionCreate | - - try: - # Create Permission - api_response = api_instance.create_permission_permissions_post(permission_create) - print("The response of ManagementApi->create_permission_permissions_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_permission_permissions_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permission_create** | [**PermissionCreate**](PermissionCreate.md)| | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_policy_from_dsl_policies_dsl_post** -> SuccessResponsePolicyOut create_policy_from_dsl_policies_dsl_post(dsl) - -Create Policy From Dsl - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - dsl = 'dsl_example' # str | - - try: - # Create Policy From Dsl - api_response = api_instance.create_policy_from_dsl_policies_dsl_post(dsl) - print("The response of ManagementApi->create_policy_from_dsl_policies_dsl_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_policy_from_dsl_policies_dsl_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **dsl** | **str**| | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_policy_policies_post** -> SuccessResponsePolicyOut create_policy_policies_post(policy_create) - -Create Policy - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.policy_create import PolicyCreate -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - policy_create = keynetra_client.PolicyCreate() # PolicyCreate | - - try: - # Create Policy - api_response = api_instance.create_policy_policies_post(policy_create) - print("The response of ManagementApi->create_policy_policies_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_policy_policies_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policy_create** | [**PolicyCreate**](PolicyCreate.md)| | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_relationship_relationships_post** -> SuccessResponseRelationshipOut create_relationship_relationships_post(relationship_create) - -Create Relationship - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.relationship_create import RelationshipCreate -from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - relationship_create = keynetra_client.RelationshipCreate() # RelationshipCreate | - - try: - # Create Relationship - api_response = api_instance.create_relationship_relationships_post(relationship_create) - print("The response of ManagementApi->create_relationship_relationships_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_relationship_relationships_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **relationship_create** | [**RelationshipCreate**](RelationshipCreate.md)| | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_role_roles_post** -> RoleOut create_role_roles_post(role_create) - -Create Role - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.role_create import RoleCreate -from keynetra_client.models.role_out import RoleOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - role_create = keynetra_client.RoleCreate() # RoleCreate | - - try: - # Create Role - api_response = api_instance.create_role_roles_post(role_create) - print("The response of ManagementApi->create_role_roles_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->create_role_roles_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_create** | [**RoleCreate**](RoleCreate.md)| | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_acl_entry_acl_acl_id_delete** -> SuccessResponseDictStrInt delete_acl_entry_acl_acl_id_delete(acl_id) - -Delete Acl Entry - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - acl_id = 56 # int | - - try: - # Delete Acl Entry - api_response = api_instance.delete_acl_entry_acl_acl_id_delete(acl_id) - print("The response of ManagementApi->delete_acl_entry_acl_acl_id_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->delete_acl_entry_acl_acl_id_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **acl_id** | **int**| | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_permission_permissions_permission_id_delete** -> SuccessResponseDictStrInt delete_permission_permissions_permission_id_delete(permission_id) - -Delete Permission - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - permission_id = 56 # int | - - try: - # Delete Permission - api_response = api_instance.delete_permission_permissions_permission_id_delete(permission_id) - print("The response of ManagementApi->delete_permission_permissions_permission_id_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->delete_permission_permissions_permission_id_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permission_id** | **int**| | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_policy_policies_policy_key_delete** -> SuccessResponseDictStrStr delete_policy_policies_policy_key_delete(policy_key) - -Delete Policy - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - policy_key = 'policy_key_example' # str | - - try: - # Delete Policy - api_response = api_instance.delete_policy_policies_policy_key_delete(policy_key) - print("The response of ManagementApi->delete_policy_policies_policy_key_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->delete_policy_policies_policy_key_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policy_key** | **str**| | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_role_roles_role_id_delete** -> SuccessResponseDictStrInt delete_role_roles_role_id_delete(role_id) - -Delete Role - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - role_id = 56 # int | - - try: - # Delete Role - api_response = api_instance.delete_role_roles_role_id_delete(role_id) - print("The response of ManagementApi->delete_role_roles_role_id_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->delete_role_roles_role_id_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_id** | **int**| | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_auth_model_auth_model_get** -> SuccessResponseAuthModelOut get_auth_model_auth_model_get() - -Get Auth Model - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - - try: - # Get Auth Model - api_response = api_instance.get_auth_model_auth_model_get() - print("The response of ManagementApi->get_auth_model_auth_model_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->get_auth_model_auth_model_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **impact_analysis_impact_analysis_post** -> SuccessResponseImpactAnalysisResponse impact_analysis_impact_analysis_post(impact_analysis_request) - -Impact Analysis - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest -from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - impact_analysis_request = keynetra_client.ImpactAnalysisRequest() # ImpactAnalysisRequest | - - try: - # Impact Analysis - api_response = api_instance.impact_analysis_impact_analysis_post(impact_analysis_request) - print("The response of ManagementApi->impact_analysis_impact_analysis_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->impact_analysis_impact_analysis_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **impact_analysis_request** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md)| | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_acl_entries_acl_resource_type_resource_id_get** -> SuccessResponseListACLOut list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) - -List Acl Entries - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - resource_type = 'resource_type_example' # str | - resource_id = 'resource_id_example' # str | - - try: - # List Acl Entries - api_response = api_instance.list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) - print("The response of ManagementApi->list_acl_entries_acl_resource_type_resource_id_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_acl_entries_acl_resource_type_resource_id_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resource_type** | **str**| | - **resource_id** | **str**| | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_audit_logs_audit_get** -> SuccessResponseListAuditRecordOut list_audit_logs_audit_get(limit=limit, cursor=cursor, user_id=user_id, resource_id=resource_id, decision=decision, start_time=start_time, end_time=end_time) - -List Audit Logs - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - limit = 50 # int | (optional) (default to 50) - cursor = 'cursor_example' # str | (optional) - user_id = 'user_id_example' # str | (optional) - resource_id = 'resource_id_example' # str | (optional) - decision = 'decision_example' # str | (optional) - start_time = '2013-10-20T19:20:30+01:00' # datetime | (optional) - end_time = '2013-10-20T19:20:30+01:00' # datetime | (optional) - - try: - # List Audit Logs - api_response = api_instance.list_audit_logs_audit_get(limit=limit, cursor=cursor, user_id=user_id, resource_id=resource_id, decision=decision, start_time=start_time, end_time=end_time) - print("The response of ManagementApi->list_audit_logs_audit_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_audit_logs_audit_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| | [optional] [default to 50] - **cursor** | **str**| | [optional] - **user_id** | **str**| | [optional] - **resource_id** | **str**| | [optional] - **decision** | **str**| | [optional] - **start_time** | **datetime**| | [optional] - **end_time** | **datetime**| | [optional] - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_permission_roles_permissions_permission_id_roles_get** -> SuccessResponseListRoleOut list_permission_roles_permissions_permission_id_roles_get(permission_id) - -List Permission Roles - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - permission_id = 56 # int | - - try: - # List Permission Roles - api_response = api_instance.list_permission_roles_permissions_permission_id_roles_get(permission_id) - print("The response of ManagementApi->list_permission_roles_permissions_permission_id_roles_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_permission_roles_permissions_permission_id_roles_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permission_id** | **int**| | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_permissions_permissions_get** -> SuccessResponseListPermissionOut list_permissions_permissions_get(limit=limit, cursor=cursor) - -List Permissions - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - limit = 50 # int | (optional) (default to 50) - cursor = 'cursor_example' # str | (optional) - - try: - # List Permissions - api_response = api_instance.list_permissions_permissions_get(limit=limit, cursor=cursor) - print("The response of ManagementApi->list_permissions_permissions_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_permissions_permissions_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| | [optional] [default to 50] - **cursor** | **str**| | [optional] - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_policies_policies_get** -> SuccessResponseListPolicyOut list_policies_policies_get(limit=limit, cursor=cursor) - -List Policies - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - limit = 50 # int | (optional) (default to 50) - cursor = 'cursor_example' # str | (optional) - - try: - # List Policies - api_response = api_instance.list_policies_policies_get(limit=limit, cursor=cursor) - print("The response of ManagementApi->list_policies_policies_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_policies_policies_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| | [optional] [default to 50] - **cursor** | **str**| | [optional] - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_relationships_relationships_get** -> SuccessResponseListDictStrStr list_relationships_relationships_get(subject_type, subject_id, limit=limit, cursor=cursor) - -List Relationships - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - subject_type = 'subject_type_example' # str | - subject_id = 'subject_id_example' # str | - limit = 50 # int | (optional) (default to 50) - cursor = 'cursor_example' # str | (optional) - - try: - # List Relationships - api_response = api_instance.list_relationships_relationships_get(subject_type, subject_id, limit=limit, cursor=cursor) - print("The response of ManagementApi->list_relationships_relationships_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_relationships_relationships_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **subject_type** | **str**| | - **subject_id** | **str**| | - **limit** | **int**| | [optional] [default to 50] - **cursor** | **str**| | [optional] - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_role_permissions_roles_role_id_permissions_get** -> SuccessResponseListPermissionOut list_role_permissions_roles_role_id_permissions_get(role_id) - -List Role Permissions - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - role_id = 56 # int | - - try: - # List Role Permissions - api_response = api_instance.list_role_permissions_roles_role_id_permissions_get(role_id) - print("The response of ManagementApi->list_role_permissions_roles_role_id_permissions_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_role_permissions_roles_role_id_permissions_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_id** | **int**| | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_roles_roles_get** -> SuccessResponseListRoleOut list_roles_roles_get(limit=limit, cursor=cursor) - -List Roles - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - limit = 50 # int | (optional) (default to 50) - cursor = 'cursor_example' # str | (optional) - - try: - # List Roles - api_response = api_instance.list_roles_roles_get(limit=limit, cursor=cursor) - print("The response of ManagementApi->list_roles_roles_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->list_roles_roles_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| | [optional] [default to 50] - **cursor** | **str**| | [optional] - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **remove_permission_from_role_roles_role_id_permissions_permission_id_delete** -> SuccessResponseDictStrInt remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) - -Remove Permission From Role - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - role_id = 56 # int | - permission_id = 56 # int | - - try: - # Remove Permission From Role - api_response = api_instance.remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) - print("The response of ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_id** | **int**| | - **permission_id** | **int**| | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rollback_policy_policies_policy_key_rollback_version_post** -> SuccessResponseDictStrUnionIntStr rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) - -Rollback Policy - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - policy_key = 'policy_key_example' # str | - version = 56 # int | - - try: - # Rollback Policy - api_response = api_instance.rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) - print("The response of ManagementApi->rollback_policy_policies_policy_key_rollback_version_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->rollback_policy_policies_policy_key_rollback_version_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policy_key** | **str**| | - **version** | **int**| | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **simulate_policy_simulate_policy_post** -> SuccessResponsePolicySimulationResponse simulate_policy_simulate_policy_post(policy_simulation_request) - -Simulate Policy - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.policy_simulation_request import PolicySimulationRequest -from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - policy_simulation_request = keynetra_client.PolicySimulationRequest() # PolicySimulationRequest | - - try: - # Simulate Policy - api_response = api_instance.simulate_policy_simulate_policy_post(policy_simulation_request) - print("The response of ManagementApi->simulate_policy_simulate_policy_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->simulate_policy_simulate_policy_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policy_simulation_request** | [**PolicySimulationRequest**](PolicySimulationRequest.md)| | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_permission_permissions_permission_id_put** -> PermissionOut update_permission_permissions_permission_id_put(permission_id, permission_update) - -Update Permission - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.permission_out import PermissionOut -from keynetra_client.models.permission_update import PermissionUpdate -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - permission_id = 56 # int | - permission_update = keynetra_client.PermissionUpdate() # PermissionUpdate | - - try: - # Update Permission - api_response = api_instance.update_permission_permissions_permission_id_put(permission_id, permission_update) - print("The response of ManagementApi->update_permission_permissions_permission_id_put:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->update_permission_permissions_permission_id_put: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permission_id** | **int**| | - **permission_update** | [**PermissionUpdate**](PermissionUpdate.md)| | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_policy_policies_policy_key_put** -> SuccessResponsePolicyOut update_policy_policies_policy_key_put(policy_key, policy_create) - -Update Policy - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.policy_create import PolicyCreate -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - policy_key = 'policy_key_example' # str | - policy_create = keynetra_client.PolicyCreate() # PolicyCreate | - - try: - # Update Policy - api_response = api_instance.update_policy_policies_policy_key_put(policy_key, policy_create) - print("The response of ManagementApi->update_policy_policies_policy_key_put:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->update_policy_policies_policy_key_put: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policy_key** | **str**| | - **policy_create** | [**PolicyCreate**](PolicyCreate.md)| | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_role_roles_role_id_put** -> RoleOut update_role_roles_role_id_put(role_id, role_update) - -Update Role - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.role_out import RoleOut -from keynetra_client.models.role_update import RoleUpdate -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.ManagementApi(api_client) - role_id = 56 # int | - role_update = keynetra_client.RoleUpdate() # RoleUpdate | - - try: - # Update Role - api_response = api_instance.update_role_roles_role_id_put(role_id, role_update) - print("The response of ManagementApi->update_role_roles_role_id_put:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ManagementApi->update_role_roles_role_id_put: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_id** | **int**| | - **role_update** | [**RoleUpdate**](RoleUpdate.md)| | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/python/docs/MetaBody.md b/sdks/python/docs/MetaBody.md deleted file mode 100644 index 605f330..0000000 --- a/sdks/python/docs/MetaBody.md +++ /dev/null @@ -1,32 +0,0 @@ -# MetaBody - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request_id** | **str** | | [optional] -**limit** | **int** | | [optional] -**next_cursor** | **str** | | [optional] -**extra** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.meta_body import MetaBody - -# TODO update the JSON string below -json = "{}" -# create an instance of MetaBody from a JSON string -meta_body_instance = MetaBody.from_json(json) -# print the JSON string representation of the object -print(MetaBody.to_json()) - -# convert the object into a dict -meta_body_dict = meta_body_instance.to_dict() -# create an instance of MetaBody from a dict -meta_body_from_dict = MetaBody.from_dict(meta_body_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PermissionCreate.md b/sdks/python/docs/PermissionCreate.md deleted file mode 100644 index 4d4e509..0000000 --- a/sdks/python/docs/PermissionCreate.md +++ /dev/null @@ -1,29 +0,0 @@ -# PermissionCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | - -## Example - -```python -from keynetra_client.models.permission_create import PermissionCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of PermissionCreate from a JSON string -permission_create_instance = PermissionCreate.from_json(json) -# print the JSON string representation of the object -print(PermissionCreate.to_json()) - -# convert the object into a dict -permission_create_dict = permission_create_instance.to_dict() -# create an instance of PermissionCreate from a dict -permission_create_from_dict = PermissionCreate.from_dict(permission_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PermissionOut.md b/sdks/python/docs/PermissionOut.md deleted file mode 100644 index e1cbda4..0000000 --- a/sdks/python/docs/PermissionOut.md +++ /dev/null @@ -1,30 +0,0 @@ -# PermissionOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**action** | **str** | | - -## Example - -```python -from keynetra_client.models.permission_out import PermissionOut - -# TODO update the JSON string below -json = "{}" -# create an instance of PermissionOut from a JSON string -permission_out_instance = PermissionOut.from_json(json) -# print the JSON string representation of the object -print(PermissionOut.to_json()) - -# convert the object into a dict -permission_out_dict = permission_out_instance.to_dict() -# create an instance of PermissionOut from a dict -permission_out_from_dict = PermissionOut.from_dict(permission_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PermissionUpdate.md b/sdks/python/docs/PermissionUpdate.md deleted file mode 100644 index e2f4e9d..0000000 --- a/sdks/python/docs/PermissionUpdate.md +++ /dev/null @@ -1,29 +0,0 @@ -# PermissionUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | - -## Example - -```python -from keynetra_client.models.permission_update import PermissionUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of PermissionUpdate from a JSON string -permission_update_instance = PermissionUpdate.from_json(json) -# print the JSON string representation of the object -print(PermissionUpdate.to_json()) - -# convert the object into a dict -permission_update_dict = permission_update_instance.to_dict() -# create an instance of PermissionUpdate from a dict -permission_update_from_dict = PermissionUpdate.from_dict(permission_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PlaygroundApi.md b/sdks/python/docs/PlaygroundApi.md deleted file mode 100644 index 62c165a..0000000 --- a/sdks/python/docs/PlaygroundApi.md +++ /dev/null @@ -1,94 +0,0 @@ -# keynetra_client.PlaygroundApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate - - -# **evaluate_playground_evaluate_post** -> SuccessResponseDictStrAny evaluate_playground_evaluate_post(playground_evaluate_request) - -Evaluate - -### Example - -* Api Key Authentication (APIKeyHeader): -* Bearer Authentication (HTTPBearer): - -```python -import keynetra_client -from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest -from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny -from keynetra_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = keynetra_client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer' - -# Configure Bearer authorization: HTTPBearer -configuration = keynetra_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with keynetra_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = keynetra_client.PlaygroundApi(api_client) - playground_evaluate_request = keynetra_client.PlaygroundEvaluateRequest() # PlaygroundEvaluateRequest | - - try: - # Evaluate - api_response = api_instance.evaluate_playground_evaluate_post(playground_evaluate_request) - print("The response of PlaygroundApi->evaluate_playground_evaluate_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PlaygroundApi->evaluate_playground_evaluate_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md)| | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/python/docs/PlaygroundEvaluateRequest.md b/sdks/python/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index db4e7b9..0000000 --- a/sdks/python/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# PlaygroundEvaluateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policies** | [**List[PlaygroundPolicy]**](PlaygroundPolicy.md) | | -**input** | [**PlaygroundInput**](PlaygroundInput.md) | | - -## Example - -```python -from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of PlaygroundEvaluateRequest from a JSON string -playground_evaluate_request_instance = PlaygroundEvaluateRequest.from_json(json) -# print the JSON string representation of the object -print(PlaygroundEvaluateRequest.to_json()) - -# convert the object into a dict -playground_evaluate_request_dict = playground_evaluate_request_instance.to_dict() -# create an instance of PlaygroundEvaluateRequest from a dict -playground_evaluate_request_from_dict = PlaygroundEvaluateRequest.from_dict(playground_evaluate_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PlaygroundInput.md b/sdks/python/docs/PlaygroundInput.md deleted file mode 100644 index b2618b2..0000000 --- a/sdks/python/docs/PlaygroundInput.md +++ /dev/null @@ -1,32 +0,0 @@ -# PlaygroundInput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **Dict[str, object]** | | [optional] -**resource** | **Dict[str, object]** | | [optional] -**action** | **str** | | [optional] [default to ''] -**context** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.playground_input import PlaygroundInput - -# TODO update the JSON string below -json = "{}" -# create an instance of PlaygroundInput from a JSON string -playground_input_instance = PlaygroundInput.from_json(json) -# print the JSON string representation of the object -print(PlaygroundInput.to_json()) - -# convert the object into a dict -playground_input_dict = playground_input_instance.to_dict() -# create an instance of PlaygroundInput from a dict -playground_input_from_dict = PlaygroundInput.from_dict(playground_input_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PlaygroundPolicy.md b/sdks/python/docs/PlaygroundPolicy.md deleted file mode 100644 index c946ff3..0000000 --- a/sdks/python/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,33 +0,0 @@ -# PlaygroundPolicy - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | -**effect** | **str** | | [optional] [default to 'allow'] -**priority** | **int** | | [optional] [default to 100] -**policy_id** | **str** | | [optional] -**conditions** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.playground_policy import PlaygroundPolicy - -# TODO update the JSON string below -json = "{}" -# create an instance of PlaygroundPolicy from a JSON string -playground_policy_instance = PlaygroundPolicy.from_json(json) -# print the JSON string representation of the object -print(PlaygroundPolicy.to_json()) - -# convert the object into a dict -playground_policy_dict = playground_policy_instance.to_dict() -# create an instance of PlaygroundPolicy from a dict -playground_policy_from_dict = PlaygroundPolicy.from_dict(playground_policy_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PolicyCreate.md b/sdks/python/docs/PolicyCreate.md deleted file mode 100644 index 64a728a..0000000 --- a/sdks/python/docs/PolicyCreate.md +++ /dev/null @@ -1,33 +0,0 @@ -# PolicyCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | -**effect** | **str** | | [optional] [default to 'allow'] -**priority** | **int** | | [optional] [default to 100] -**state** | **str** | | [optional] [default to 'active'] -**conditions** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.policy_create import PolicyCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of PolicyCreate from a JSON string -policy_create_instance = PolicyCreate.from_json(json) -# print the JSON string representation of the object -print(PolicyCreate.to_json()) - -# convert the object into a dict -policy_create_dict = policy_create_instance.to_dict() -# create an instance of PolicyCreate from a dict -policy_create_from_dict = PolicyCreate.from_dict(policy_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PolicyOut.md b/sdks/python/docs/PolicyOut.md deleted file mode 100644 index 7e07ce4..0000000 --- a/sdks/python/docs/PolicyOut.md +++ /dev/null @@ -1,34 +0,0 @@ -# PolicyOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**action** | **str** | | -**effect** | **str** | | -**priority** | **int** | | -**state** | **str** | | [optional] [default to 'active'] -**conditions** | **Dict[str, object]** | | - -## Example - -```python -from keynetra_client.models.policy_out import PolicyOut - -# TODO update the JSON string below -json = "{}" -# create an instance of PolicyOut from a JSON string -policy_out_instance = PolicyOut.from_json(json) -# print the JSON string representation of the object -print(PolicyOut.to_json()) - -# convert the object into a dict -policy_out_dict = policy_out_instance.to_dict() -# create an instance of PolicyOut from a dict -policy_out_from_dict = PolicyOut.from_dict(policy_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PolicySimulationInput.md b/sdks/python/docs/PolicySimulationInput.md deleted file mode 100644 index ffbd1a3..0000000 --- a/sdks/python/docs/PolicySimulationInput.md +++ /dev/null @@ -1,31 +0,0 @@ -# PolicySimulationInput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policy_change** | **str** | | [optional] -**relationship_change** | **Dict[str, object]** | | [optional] -**role_change** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.policy_simulation_input import PolicySimulationInput - -# TODO update the JSON string below -json = "{}" -# create an instance of PolicySimulationInput from a JSON string -policy_simulation_input_instance = PolicySimulationInput.from_json(json) -# print the JSON string representation of the object -print(PolicySimulationInput.to_json()) - -# convert the object into a dict -policy_simulation_input_dict = policy_simulation_input_instance.to_dict() -# create an instance of PolicySimulationInput from a dict -policy_simulation_input_from_dict = PolicySimulationInput.from_dict(policy_simulation_input_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PolicySimulationRequest.md b/sdks/python/docs/PolicySimulationRequest.md deleted file mode 100644 index 64cf73b..0000000 --- a/sdks/python/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# PolicySimulationRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] -**request** | **Dict[str, object]** | | [optional] - -## Example - -```python -from keynetra_client.models.policy_simulation_request import PolicySimulationRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of PolicySimulationRequest from a JSON string -policy_simulation_request_instance = PolicySimulationRequest.from_json(json) -# print the JSON string representation of the object -print(PolicySimulationRequest.to_json()) - -# convert the object into a dict -policy_simulation_request_dict = policy_simulation_request_instance.to_dict() -# create an instance of PolicySimulationRequest from a dict -policy_simulation_request_from_dict = PolicySimulationRequest.from_dict(policy_simulation_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/PolicySimulationResponse.md b/sdks/python/docs/PolicySimulationResponse.md deleted file mode 100644 index 27b7fc2..0000000 --- a/sdks/python/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PolicySimulationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decision_before** | **Dict[str, object]** | | -**decision_after** | **Dict[str, object]** | | - -## Example - -```python -from keynetra_client.models.policy_simulation_response import PolicySimulationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PolicySimulationResponse from a JSON string -policy_simulation_response_instance = PolicySimulationResponse.from_json(json) -# print the JSON string representation of the object -print(PolicySimulationResponse.to_json()) - -# convert the object into a dict -policy_simulation_response_dict = policy_simulation_response_instance.to_dict() -# create an instance of PolicySimulationResponse from a dict -policy_simulation_response_from_dict = PolicySimulationResponse.from_dict(policy_simulation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/RelationshipCreate.md b/sdks/python/docs/RelationshipCreate.md deleted file mode 100644 index 8e5f9e6..0000000 --- a/sdks/python/docs/RelationshipCreate.md +++ /dev/null @@ -1,33 +0,0 @@ -# RelationshipCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject_type** | **str** | | -**subject_id** | **str** | | -**relation** | **str** | | -**object_type** | **str** | | -**object_id** | **str** | | - -## Example - -```python -from keynetra_client.models.relationship_create import RelationshipCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of RelationshipCreate from a JSON string -relationship_create_instance = RelationshipCreate.from_json(json) -# print the JSON string representation of the object -print(RelationshipCreate.to_json()) - -# convert the object into a dict -relationship_create_dict = relationship_create_instance.to_dict() -# create an instance of RelationshipCreate from a dict -relationship_create_from_dict = RelationshipCreate.from_dict(relationship_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/RelationshipOut.md b/sdks/python/docs/RelationshipOut.md deleted file mode 100644 index 6791d12..0000000 --- a/sdks/python/docs/RelationshipOut.md +++ /dev/null @@ -1,34 +0,0 @@ -# RelationshipOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject_type** | **str** | | -**subject_id** | **str** | | -**relation** | **str** | | -**object_type** | **str** | | -**object_id** | **str** | | -**id** | **int** | | - -## Example - -```python -from keynetra_client.models.relationship_out import RelationshipOut - -# TODO update the JSON string below -json = "{}" -# create an instance of RelationshipOut from a JSON string -relationship_out_instance = RelationshipOut.from_json(json) -# print the JSON string representation of the object -print(RelationshipOut.to_json()) - -# convert the object into a dict -relationship_out_dict = relationship_out_instance.to_dict() -# create an instance of RelationshipOut from a dict -relationship_out_from_dict = RelationshipOut.from_dict(relationship_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/RoleCreate.md b/sdks/python/docs/RoleCreate.md deleted file mode 100644 index 22a3205..0000000 --- a/sdks/python/docs/RoleCreate.md +++ /dev/null @@ -1,29 +0,0 @@ -# RoleCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | - -## Example - -```python -from keynetra_client.models.role_create import RoleCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of RoleCreate from a JSON string -role_create_instance = RoleCreate.from_json(json) -# print the JSON string representation of the object -print(RoleCreate.to_json()) - -# convert the object into a dict -role_create_dict = role_create_instance.to_dict() -# create an instance of RoleCreate from a dict -role_create_from_dict = RoleCreate.from_dict(role_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/RoleOut.md b/sdks/python/docs/RoleOut.md deleted file mode 100644 index 3c72bcb..0000000 --- a/sdks/python/docs/RoleOut.md +++ /dev/null @@ -1,30 +0,0 @@ -# RoleOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**name** | **str** | | - -## Example - -```python -from keynetra_client.models.role_out import RoleOut - -# TODO update the JSON string below -json = "{}" -# create an instance of RoleOut from a JSON string -role_out_instance = RoleOut.from_json(json) -# print the JSON string representation of the object -print(RoleOut.to_json()) - -# convert the object into a dict -role_out_dict = role_out_instance.to_dict() -# create an instance of RoleOut from a dict -role_out_from_dict = RoleOut.from_dict(role_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/RoleUpdate.md b/sdks/python/docs/RoleUpdate.md deleted file mode 100644 index 66ffee6..0000000 --- a/sdks/python/docs/RoleUpdate.md +++ /dev/null @@ -1,29 +0,0 @@ -# RoleUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | - -## Example - -```python -from keynetra_client.models.role_update import RoleUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of RoleUpdate from a JSON string -role_update_instance = RoleUpdate.from_json(json) -# print the JSON string representation of the object -print(RoleUpdate.to_json()) - -# convert the object into a dict -role_update_dict = role_update_instance.to_dict() -# create an instance of RoleUpdate from a dict -role_update_from_dict = RoleUpdate.from_dict(role_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SimulationResponse.md b/sdks/python/docs/SimulationResponse.md deleted file mode 100644 index f001def..0000000 --- a/sdks/python/docs/SimulationResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# SimulationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decision** | **str** | | -**matched_policies** | **List[str]** | | -**reason** | **str** | | [optional] -**policy_id** | **str** | | [optional] -**explain_trace** | **List[Dict[str, object]]** | | [optional] -**failed_conditions** | **List[str]** | | [optional] -**revision** | **int** | | [optional] - -## Example - -```python -from keynetra_client.models.simulation_response import SimulationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SimulationResponse from a JSON string -simulation_response_instance = SimulationResponse.from_json(json) -# print the JSON string representation of the object -print(SimulationResponse.to_json()) - -# convert the object into a dict -simulation_response_dict = simulation_response_instance.to_dict() -# create an instance of SimulationResponse from a dict -simulation_response_from_dict = SimulationResponse.from_dict(simulation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseACLOut.md b/sdks/python/docs/SuccessResponseACLOut.md deleted file mode 100644 index 32b7fdb..0000000 --- a/sdks/python/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseACLOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ACLOut**](ACLOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseACLOut from a JSON string -success_response_acl_out_instance = SuccessResponseACLOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseACLOut.to_json()) - -# convert the object into a dict -success_response_acl_out_dict = success_response_acl_out_instance.to_dict() -# create an instance of SuccessResponseACLOut from a dict -success_response_acl_out_from_dict = SuccessResponseACLOut.from_dict(success_response_acl_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseAccessDecisionResponse.md b/sdks/python/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index a54de6d..0000000 --- a/sdks/python/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseAccessDecisionResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseAccessDecisionResponse from a JSON string -success_response_access_decision_response_instance = SuccessResponseAccessDecisionResponse.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseAccessDecisionResponse.to_json()) - -# convert the object into a dict -success_response_access_decision_response_dict = success_response_access_decision_response_instance.to_dict() -# create an instance of SuccessResponseAccessDecisionResponse from a dict -success_response_access_decision_response_from_dict = SuccessResponseAccessDecisionResponse.from_dict(success_response_access_decision_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseAdminLoginResponse.md b/sdks/python/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index 42677c4..0000000 --- a/sdks/python/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseAdminLoginResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseAdminLoginResponse from a JSON string -success_response_admin_login_response_instance = SuccessResponseAdminLoginResponse.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseAdminLoginResponse.to_json()) - -# convert the object into a dict -success_response_admin_login_response_dict = success_response_admin_login_response_instance.to_dict() -# create an instance of SuccessResponseAdminLoginResponse from a dict -success_response_admin_login_response_from_dict = SuccessResponseAdminLoginResponse.from_dict(success_response_admin_login_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseAuthModelOut.md b/sdks/python/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index 6874b1c..0000000 --- a/sdks/python/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseAuthModelOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AuthModelOut**](AuthModelOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseAuthModelOut from a JSON string -success_response_auth_model_out_instance = SuccessResponseAuthModelOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseAuthModelOut.to_json()) - -# convert the object into a dict -success_response_auth_model_out_dict = success_response_auth_model_out_instance.to_dict() -# create an instance of SuccessResponseAuthModelOut from a dict -success_response_auth_model_out_from_dict = SuccessResponseAuthModelOut.from_dict(success_response_auth_model_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseBatchAccessResponse.md b/sdks/python/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index f781918..0000000 --- a/sdks/python/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseBatchAccessResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseBatchAccessResponse from a JSON string -success_response_batch_access_response_instance = SuccessResponseBatchAccessResponse.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseBatchAccessResponse.to_json()) - -# convert the object into a dict -success_response_batch_access_response_dict = success_response_batch_access_response_instance.to_dict() -# create an instance of SuccessResponseBatchAccessResponse from a dict -success_response_batch_access_response_from_dict = SuccessResponseBatchAccessResponse.from_dict(success_response_batch_access_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseDictStrAny.md b/sdks/python/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index 49a89c0..0000000 --- a/sdks/python/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseDictStrAny - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **Dict[str, object]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseDictStrAny from a JSON string -success_response_dict_str_any_instance = SuccessResponseDictStrAny.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseDictStrAny.to_json()) - -# convert the object into a dict -success_response_dict_str_any_dict = success_response_dict_str_any_instance.to_dict() -# create an instance of SuccessResponseDictStrAny from a dict -success_response_dict_str_any_from_dict = SuccessResponseDictStrAny.from_dict(success_response_dict_str_any_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseDictStrInt.md b/sdks/python/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 4bddde2..0000000 --- a/sdks/python/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseDictStrInt - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **Dict[str, int]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseDictStrInt from a JSON string -success_response_dict_str_int_instance = SuccessResponseDictStrInt.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseDictStrInt.to_json()) - -# convert the object into a dict -success_response_dict_str_int_dict = success_response_dict_str_int_instance.to_dict() -# create an instance of SuccessResponseDictStrInt from a dict -success_response_dict_str_int_from_dict = SuccessResponseDictStrInt.from_dict(success_response_dict_str_int_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseDictStrObject.md b/sdks/python/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index 4c50af5..0000000 --- a/sdks/python/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseDictStrObject - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **Dict[str, object]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseDictStrObject from a JSON string -success_response_dict_str_object_instance = SuccessResponseDictStrObject.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseDictStrObject.to_json()) - -# convert the object into a dict -success_response_dict_str_object_dict = success_response_dict_str_object_instance.to_dict() -# create an instance of SuccessResponseDictStrObject from a dict -success_response_dict_str_object_from_dict = SuccessResponseDictStrObject.from_dict(success_response_dict_str_object_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseDictStrStr.md b/sdks/python/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index 7d941ea..0000000 --- a/sdks/python/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseDictStrStr - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **Dict[str, str]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseDictStrStr from a JSON string -success_response_dict_str_str_instance = SuccessResponseDictStrStr.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseDictStrStr.to_json()) - -# convert the object into a dict -success_response_dict_str_str_dict = success_response_dict_str_str_instance.to_dict() -# create an instance of SuccessResponseDictStrStr from a dict -success_response_dict_str_str_from_dict = SuccessResponseDictStrStr.from_dict(success_response_dict_str_str_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/python/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index fd08c41..0000000 --- a/sdks/python/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseDictStrUnionIntStr - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Dict[str, DataValue]**](DataValue.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseDictStrUnionIntStr from a JSON string -success_response_dict_str_union_int_str_instance = SuccessResponseDictStrUnionIntStr.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseDictStrUnionIntStr.to_json()) - -# convert the object into a dict -success_response_dict_str_union_int_str_dict = success_response_dict_str_union_int_str_instance.to_dict() -# create an instance of SuccessResponseDictStrUnionIntStr from a dict -success_response_dict_str_union_int_str_from_dict = SuccessResponseDictStrUnionIntStr.from_dict(success_response_dict_str_union_int_str_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/python/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index 886adc8..0000000 --- a/sdks/python/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseImpactAnalysisResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseImpactAnalysisResponse from a JSON string -success_response_impact_analysis_response_instance = SuccessResponseImpactAnalysisResponse.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseImpactAnalysisResponse.to_json()) - -# convert the object into a dict -success_response_impact_analysis_response_dict = success_response_impact_analysis_response_instance.to_dict() -# create an instance of SuccessResponseImpactAnalysisResponse from a dict -success_response_impact_analysis_response_from_dict = SuccessResponseImpactAnalysisResponse.from_dict(success_response_impact_analysis_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseListACLOut.md b/sdks/python/docs/SuccessResponseListACLOut.md deleted file mode 100644 index c077874..0000000 --- a/sdks/python/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseListACLOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ACLOut]**](ACLOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseListACLOut from a JSON string -success_response_list_acl_out_instance = SuccessResponseListACLOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseListACLOut.to_json()) - -# convert the object into a dict -success_response_list_acl_out_dict = success_response_list_acl_out_instance.to_dict() -# create an instance of SuccessResponseListACLOut from a dict -success_response_list_acl_out_from_dict = SuccessResponseListACLOut.from_dict(success_response_list_acl_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseListAuditRecordOut.md b/sdks/python/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 2374b31..0000000 --- a/sdks/python/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseListAuditRecordOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AuditRecordOut]**](AuditRecordOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseListAuditRecordOut from a JSON string -success_response_list_audit_record_out_instance = SuccessResponseListAuditRecordOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseListAuditRecordOut.to_json()) - -# convert the object into a dict -success_response_list_audit_record_out_dict = success_response_list_audit_record_out_instance.to_dict() -# create an instance of SuccessResponseListAuditRecordOut from a dict -success_response_list_audit_record_out_from_dict = SuccessResponseListAuditRecordOut.from_dict(success_response_list_audit_record_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseListDictStrStr.md b/sdks/python/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index 025aa60..0000000 --- a/sdks/python/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseListDictStrStr - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **List[Dict[str, str]]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseListDictStrStr from a JSON string -success_response_list_dict_str_str_instance = SuccessResponseListDictStrStr.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseListDictStrStr.to_json()) - -# convert the object into a dict -success_response_list_dict_str_str_dict = success_response_list_dict_str_str_instance.to_dict() -# create an instance of SuccessResponseListDictStrStr from a dict -success_response_list_dict_str_str_from_dict = SuccessResponseListDictStrStr.from_dict(success_response_list_dict_str_str_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseListPermissionOut.md b/sdks/python/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index f018f70..0000000 --- a/sdks/python/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseListPermissionOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[PermissionOut]**](PermissionOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseListPermissionOut from a JSON string -success_response_list_permission_out_instance = SuccessResponseListPermissionOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseListPermissionOut.to_json()) - -# convert the object into a dict -success_response_list_permission_out_dict = success_response_list_permission_out_instance.to_dict() -# create an instance of SuccessResponseListPermissionOut from a dict -success_response_list_permission_out_from_dict = SuccessResponseListPermissionOut.from_dict(success_response_list_permission_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseListPolicyOut.md b/sdks/python/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index 2011e6a..0000000 --- a/sdks/python/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseListPolicyOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[PolicyOut]**](PolicyOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseListPolicyOut from a JSON string -success_response_list_policy_out_instance = SuccessResponseListPolicyOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseListPolicyOut.to_json()) - -# convert the object into a dict -success_response_list_policy_out_dict = success_response_list_policy_out_instance.to_dict() -# create an instance of SuccessResponseListPolicyOut from a dict -success_response_list_policy_out_from_dict = SuccessResponseListPolicyOut.from_dict(success_response_list_policy_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseListRoleOut.md b/sdks/python/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index e520620..0000000 --- a/sdks/python/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseListRoleOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[RoleOut]**](RoleOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseListRoleOut from a JSON string -success_response_list_role_out_instance = SuccessResponseListRoleOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseListRoleOut.to_json()) - -# convert the object into a dict -success_response_list_role_out_dict = success_response_list_role_out_instance.to_dict() -# create an instance of SuccessResponseListRoleOut from a dict -success_response_list_role_out_from_dict = SuccessResponseListRoleOut.from_dict(success_response_list_role_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponsePermissionOut.md b/sdks/python/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index a41ae57..0000000 --- a/sdks/python/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponsePermissionOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PermissionOut**](PermissionOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponsePermissionOut from a JSON string -success_response_permission_out_instance = SuccessResponsePermissionOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponsePermissionOut.to_json()) - -# convert the object into a dict -success_response_permission_out_dict = success_response_permission_out_instance.to_dict() -# create an instance of SuccessResponsePermissionOut from a dict -success_response_permission_out_from_dict = SuccessResponsePermissionOut.from_dict(success_response_permission_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponsePolicyOut.md b/sdks/python/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index 0a6484a..0000000 --- a/sdks/python/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponsePolicyOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PolicyOut**](PolicyOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponsePolicyOut from a JSON string -success_response_policy_out_instance = SuccessResponsePolicyOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponsePolicyOut.to_json()) - -# convert the object into a dict -success_response_policy_out_dict = success_response_policy_out_instance.to_dict() -# create an instance of SuccessResponsePolicyOut from a dict -success_response_policy_out_from_dict = SuccessResponsePolicyOut.from_dict(success_response_policy_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponsePolicySimulationResponse.md b/sdks/python/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index 5952617..0000000 --- a/sdks/python/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponsePolicySimulationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponsePolicySimulationResponse from a JSON string -success_response_policy_simulation_response_instance = SuccessResponsePolicySimulationResponse.from_json(json) -# print the JSON string representation of the object -print(SuccessResponsePolicySimulationResponse.to_json()) - -# convert the object into a dict -success_response_policy_simulation_response_dict = success_response_policy_simulation_response_instance.to_dict() -# create an instance of SuccessResponsePolicySimulationResponse from a dict -success_response_policy_simulation_response_from_dict = SuccessResponsePolicySimulationResponse.from_dict(success_response_policy_simulation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseRelationshipOut.md b/sdks/python/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index 0a8ae5f..0000000 --- a/sdks/python/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseRelationshipOut - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RelationshipOut**](RelationshipOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseRelationshipOut from a JSON string -success_response_relationship_out_instance = SuccessResponseRelationshipOut.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseRelationshipOut.to_json()) - -# convert the object into a dict -success_response_relationship_out_dict = success_response_relationship_out_instance.to_dict() -# create an instance of SuccessResponseRelationshipOut from a dict -success_response_relationship_out_from_dict = SuccessResponseRelationshipOut.from_dict(success_response_relationship_out_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/SuccessResponseSimulationResponse.md b/sdks/python/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index d1ca30b..0000000 --- a/sdks/python/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# SuccessResponseSimulationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SimulationResponse**](SimulationResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | [**Any**](Any.md) | | [optional] - -## Example - -```python -from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuccessResponseSimulationResponse from a JSON string -success_response_simulation_response_instance = SuccessResponseSimulationResponse.from_json(json) -# print the JSON string representation of the object -print(SuccessResponseSimulationResponse.to_json()) - -# convert the object into a dict -success_response_simulation_response_dict = success_response_simulation_response_instance.to_dict() -# create an instance of SuccessResponseSimulationResponse from a dict -success_response_simulation_response_from_dict = SuccessResponseSimulationResponse.from_dict(success_response_simulation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/docs/ValidationError.md b/sdks/python/docs/ValidationError.md deleted file mode 100644 index afa5999..0000000 --- a/sdks/python/docs/ValidationError.md +++ /dev/null @@ -1,33 +0,0 @@ -# ValidationError - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loc** | [**List[LocationInner]**](LocationInner.md) | | -**msg** | **str** | | -**type** | **str** | | -**input** | **object** | | [optional] -**ctx** | **object** | | [optional] - -## Example - -```python -from keynetra_client.models.validation_error import ValidationError - -# TODO update the JSON string below -json = "{}" -# create an instance of ValidationError from a JSON string -validation_error_instance = ValidationError.from_json(json) -# print the JSON string representation of the object -print(ValidationError.to_json()) - -# convert the object into a dict -validation_error_dict = validation_error_instance.to_dict() -# create an instance of ValidationError from a dict -validation_error_from_dict = ValidationError.from_dict(validation_error_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/python/git_push.sh b/sdks/python/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/python/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/python/keynetra_client/__init__.py b/sdks/python/keynetra_client/__init__.py deleted file mode 100644 index fa62e5c..0000000 --- a/sdks/python/keynetra_client/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from .client import KeyNetraClient - -__all__ = ["KeyNetraClient"] diff --git a/sdks/python/keynetra_client/api/__init__.py b/sdks/python/keynetra_client/api/__init__.py deleted file mode 100644 index 43de602..0000000 --- a/sdks/python/keynetra_client/api/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# flake8: noqa - -# import apis into api package -from keynetra_client.api.access_api import AccessApi -from keynetra_client.api.auth_api import AuthApi -from keynetra_client.api.dev_api import DevApi -from keynetra_client.api.health_api import HealthApi -from keynetra_client.api.management_api import ManagementApi -from keynetra_client.api.playground_api import PlaygroundApi - diff --git a/sdks/python/keynetra_client/api/access_api.py b/sdks/python/keynetra_client/api/access_api.py deleted file mode 100644 index 44acb8c..0000000 --- a/sdks/python/keynetra_client/api/access_api.py +++ /dev/null @@ -1,900 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import StrictStr -from typing import Optional -from keynetra_client.models.access_request import AccessRequest -from keynetra_client.models.batch_access_request import BatchAccessRequest -from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse -from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse -from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse - -from keynetra_client.api_client import ApiClient, RequestSerialized -from keynetra_client.api_response import ApiResponse -from keynetra_client.rest import RESTResponseType - - -class AccessApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def check_access_batch_check_access_batch_post( - self, - batch_access_request: BatchAccessRequest, - policy_set: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseBatchAccessResponse: - """Check Access Batch - - - :param batch_access_request: (required) - :type batch_access_request: BatchAccessRequest - :param policy_set: - :type policy_set: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_access_batch_check_access_batch_post_serialize( - batch_access_request=batch_access_request, - policy_set=policy_set, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseBatchAccessResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def check_access_batch_check_access_batch_post_with_http_info( - self, - batch_access_request: BatchAccessRequest, - policy_set: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseBatchAccessResponse]: - """Check Access Batch - - - :param batch_access_request: (required) - :type batch_access_request: BatchAccessRequest - :param policy_set: - :type policy_set: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_access_batch_check_access_batch_post_serialize( - batch_access_request=batch_access_request, - policy_set=policy_set, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseBatchAccessResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def check_access_batch_check_access_batch_post_without_preload_content( - self, - batch_access_request: BatchAccessRequest, - policy_set: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check Access Batch - - - :param batch_access_request: (required) - :type batch_access_request: BatchAccessRequest - :param policy_set: - :type policy_set: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_access_batch_check_access_batch_post_serialize( - batch_access_request=batch_access_request, - policy_set=policy_set, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseBatchAccessResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_access_batch_check_access_batch_post_serialize( - self, - batch_access_request, - policy_set, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if policy_set is not None: - - _query_params.append(('policy_set', policy_set)) - - # process the header parameters - # process the form parameters - # process the body parameter - if batch_access_request is not None: - _body_params = batch_access_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/check-access-batch', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def check_access_check_access_post( - self, - access_request: AccessRequest, - policy_set: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseAccessDecisionResponse: - """Check Access - - - :param access_request: (required) - :type access_request: AccessRequest - :param policy_set: - :type policy_set: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_access_check_access_post_serialize( - access_request=access_request, - policy_set=policy_set, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAccessDecisionResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def check_access_check_access_post_with_http_info( - self, - access_request: AccessRequest, - policy_set: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseAccessDecisionResponse]: - """Check Access - - - :param access_request: (required) - :type access_request: AccessRequest - :param policy_set: - :type policy_set: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_access_check_access_post_serialize( - access_request=access_request, - policy_set=policy_set, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAccessDecisionResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def check_access_check_access_post_without_preload_content( - self, - access_request: AccessRequest, - policy_set: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check Access - - - :param access_request: (required) - :type access_request: AccessRequest - :param policy_set: - :type policy_set: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_access_check_access_post_serialize( - access_request=access_request, - policy_set=policy_set, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAccessDecisionResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_access_check_access_post_serialize( - self, - access_request, - policy_set, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if policy_set is not None: - - _query_params.append(('policy_set', policy_set)) - - # process the header parameters - # process the form parameters - # process the body parameter - if access_request is not None: - _body_params = access_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/check-access', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def simulate_simulate_post( - self, - access_request: AccessRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseSimulationResponse: - """Simulate - - - :param access_request: (required) - :type access_request: AccessRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._simulate_simulate_post_serialize( - access_request=access_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseSimulationResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def simulate_simulate_post_with_http_info( - self, - access_request: AccessRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseSimulationResponse]: - """Simulate - - - :param access_request: (required) - :type access_request: AccessRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._simulate_simulate_post_serialize( - access_request=access_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseSimulationResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def simulate_simulate_post_without_preload_content( - self, - access_request: AccessRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Simulate - - - :param access_request: (required) - :type access_request: AccessRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._simulate_simulate_post_serialize( - access_request=access_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseSimulationResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _simulate_simulate_post_serialize( - self, - access_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if access_request is not None: - _body_params = access_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/simulate', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/sdks/python/keynetra_client/api/auth_api.py b/sdks/python/keynetra_client/api/auth_api.py deleted file mode 100644 index f95f564..0000000 --- a/sdks/python/keynetra_client/api/auth_api.py +++ /dev/null @@ -1,582 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from keynetra_client.models.admin_login_request import AdminLoginRequest -from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse - -from keynetra_client.api_client import ApiClient, RequestSerialized -from keynetra_client.api_response import ApiResponse -from keynetra_client.rest import RESTResponseType - - -class AuthApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def admin_login_admin_login_post( - self, - admin_login_request: AdminLoginRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseAdminLoginResponse: - """Admin Login - - - :param admin_login_request: (required) - :type admin_login_request: AdminLoginRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._admin_login_admin_login_post_serialize( - admin_login_request=admin_login_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAdminLoginResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def admin_login_admin_login_post_with_http_info( - self, - admin_login_request: AdminLoginRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseAdminLoginResponse]: - """Admin Login - - - :param admin_login_request: (required) - :type admin_login_request: AdminLoginRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._admin_login_admin_login_post_serialize( - admin_login_request=admin_login_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAdminLoginResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def admin_login_admin_login_post_without_preload_content( - self, - admin_login_request: AdminLoginRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Admin Login - - - :param admin_login_request: (required) - :type admin_login_request: AdminLoginRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._admin_login_admin_login_post_serialize( - admin_login_request=admin_login_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAdminLoginResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _admin_login_admin_login_post_serialize( - self, - admin_login_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if admin_login_request is not None: - _body_params = admin_login_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/admin/login', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def admin_login_admin_login_post_0( - self, - admin_login_request: AdminLoginRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseAdminLoginResponse: - """Admin Login - - - :param admin_login_request: (required) - :type admin_login_request: AdminLoginRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._admin_login_admin_login_post_0_serialize( - admin_login_request=admin_login_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAdminLoginResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def admin_login_admin_login_post_0_with_http_info( - self, - admin_login_request: AdminLoginRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseAdminLoginResponse]: - """Admin Login - - - :param admin_login_request: (required) - :type admin_login_request: AdminLoginRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._admin_login_admin_login_post_0_serialize( - admin_login_request=admin_login_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAdminLoginResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def admin_login_admin_login_post_0_without_preload_content( - self, - admin_login_request: AdminLoginRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Admin Login - - - :param admin_login_request: (required) - :type admin_login_request: AdminLoginRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._admin_login_admin_login_post_0_serialize( - admin_login_request=admin_login_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAdminLoginResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _admin_login_admin_login_post_0_serialize( - self, - admin_login_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if admin_login_request is not None: - _body_params = admin_login_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/admin/login', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/sdks/python/keynetra_client/api/dev_api.py b/sdks/python/keynetra_client/api/dev_api.py deleted file mode 100644 index 8ef9bd2..0000000 --- a/sdks/python/keynetra_client/api/dev_api.py +++ /dev/null @@ -1,542 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool -from typing import Optional -from typing_extensions import Annotated -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject - -from keynetra_client.api_client import ApiClient, RequestSerialized -from keynetra_client.api_response import ApiResponse -from keynetra_client.rest import RESTResponseType - - -class DevApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_sample_data_dev_sample_data_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrObject: - """Get Sample Data - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sample_data_dev_sample_data_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_sample_data_dev_sample_data_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrObject]: - """Get Sample Data - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sample_data_dev_sample_data_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_sample_data_dev_sample_data_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Sample Data - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sample_data_dev_sample_data_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_sample_data_dev_sample_data_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/dev/sample-data', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def seed_sample_data_dev_sample_data_seed_post( - self, - reset: Annotated[Optional[StrictBool], Field(description="Clear the sample dataset before reseeding it.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrObject: - """Seed Sample Data - - - :param reset: Clear the sample dataset before reseeding it. - :type reset: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._seed_sample_data_dev_sample_data_seed_post_serialize( - reset=reset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def seed_sample_data_dev_sample_data_seed_post_with_http_info( - self, - reset: Annotated[Optional[StrictBool], Field(description="Clear the sample dataset before reseeding it.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrObject]: - """Seed Sample Data - - - :param reset: Clear the sample dataset before reseeding it. - :type reset: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._seed_sample_data_dev_sample_data_seed_post_serialize( - reset=reset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def seed_sample_data_dev_sample_data_seed_post_without_preload_content( - self, - reset: Annotated[Optional[StrictBool], Field(description="Clear the sample dataset before reseeding it.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Seed Sample Data - - - :param reset: Clear the sample dataset before reseeding it. - :type reset: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._seed_sample_data_dev_sample_data_seed_post_serialize( - reset=reset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _seed_sample_data_dev_sample_data_seed_post_serialize( - self, - reset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if reset is not None: - - _query_params.append(('reset', reset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/dev/sample-data/seed', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/sdks/python/keynetra_client/api/health_api.py b/sdks/python/keynetra_client/api/health_api.py deleted file mode 100644 index b95cbc6..0000000 --- a/sdks/python/keynetra_client/api/health_api.py +++ /dev/null @@ -1,762 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr - -from keynetra_client.api_client import ApiClient, RequestSerialized -from keynetra_client.api_response import ApiResponse -from keynetra_client.rest import RESTResponseType - - -class HealthApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def health_health_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrStr: - """Health - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._health_health_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def health_health_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrStr]: - """Health - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._health_health_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def health_health_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Health - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._health_health_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _health_health_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/health', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def liveness_health_live_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrStr: - """Liveness - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._liveness_health_live_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def liveness_health_live_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrStr]: - """Liveness - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._liveness_health_live_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def liveness_health_live_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Liveness - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._liveness_health_live_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _liveness_health_live_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/health/live', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def readiness_health_ready_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrObject: - """Readiness - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._readiness_health_ready_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def readiness_health_ready_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrObject]: - """Readiness - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._readiness_health_ready_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def readiness_health_ready_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Readiness - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._readiness_health_ready_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrObject", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _readiness_health_ready_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/health/ready', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/sdks/python/keynetra_client/api/management_api.py b/sdks/python/keynetra_client/api/management_api.py deleted file mode 100644 index ac4bf3c..0000000 --- a/sdks/python/keynetra_client/api/management_api.py +++ /dev/null @@ -1,7865 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from datetime import datetime -from pydantic import StrictInt, StrictStr -from typing import Optional -from keynetra_client.models.acl_create import ACLCreate -from keynetra_client.models.auth_model_create import AuthModelCreate -from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest -from keynetra_client.models.permission_create import PermissionCreate -from keynetra_client.models.permission_out import PermissionOut -from keynetra_client.models.permission_update import PermissionUpdate -from keynetra_client.models.policy_create import PolicyCreate -from keynetra_client.models.policy_simulation_request import PolicySimulationRequest -from keynetra_client.models.relationship_create import RelationshipCreate -from keynetra_client.models.role_create import RoleCreate -from keynetra_client.models.role_out import RoleOut -from keynetra_client.models.role_update import RoleUpdate -from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut -from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr -from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr -from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse -from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut -from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut -from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr -from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut -from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut -from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut -from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut -from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse -from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut - -from keynetra_client.api_client import ApiClient, RequestSerialized -from keynetra_client.api_response import ApiResponse -from keynetra_client.rest import RESTResponseType - - -class ManagementApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def add_permission_to_role_roles_role_id_permissions_permission_id_post( - self, - role_id: StrictInt, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponsePermissionOut: - """Add Permission To Role - - - :param role_id: (required) - :type role_id: int - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( - role_id=role_id, - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info( - self, - role_id: StrictInt, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponsePermissionOut]: - """Add Permission To Role - - - :param role_id: (required) - :type role_id: int - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( - role_id=role_id, - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def add_permission_to_role_roles_role_id_permissions_permission_id_post_without_preload_content( - self, - role_id: StrictInt, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Add Permission To Role - - - :param role_id: (required) - :type role_id: int - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( - role_id=role_id, - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _add_permission_to_role_roles_role_id_permissions_permission_id_post_serialize( - self, - role_id, - permission_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if role_id is not None: - _path_params['role_id'] = role_id - if permission_id is not None: - _path_params['permission_id'] = permission_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/roles/{role_id}/permissions/{permission_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_acl_entry_acl_post( - self, - acl_create: ACLCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseACLOut: - """Create Acl Entry - - - :param acl_create: (required) - :type acl_create: ACLCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_acl_entry_acl_post_serialize( - acl_create=acl_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseACLOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_acl_entry_acl_post_with_http_info( - self, - acl_create: ACLCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseACLOut]: - """Create Acl Entry - - - :param acl_create: (required) - :type acl_create: ACLCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_acl_entry_acl_post_serialize( - acl_create=acl_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseACLOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_acl_entry_acl_post_without_preload_content( - self, - acl_create: ACLCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Acl Entry - - - :param acl_create: (required) - :type acl_create: ACLCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_acl_entry_acl_post_serialize( - acl_create=acl_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseACLOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_acl_entry_acl_post_serialize( - self, - acl_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if acl_create is not None: - _body_params = acl_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/acl', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_auth_model_auth_model_post( - self, - auth_model_create: AuthModelCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseAuthModelOut: - """Create Auth Model - - - :param auth_model_create: (required) - :type auth_model_create: AuthModelCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_auth_model_auth_model_post_serialize( - auth_model_create=auth_model_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseAuthModelOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_auth_model_auth_model_post_with_http_info( - self, - auth_model_create: AuthModelCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseAuthModelOut]: - """Create Auth Model - - - :param auth_model_create: (required) - :type auth_model_create: AuthModelCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_auth_model_auth_model_post_serialize( - auth_model_create=auth_model_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseAuthModelOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_auth_model_auth_model_post_without_preload_content( - self, - auth_model_create: AuthModelCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Auth Model - - - :param auth_model_create: (required) - :type auth_model_create: AuthModelCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_auth_model_auth_model_post_serialize( - auth_model_create=auth_model_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseAuthModelOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_auth_model_auth_model_post_serialize( - self, - auth_model_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if auth_model_create is not None: - _body_params = auth_model_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/auth-model', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_permission_permissions_post( - self, - permission_create: PermissionCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionOut: - """Create Permission - - - :param permission_create: (required) - :type permission_create: PermissionCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_permission_permissions_post_serialize( - permission_create=permission_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "PermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_permission_permissions_post_with_http_info( - self, - permission_create: PermissionCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionOut]: - """Create Permission - - - :param permission_create: (required) - :type permission_create: PermissionCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_permission_permissions_post_serialize( - permission_create=permission_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "PermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_permission_permissions_post_without_preload_content( - self, - permission_create: PermissionCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Permission - - - :param permission_create: (required) - :type permission_create: PermissionCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_permission_permissions_post_serialize( - permission_create=permission_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "PermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_permission_permissions_post_serialize( - self, - permission_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if permission_create is not None: - _body_params = permission_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/permissions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_policy_from_dsl_policies_dsl_post( - self, - dsl: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponsePolicyOut: - """Create Policy From Dsl - - - :param dsl: (required) - :type dsl: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_policy_from_dsl_policies_dsl_post_serialize( - dsl=dsl, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_policy_from_dsl_policies_dsl_post_with_http_info( - self, - dsl: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponsePolicyOut]: - """Create Policy From Dsl - - - :param dsl: (required) - :type dsl: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_policy_from_dsl_policies_dsl_post_serialize( - dsl=dsl, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_policy_from_dsl_policies_dsl_post_without_preload_content( - self, - dsl: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Policy From Dsl - - - :param dsl: (required) - :type dsl: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_policy_from_dsl_policies_dsl_post_serialize( - dsl=dsl, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_policy_from_dsl_policies_dsl_post_serialize( - self, - dsl, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if dsl is not None: - - _query_params.append(('dsl', dsl)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/policies/dsl', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_policy_policies_post( - self, - policy_create: PolicyCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponsePolicyOut: - """Create Policy - - - :param policy_create: (required) - :type policy_create: PolicyCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_policy_policies_post_serialize( - policy_create=policy_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_policy_policies_post_with_http_info( - self, - policy_create: PolicyCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponsePolicyOut]: - """Create Policy - - - :param policy_create: (required) - :type policy_create: PolicyCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_policy_policies_post_serialize( - policy_create=policy_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_policy_policies_post_without_preload_content( - self, - policy_create: PolicyCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Policy - - - :param policy_create: (required) - :type policy_create: PolicyCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_policy_policies_post_serialize( - policy_create=policy_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_policy_policies_post_serialize( - self, - policy_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if policy_create is not None: - _body_params = policy_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/policies', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_relationship_relationships_post( - self, - relationship_create: RelationshipCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseRelationshipOut: - """Create Relationship - - - :param relationship_create: (required) - :type relationship_create: RelationshipCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_relationship_relationships_post_serialize( - relationship_create=relationship_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseRelationshipOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_relationship_relationships_post_with_http_info( - self, - relationship_create: RelationshipCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseRelationshipOut]: - """Create Relationship - - - :param relationship_create: (required) - :type relationship_create: RelationshipCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_relationship_relationships_post_serialize( - relationship_create=relationship_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseRelationshipOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_relationship_relationships_post_without_preload_content( - self, - relationship_create: RelationshipCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Relationship - - - :param relationship_create: (required) - :type relationship_create: RelationshipCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_relationship_relationships_post_serialize( - relationship_create=relationship_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SuccessResponseRelationshipOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_relationship_relationships_post_serialize( - self, - relationship_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if relationship_create is not None: - _body_params = relationship_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/relationships', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_role_roles_post( - self, - role_create: RoleCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RoleOut: - """Create Role - - - :param role_create: (required) - :type role_create: RoleCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_role_roles_post_serialize( - role_create=role_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "RoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_role_roles_post_with_http_info( - self, - role_create: RoleCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RoleOut]: - """Create Role - - - :param role_create: (required) - :type role_create: RoleCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_role_roles_post_serialize( - role_create=role_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "RoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_role_roles_post_without_preload_content( - self, - role_create: RoleCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Role - - - :param role_create: (required) - :type role_create: RoleCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_role_roles_post_serialize( - role_create=role_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "RoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_role_roles_post_serialize( - self, - role_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if role_create is not None: - _body_params = role_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/roles', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_acl_entry_acl_acl_id_delete( - self, - acl_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrInt: - """Delete Acl Entry - - - :param acl_id: (required) - :type acl_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_acl_entry_acl_acl_id_delete_serialize( - acl_id=acl_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_acl_entry_acl_acl_id_delete_with_http_info( - self, - acl_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrInt]: - """Delete Acl Entry - - - :param acl_id: (required) - :type acl_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_acl_entry_acl_acl_id_delete_serialize( - acl_id=acl_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_acl_entry_acl_acl_id_delete_without_preload_content( - self, - acl_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Acl Entry - - - :param acl_id: (required) - :type acl_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_acl_entry_acl_acl_id_delete_serialize( - acl_id=acl_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_acl_entry_acl_acl_id_delete_serialize( - self, - acl_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if acl_id is not None: - _path_params['acl_id'] = acl_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/acl/{acl_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_permission_permissions_permission_id_delete( - self, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrInt: - """Delete Permission - - - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_permission_permissions_permission_id_delete_serialize( - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_permission_permissions_permission_id_delete_with_http_info( - self, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrInt]: - """Delete Permission - - - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_permission_permissions_permission_id_delete_serialize( - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_permission_permissions_permission_id_delete_without_preload_content( - self, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Permission - - - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_permission_permissions_permission_id_delete_serialize( - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_permission_permissions_permission_id_delete_serialize( - self, - permission_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if permission_id is not None: - _path_params['permission_id'] = permission_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/permissions/{permission_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_policy_policies_policy_key_delete( - self, - policy_key: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrStr: - """Delete Policy - - - :param policy_key: (required) - :type policy_key: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_policy_policies_policy_key_delete_serialize( - policy_key=policy_key, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_policy_policies_policy_key_delete_with_http_info( - self, - policy_key: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrStr]: - """Delete Policy - - - :param policy_key: (required) - :type policy_key: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_policy_policies_policy_key_delete_serialize( - policy_key=policy_key, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_policy_policies_policy_key_delete_without_preload_content( - self, - policy_key: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Policy - - - :param policy_key: (required) - :type policy_key: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_policy_policies_policy_key_delete_serialize( - policy_key=policy_key, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_policy_policies_policy_key_delete_serialize( - self, - policy_key, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if policy_key is not None: - _path_params['policy_key'] = policy_key - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/policies/{policy_key}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_role_roles_role_id_delete( - self, - role_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrInt: - """Delete Role - - - :param role_id: (required) - :type role_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_role_roles_role_id_delete_serialize( - role_id=role_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_role_roles_role_id_delete_with_http_info( - self, - role_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrInt]: - """Delete Role - - - :param role_id: (required) - :type role_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_role_roles_role_id_delete_serialize( - role_id=role_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_role_roles_role_id_delete_without_preload_content( - self, - role_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Role - - - :param role_id: (required) - :type role_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_role_roles_role_id_delete_serialize( - role_id=role_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_role_roles_role_id_delete_serialize( - self, - role_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if role_id is not None: - _path_params['role_id'] = role_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/roles/{role_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_auth_model_auth_model_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseAuthModelOut: - """Get Auth Model - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_auth_model_auth_model_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAuthModelOut", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_auth_model_auth_model_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseAuthModelOut]: - """Get Auth Model - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_auth_model_auth_model_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAuthModelOut", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_auth_model_auth_model_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Auth Model - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_auth_model_auth_model_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseAuthModelOut", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_auth_model_auth_model_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/auth-model', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def impact_analysis_impact_analysis_post( - self, - impact_analysis_request: ImpactAnalysisRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseImpactAnalysisResponse: - """Impact Analysis - - - :param impact_analysis_request: (required) - :type impact_analysis_request: ImpactAnalysisRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._impact_analysis_impact_analysis_post_serialize( - impact_analysis_request=impact_analysis_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseImpactAnalysisResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def impact_analysis_impact_analysis_post_with_http_info( - self, - impact_analysis_request: ImpactAnalysisRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseImpactAnalysisResponse]: - """Impact Analysis - - - :param impact_analysis_request: (required) - :type impact_analysis_request: ImpactAnalysisRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._impact_analysis_impact_analysis_post_serialize( - impact_analysis_request=impact_analysis_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseImpactAnalysisResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def impact_analysis_impact_analysis_post_without_preload_content( - self, - impact_analysis_request: ImpactAnalysisRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Impact Analysis - - - :param impact_analysis_request: (required) - :type impact_analysis_request: ImpactAnalysisRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._impact_analysis_impact_analysis_post_serialize( - impact_analysis_request=impact_analysis_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseImpactAnalysisResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _impact_analysis_impact_analysis_post_serialize( - self, - impact_analysis_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if impact_analysis_request is not None: - _body_params = impact_analysis_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/impact-analysis', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_acl_entries_acl_resource_type_resource_id_get( - self, - resource_type: StrictStr, - resource_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListACLOut: - """List Acl Entries - - - :param resource_type: (required) - :type resource_type: str - :param resource_id: (required) - :type resource_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_acl_entries_acl_resource_type_resource_id_get_serialize( - resource_type=resource_type, - resource_id=resource_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListACLOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_acl_entries_acl_resource_type_resource_id_get_with_http_info( - self, - resource_type: StrictStr, - resource_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListACLOut]: - """List Acl Entries - - - :param resource_type: (required) - :type resource_type: str - :param resource_id: (required) - :type resource_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_acl_entries_acl_resource_type_resource_id_get_serialize( - resource_type=resource_type, - resource_id=resource_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListACLOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_acl_entries_acl_resource_type_resource_id_get_without_preload_content( - self, - resource_type: StrictStr, - resource_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Acl Entries - - - :param resource_type: (required) - :type resource_type: str - :param resource_id: (required) - :type resource_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_acl_entries_acl_resource_type_resource_id_get_serialize( - resource_type=resource_type, - resource_id=resource_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListACLOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_acl_entries_acl_resource_type_resource_id_get_serialize( - self, - resource_type, - resource_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if resource_type is not None: - _path_params['resource_type'] = resource_type - if resource_id is not None: - _path_params['resource_id'] = resource_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/acl/{resource_type}/{resource_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_audit_logs_audit_get( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - user_id: Optional[StrictStr] = None, - resource_id: Optional[StrictStr] = None, - decision: Optional[StrictStr] = None, - start_time: Optional[datetime] = None, - end_time: Optional[datetime] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListAuditRecordOut: - """List Audit Logs - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param user_id: - :type user_id: str - :param resource_id: - :type resource_id: str - :param decision: - :type decision: str - :param start_time: - :type start_time: datetime - :param end_time: - :type end_time: datetime - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_audit_logs_audit_get_serialize( - limit=limit, - cursor=cursor, - user_id=user_id, - resource_id=resource_id, - decision=decision, - start_time=start_time, - end_time=end_time, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListAuditRecordOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_audit_logs_audit_get_with_http_info( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - user_id: Optional[StrictStr] = None, - resource_id: Optional[StrictStr] = None, - decision: Optional[StrictStr] = None, - start_time: Optional[datetime] = None, - end_time: Optional[datetime] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListAuditRecordOut]: - """List Audit Logs - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param user_id: - :type user_id: str - :param resource_id: - :type resource_id: str - :param decision: - :type decision: str - :param start_time: - :type start_time: datetime - :param end_time: - :type end_time: datetime - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_audit_logs_audit_get_serialize( - limit=limit, - cursor=cursor, - user_id=user_id, - resource_id=resource_id, - decision=decision, - start_time=start_time, - end_time=end_time, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListAuditRecordOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_audit_logs_audit_get_without_preload_content( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - user_id: Optional[StrictStr] = None, - resource_id: Optional[StrictStr] = None, - decision: Optional[StrictStr] = None, - start_time: Optional[datetime] = None, - end_time: Optional[datetime] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Audit Logs - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param user_id: - :type user_id: str - :param resource_id: - :type resource_id: str - :param decision: - :type decision: str - :param start_time: - :type start_time: datetime - :param end_time: - :type end_time: datetime - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_audit_logs_audit_get_serialize( - limit=limit, - cursor=cursor, - user_id=user_id, - resource_id=resource_id, - decision=decision, - start_time=start_time, - end_time=end_time, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListAuditRecordOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_audit_logs_audit_get_serialize( - self, - limit, - cursor, - user_id, - resource_id, - decision, - start_time, - end_time, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if cursor is not None: - - _query_params.append(('cursor', cursor)) - - if user_id is not None: - - _query_params.append(('user_id', user_id)) - - if resource_id is not None: - - _query_params.append(('resource_id', resource_id)) - - if decision is not None: - - _query_params.append(('decision', decision)) - - if start_time is not None: - if isinstance(start_time, datetime): - _query_params.append( - ( - 'start_time', - start_time.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('start_time', start_time)) - - if end_time is not None: - if isinstance(end_time, datetime): - _query_params.append( - ( - 'end_time', - end_time.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('end_time', end_time)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/audit', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_permission_roles_permissions_permission_id_roles_get( - self, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListRoleOut: - """List Permission Roles - - - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_permission_roles_permissions_permission_id_roles_get_serialize( - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListRoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_permission_roles_permissions_permission_id_roles_get_with_http_info( - self, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListRoleOut]: - """List Permission Roles - - - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_permission_roles_permissions_permission_id_roles_get_serialize( - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListRoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_permission_roles_permissions_permission_id_roles_get_without_preload_content( - self, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Permission Roles - - - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_permission_roles_permissions_permission_id_roles_get_serialize( - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListRoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_permission_roles_permissions_permission_id_roles_get_serialize( - self, - permission_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if permission_id is not None: - _path_params['permission_id'] = permission_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/permissions/{permission_id}/roles', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_permissions_permissions_get( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListPermissionOut: - """List Permissions - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_permissions_permissions_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_permissions_permissions_get_with_http_info( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListPermissionOut]: - """List Permissions - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_permissions_permissions_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_permissions_permissions_get_without_preload_content( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Permissions - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_permissions_permissions_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_permissions_permissions_get_serialize( - self, - limit, - cursor, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if cursor is not None: - - _query_params.append(('cursor', cursor)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/permissions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_policies_policies_get( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListPolicyOut: - """List Policies - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_policies_policies_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_policies_policies_get_with_http_info( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListPolicyOut]: - """List Policies - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_policies_policies_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_policies_policies_get_without_preload_content( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Policies - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_policies_policies_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_policies_policies_get_serialize( - self, - limit, - cursor, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if cursor is not None: - - _query_params.append(('cursor', cursor)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/policies', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_relationships_relationships_get( - self, - subject_type: StrictStr, - subject_id: StrictStr, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListDictStrStr: - """List Relationships - - - :param subject_type: (required) - :type subject_type: str - :param subject_id: (required) - :type subject_id: str - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_relationships_relationships_get_serialize( - subject_type=subject_type, - subject_id=subject_id, - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListDictStrStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_relationships_relationships_get_with_http_info( - self, - subject_type: StrictStr, - subject_id: StrictStr, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListDictStrStr]: - """List Relationships - - - :param subject_type: (required) - :type subject_type: str - :param subject_id: (required) - :type subject_id: str - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_relationships_relationships_get_serialize( - subject_type=subject_type, - subject_id=subject_id, - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListDictStrStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_relationships_relationships_get_without_preload_content( - self, - subject_type: StrictStr, - subject_id: StrictStr, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Relationships - - - :param subject_type: (required) - :type subject_type: str - :param subject_id: (required) - :type subject_id: str - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_relationships_relationships_get_serialize( - subject_type=subject_type, - subject_id=subject_id, - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListDictStrStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_relationships_relationships_get_serialize( - self, - subject_type, - subject_id, - limit, - cursor, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if subject_type is not None: - - _query_params.append(('subject_type', subject_type)) - - if subject_id is not None: - - _query_params.append(('subject_id', subject_id)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if cursor is not None: - - _query_params.append(('cursor', cursor)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/relationships', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_role_permissions_roles_role_id_permissions_get( - self, - role_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListPermissionOut: - """List Role Permissions - - - :param role_id: (required) - :type role_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_role_permissions_roles_role_id_permissions_get_serialize( - role_id=role_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_role_permissions_roles_role_id_permissions_get_with_http_info( - self, - role_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListPermissionOut]: - """List Role Permissions - - - :param role_id: (required) - :type role_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_role_permissions_roles_role_id_permissions_get_serialize( - role_id=role_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_role_permissions_roles_role_id_permissions_get_without_preload_content( - self, - role_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Role Permissions - - - :param role_id: (required) - :type role_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_role_permissions_roles_role_id_permissions_get_serialize( - role_id=role_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListPermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_role_permissions_roles_role_id_permissions_get_serialize( - self, - role_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if role_id is not None: - _path_params['role_id'] = role_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/roles/{role_id}/permissions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_roles_roles_get( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseListRoleOut: - """List Roles - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_roles_roles_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListRoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_roles_roles_get_with_http_info( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseListRoleOut]: - """List Roles - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_roles_roles_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListRoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_roles_roles_get_without_preload_content( - self, - limit: Optional[StrictInt] = None, - cursor: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Roles - - - :param limit: - :type limit: int - :param cursor: - :type cursor: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_roles_roles_get_serialize( - limit=limit, - cursor=cursor, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseListRoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_roles_roles_get_serialize( - self, - limit, - cursor, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if cursor is not None: - - _query_params.append(('cursor', cursor)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/roles', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def remove_permission_from_role_roles_role_id_permissions_permission_id_delete( - self, - role_id: StrictInt, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrInt: - """Remove Permission From Role - - - :param role_id: (required) - :type role_id: int - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( - role_id=role_id, - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info( - self, - role_id: StrictInt, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrInt]: - """Remove Permission From Role - - - :param role_id: (required) - :type role_id: int - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( - role_id=role_id, - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def remove_permission_from_role_roles_role_id_permissions_permission_id_delete_without_preload_content( - self, - role_id: StrictInt, - permission_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove Permission From Role - - - :param role_id: (required) - :type role_id: int - :param permission_id: (required) - :type permission_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( - role_id=role_id, - permission_id=permission_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrInt", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _remove_permission_from_role_roles_role_id_permissions_permission_id_delete_serialize( - self, - role_id, - permission_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if role_id is not None: - _path_params['role_id'] = role_id - if permission_id is not None: - _path_params['permission_id'] = permission_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/roles/{role_id}/permissions/{permission_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rollback_policy_policies_policy_key_rollback_version_post( - self, - policy_key: StrictStr, - version: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrUnionIntStr: - """Rollback Policy - - - :param policy_key: (required) - :type policy_key: str - :param version: (required) - :type version: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rollback_policy_policies_policy_key_rollback_version_post_serialize( - policy_key=policy_key, - version=version, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrUnionIntStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rollback_policy_policies_policy_key_rollback_version_post_with_http_info( - self, - policy_key: StrictStr, - version: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrUnionIntStr]: - """Rollback Policy - - - :param policy_key: (required) - :type policy_key: str - :param version: (required) - :type version: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rollback_policy_policies_policy_key_rollback_version_post_serialize( - policy_key=policy_key, - version=version, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrUnionIntStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rollback_policy_policies_policy_key_rollback_version_post_without_preload_content( - self, - policy_key: StrictStr, - version: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Rollback Policy - - - :param policy_key: (required) - :type policy_key: str - :param version: (required) - :type version: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rollback_policy_policies_policy_key_rollback_version_post_serialize( - policy_key=policy_key, - version=version, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrUnionIntStr", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rollback_policy_policies_policy_key_rollback_version_post_serialize( - self, - policy_key, - version, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if policy_key is not None: - _path_params['policy_key'] = policy_key - if version is not None: - _path_params['version'] = version - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/policies/{policy_key}/rollback/{version}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def simulate_policy_simulate_policy_post( - self, - policy_simulation_request: PolicySimulationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponsePolicySimulationResponse: - """Simulate Policy - - - :param policy_simulation_request: (required) - :type policy_simulation_request: PolicySimulationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._simulate_policy_simulate_policy_post_serialize( - policy_simulation_request=policy_simulation_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponsePolicySimulationResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def simulate_policy_simulate_policy_post_with_http_info( - self, - policy_simulation_request: PolicySimulationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponsePolicySimulationResponse]: - """Simulate Policy - - - :param policy_simulation_request: (required) - :type policy_simulation_request: PolicySimulationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._simulate_policy_simulate_policy_post_serialize( - policy_simulation_request=policy_simulation_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponsePolicySimulationResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def simulate_policy_simulate_policy_post_without_preload_content( - self, - policy_simulation_request: PolicySimulationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Simulate Policy - - - :param policy_simulation_request: (required) - :type policy_simulation_request: PolicySimulationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._simulate_policy_simulate_policy_post_serialize( - policy_simulation_request=policy_simulation_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponsePolicySimulationResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _simulate_policy_simulate_policy_post_serialize( - self, - policy_simulation_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if policy_simulation_request is not None: - _body_params = policy_simulation_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/simulate-policy', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_permission_permissions_permission_id_put( - self, - permission_id: StrictInt, - permission_update: PermissionUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PermissionOut: - """Update Permission - - - :param permission_id: (required) - :type permission_id: int - :param permission_update: (required) - :type permission_update: PermissionUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_permission_permissions_permission_id_put_serialize( - permission_id=permission_id, - permission_update=permission_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_permission_permissions_permission_id_put_with_http_info( - self, - permission_id: StrictInt, - permission_update: PermissionUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PermissionOut]: - """Update Permission - - - :param permission_id: (required) - :type permission_id: int - :param permission_update: (required) - :type permission_update: PermissionUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_permission_permissions_permission_id_put_serialize( - permission_id=permission_id, - permission_update=permission_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_permission_permissions_permission_id_put_without_preload_content( - self, - permission_id: StrictInt, - permission_update: PermissionUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Permission - - - :param permission_id: (required) - :type permission_id: int - :param permission_update: (required) - :type permission_update: PermissionUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_permission_permissions_permission_id_put_serialize( - permission_id=permission_id, - permission_update=permission_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PermissionOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_permission_permissions_permission_id_put_serialize( - self, - permission_id, - permission_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if permission_id is not None: - _path_params['permission_id'] = permission_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if permission_update is not None: - _body_params = permission_update - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/permissions/{permission_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_policy_policies_policy_key_put( - self, - policy_key: StrictStr, - policy_create: PolicyCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponsePolicyOut: - """Update Policy - - - :param policy_key: (required) - :type policy_key: str - :param policy_create: (required) - :type policy_create: PolicyCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_policy_policies_policy_key_put_serialize( - policy_key=policy_key, - policy_create=policy_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_policy_policies_policy_key_put_with_http_info( - self, - policy_key: StrictStr, - policy_create: PolicyCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponsePolicyOut]: - """Update Policy - - - :param policy_key: (required) - :type policy_key: str - :param policy_create: (required) - :type policy_create: PolicyCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_policy_policies_policy_key_put_serialize( - policy_key=policy_key, - policy_create=policy_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_policy_policies_policy_key_put_without_preload_content( - self, - policy_key: StrictStr, - policy_create: PolicyCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Policy - - - :param policy_key: (required) - :type policy_key: str - :param policy_create: (required) - :type policy_create: PolicyCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_policy_policies_policy_key_put_serialize( - policy_key=policy_key, - policy_create=policy_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponsePolicyOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_policy_policies_policy_key_put_serialize( - self, - policy_key, - policy_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if policy_key is not None: - _path_params['policy_key'] = policy_key - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if policy_create is not None: - _body_params = policy_create - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/policies/{policy_key}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_role_roles_role_id_put( - self, - role_id: StrictInt, - role_update: RoleUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RoleOut: - """Update Role - - - :param role_id: (required) - :type role_id: int - :param role_update: (required) - :type role_update: RoleUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_role_roles_role_id_put_serialize( - role_id=role_id, - role_update=role_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_role_roles_role_id_put_with_http_info( - self, - role_id: StrictInt, - role_update: RoleUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RoleOut]: - """Update Role - - - :param role_id: (required) - :type role_id: int - :param role_update: (required) - :type role_update: RoleUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_role_roles_role_id_put_serialize( - role_id=role_id, - role_update=role_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_role_roles_role_id_put_without_preload_content( - self, - role_id: StrictInt, - role_update: RoleUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Role - - - :param role_id: (required) - :type role_id: int - :param role_update: (required) - :type role_update: RoleUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_role_roles_role_id_put_serialize( - role_id=role_id, - role_update=role_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RoleOut", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_role_roles_role_id_put_serialize( - self, - role_id, - role_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if role_id is not None: - _path_params['role_id'] = role_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if role_update is not None: - _body_params = role_update - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/roles/{role_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/sdks/python/keynetra_client/api/playground_api.py b/sdks/python/keynetra_client/api/playground_api.py deleted file mode 100644 index f568a5d..0000000 --- a/sdks/python/keynetra_client/api/playground_api.py +++ /dev/null @@ -1,311 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest -from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny - -from keynetra_client.api_client import ApiClient, RequestSerialized -from keynetra_client.api_response import ApiResponse -from keynetra_client.rest import RESTResponseType - - -class PlaygroundApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def evaluate_playground_evaluate_post( - self, - playground_evaluate_request: PlaygroundEvaluateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessResponseDictStrAny: - """Evaluate - - - :param playground_evaluate_request: (required) - :type playground_evaluate_request: PlaygroundEvaluateRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._evaluate_playground_evaluate_post_serialize( - playground_evaluate_request=playground_evaluate_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrAny", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def evaluate_playground_evaluate_post_with_http_info( - self, - playground_evaluate_request: PlaygroundEvaluateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessResponseDictStrAny]: - """Evaluate - - - :param playground_evaluate_request: (required) - :type playground_evaluate_request: PlaygroundEvaluateRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._evaluate_playground_evaluate_post_serialize( - playground_evaluate_request=playground_evaluate_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrAny", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def evaluate_playground_evaluate_post_without_preload_content( - self, - playground_evaluate_request: PlaygroundEvaluateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Evaluate - - - :param playground_evaluate_request: (required) - :type playground_evaluate_request: PlaygroundEvaluateRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._evaluate_playground_evaluate_post_serialize( - playground_evaluate_request=playground_evaluate_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessResponseDictStrAny", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _evaluate_playground_evaluate_post_serialize( - self, - playground_evaluate_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if playground_evaluate_request is not None: - _body_params = playground_evaluate_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKeyHeader', - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/playground/evaluate', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/sdks/python/keynetra_client/api_client.py b/sdks/python/keynetra_client/api_client.py deleted file mode 100644 index 3ee3094..0000000 --- a/sdks/python/keynetra_client/api_client.py +++ /dev/null @@ -1,808 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - - -import datetime -from dateutil.parser import parse -from enum import Enum -import decimal -import json -import mimetypes -import os -import re -import tempfile -import uuid - -from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union -from pydantic import SecretStr - -from keynetra_client.configuration import Configuration -from keynetra_client.api_response import ApiResponse, T as ApiResponseT -import keynetra_client.models -from keynetra_client import rest -from keynetra_client.exceptions import ( - ApiValueError, - ApiException, - BadRequestException, - UnauthorizedException, - ForbiddenException, - NotFoundException, - ServiceException -) - -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] - -class ApiClient: - """Generic API client for OpenAPI client library builds. - - OpenAPI generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the OpenAPI - templates. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, str, int) - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int, # TODO remove as only py3 is supported? - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'decimal': decimal.Decimal, - 'UUID': uuid.UUID, - 'object': object, - } - _pool = None - - def __init__( - self, - configuration=None, - header_name=None, - header_value=None, - cookie=None - ) -> None: - # use default configuration if none is provided - if configuration is None: - configuration = Configuration.get_default() - self.configuration = configuration - - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.1.1/python' - self.client_side_validation = configuration.client_side_validation - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - pass - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - - _default = None - - @classmethod - def get_default(cls): - """Return new instance of ApiClient. - - This method returns newly created, based on default constructor, - object of ApiClient class or returns a copy of default - ApiClient. - - :return: The ApiClient object. - """ - if cls._default is None: - cls._default = ApiClient() - return cls._default - - @classmethod - def set_default(cls, default): - """Set default instance of ApiClient. - - It stores default ApiClient. - - :param default: object of ApiClient. - """ - cls._default = default - - def param_serialize( - self, - method, - resource_path, - path_params=None, - query_params=None, - header_params=None, - body=None, - post_params=None, - files=None, auth_settings=None, - collection_formats=None, - _host=None, - _request_auth=None - ) -> RequestSerialized: - - """Builds the HTTP request params needed by the request. - :param method: Method to call. - :param resource_path: Path to method endpoint. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :return: tuple of form (path, http_method, query_params, header_params, - body, post_params, files) - """ - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict( - self.parameters_to_tuples(header_params,collection_formats) - ) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples( - path_params, - collection_formats - ) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # post parameters - if post_params or files: - post_params = post_params if post_params else [] - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples( - post_params, - collection_formats - ) - if files: - post_params.extend(self.files_parameters(files)) - - # auth setting - self.update_params_for_auth( - header_params, - query_params, - auth_settings, - resource_path, - method, - body, - request_auth=_request_auth - ) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - if _host is None or self.configuration.ignore_operation_servers: - url = self.configuration.host + resource_path - else: - # use server/host defined in path or operation instead - url = _host + resource_path - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - url_query = self.parameters_to_url_query( - query_params, - collection_formats - ) - url += "?" + url_query - - return method, url, header_params, body, post_params - - - def call_api( - self, - method, - url, - header_params=None, - body=None, - post_params=None, - _request_timeout=None - ) -> rest.RESTResponse: - """Makes the HTTP request (synchronous) - :param method: Method to call. - :param url: Path to method endpoint. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param _request_timeout: timeout setting for this request. - :return: RESTResponse - """ - - try: - # perform request and return response - response_data = self.rest_client.request( - method, url, - headers=header_params, - body=body, post_params=post_params, - _request_timeout=_request_timeout - ) - - except ApiException as e: - raise e - - return response_data - - def response_deserialize( - self, - response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None - ) -> ApiResponse[ApiResponseT]: - """Deserializes response into an object. - :param response_data: RESTResponse object to be deserialized. - :param response_types_map: dict of response types. - :return: ApiResponse - """ - - msg = "RESTResponse.read() must be called before passing it to response_deserialize()" - assert response_data.data is not None, msg - - response_type = response_types_map.get(str(response_data.status), None) - if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: - # if not found, look for '1XX', '2XX', etc. - response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) - - # deserialize response data - response_text = None - return_data = None - try: - if response_type in ("bytearray", "bytes"): - return_data = response_data.data - elif response_type == "file": - return_data = self.__deserialize_file(response_data) - elif response_type is not None: - match = None - content_type = response_data.headers.get('content-type') - if content_type is not None: - match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) - encoding = match.group(1) if match else "utf-8" - response_text = response_data.data.decode(encoding) - return_data = self.deserialize(response_text, response_type, content_type) - finally: - if not 200 <= response_data.status <= 299: - raise ApiException.from_response( - http_resp=response_data, - body=response_text, - data=return_data, - ) - - return ApiResponse( - status_code = response_data.status, - data = return_data, - headers = response_data.headers, - raw_data = response_data.data - ) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is SecretStr, return obj.get_secret_value() - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is decimal.Decimal return string representation. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is OpenAPI model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, Enum): - return obj.value - elif isinstance(obj, SecretStr): - return obj.get_secret_value() - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, uuid.UUID): - return str(obj) - elif isinstance(obj, list): - return [ - self.sanitize_for_serialization(sub_obj) for sub_obj in obj - ] - elif isinstance(obj, tuple): - return tuple( - self.sanitize_for_serialization(sub_obj) for sub_obj in obj - ) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - elif isinstance(obj, decimal.Decimal): - return str(obj) - - elif isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `openapi_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): - obj_dict = obj.to_dict() - else: - obj_dict = obj.__dict__ - - if isinstance(obj_dict, list): - # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() - return self.sanitize_for_serialization(obj_dict) - - return { - key: self.sanitize_for_serialization(val) - for key, val in obj_dict.items() - } - - def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - :param content_type: content type of response. - - :return: deserialized object. - """ - - # fetch data from response object - if content_type is None: - try: - data = json.loads(response_text) - except ValueError: - data = response_text - elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): - if response_text == "": - data = "" - else: - data = json.loads(response_text) - elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): - data = response_text - else: - raise ApiException( - status=0, - reason="Unsupported content type: {0}".format(content_type) - ) - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" - sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" - sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in data.items()} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(keynetra_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass is object: - return self.__deserialize_object(data) - elif klass is datetime.date: - return self.__deserialize_date(data) - elif klass is datetime.datetime: - return self.__deserialize_datetime(data) - elif klass is decimal.Decimal: - return decimal.Decimal(data) - elif klass is uuid.UUID: - return uuid.UUID(data) - elif issubclass(klass, Enum): - return self.__deserialize_enum(data, klass) - else: - return self.__deserialize_model(data, klass) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params: List[Tuple[str, str]] = [] - if collection_formats is None: - collection_formats = {} - for k, v in params.items() if isinstance(params, dict) else params: - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def parameters_to_url_query(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: URL query string (e.g. a=Hello%20World&b=123) - """ - new_params: List[Tuple[str, str]] = [] - if collection_formats is None: - collection_formats = {} - for k, v in params.items() if isinstance(params, dict) else params: - if isinstance(v, bool): - v = str(v).lower() - if isinstance(v, (int, float)): - v = str(v) - if isinstance(v, dict): - v = json.dumps(v) - - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, quote(str(value))) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(quote(str(value)) for value in v)) - ) - else: - new_params.append((k, quote(str(v)))) - - return "&".join(["=".join(map(str, item)) for item in new_params]) - - def files_parameters( - self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], - ): - """Builds form parameters. - - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - for k, v in files.items(): - if isinstance(v, str): - with open(v, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - elif isinstance(v, bytes): - filename = k - filedata = v - elif isinstance(v, tuple): - filename, filedata = v - elif isinstance(v, list): - for file_param in v: - params.extend(self.files_parameters({k: file_param})) - continue - else: - raise ValueError("Unsupported file value") - mimetype = ( - mimetypes.guess_type(filename)[0] - or 'application/octet-stream' - ) - params.append( - tuple([k, tuple([filename, filedata, mimetype])]) - ) - return params - - def select_header_accept(self, accepts: List[str]) -> Optional[str]: - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return None - - for accept in accepts: - if re.search('json', accept, re.IGNORECASE): - return accept - - return accepts[0] - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return None - - for content_type in content_types: - if re.search('json', content_type, re.IGNORECASE): - return content_type - - return content_types[0] - - def update_params_for_auth( - self, - headers, - queries, - auth_settings, - resource_path, - method, - body, - request_auth=None - ) -> None: - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param queries: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - :resource_path: A string representation of the HTTP request resource path. - :method: A string representation of the HTTP request method. - :body: A object representing the body of the HTTP request. - The object type is the return value of sanitize_for_serialization(). - :param request_auth: if set, the provided settings will - override the token in the configuration. - """ - if not auth_settings: - return - - if request_auth: - self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - request_auth - ) - else: - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - auth_setting - ) - - def _apply_auth_params( - self, - headers, - queries, - resource_path, - method, - body, - auth_setting - ) -> None: - """Updates the request parameters based on a single auth_setting - - :param headers: Header parameters dict to be updated. - :param queries: Query parameters tuple list to be updated. - :resource_path: A string representation of the HTTP request resource path. - :method: A string representation of the HTTP request method. - :body: A object representing the body of the HTTP request. - The object type is the return value of sanitize_for_serialization(). - :param auth_setting: auth settings for the endpoint - """ - if auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - queries.append((auth_setting['key'], auth_setting['value'])) - else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - handle file downloading - save response body into a tmp file and return the instance - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.headers.get("Content-Disposition") - if content_disposition: - m = re.search( - r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition - ) - assert m is not None, "Unexpected 'content-disposition' header value" - filename = os.path.basename(m.group(1)) # Strip any directory traversal - if filename in ("", ".", ".."): # fall back to tmp filename - filename = os.path.basename(path) - path = os.path.join(os.path.dirname(path), filename) - - with open(path, "wb") as f: - f.write(response.data) - - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return str(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return an original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datetime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __deserialize_enum(self, data, klass): - """Deserializes primitive type to enum. - - :param data: primitive type. - :param klass: class literal. - :return: enum value. - """ - try: - return klass(data) - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as `{1}`" - .format(data, klass) - ) - ) - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - return klass.from_dict(data) diff --git a/sdks/python/keynetra_client/api_response.py b/sdks/python/keynetra_client/api_response.py deleted file mode 100644 index 9bc7c11..0000000 --- a/sdks/python/keynetra_client/api_response.py +++ /dev/null @@ -1,21 +0,0 @@ -"""API response object.""" - -from __future__ import annotations -from typing import Optional, Generic, Mapping, TypeVar -from pydantic import Field, StrictInt, StrictBytes, BaseModel - -T = TypeVar("T") - -class ApiResponse(BaseModel, Generic[T]): - """ - API response object - """ - - status_code: StrictInt = Field(description="HTTP status code") - headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") - data: T = Field(description="Deserialized data given the data type") - raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") - - model_config = { - "arbitrary_types_allowed": True - } diff --git a/sdks/python/keynetra_client/client.py b/sdks/python/keynetra_client/client.py deleted file mode 100644 index 2d99b22..0000000 --- a/sdks/python/keynetra_client/client.py +++ /dev/null @@ -1,25 +0,0 @@ -from __future__ import annotations - -from keynetra_client.api_client import ApiClient -from keynetra_client.configuration import Configuration -from keynetra_client.api.access_api import AccessApi -from keynetra_client.api.auth_api import AuthApi -from keynetra_client.api.dev_api import DevApi -from keynetra_client.api.health_api import HealthApi -from keynetra_client.api.management_api import ManagementApi -from keynetra_client.api.playground_api import PlaygroundApi - - -class KeyNetraClient: - def __init__(self, base_url: str, api_key: str) -> None: - configuration = Configuration(host=base_url) - configuration.api_key["APIKeyHeader"] = api_key - configuration.access_token = api_key - self.api_client = ApiClient(configuration=configuration) - - self.access = AccessApi(api_client=self.api_client) - self.auth = AuthApi(api_client=self.api_client) - self.dev = DevApi(api_client=self.api_client) - self.health = HealthApi(api_client=self.api_client) - self.management = ManagementApi(api_client=self.api_client) - self.playground = PlaygroundApi(api_client=self.api_client) diff --git a/sdks/python/keynetra_client/configuration.py b/sdks/python/keynetra_client/configuration.py deleted file mode 100644 index fb95cf5..0000000 --- a/sdks/python/keynetra_client/configuration.py +++ /dev/null @@ -1,634 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import copy -import http.client as httplib -import logging -from logging import FileHandler -import multiprocessing -import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union -from typing_extensions import NotRequired, Self - -import urllib3 - - -JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems' -} - -ServerVariablesT = Dict[str, str] - -GenericAuthSetting = TypedDict( - "GenericAuthSetting", - { - "type": str, - "in": str, - "key": str, - "value": str, - }, -) - - -OAuth2AuthSetting = TypedDict( - "OAuth2AuthSetting", - { - "type": Literal["oauth2"], - "in": Literal["header"], - "key": Literal["Authorization"], - "value": str, - }, -) - - -APIKeyAuthSetting = TypedDict( - "APIKeyAuthSetting", - { - "type": Literal["api_key"], - "in": str, - "key": str, - "value": Optional[str], - }, -) - - -BasicAuthSetting = TypedDict( - "BasicAuthSetting", - { - "type": Literal["basic"], - "in": Literal["header"], - "key": Literal["Authorization"], - "value": Optional[str], - }, -) - - -BearerFormatAuthSetting = TypedDict( - "BearerFormatAuthSetting", - { - "type": Literal["bearer"], - "in": Literal["header"], - "format": Literal["JWT"], - "key": Literal["Authorization"], - "value": str, - }, -) - - -BearerAuthSetting = TypedDict( - "BearerAuthSetting", - { - "type": Literal["bearer"], - "in": Literal["header"], - "key": Literal["Authorization"], - "value": str, - }, -) - - -HTTPSignatureAuthSetting = TypedDict( - "HTTPSignatureAuthSetting", - { - "type": Literal["http-signature"], - "in": Literal["header"], - "key": Literal["Authorization"], - "value": None, - }, -) - - -AuthSettings = TypedDict( - "AuthSettings", - { - "HTTPBearer": BearerAuthSetting, - "APIKeyHeader": APIKeyAuthSetting, - }, - total=False, -) - - -class HostSettingVariable(TypedDict): - description: str - default_value: str - enum_values: List[str] - - -class HostSetting(TypedDict): - url: str - description: str - variables: NotRequired[Dict[str, HostSettingVariable]] - - -class Configuration: - """This class contains various settings of the API client. - - :param host: Base url. - :param ignore_operation_servers - Boolean to ignore operation servers for the API client. - Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication. - :param password: Password for HTTP basic authentication. - :param access_token: Access token. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum - values before. - :param verify_ssl: bool - Set this to false to skip verifying SSL certificate - when calling API from https server. - :param ssl_ca_cert: str - the path to a file of concatenated CA certificates - in PEM format. - :param retries: int | urllib3.util.retry.Retry - Retry configuration. - :param ca_cert_data: verify the peer using concatenated CA certificate data - in PEM (str) or DER (bytes) format. - :param cert_file: the path to a client certificate file, for mTLS. - :param key_file: the path to a client key file, for mTLS. - :param assert_hostname: Set this to True/False to enable/disable SSL hostname verification. - :param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server. - :param connection_pool_maxsize: Connection pool max size. None in the constructor is coerced to 100 for async and cpu_count * 5 for sync. - :param proxy: Proxy URL. - :param proxy_headers: Proxy headers. - :param safe_chars_for_path_param: Safe characters for path parameter encoding. - :param client_side_validation: Enable client-side validation. Default True. - :param socket_options: Options to pass down to the underlying urllib3 socket. - :param datetime_format: Datetime format string for serialization. - :param date_format: Date format string for serialization. - - :Example: - - API Key Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - cookieAuth: # name for the security scheme - type: apiKey - in: cookie - name: JSESSIONID # cookie name - - You can programmatically set the cookie: - -conf = keynetra_client.Configuration( - api_key={'cookieAuth': 'abc123'} - api_key_prefix={'cookieAuth': 'JSESSIONID'} -) - - The following cookie will be added to the HTTP request: - Cookie: JSESSIONID abc123 - """ - - _default: ClassVar[Optional[Self]] = None - - def __init__( - self, - host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, - username: Optional[str]=None, - password: Optional[str]=None, - access_token: Optional[str]=None, - server_index: Optional[int]=None, - server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, - ignore_operation_servers: bool=False, - ssl_ca_cert: Optional[str]=None, - retries: Optional[Union[int, Any]] = None, - ca_cert_data: Optional[Union[str, bytes]] = None, - cert_file: Optional[str]=None, - key_file: Optional[str]=None, - verify_ssl: bool=True, - assert_hostname: Optional[bool]=None, - tls_server_name: Optional[str]=None, - connection_pool_maxsize: Optional[int]=None, - proxy: Optional[str]=None, - proxy_headers: Optional[Any]=None, - safe_chars_for_path_param: str='', - client_side_validation: bool=True, - socket_options: Optional[Any]=None, - datetime_format: str="%Y-%m-%dT%H:%M:%S.%f%z", - date_format: str="%Y-%m-%d", - *, - debug: Optional[bool] = None, - ) -> None: - """Constructor - """ - self._base_path = "http://localhost" if host is None else host - """Default Base url - """ - self.server_index = 0 if server_index is None and host is None else server_index - self.server_operation_index = server_operation_index or {} - """Default server index - """ - self.server_variables = server_variables or {} - self.server_operation_variables = server_operation_variables or {} - """Default server variables - """ - self.ignore_operation_servers = ignore_operation_servers - """Ignore operation servers - """ - self.temp_folder_path = None - """Temp file folder for downloading files - """ - # Authentication Settings - self.api_key = {} - if api_key: - self.api_key = api_key - """dict to store API key(s) - """ - self.api_key_prefix = {} - if api_key_prefix: - self.api_key_prefix = api_key_prefix - """dict to store API prefix (e.g. Bearer) - """ - self.refresh_api_key_hook = None - """function hook to refresh API key if expired - """ - self.username = username - """Username for HTTP basic authentication - """ - self.password = password - """Password for HTTP basic authentication - """ - self.access_token = access_token - """Access token - """ - self.logger = {} - """Logging Settings - """ - self.logger["package_logger"] = logging.getLogger("keynetra_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - """Log format - """ - self.logger_stream_handler = None - """Log stream handler - """ - self.logger_file_handler: Optional[FileHandler] = None - """Log file handler - """ - self.logger_file = None - """Debug file location - """ - if debug is not None: - self.debug = debug - else: - self.__debug = False - """Debug switch - """ - - self.verify_ssl = verify_ssl - """SSL/TLS verification - Set this to false to skip verifying SSL certificate when calling API - from https server. - """ - self.ssl_ca_cert = ssl_ca_cert - """Set this to customize the certificate file to verify the peer. - """ - self.ca_cert_data = ca_cert_data - """Set this to verify the peer using PEM (str) or DER (bytes) - certificate data. - """ - self.cert_file = cert_file - """client certificate file - """ - self.key_file = key_file - """client key file - """ - self.assert_hostname = assert_hostname - """Set this to True/False to enable/disable SSL hostname verification. - """ - self.tls_server_name = tls_server_name - """SSL/TLS Server Name Indication (SNI) - Set this to the SNI value expected by the server. - """ - - self.connection_pool_maxsize = connection_pool_maxsize if connection_pool_maxsize is not None else multiprocessing.cpu_count() * 5 - """urllib3 connection pool's maximum number of connections saved - per pool. None in the constructor is coerced to cpu_count * 5. - """ - - self.proxy = proxy - """Proxy URL - """ - self.proxy_headers = proxy_headers - """Proxy headers - """ - self.safe_chars_for_path_param = safe_chars_for_path_param - """Safe chars for path_param - """ - self.retries = retries - """Retry configuration - """ - # Enable client side validation - self.client_side_validation = client_side_validation - - self.socket_options = socket_options - """Options to pass down to the underlying urllib3 socket - """ - - self.datetime_format = datetime_format - """datetime format - """ - - self.date_format = date_format - """date format - """ - - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: - cls = self.__class__ - result = cls.__new__(cls) - memo[id(self)] = result - for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): - setattr(result, k, copy.deepcopy(v, memo)) - # shallow copy of loggers - result.logger = copy.copy(self.logger) - # use setters to configure loggers - result.logger_file = self.logger_file - result.debug = self.debug - return result - - def __setattr__(self, name: str, value: Any) -> None: - object.__setattr__(self, name, value) - - @classmethod - def set_default(cls, default: Optional[Self]) -> None: - """Set default instance of configuration. - - It stores default configuration, which can be - returned by get_default_copy method. - - :param default: object of Configuration - """ - cls._default = default - - @classmethod - def get_default_copy(cls) -> Self: - """Deprecated. Please use `get_default` instead. - - Deprecated. Please use `get_default` instead. - - :return: The configuration object. - """ - return cls.get_default() - - @classmethod - def get_default(cls) -> Self: - """Return the default configuration. - - This method returns newly created, based on default constructor, - object of Configuration class or returns a copy of default - configuration. - - :return: The configuration object. - """ - if cls._default is None: - cls._default = cls() - return cls._default - - @property - def logger_file(self) -> Optional[str]: - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value: Optional[str]) -> None: - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in self.logger.items(): - logger.addHandler(self.logger_file_handler) - - @property - def debug(self) -> bool: - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value: bool) -> None: - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in self.logger.items(): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in self.logger.items(): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self) -> str: - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value: str) -> None: - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :param alias: The alternative identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook is not None: - self.refresh_api_key_hook(self) - key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - return None - - def get_basic_auth_token(self) -> Optional[str]: - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - username = "" - if self.username is not None: - username = self.username - password = "" - if self.password is not None: - password = self.password - - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') - - def auth_settings(self)-> AuthSettings: - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - auth: AuthSettings = {} - if self.access_token is not None: - auth['HTTPBearer'] = { - 'type': 'bearer', - 'in': 'header', - 'key': 'Authorization', - 'value': 'Bearer ' + self.access_token - } - if 'APIKeyHeader' in self.api_key: - auth['APIKeyHeader'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'X-API-Key', - 'value': self.get_api_key_with_prefix( - 'APIKeyHeader', - ), - } - return auth - - def to_debug_report(self) -> str: - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 0.1.1\n"\ - "SDK Package Version: 0.1.1".\ - format(env=sys.platform, pyversion=sys.version) - - def get_host_settings(self) -> List[HostSetting]: - """Gets an array of host settings - - :return: An array of host settings - """ - return [ - { - 'url': "", - 'description': "No description provided", - } - ] - - def get_host_from_settings( - self, - index: Optional[int], - variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, - ) -> str: - """Gets host URL based on the index and variables - :param index: array index of the host settings - :param variables: hash of variable and the corresponding value - :param servers: an array of host settings or None - :return: URL based on host settings - """ - if index is None: - return self._base_path - - variables = {} if variables is None else variables - servers = self.get_host_settings() if servers is None else servers - - try: - server = servers[index] - except IndexError: - raise ValueError( - "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) - - url = server['url'] - - # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) - - if 'enum_values' in variable \ - and variable['enum_values'] \ - and used_value not in variable['enum_values']: - raise ValueError( - "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) - - url = url.replace("{" + variable_name + "}", used_value) - - return url - - @property - def host(self) -> str: - """Return generated host.""" - return self.get_host_from_settings(self.server_index, variables=self.server_variables) - - @host.setter - def host(self, value: str) -> None: - """Fix base path.""" - self._base_path = value - self.server_index = None diff --git a/sdks/python/keynetra_client/exceptions.py b/sdks/python/keynetra_client/exceptions.py deleted file mode 100644 index 7c5d402..0000000 --- a/sdks/python/keynetra_client/exceptions.py +++ /dev/null @@ -1,218 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from typing import Any, Optional -from typing_extensions import Self - -class OpenApiException(Exception): - """The base exception class for all OpenAPIExceptions""" - - -class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None) -> None: - """ Raises an exception for TypeErrors - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list): a list of keys an indices to get to the - current_item - None if unset - valid_classes (tuple): the primitive classes that current item - should be an instance of - None if unset - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a list - None if unset - """ - self.path_to_item = path_to_item - self.valid_classes = valid_classes - self.key_type = key_type - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) - - -class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None) -> None: - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list) the path to the exception in the - received_data dict. None if unset - """ - - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) - - -class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None) -> None: - """ - Raised when an attribute reference or assignment fails. - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) - - -class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None) -> None: - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) - - -class ApiException(OpenApiException): - - def __init__( - self, - status=None, - reason=None, - http_resp=None, - *, - body: Optional[str] = None, - data: Optional[Any] = None, - ) -> None: - self.status = status - self.reason = reason - self.body = body - self.data = data - self.headers = None - - if http_resp: - if self.status is None: - self.status = http_resp.status - if self.reason is None: - self.reason = http_resp.reason - if self.body is None: - try: - self.body = http_resp.data.decode('utf-8') - except Exception: - pass - self.headers = http_resp.headers - - @classmethod - def from_response( - cls, - *, - http_resp, - body: Optional[str], - data: Optional[Any], - ) -> Self: - if http_resp.status == 400: - raise BadRequestException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 401: - raise UnauthorizedException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 403: - raise ForbiddenException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 404: - raise NotFoundException(http_resp=http_resp, body=body, data=data) - - # Added new conditions for 409 and 422 - if http_resp.status == 409: - raise ConflictException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 422: - raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) - - if 500 <= http_resp.status <= 599: - raise ServiceException(http_resp=http_resp, body=body, data=data) - raise ApiException(http_resp=http_resp, body=body, data=data) - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - if self.data: - error_message += "HTTP response data: {0}\n".format(self.data) - - return error_message - - -class BadRequestException(ApiException): - pass - - -class NotFoundException(ApiException): - pass - - -class UnauthorizedException(ApiException): - pass - - -class ForbiddenException(ApiException): - pass - - -class ServiceException(ApiException): - pass - - -class ConflictException(ApiException): - """Exception for HTTP 409 Conflict.""" - pass - - -class UnprocessableEntityException(ApiException): - """Exception for HTTP 422 Unprocessable Entity.""" - pass - - -def render_path(path_to_item): - """Returns a string representation of a path""" - result = "" - for pth in path_to_item: - if isinstance(pth, int): - result += "[{0}]".format(pth) - else: - result += "['{0}']".format(pth) - return result diff --git a/sdks/python/keynetra_client/models/__init__.py b/sdks/python/keynetra_client/models/__init__.py deleted file mode 100644 index fdca018..0000000 --- a/sdks/python/keynetra_client/models/__init__.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -# import models into model package -from keynetra_client.models.acl_create import ACLCreate -from keynetra_client.models.acl_out import ACLOut -from keynetra_client.models.access_decision_response import AccessDecisionResponse -from keynetra_client.models.access_request import AccessRequest -from keynetra_client.models.admin_login_request import AdminLoginRequest -from keynetra_client.models.admin_login_response import AdminLoginResponse -from keynetra_client.models.audit_record_out import AuditRecordOut -from keynetra_client.models.auth_model_create import AuthModelCreate -from keynetra_client.models.auth_model_out import AuthModelOut -from keynetra_client.models.batch_access_item import BatchAccessItem -from keynetra_client.models.batch_access_request import BatchAccessRequest -from keynetra_client.models.batch_access_response import BatchAccessResponse -from keynetra_client.models.batch_access_result import BatchAccessResult -from keynetra_client.models.data_value import DataValue -from keynetra_client.models.http_validation_error import HTTPValidationError -from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest -from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse -from keynetra_client.models.location_inner import LocationInner -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.permission_create import PermissionCreate -from keynetra_client.models.permission_out import PermissionOut -from keynetra_client.models.permission_update import PermissionUpdate -from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest -from keynetra_client.models.playground_input import PlaygroundInput -from keynetra_client.models.playground_policy import PlaygroundPolicy -from keynetra_client.models.policy_create import PolicyCreate -from keynetra_client.models.policy_out import PolicyOut -from keynetra_client.models.policy_simulation_input import PolicySimulationInput -from keynetra_client.models.policy_simulation_request import PolicySimulationRequest -from keynetra_client.models.policy_simulation_response import PolicySimulationResponse -from keynetra_client.models.relationship_create import RelationshipCreate -from keynetra_client.models.relationship_out import RelationshipOut -from keynetra_client.models.role_create import RoleCreate -from keynetra_client.models.role_out import RoleOut -from keynetra_client.models.role_update import RoleUpdate -from keynetra_client.models.simulation_response import SimulationResponse -from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut -from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse -from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse -from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut -from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse -from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr -from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr -from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse -from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut -from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut -from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr -from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut -from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut -from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut -from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut -from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse -from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut -from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse -from keynetra_client.models.validation_error import ValidationError - diff --git a/sdks/python/keynetra_client/models/access_decision_response.py b/sdks/python/keynetra_client/models/access_decision_response.py deleted file mode 100644 index 61cf5e9..0000000 --- a/sdks/python/keynetra_client/models/access_decision_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AccessDecisionResponse(BaseModel): - """ - AccessDecisionResponse - """ # noqa: E501 - allowed: StrictBool - decision: StrictStr - matched_policies: Optional[List[StrictStr]] = None - reason: Optional[StrictStr] = None - policy_id: Optional[StrictStr] = None - explain_trace: Optional[List[Dict[str, Any]]] = None - revision: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["allowed", "decision", "matched_policies", "reason", "policy_id", "explain_trace", "revision"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AccessDecisionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if reason (nullable) is None - # and model_fields_set contains the field - if self.reason is None and "reason" in self.model_fields_set: - _dict['reason'] = None - - # set to None if policy_id (nullable) is None - # and model_fields_set contains the field - if self.policy_id is None and "policy_id" in self.model_fields_set: - _dict['policy_id'] = None - - # set to None if revision (nullable) is None - # and model_fields_set contains the field - if self.revision is None and "revision" in self.model_fields_set: - _dict['revision'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AccessDecisionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "allowed": obj.get("allowed"), - "decision": obj.get("decision"), - "matched_policies": obj.get("matched_policies"), - "reason": obj.get("reason"), - "policy_id": obj.get("policy_id"), - "explain_trace": obj.get("explain_trace"), - "revision": obj.get("revision") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/access_request.py b/sdks/python/keynetra_client/models/access_request.py deleted file mode 100644 index b1665f6..0000000 --- a/sdks/python/keynetra_client/models/access_request.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AccessRequest(BaseModel): - """ - Explicit authorization request passed through the API boundary. - """ # noqa: E501 - user: Optional[Dict[str, Any]] = None - action: StrictStr - resource: Optional[Dict[str, Any]] = None - context: Optional[Dict[str, Any]] = None - consistency: Optional[StrictStr] = 'eventual' - revision: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["user", "action", "resource", "context", "consistency", "revision"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AccessRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if revision (nullable) is None - # and model_fields_set contains the field - if self.revision is None and "revision" in self.model_fields_set: - _dict['revision'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AccessRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "user": obj.get("user"), - "action": obj.get("action"), - "resource": obj.get("resource"), - "context": obj.get("context"), - "consistency": obj.get("consistency") if obj.get("consistency") is not None else 'eventual', - "revision": obj.get("revision") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/acl_create.py b/sdks/python/keynetra_client/models/acl_create.py deleted file mode 100644 index ff51de9..0000000 --- a/sdks/python/keynetra_client/models/acl_create.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class ACLCreate(BaseModel): - """ - ACLCreate - """ # noqa: E501 - subject_type: StrictStr - subject_id: StrictStr - resource_type: StrictStr - resource_id: StrictStr - action: StrictStr - effect: StrictStr - __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "resource_type", "resource_id", "action", "effect"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ACLCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ACLCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "subject_type": obj.get("subject_type"), - "subject_id": obj.get("subject_id"), - "resource_type": obj.get("resource_type"), - "resource_id": obj.get("resource_id"), - "action": obj.get("action"), - "effect": obj.get("effect") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/acl_out.py b/sdks/python/keynetra_client/models/acl_out.py deleted file mode 100644 index 43b616d..0000000 --- a/sdks/python/keynetra_client/models/acl_out.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class ACLOut(BaseModel): - """ - ACLOut - """ # noqa: E501 - subject_type: StrictStr - subject_id: StrictStr - resource_type: StrictStr - resource_id: StrictStr - action: StrictStr - effect: StrictStr - id: StrictInt - tenant_id: StrictInt - created_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "resource_type", "resource_id", "action", "effect", "id", "tenant_id", "created_at"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ACLOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if created_at (nullable) is None - # and model_fields_set contains the field - if self.created_at is None and "created_at" in self.model_fields_set: - _dict['created_at'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ACLOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "subject_type": obj.get("subject_type"), - "subject_id": obj.get("subject_id"), - "resource_type": obj.get("resource_type"), - "resource_id": obj.get("resource_id"), - "action": obj.get("action"), - "effect": obj.get("effect"), - "id": obj.get("id"), - "tenant_id": obj.get("tenant_id"), - "created_at": obj.get("created_at") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/admin_login_request.py b/sdks/python/keynetra_client/models/admin_login_request.py deleted file mode 100644 index c3b9227..0000000 --- a/sdks/python/keynetra_client/models/admin_login_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AdminLoginRequest(BaseModel): - """ - AdminLoginRequest - """ # noqa: E501 - username: StrictStr - password: StrictStr - __properties: ClassVar[List[str]] = ["username", "password"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AdminLoginRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AdminLoginRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "username": obj.get("username"), - "password": obj.get("password") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/admin_login_response.py b/sdks/python/keynetra_client/models/admin_login_response.py deleted file mode 100644 index da00449..0000000 --- a/sdks/python/keynetra_client/models/admin_login_response.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AdminLoginResponse(BaseModel): - """ - AdminLoginResponse - """ # noqa: E501 - access_token: StrictStr - token_type: Optional[StrictStr] = 'bearer' - expires_in: StrictInt - role: Optional[StrictStr] = 'admin' - tenant_key: StrictStr - __properties: ClassVar[List[str]] = ["access_token", "token_type", "expires_in", "role", "tenant_key"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AdminLoginResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AdminLoginResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "access_token": obj.get("access_token"), - "token_type": obj.get("token_type") if obj.get("token_type") is not None else 'bearer', - "expires_in": obj.get("expires_in"), - "role": obj.get("role") if obj.get("role") is not None else 'admin', - "tenant_key": obj.get("tenant_key") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/audit_record_out.py b/sdks/python/keynetra_client/models/audit_record_out.py deleted file mode 100644 index 2d6235d..0000000 --- a/sdks/python/keynetra_client/models/audit_record_out.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AuditRecordOut(BaseModel): - """ - AuditRecordOut - """ # noqa: E501 - id: StrictInt - principal_type: StrictStr - principal_id: StrictStr - correlation_id: Optional[StrictStr] = None - user: Dict[str, Any] - action: StrictStr - resource: Dict[str, Any] - decision: StrictStr - matched_policies: List[Any] - reason: Optional[StrictStr] = None - evaluated_rules: List[Any] - failed_conditions: List[Any] - created_at: datetime - __properties: ClassVar[List[str]] = ["id", "principal_type", "principal_id", "correlation_id", "user", "action", "resource", "decision", "matched_policies", "reason", "evaluated_rules", "failed_conditions", "created_at"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AuditRecordOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if correlation_id (nullable) is None - # and model_fields_set contains the field - if self.correlation_id is None and "correlation_id" in self.model_fields_set: - _dict['correlation_id'] = None - - # set to None if reason (nullable) is None - # and model_fields_set contains the field - if self.reason is None and "reason" in self.model_fields_set: - _dict['reason'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AuditRecordOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "principal_type": obj.get("principal_type"), - "principal_id": obj.get("principal_id"), - "correlation_id": obj.get("correlation_id"), - "user": obj.get("user"), - "action": obj.get("action"), - "resource": obj.get("resource"), - "decision": obj.get("decision"), - "matched_policies": obj.get("matched_policies"), - "reason": obj.get("reason"), - "evaluated_rules": obj.get("evaluated_rules"), - "failed_conditions": obj.get("failed_conditions"), - "created_at": obj.get("created_at") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/auth_model_create.py b/sdks/python/keynetra_client/models/auth_model_create.py deleted file mode 100644 index 2efd0bc..0000000 --- a/sdks/python/keynetra_client/models/auth_model_create.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AuthModelCreate(BaseModel): - """ - AuthModelCreate - """ # noqa: E501 - var_schema: StrictStr = Field(alias="schema") - __properties: ClassVar[List[str]] = ["schema"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AuthModelCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AuthModelCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "schema": obj.get("schema") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/auth_model_out.py b/sdks/python/keynetra_client/models/auth_model_out.py deleted file mode 100644 index 744895e..0000000 --- a/sdks/python/keynetra_client/models/auth_model_out.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class AuthModelOut(BaseModel): - """ - AuthModelOut - """ # noqa: E501 - id: StrictInt - tenant_id: StrictInt - var_schema: StrictStr = Field(alias="schema") - parsed: Dict[str, Any] - compiled: Dict[str, Any] - __properties: ClassVar[List[str]] = ["id", "tenant_id", "schema", "parsed", "compiled"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AuthModelOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AuthModelOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "tenant_id": obj.get("tenant_id"), - "schema": obj.get("schema"), - "parsed": obj.get("parsed"), - "compiled": obj.get("compiled") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/batch_access_item.py b/sdks/python/keynetra_client/models/batch_access_item.py deleted file mode 100644 index 2892c5a..0000000 --- a/sdks/python/keynetra_client/models/batch_access_item.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class BatchAccessItem(BaseModel): - """ - BatchAccessItem - """ # noqa: E501 - action: StrictStr - resource: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["action", "resource"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchAccessItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchAccessItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action"), - "resource": obj.get("resource") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/batch_access_request.py b/sdks/python/keynetra_client/models/batch_access_request.py deleted file mode 100644 index e62a91d..0000000 --- a/sdks/python/keynetra_client/models/batch_access_request.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.batch_access_item import BatchAccessItem -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class BatchAccessRequest(BaseModel): - """ - BatchAccessRequest - """ # noqa: E501 - user: Optional[Dict[str, Any]] = None - items: List[BatchAccessItem] - consistency: Optional[StrictStr] = 'eventual' - revision: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["user", "items", "consistency", "revision"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchAccessRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item_items in self.items: - if _item_items: - _items.append(_item_items.to_dict()) - _dict['items'] = _items - # set to None if revision (nullable) is None - # and model_fields_set contains the field - if self.revision is None and "revision" in self.model_fields_set: - _dict['revision'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchAccessRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "user": obj.get("user"), - "items": [BatchAccessItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "consistency": obj.get("consistency") if obj.get("consistency") is not None else 'eventual', - "revision": obj.get("revision") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/batch_access_response.py b/sdks/python/keynetra_client/models/batch_access_response.py deleted file mode 100644 index 05e139a..0000000 --- a/sdks/python/keynetra_client/models/batch_access_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.batch_access_result import BatchAccessResult -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class BatchAccessResponse(BaseModel): - """ - BatchAccessResponse - """ # noqa: E501 - results: List[BatchAccessResult] - revision: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["results", "revision"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchAccessResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - # set to None if revision (nullable) is None - # and model_fields_set contains the field - if self.revision is None and "revision" in self.model_fields_set: - _dict['revision'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchAccessResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [BatchAccessResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, - "revision": obj.get("revision") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/batch_access_result.py b/sdks/python/keynetra_client/models/batch_access_result.py deleted file mode 100644 index e4db158..0000000 --- a/sdks/python/keynetra_client/models/batch_access_result.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class BatchAccessResult(BaseModel): - """ - BatchAccessResult - """ # noqa: E501 - action: StrictStr - allowed: StrictBool - revision: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["action", "allowed", "revision"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchAccessResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if revision (nullable) is None - # and model_fields_set contains the field - if self.revision is None and "revision" in self.model_fields_set: - _dict['revision'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchAccessResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action"), - "allowed": obj.get("allowed"), - "revision": obj.get("revision") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/data_value.py b/sdks/python/keynetra_client/models/data_value.py deleted file mode 100644 index 34c72ae..0000000 --- a/sdks/python/keynetra_client/models/data_value.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator -from typing import Optional -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -DATAVALUE_ANY_OF_SCHEMAS = ["int", "str"] - -class DataValue(BaseModel): - """ - DataValue - """ - - # data type: int - anyof_schema_1_validator: Optional[StrictInt] = None - # data type: str - anyof_schema_2_validator: Optional[StrictStr] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[int, str]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "int", "str" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = DataValue.model_construct() - error_messages = [] - # validate data type: int - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: str - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in DataValue with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into int - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into str - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into DataValue with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], int, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/sdks/python/keynetra_client/models/http_validation_error.py b/sdks/python/keynetra_client/models/http_validation_error.py deleted file mode 100644 index da62bb5..0000000 --- a/sdks/python/keynetra_client/models/http_validation_error.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.validation_error import ValidationError -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class HTTPValidationError(BaseModel): - """ - HTTPValidationError - """ # noqa: E501 - detail: Optional[List[ValidationError]] = None - __properties: ClassVar[List[str]] = ["detail"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HTTPValidationError from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in detail (list) - _items = [] - if self.detail: - for _item_detail in self.detail: - if _item_detail: - _items.append(_item_detail.to_dict()) - _dict['detail'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HTTPValidationError from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "detail": [ValidationError.from_dict(_item) for _item in obj["detail"]] if obj.get("detail") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/impact_analysis_request.py b/sdks/python/keynetra_client/models/impact_analysis_request.py deleted file mode 100644 index 8100e39..0000000 --- a/sdks/python/keynetra_client/models/impact_analysis_request.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class ImpactAnalysisRequest(BaseModel): - """ - ImpactAnalysisRequest - """ # noqa: E501 - policy_change: StrictStr - __properties: ClassVar[List[str]] = ["policy_change"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ImpactAnalysisRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ImpactAnalysisRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "policy_change": obj.get("policy_change") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/impact_analysis_response.py b/sdks/python/keynetra_client/models/impact_analysis_response.py deleted file mode 100644 index 8793f5b..0000000 --- a/sdks/python/keynetra_client/models/impact_analysis_response.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class ImpactAnalysisResponse(BaseModel): - """ - ImpactAnalysisResponse - """ # noqa: E501 - gained_access: Optional[List[StrictInt]] = None - lost_access: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["gained_access", "lost_access"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ImpactAnalysisResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ImpactAnalysisResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "gained_access": obj.get("gained_access"), - "lost_access": obj.get("lost_access") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/location_inner.py b/sdks/python/keynetra_client/models/location_inner.py deleted file mode 100644 index 2e11cfb..0000000 --- a/sdks/python/keynetra_client/models/location_inner.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator -from typing import Optional -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -LOCATIONINNER_ANY_OF_SCHEMAS = ["int", "str"] - -class LocationInner(BaseModel): - """ - LocationInner - """ - - # data type: str - anyof_schema_1_validator: Optional[StrictStr] = None - # data type: int - anyof_schema_2_validator: Optional[StrictInt] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[int, str]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "int", "str" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = LocationInner.model_construct() - error_messages = [] - # validate data type: str - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: int - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in LocationInner with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into str - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into int - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into LocationInner with anyOf schemas: int, str. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], int, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/sdks/python/keynetra_client/models/meta_body.py b/sdks/python/keynetra_client/models/meta_body.py deleted file mode 100644 index 1588df3..0000000 --- a/sdks/python/keynetra_client/models/meta_body.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class MetaBody(BaseModel): - """ - MetaBody - """ # noqa: E501 - request_id: Optional[StrictStr] = None - limit: Optional[StrictInt] = None - next_cursor: Optional[StrictStr] = None - extra: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["request_id", "limit", "next_cursor", "extra"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MetaBody from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if request_id (nullable) is None - # and model_fields_set contains the field - if self.request_id is None and "request_id" in self.model_fields_set: - _dict['request_id'] = None - - # set to None if limit (nullable) is None - # and model_fields_set contains the field - if self.limit is None and "limit" in self.model_fields_set: - _dict['limit'] = None - - # set to None if next_cursor (nullable) is None - # and model_fields_set contains the field - if self.next_cursor is None and "next_cursor" in self.model_fields_set: - _dict['next_cursor'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MetaBody from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "request_id": obj.get("request_id"), - "limit": obj.get("limit"), - "next_cursor": obj.get("next_cursor"), - "extra": obj.get("extra") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/permission_create.py b/sdks/python/keynetra_client/models/permission_create.py deleted file mode 100644 index 3e1c09d..0000000 --- a/sdks/python/keynetra_client/models/permission_create.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PermissionCreate(BaseModel): - """ - PermissionCreate - """ # noqa: E501 - action: StrictStr - __properties: ClassVar[List[str]] = ["action"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/permission_out.py b/sdks/python/keynetra_client/models/permission_out.py deleted file mode 100644 index 284c2a7..0000000 --- a/sdks/python/keynetra_client/models/permission_out.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PermissionOut(BaseModel): - """ - PermissionOut - """ # noqa: E501 - id: StrictInt - action: StrictStr - __properties: ClassVar[List[str]] = ["id", "action"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "action": obj.get("action") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/permission_update.py b/sdks/python/keynetra_client/models/permission_update.py deleted file mode 100644 index bc4e23c..0000000 --- a/sdks/python/keynetra_client/models/permission_update.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PermissionUpdate(BaseModel): - """ - PermissionUpdate - """ # noqa: E501 - action: StrictStr - __properties: ClassVar[List[str]] = ["action"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PermissionUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PermissionUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/playground_evaluate_request.py b/sdks/python/keynetra_client/models/playground_evaluate_request.py deleted file mode 100644 index c15a4a2..0000000 --- a/sdks/python/keynetra_client/models/playground_evaluate_request.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from keynetra_client.models.playground_input import PlaygroundInput -from keynetra_client.models.playground_policy import PlaygroundPolicy -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PlaygroundEvaluateRequest(BaseModel): - """ - PlaygroundEvaluateRequest - """ # noqa: E501 - policies: List[PlaygroundPolicy] - input: PlaygroundInput - __properties: ClassVar[List[str]] = ["policies", "input"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlaygroundEvaluateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in policies (list) - _items = [] - if self.policies: - for _item_policies in self.policies: - if _item_policies: - _items.append(_item_policies.to_dict()) - _dict['policies'] = _items - # override the default output from pydantic by calling `to_dict()` of input - if self.input: - _dict['input'] = self.input.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlaygroundEvaluateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "policies": [PlaygroundPolicy.from_dict(_item) for _item in obj["policies"]] if obj.get("policies") is not None else None, - "input": PlaygroundInput.from_dict(obj["input"]) if obj.get("input") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/playground_input.py b/sdks/python/keynetra_client/models/playground_input.py deleted file mode 100644 index 5eb9ea7..0000000 --- a/sdks/python/keynetra_client/models/playground_input.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PlaygroundInput(BaseModel): - """ - PlaygroundInput - """ # noqa: E501 - user: Optional[Dict[str, Any]] = None - resource: Optional[Dict[str, Any]] = None - action: Optional[StrictStr] = '' - context: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["user", "resource", "action", "context"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlaygroundInput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlaygroundInput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "user": obj.get("user"), - "resource": obj.get("resource"), - "action": obj.get("action") if obj.get("action") is not None else '', - "context": obj.get("context") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/playground_policy.py b/sdks/python/keynetra_client/models/playground_policy.py deleted file mode 100644 index 8ec3f8b..0000000 --- a/sdks/python/keynetra_client/models/playground_policy.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PlaygroundPolicy(BaseModel): - """ - PlaygroundPolicy - """ # noqa: E501 - action: StrictStr - effect: Optional[StrictStr] = 'allow' - priority: Optional[StrictInt] = 100 - policy_id: Optional[StrictStr] = None - conditions: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["action", "effect", "priority", "policy_id", "conditions"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PlaygroundPolicy from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if policy_id (nullable) is None - # and model_fields_set contains the field - if self.policy_id is None and "policy_id" in self.model_fields_set: - _dict['policy_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PlaygroundPolicy from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action"), - "effect": obj.get("effect") if obj.get("effect") is not None else 'allow', - "priority": obj.get("priority") if obj.get("priority") is not None else 100, - "policy_id": obj.get("policy_id"), - "conditions": obj.get("conditions") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/policy_create.py b/sdks/python/keynetra_client/models/policy_create.py deleted file mode 100644 index f9977ba..0000000 --- a/sdks/python/keynetra_client/models/policy_create.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PolicyCreate(BaseModel): - """ - PolicyCreate - """ # noqa: E501 - action: StrictStr - effect: Optional[StrictStr] = 'allow' - priority: Optional[StrictInt] = 100 - state: Optional[StrictStr] = 'active' - conditions: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["action", "effect", "priority", "state", "conditions"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PolicyCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PolicyCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action"), - "effect": obj.get("effect") if obj.get("effect") is not None else 'allow', - "priority": obj.get("priority") if obj.get("priority") is not None else 100, - "state": obj.get("state") if obj.get("state") is not None else 'active', - "conditions": obj.get("conditions") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/policy_out.py b/sdks/python/keynetra_client/models/policy_out.py deleted file mode 100644 index 929f271..0000000 --- a/sdks/python/keynetra_client/models/policy_out.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PolicyOut(BaseModel): - """ - PolicyOut - """ # noqa: E501 - id: StrictInt - action: StrictStr - effect: StrictStr - priority: StrictInt - state: Optional[StrictStr] = 'active' - conditions: Dict[str, Any] - __properties: ClassVar[List[str]] = ["id", "action", "effect", "priority", "state", "conditions"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PolicyOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PolicyOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "action": obj.get("action"), - "effect": obj.get("effect"), - "priority": obj.get("priority"), - "state": obj.get("state") if obj.get("state") is not None else 'active', - "conditions": obj.get("conditions") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/policy_simulation_input.py b/sdks/python/keynetra_client/models/policy_simulation_input.py deleted file mode 100644 index b639b6e..0000000 --- a/sdks/python/keynetra_client/models/policy_simulation_input.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PolicySimulationInput(BaseModel): - """ - PolicySimulationInput - """ # noqa: E501 - policy_change: Optional[StrictStr] = None - relationship_change: Optional[Dict[str, Any]] = None - role_change: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["policy_change", "relationship_change", "role_change"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PolicySimulationInput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if policy_change (nullable) is None - # and model_fields_set contains the field - if self.policy_change is None and "policy_change" in self.model_fields_set: - _dict['policy_change'] = None - - # set to None if relationship_change (nullable) is None - # and model_fields_set contains the field - if self.relationship_change is None and "relationship_change" in self.model_fields_set: - _dict['relationship_change'] = None - - # set to None if role_change (nullable) is None - # and model_fields_set contains the field - if self.role_change is None and "role_change" in self.model_fields_set: - _dict['role_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PolicySimulationInput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "policy_change": obj.get("policy_change"), - "relationship_change": obj.get("relationship_change"), - "role_change": obj.get("role_change") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/policy_simulation_request.py b/sdks/python/keynetra_client/models/policy_simulation_request.py deleted file mode 100644 index e82cc43..0000000 --- a/sdks/python/keynetra_client/models/policy_simulation_request.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.policy_simulation_input import PolicySimulationInput -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PolicySimulationRequest(BaseModel): - """ - PolicySimulationRequest - """ # noqa: E501 - simulate: Optional[PolicySimulationInput] = None - request: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["simulate", "request"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PolicySimulationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of simulate - if self.simulate: - _dict['simulate'] = self.simulate.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PolicySimulationRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "simulate": PolicySimulationInput.from_dict(obj["simulate"]) if obj.get("simulate") is not None else None, - "request": obj.get("request") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/policy_simulation_response.py b/sdks/python/keynetra_client/models/policy_simulation_response.py deleted file mode 100644 index 2239052..0000000 --- a/sdks/python/keynetra_client/models/policy_simulation_response.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class PolicySimulationResponse(BaseModel): - """ - PolicySimulationResponse - """ # noqa: E501 - decision_before: Dict[str, Any] - decision_after: Dict[str, Any] - __properties: ClassVar[List[str]] = ["decision_before", "decision_after"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PolicySimulationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PolicySimulationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "decision_before": obj.get("decision_before"), - "decision_after": obj.get("decision_after") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/relationship_create.py b/sdks/python/keynetra_client/models/relationship_create.py deleted file mode 100644 index 7b63e61..0000000 --- a/sdks/python/keynetra_client/models/relationship_create.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class RelationshipCreate(BaseModel): - """ - RelationshipCreate - """ # noqa: E501 - subject_type: StrictStr - subject_id: StrictStr - relation: StrictStr - object_type: StrictStr - object_id: StrictStr - __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "relation", "object_type", "object_id"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RelationshipCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RelationshipCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "subject_type": obj.get("subject_type"), - "subject_id": obj.get("subject_id"), - "relation": obj.get("relation"), - "object_type": obj.get("object_type"), - "object_id": obj.get("object_id") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/relationship_out.py b/sdks/python/keynetra_client/models/relationship_out.py deleted file mode 100644 index fe24520..0000000 --- a/sdks/python/keynetra_client/models/relationship_out.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class RelationshipOut(BaseModel): - """ - RelationshipOut - """ # noqa: E501 - subject_type: StrictStr - subject_id: StrictStr - relation: StrictStr - object_type: StrictStr - object_id: StrictStr - id: StrictInt - __properties: ClassVar[List[str]] = ["subject_type", "subject_id", "relation", "object_type", "object_id", "id"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RelationshipOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RelationshipOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "subject_type": obj.get("subject_type"), - "subject_id": obj.get("subject_id"), - "relation": obj.get("relation"), - "object_type": obj.get("object_type"), - "object_id": obj.get("object_id"), - "id": obj.get("id") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/role_create.py b/sdks/python/keynetra_client/models/role_create.py deleted file mode 100644 index 1062d37..0000000 --- a/sdks/python/keynetra_client/models/role_create.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class RoleCreate(BaseModel): - """ - RoleCreate - """ # noqa: E501 - name: StrictStr - __properties: ClassVar[List[str]] = ["name"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RoleCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RoleCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/role_out.py b/sdks/python/keynetra_client/models/role_out.py deleted file mode 100644 index 9abaaa1..0000000 --- a/sdks/python/keynetra_client/models/role_out.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class RoleOut(BaseModel): - """ - RoleOut - """ # noqa: E501 - id: StrictInt - name: StrictStr - __properties: ClassVar[List[str]] = ["id", "name"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RoleOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RoleOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/role_update.py b/sdks/python/keynetra_client/models/role_update.py deleted file mode 100644 index 2ee8740..0000000 --- a/sdks/python/keynetra_client/models/role_update.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class RoleUpdate(BaseModel): - """ - RoleUpdate - """ # noqa: E501 - name: StrictStr - __properties: ClassVar[List[str]] = ["name"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RoleUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RoleUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/simulation_response.py b/sdks/python/keynetra_client/models/simulation_response.py deleted file mode 100644 index 00e3925..0000000 --- a/sdks/python/keynetra_client/models/simulation_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SimulationResponse(BaseModel): - """ - SimulationResponse - """ # noqa: E501 - decision: StrictStr - matched_policies: List[StrictStr] - reason: Optional[StrictStr] = None - policy_id: Optional[StrictStr] = None - explain_trace: Optional[List[Dict[str, Any]]] = None - failed_conditions: Optional[List[StrictStr]] = None - revision: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["decision", "matched_policies", "reason", "policy_id", "explain_trace", "failed_conditions", "revision"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SimulationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if reason (nullable) is None - # and model_fields_set contains the field - if self.reason is None and "reason" in self.model_fields_set: - _dict['reason'] = None - - # set to None if policy_id (nullable) is None - # and model_fields_set contains the field - if self.policy_id is None and "policy_id" in self.model_fields_set: - _dict['policy_id'] = None - - # set to None if revision (nullable) is None - # and model_fields_set contains the field - if self.revision is None and "revision" in self.model_fields_set: - _dict['revision'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SimulationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "decision": obj.get("decision"), - "matched_policies": obj.get("matched_policies"), - "reason": obj.get("reason"), - "policy_id": obj.get("policy_id"), - "explain_trace": obj.get("explain_trace"), - "failed_conditions": obj.get("failed_conditions"), - "revision": obj.get("revision") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_access_decision_response.py b/sdks/python/keynetra_client/models/success_response_access_decision_response.py deleted file mode 100644 index 272a2ab..0000000 --- a/sdks/python/keynetra_client/models/success_response_access_decision_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.access_decision_response import AccessDecisionResponse -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseAccessDecisionResponse(BaseModel): - """ - SuccessResponseAccessDecisionResponse - """ # noqa: E501 - data: AccessDecisionResponse - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseAccessDecisionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseAccessDecisionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": AccessDecisionResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_acl_out.py b/sdks/python/keynetra_client/models/success_response_acl_out.py deleted file mode 100644 index f62d077..0000000 --- a/sdks/python/keynetra_client/models/success_response_acl_out.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.acl_out import ACLOut -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseACLOut(BaseModel): - """ - SuccessResponseACLOut - """ # noqa: E501 - data: ACLOut - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseACLOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseACLOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": ACLOut.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_admin_login_response.py b/sdks/python/keynetra_client/models/success_response_admin_login_response.py deleted file mode 100644 index 0b28b92..0000000 --- a/sdks/python/keynetra_client/models/success_response_admin_login_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.admin_login_response import AdminLoginResponse -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseAdminLoginResponse(BaseModel): - """ - SuccessResponseAdminLoginResponse - """ # noqa: E501 - data: AdminLoginResponse - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseAdminLoginResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseAdminLoginResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": AdminLoginResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_auth_model_out.py b/sdks/python/keynetra_client/models/success_response_auth_model_out.py deleted file mode 100644 index 0be219e..0000000 --- a/sdks/python/keynetra_client/models/success_response_auth_model_out.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.auth_model_out import AuthModelOut -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseAuthModelOut(BaseModel): - """ - SuccessResponseAuthModelOut - """ # noqa: E501 - data: AuthModelOut - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseAuthModelOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseAuthModelOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": AuthModelOut.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_batch_access_response.py b/sdks/python/keynetra_client/models/success_response_batch_access_response.py deleted file mode 100644 index 87e0be3..0000000 --- a/sdks/python/keynetra_client/models/success_response_batch_access_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.batch_access_response import BatchAccessResponse -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseBatchAccessResponse(BaseModel): - """ - SuccessResponseBatchAccessResponse - """ # noqa: E501 - data: BatchAccessResponse - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseBatchAccessResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseBatchAccessResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": BatchAccessResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_any.py b/sdks/python/keynetra_client/models/success_response_dict_str_any.py deleted file mode 100644 index dfad540..0000000 --- a/sdks/python/keynetra_client/models/success_response_dict_str_any.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseDictStrAny(BaseModel): - """ - SuccessResponseDictStrAny - """ # noqa: E501 - data: Dict[str, Any] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrAny from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrAny from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": obj.get("data"), - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_int.py b/sdks/python/keynetra_client/models/success_response_dict_str_int.py deleted file mode 100644 index fe17804..0000000 --- a/sdks/python/keynetra_client/models/success_response_dict_str_int.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseDictStrInt(BaseModel): - """ - SuccessResponseDictStrInt - """ # noqa: E501 - data: Dict[str, StrictInt] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrInt from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrInt from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": obj.get("data"), - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_object.py b/sdks/python/keynetra_client/models/success_response_dict_str_object.py deleted file mode 100644 index 5d7b6bf..0000000 --- a/sdks/python/keynetra_client/models/success_response_dict_str_object.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseDictStrObject(BaseModel): - """ - SuccessResponseDictStrObject - """ # noqa: E501 - data: Dict[str, Any] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrObject from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrObject from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": obj.get("data"), - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_str.py b/sdks/python/keynetra_client/models/success_response_dict_str_str.py deleted file mode 100644 index eb110ec..0000000 --- a/sdks/python/keynetra_client/models/success_response_dict_str_str.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseDictStrStr(BaseModel): - """ - SuccessResponseDictStrStr - """ # noqa: E501 - data: Dict[str, StrictStr] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrStr from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrStr from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": obj.get("data"), - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py b/sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py deleted file mode 100644 index 72b2e0d..0000000 --- a/sdks/python/keynetra_client/models/success_response_dict_str_union_int_str.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.data_value import DataValue -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseDictStrUnionIntStr(BaseModel): - """ - SuccessResponseDictStrUnionIntStr - """ # noqa: E501 - data: Dict[str, DataValue] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrUnionIntStr from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each value in data (dict) - _field_dict = {} - if self.data: - for _key_data in self.data: - if self.data[_key_data]: - _field_dict[_key_data] = self.data[_key_data].to_dict() - _dict['data'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseDictStrUnionIntStr from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": dict( - (_k, DataValue.from_dict(_v)) - for _k, _v in obj["data"].items() - ) - if obj.get("data") is not None - else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_impact_analysis_response.py b/sdks/python/keynetra_client/models/success_response_impact_analysis_response.py deleted file mode 100644 index 892dc40..0000000 --- a/sdks/python/keynetra_client/models/success_response_impact_analysis_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseImpactAnalysisResponse(BaseModel): - """ - SuccessResponseImpactAnalysisResponse - """ # noqa: E501 - data: ImpactAnalysisResponse - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseImpactAnalysisResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseImpactAnalysisResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": ImpactAnalysisResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_list_acl_out.py b/sdks/python/keynetra_client/models/success_response_list_acl_out.py deleted file mode 100644 index 69b8e20..0000000 --- a/sdks/python/keynetra_client/models/success_response_list_acl_out.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.acl_out import ACLOut -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseListACLOut(BaseModel): - """ - SuccessResponseListACLOut - """ # noqa: E501 - data: List[ACLOut] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseListACLOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseListACLOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": [ACLOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_list_audit_record_out.py b/sdks/python/keynetra_client/models/success_response_list_audit_record_out.py deleted file mode 100644 index 0cd7a5a..0000000 --- a/sdks/python/keynetra_client/models/success_response_list_audit_record_out.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.audit_record_out import AuditRecordOut -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseListAuditRecordOut(BaseModel): - """ - SuccessResponseListAuditRecordOut - """ # noqa: E501 - data: List[AuditRecordOut] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseListAuditRecordOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseListAuditRecordOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": [AuditRecordOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_list_dict_str_str.py b/sdks/python/keynetra_client/models/success_response_list_dict_str_str.py deleted file mode 100644 index 6be6d92..0000000 --- a/sdks/python/keynetra_client/models/success_response_list_dict_str_str.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseListDictStrStr(BaseModel): - """ - SuccessResponseListDictStrStr - """ # noqa: E501 - data: List[Dict[str, StrictStr]] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseListDictStrStr from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseListDictStrStr from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": obj.get("data"), - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_list_permission_out.py b/sdks/python/keynetra_client/models/success_response_list_permission_out.py deleted file mode 100644 index 4e23303..0000000 --- a/sdks/python/keynetra_client/models/success_response_list_permission_out.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.permission_out import PermissionOut -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseListPermissionOut(BaseModel): - """ - SuccessResponseListPermissionOut - """ # noqa: E501 - data: List[PermissionOut] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseListPermissionOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseListPermissionOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": [PermissionOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_list_policy_out.py b/sdks/python/keynetra_client/models/success_response_list_policy_out.py deleted file mode 100644 index 58509f3..0000000 --- a/sdks/python/keynetra_client/models/success_response_list_policy_out.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.policy_out import PolicyOut -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseListPolicyOut(BaseModel): - """ - SuccessResponseListPolicyOut - """ # noqa: E501 - data: List[PolicyOut] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseListPolicyOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseListPolicyOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": [PolicyOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_list_role_out.py b/sdks/python/keynetra_client/models/success_response_list_role_out.py deleted file mode 100644 index e81f417..0000000 --- a/sdks/python/keynetra_client/models/success_response_list_role_out.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.role_out import RoleOut -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseListRoleOut(BaseModel): - """ - SuccessResponseListRoleOut - """ # noqa: E501 - data: List[RoleOut] - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseListRoleOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseListRoleOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": [RoleOut.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_permission_out.py b/sdks/python/keynetra_client/models/success_response_permission_out.py deleted file mode 100644 index 37db5db..0000000 --- a/sdks/python/keynetra_client/models/success_response_permission_out.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.permission_out import PermissionOut -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponsePermissionOut(BaseModel): - """ - SuccessResponsePermissionOut - """ # noqa: E501 - data: PermissionOut - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponsePermissionOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponsePermissionOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": PermissionOut.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_policy_out.py b/sdks/python/keynetra_client/models/success_response_policy_out.py deleted file mode 100644 index 2999da6..0000000 --- a/sdks/python/keynetra_client/models/success_response_policy_out.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.policy_out import PolicyOut -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponsePolicyOut(BaseModel): - """ - SuccessResponsePolicyOut - """ # noqa: E501 - data: PolicyOut - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponsePolicyOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponsePolicyOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": PolicyOut.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_policy_simulation_response.py b/sdks/python/keynetra_client/models/success_response_policy_simulation_response.py deleted file mode 100644 index abf82bb..0000000 --- a/sdks/python/keynetra_client/models/success_response_policy_simulation_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.policy_simulation_response import PolicySimulationResponse -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponsePolicySimulationResponse(BaseModel): - """ - SuccessResponsePolicySimulationResponse - """ # noqa: E501 - data: PolicySimulationResponse - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponsePolicySimulationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponsePolicySimulationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": PolicySimulationResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_relationship_out.py b/sdks/python/keynetra_client/models/success_response_relationship_out.py deleted file mode 100644 index ecb9b51..0000000 --- a/sdks/python/keynetra_client/models/success_response_relationship_out.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.relationship_out import RelationshipOut -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseRelationshipOut(BaseModel): - """ - SuccessResponseRelationshipOut - """ # noqa: E501 - data: RelationshipOut - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseRelationshipOut from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseRelationshipOut from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": RelationshipOut.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/success_response_simulation_response.py b/sdks/python/keynetra_client/models/success_response_simulation_response.py deleted file mode 100644 index 922ea1d..0000000 --- a/sdks/python/keynetra_client/models/success_response_simulation_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.meta_body import MetaBody -from keynetra_client.models.simulation_response import SimulationResponse -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class SuccessResponseSimulationResponse(BaseModel): - """ - SuccessResponseSimulationResponse - """ # noqa: E501 - data: SimulationResponse - meta: Optional[MetaBody] = None - error: Optional[Any] = None - __properties: ClassVar[List[str]] = ["data", "meta", "error"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SuccessResponseSimulationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # override the default output from pydantic by calling `to_dict()` of error - if self.error: - _dict['error'] = self.error.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SuccessResponseSimulationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": SimulationResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "meta": MetaBody.from_dict(obj["meta"]) if obj.get("meta") is not None else None, - "error": Any.from_dict(obj["error"]) if obj.get("error") is not None else None - }) - return _obj - - diff --git a/sdks/python/keynetra_client/models/validation_error.py b/sdks/python/keynetra_client/models/validation_error.py deleted file mode 100644 index 7acf445..0000000 --- a/sdks/python/keynetra_client/models/validation_error.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from keynetra_client.models.location_inner import LocationInner -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class ValidationError(BaseModel): - """ - ValidationError - """ # noqa: E501 - loc: List[LocationInner] - msg: StrictStr - type: StrictStr - input: Optional[Any] = None - ctx: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["loc", "msg", "type", "input", "ctx"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ValidationError from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in loc (list) - _items = [] - if self.loc: - for _item_loc in self.loc: - if _item_loc: - _items.append(_item_loc.to_dict()) - _dict['loc'] = _items - # set to None if input (nullable) is None - # and model_fields_set contains the field - if self.input is None and "input" in self.model_fields_set: - _dict['input'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ValidationError from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "loc": [LocationInner.from_dict(_item) for _item in obj["loc"]] if obj.get("loc") is not None else None, - "msg": obj.get("msg"), - "type": obj.get("type"), - "input": obj.get("input"), - "ctx": obj.get("ctx") - }) - return _obj - - diff --git a/sdks/python/keynetra_client/py.typed b/sdks/python/keynetra_client/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/sdks/python/keynetra_client/rest.py b/sdks/python/keynetra_client/rest.py deleted file mode 100644 index c1db3d1..0000000 --- a/sdks/python/keynetra_client/rest.py +++ /dev/null @@ -1,263 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import json -import re -import ssl - -import urllib3 - -from keynetra_client.exceptions import ApiException, ApiValueError - -SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} -RESTResponseType = urllib3.HTTPResponse - - -def is_socks_proxy_url(url): - if url is None: - return False - split_section = url.split("://") - if len(split_section) < 2: - return False - else: - return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES - - -class RESTResponse(io.IOBase): - - def __init__(self, resp) -> None: - self.response = resp - self.status = resp.status - self.reason = resp.reason - self.data = None - - def read(self): - if self.data is None: - self.data = self.response.data - return self.data - - @property - def headers(self): - """Returns a dictionary of response headers.""" - return self.response.headers - - def getheaders(self): - """Returns a dictionary of the response headers; use ``headers`` instead.""" - return self.response.headers - - def getheader(self, name, default=None): - """Returns a given response header; use ``headers.get()`` instead.""" - return self.response.headers.get(name, default) - - -class RESTClientObject: - - def __init__(self, configuration) -> None: - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - pool_args = { - "cert_reqs": cert_reqs, - "ca_certs": configuration.ssl_ca_cert, - "cert_file": configuration.cert_file, - "key_file": configuration.key_file, - "ca_cert_data": configuration.ca_cert_data, - } - if configuration.assert_hostname is not None: - pool_args['assert_hostname'] = ( - configuration.assert_hostname - ) - - if configuration.retries is not None: - pool_args['retries'] = configuration.retries - - if configuration.tls_server_name: - pool_args['server_hostname'] = configuration.tls_server_name - - - if configuration.socket_options is not None: - pool_args['socket_options'] = configuration.socket_options - - if configuration.connection_pool_maxsize is not None: - pool_args['maxsize'] = configuration.connection_pool_maxsize - - # https pool manager - self.pool_manager: urllib3.PoolManager - - if configuration.proxy: - if is_socks_proxy_url(configuration.proxy): - from urllib3.contrib.socks import SOCKSProxyManager - pool_args["proxy_url"] = configuration.proxy - pool_args["headers"] = configuration.proxy_headers - self.pool_manager = SOCKSProxyManager(**pool_args) - else: - pool_args["proxy_url"] = configuration.proxy - pool_args["proxy_headers"] = configuration.proxy_headers - self.pool_manager = urllib3.ProxyManager(**pool_args) - else: - self.pool_manager = urllib3.PoolManager(**pool_args) - - def request( - self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): - """Perform requests. - - :param method: http request method - :param url: http request url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in [ - 'GET', - 'HEAD', - 'DELETE', - 'POST', - 'PUT', - 'PATCH', - 'OPTIONS' - ] - - if post_params and body: - raise ApiValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, float)): - timeout = urllib3.Timeout(total=_request_timeout) - elif ( - isinstance(_request_timeout, tuple) - and len(_request_timeout) == 2 - ): - timeout = urllib3.Timeout( - connect=_request_timeout[0], - read=_request_timeout[1] - ) - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - - # no content type provided or payload is json - content_type = headers.get('Content-Type') - if ( - not content_type - or re.search('json', content_type, re.IGNORECASE) - ): - request_body = None - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, - url, - body=request_body, - timeout=timeout, - headers=headers, - preload_content=False - ) - elif content_type == 'application/x-www-form-urlencoded': - r = self.pool_manager.request( - method, - url, - fields=post_params, - encode_multipart=False, - timeout=timeout, - headers=headers, - preload_content=False - ) - elif content_type == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - # Ensures that dict objects are serialized - post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] - r = self.pool_manager.request( - method, - url, - fields=post_params, - encode_multipart=True, - timeout=timeout, - headers=headers, - preload_content=False - ) - # Pass a `string` parameter directly in the body to support - # other content types than JSON when `body` argument is - # provided in serialized form. - elif isinstance(body, str) or isinstance(body, bytes): - r = self.pool_manager.request( - method, - url, - body=body, - timeout=timeout, - headers=headers, - preload_content=False - ) - elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): - request_body = "true" if body else "false" - r = self.pool_manager.request( - method, - url, - body=request_body, - preload_content=False, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request( - method, - url, - fields={}, - timeout=timeout, - headers=headers, - preload_content=False - ) - except urllib3.exceptions.SSLError as e: - msg = "\n".join([type(e).__name__, str(e)]) - raise ApiException(status=0, reason=msg) - - return RESTResponse(r) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml deleted file mode 100644 index f8572f5..0000000 --- a/sdks/python/pyproject.toml +++ /dev/null @@ -1,26 +0,0 @@ -[build-system] -requires = ["setuptools>=68", "wheel"] -build-backend = "setuptools.build_meta" - -[project] -name = "keynetra-client" -version = "0.1.1" -description = "Official Python Client SDK for the KeyNetra authorization platform." -readme = "README.md" -requires-python = ">=3.11" -license = { text = "Apache-2.0" } -authors = [{ name = "Sainath.Sapa", email = "info.djsai\@gmail.com" }] -dependencies = [ - "urllib3>=2.1.0", - "python-dateutil>=2.8.2", - "pydantic>=2.11", - "typing-extensions>=4.7.1", -] - -[project.urls] -Homepage = "https://github.com/keynetra/keynetra-client-python" -Repository = "https://github.com/keynetra/keynetra-client-python" -Issues = "https://github.com/keynetra/keynetra-client-python/issues" - -[tool.setuptools.packages.find] -include = ["keynetra_client*"] diff --git a/sdks/python/requirements.txt b/sdks/python/requirements.txt deleted file mode 100644 index 9e2d67a..0000000 --- a/sdks/python/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -urllib3 >= 2.1.0, < 3.0.0 -python_dateutil >= 2.8.2 -pydantic >= 2.11 -typing-extensions >= 4.7.1 diff --git a/sdks/python/setup.cfg b/sdks/python/setup.cfg deleted file mode 100644 index 11433ee..0000000 --- a/sdks/python/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/sdks/python/setup.py b/sdks/python/setup.py deleted file mode 100644 index daba795..0000000 --- a/sdks/python/setup.py +++ /dev/null @@ -1,47 +0,0 @@ -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from setuptools import setup, find_packages # noqa: H301 - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools -NAME = "keynetra-client" -VERSION = "0.1.1" -PYTHON_REQUIRES = ">= 3.9" -REQUIRES = [ - "urllib3 >= 2.1.0, < 3.0.0", - "python-dateutil >= 2.8.2", - "pydantic >= 2.11", - "typing-extensions >= 4.7.1", -] - -setup( - name=NAME, - version=VERSION, - description="KeyNetra", - author="OpenAPI Generator community", - author_email="team@openapitools.org", - url="https://github.com/keynetra/keynetra-client-python", - keywords=["OpenAPI", "OpenAPI-Generator", "KeyNetra"], - install_requires=REQUIRES, - packages=find_packages(exclude=["test", "tests"]), - include_package_data=True, - long_description_content_type='text/markdown', - long_description="""\ - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - """, # noqa: E501 - package_data={"keynetra_client": ["py.typed"]}, -) diff --git a/sdks/python/test-requirements.txt b/sdks/python/test-requirements.txt deleted file mode 100644 index e98555c..0000000 --- a/sdks/python/test-requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -pytest >= 7.2.1 -pytest-cov >= 2.8.1 -tox >= 3.9.0 -flake8 >= 4.0.0 -types-python-dateutil >= 2.8.19.14 -mypy >= 1.5 diff --git a/sdks/python/test/__init__.py b/sdks/python/test/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/sdks/python/test/test_access_api.py b/sdks/python/test/test_access_api.py deleted file mode 100644 index 08cb031..0000000 --- a/sdks/python/test/test_access_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.api.access_api import AccessApi - - -class TestAccessApi(unittest.TestCase): - """AccessApi unit test stubs""" - - def setUp(self) -> None: - self.api = AccessApi() - - def tearDown(self) -> None: - pass - - def test_check_access_batch_check_access_batch_post(self) -> None: - """Test case for check_access_batch_check_access_batch_post - - Check Access Batch - """ - pass - - def test_check_access_check_access_post(self) -> None: - """Test case for check_access_check_access_post - - Check Access - """ - pass - - def test_simulate_simulate_post(self) -> None: - """Test case for simulate_simulate_post - - Simulate - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_access_decision_response.py b/sdks/python/test/test_access_decision_response.py deleted file mode 100644 index 49ee9ab..0000000 --- a/sdks/python/test/test_access_decision_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.access_decision_response import AccessDecisionResponse - -class TestAccessDecisionResponse(unittest.TestCase): - """AccessDecisionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessDecisionResponse: - """Test AccessDecisionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AccessDecisionResponse` - """ - model = AccessDecisionResponse() - if include_optional: - return AccessDecisionResponse( - allowed = True, - decision = '', - matched_policies = [ - '' - ], - reason = '', - policy_id = '', - explain_trace = [ - { } - ], - revision = 56 - ) - else: - return AccessDecisionResponse( - allowed = True, - decision = '', - ) - """ - - def testAccessDecisionResponse(self): - """Test AccessDecisionResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_access_request.py b/sdks/python/test/test_access_request.py deleted file mode 100644 index 8efd47c..0000000 --- a/sdks/python/test/test_access_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.access_request import AccessRequest - -class TestAccessRequest(unittest.TestCase): - """AccessRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessRequest: - """Test AccessRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AccessRequest` - """ - model = AccessRequest() - if include_optional: - return AccessRequest( - user = { }, - action = '', - resource = { }, - context = { }, - consistency = 'eventual', - revision = 56 - ) - else: - return AccessRequest( - action = '', - ) - """ - - def testAccessRequest(self): - """Test AccessRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_acl_create.py b/sdks/python/test/test_acl_create.py deleted file mode 100644 index 4bb60d7..0000000 --- a/sdks/python/test/test_acl_create.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.acl_create import ACLCreate - -class TestACLCreate(unittest.TestCase): - """ACLCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ACLCreate: - """Test ACLCreate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ACLCreate` - """ - model = ACLCreate() - if include_optional: - return ACLCreate( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '' - ) - else: - return ACLCreate( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - ) - """ - - def testACLCreate(self): - """Test ACLCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_acl_out.py b/sdks/python/test/test_acl_out.py deleted file mode 100644 index cc2ec3b..0000000 --- a/sdks/python/test/test_acl_out.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.acl_out import ACLOut - -class TestACLOut(unittest.TestCase): - """ACLOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ACLOut: - """Test ACLOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ACLOut` - """ - model = ACLOut() - if include_optional: - return ACLOut( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - id = 56, - tenant_id = 56, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return ACLOut( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - id = 56, - tenant_id = 56, - ) - """ - - def testACLOut(self): - """Test ACLOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_admin_login_request.py b/sdks/python/test/test_admin_login_request.py deleted file mode 100644 index b399821..0000000 --- a/sdks/python/test/test_admin_login_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.admin_login_request import AdminLoginRequest - -class TestAdminLoginRequest(unittest.TestCase): - """AdminLoginRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdminLoginRequest: - """Test AdminLoginRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AdminLoginRequest` - """ - model = AdminLoginRequest() - if include_optional: - return AdminLoginRequest( - username = '', - password = '' - ) - else: - return AdminLoginRequest( - username = '', - password = '', - ) - """ - - def testAdminLoginRequest(self): - """Test AdminLoginRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_admin_login_response.py b/sdks/python/test/test_admin_login_response.py deleted file mode 100644 index 1dea2ce..0000000 --- a/sdks/python/test/test_admin_login_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.admin_login_response import AdminLoginResponse - -class TestAdminLoginResponse(unittest.TestCase): - """AdminLoginResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdminLoginResponse: - """Test AdminLoginResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AdminLoginResponse` - """ - model = AdminLoginResponse() - if include_optional: - return AdminLoginResponse( - access_token = '', - token_type = 'bearer', - expires_in = 56, - role = 'admin', - tenant_key = '' - ) - else: - return AdminLoginResponse( - access_token = '', - expires_in = 56, - tenant_key = '', - ) - """ - - def testAdminLoginResponse(self): - """Test AdminLoginResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_audit_record_out.py b/sdks/python/test/test_audit_record_out.py deleted file mode 100644 index 586a501..0000000 --- a/sdks/python/test/test_audit_record_out.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.audit_record_out import AuditRecordOut - -class TestAuditRecordOut(unittest.TestCase): - """AuditRecordOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuditRecordOut: - """Test AuditRecordOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuditRecordOut` - """ - model = AuditRecordOut() - if include_optional: - return AuditRecordOut( - id = 56, - principal_type = '', - principal_id = '', - correlation_id = '', - user = { }, - action = '', - resource = { }, - decision = '', - matched_policies = [ - null - ], - reason = '', - evaluated_rules = [ - null - ], - failed_conditions = [ - null - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return AuditRecordOut( - id = 56, - principal_type = '', - principal_id = '', - user = { }, - action = '', - resource = { }, - decision = '', - matched_policies = [ - null - ], - evaluated_rules = [ - null - ], - failed_conditions = [ - null - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testAuditRecordOut(self): - """Test AuditRecordOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_auth_api.py b/sdks/python/test/test_auth_api.py deleted file mode 100644 index 2bf51bb..0000000 --- a/sdks/python/test/test_auth_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.api.auth_api import AuthApi - - -class TestAuthApi(unittest.TestCase): - """AuthApi unit test stubs""" - - def setUp(self) -> None: - self.api = AuthApi() - - def tearDown(self) -> None: - pass - - def test_admin_login_admin_login_post(self) -> None: - """Test case for admin_login_admin_login_post - - Admin Login - """ - pass - - def test_admin_login_admin_login_post_0(self) -> None: - """Test case for admin_login_admin_login_post_0 - - Admin Login - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_auth_model_create.py b/sdks/python/test/test_auth_model_create.py deleted file mode 100644 index b806225..0000000 --- a/sdks/python/test/test_auth_model_create.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.auth_model_create import AuthModelCreate - -class TestAuthModelCreate(unittest.TestCase): - """AuthModelCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthModelCreate: - """Test AuthModelCreate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthModelCreate` - """ - model = AuthModelCreate() - if include_optional: - return AuthModelCreate( - var_schema = '' - ) - else: - return AuthModelCreate( - var_schema = '', - ) - """ - - def testAuthModelCreate(self): - """Test AuthModelCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_auth_model_out.py b/sdks/python/test/test_auth_model_out.py deleted file mode 100644 index 36efe0f..0000000 --- a/sdks/python/test/test_auth_model_out.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.auth_model_out import AuthModelOut - -class TestAuthModelOut(unittest.TestCase): - """AuthModelOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthModelOut: - """Test AuthModelOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthModelOut` - """ - model = AuthModelOut() - if include_optional: - return AuthModelOut( - id = 56, - tenant_id = 56, - var_schema = '', - parsed = { }, - compiled = { } - ) - else: - return AuthModelOut( - id = 56, - tenant_id = 56, - var_schema = '', - parsed = { }, - compiled = { }, - ) - """ - - def testAuthModelOut(self): - """Test AuthModelOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_batch_access_item.py b/sdks/python/test/test_batch_access_item.py deleted file mode 100644 index eb471f9..0000000 --- a/sdks/python/test/test_batch_access_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.batch_access_item import BatchAccessItem - -class TestBatchAccessItem(unittest.TestCase): - """BatchAccessItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchAccessItem: - """Test BatchAccessItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchAccessItem` - """ - model = BatchAccessItem() - if include_optional: - return BatchAccessItem( - action = '', - resource = { } - ) - else: - return BatchAccessItem( - action = '', - ) - """ - - def testBatchAccessItem(self): - """Test BatchAccessItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_batch_access_request.py b/sdks/python/test/test_batch_access_request.py deleted file mode 100644 index c3ea1eb..0000000 --- a/sdks/python/test/test_batch_access_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.batch_access_request import BatchAccessRequest - -class TestBatchAccessRequest(unittest.TestCase): - """BatchAccessRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchAccessRequest: - """Test BatchAccessRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchAccessRequest` - """ - model = BatchAccessRequest() - if include_optional: - return BatchAccessRequest( - user = { }, - items = [ - keynetra_client.models.batch_access_item.BatchAccessItem( - action = '', - resource = { }, ) - ], - consistency = 'eventual', - revision = 56 - ) - else: - return BatchAccessRequest( - items = [ - keynetra_client.models.batch_access_item.BatchAccessItem( - action = '', - resource = { }, ) - ], - ) - """ - - def testBatchAccessRequest(self): - """Test BatchAccessRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_batch_access_response.py b/sdks/python/test/test_batch_access_response.py deleted file mode 100644 index 28a3df9..0000000 --- a/sdks/python/test/test_batch_access_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.batch_access_response import BatchAccessResponse - -class TestBatchAccessResponse(unittest.TestCase): - """BatchAccessResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchAccessResponse: - """Test BatchAccessResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchAccessResponse` - """ - model = BatchAccessResponse() - if include_optional: - return BatchAccessResponse( - results = [ - keynetra_client.models.batch_access_result.BatchAccessResult( - action = '', - allowed = True, - revision = 56, ) - ], - revision = 56 - ) - else: - return BatchAccessResponse( - results = [ - keynetra_client.models.batch_access_result.BatchAccessResult( - action = '', - allowed = True, - revision = 56, ) - ], - ) - """ - - def testBatchAccessResponse(self): - """Test BatchAccessResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_batch_access_result.py b/sdks/python/test/test_batch_access_result.py deleted file mode 100644 index dfb77fc..0000000 --- a/sdks/python/test/test_batch_access_result.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.batch_access_result import BatchAccessResult - -class TestBatchAccessResult(unittest.TestCase): - """BatchAccessResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchAccessResult: - """Test BatchAccessResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchAccessResult` - """ - model = BatchAccessResult() - if include_optional: - return BatchAccessResult( - action = '', - allowed = True, - revision = 56 - ) - else: - return BatchAccessResult( - action = '', - allowed = True, - ) - """ - - def testBatchAccessResult(self): - """Test BatchAccessResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_data_value.py b/sdks/python/test/test_data_value.py deleted file mode 100644 index c227add..0000000 --- a/sdks/python/test/test_data_value.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.data_value import DataValue - -class TestDataValue(unittest.TestCase): - """DataValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataValue: - """Test DataValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataValue` - """ - model = DataValue() - if include_optional: - return DataValue( - ) - else: - return DataValue( - ) - """ - - def testDataValue(self): - """Test DataValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_dev_api.py b/sdks/python/test/test_dev_api.py deleted file mode 100644 index 3e3de24..0000000 --- a/sdks/python/test/test_dev_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.api.dev_api import DevApi - - -class TestDevApi(unittest.TestCase): - """DevApi unit test stubs""" - - def setUp(self) -> None: - self.api = DevApi() - - def tearDown(self) -> None: - pass - - def test_get_sample_data_dev_sample_data_get(self) -> None: - """Test case for get_sample_data_dev_sample_data_get - - Get Sample Data - """ - pass - - def test_seed_sample_data_dev_sample_data_seed_post(self) -> None: - """Test case for seed_sample_data_dev_sample_data_seed_post - - Seed Sample Data - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_health_api.py b/sdks/python/test/test_health_api.py deleted file mode 100644 index 3e0ce60..0000000 --- a/sdks/python/test/test_health_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.api.health_api import HealthApi - - -class TestHealthApi(unittest.TestCase): - """HealthApi unit test stubs""" - - def setUp(self) -> None: - self.api = HealthApi() - - def tearDown(self) -> None: - pass - - def test_health_health_get(self) -> None: - """Test case for health_health_get - - Health - """ - pass - - def test_liveness_health_live_get(self) -> None: - """Test case for liveness_health_live_get - - Liveness - """ - pass - - def test_readiness_health_ready_get(self) -> None: - """Test case for readiness_health_ready_get - - Readiness - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_http_validation_error.py b/sdks/python/test/test_http_validation_error.py deleted file mode 100644 index b827a72..0000000 --- a/sdks/python/test/test_http_validation_error.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.http_validation_error import HTTPValidationError - -class TestHTTPValidationError(unittest.TestCase): - """HTTPValidationError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPValidationError: - """Test HTTPValidationError - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPValidationError` - """ - model = HTTPValidationError() - if include_optional: - return HTTPValidationError( - detail = [ - keynetra_client.models.validation_error.ValidationError( - loc = [ - null - ], - msg = '', - type = '', - input = null, - ctx = keynetra_client.models.context.Context(), ) - ] - ) - else: - return HTTPValidationError( - ) - """ - - def testHTTPValidationError(self): - """Test HTTPValidationError""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_impact_analysis_request.py b/sdks/python/test/test_impact_analysis_request.py deleted file mode 100644 index f4534ea..0000000 --- a/sdks/python/test/test_impact_analysis_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.impact_analysis_request import ImpactAnalysisRequest - -class TestImpactAnalysisRequest(unittest.TestCase): - """ImpactAnalysisRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImpactAnalysisRequest: - """Test ImpactAnalysisRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImpactAnalysisRequest` - """ - model = ImpactAnalysisRequest() - if include_optional: - return ImpactAnalysisRequest( - policy_change = '' - ) - else: - return ImpactAnalysisRequest( - policy_change = '', - ) - """ - - def testImpactAnalysisRequest(self): - """Test ImpactAnalysisRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_impact_analysis_response.py b/sdks/python/test/test_impact_analysis_response.py deleted file mode 100644 index a97f457..0000000 --- a/sdks/python/test/test_impact_analysis_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.impact_analysis_response import ImpactAnalysisResponse - -class TestImpactAnalysisResponse(unittest.TestCase): - """ImpactAnalysisResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImpactAnalysisResponse: - """Test ImpactAnalysisResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImpactAnalysisResponse` - """ - model = ImpactAnalysisResponse() - if include_optional: - return ImpactAnalysisResponse( - gained_access = [ - 56 - ], - lost_access = [ - 56 - ] - ) - else: - return ImpactAnalysisResponse( - ) - """ - - def testImpactAnalysisResponse(self): - """Test ImpactAnalysisResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_location_inner.py b/sdks/python/test/test_location_inner.py deleted file mode 100644 index 4567a8e..0000000 --- a/sdks/python/test/test_location_inner.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.location_inner import LocationInner - -class TestLocationInner(unittest.TestCase): - """LocationInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocationInner: - """Test LocationInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LocationInner` - """ - model = LocationInner() - if include_optional: - return LocationInner( - ) - else: - return LocationInner( - ) - """ - - def testLocationInner(self): - """Test LocationInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_management_api.py b/sdks/python/test/test_management_api.py deleted file mode 100644 index 4dabfd6..0000000 --- a/sdks/python/test/test_management_api.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.api.management_api import ManagementApi - - -class TestManagementApi(unittest.TestCase): - """ManagementApi unit test stubs""" - - def setUp(self) -> None: - self.api = ManagementApi() - - def tearDown(self) -> None: - pass - - def test_add_permission_to_role_roles_role_id_permissions_permission_id_post(self) -> None: - """Test case for add_permission_to_role_roles_role_id_permissions_permission_id_post - - Add Permission To Role - """ - pass - - def test_create_acl_entry_acl_post(self) -> None: - """Test case for create_acl_entry_acl_post - - Create Acl Entry - """ - pass - - def test_create_auth_model_auth_model_post(self) -> None: - """Test case for create_auth_model_auth_model_post - - Create Auth Model - """ - pass - - def test_create_permission_permissions_post(self) -> None: - """Test case for create_permission_permissions_post - - Create Permission - """ - pass - - def test_create_policy_from_dsl_policies_dsl_post(self) -> None: - """Test case for create_policy_from_dsl_policies_dsl_post - - Create Policy From Dsl - """ - pass - - def test_create_policy_policies_post(self) -> None: - """Test case for create_policy_policies_post - - Create Policy - """ - pass - - def test_create_relationship_relationships_post(self) -> None: - """Test case for create_relationship_relationships_post - - Create Relationship - """ - pass - - def test_create_role_roles_post(self) -> None: - """Test case for create_role_roles_post - - Create Role - """ - pass - - def test_delete_acl_entry_acl_acl_id_delete(self) -> None: - """Test case for delete_acl_entry_acl_acl_id_delete - - Delete Acl Entry - """ - pass - - def test_delete_permission_permissions_permission_id_delete(self) -> None: - """Test case for delete_permission_permissions_permission_id_delete - - Delete Permission - """ - pass - - def test_delete_policy_policies_policy_key_delete(self) -> None: - """Test case for delete_policy_policies_policy_key_delete - - Delete Policy - """ - pass - - def test_delete_role_roles_role_id_delete(self) -> None: - """Test case for delete_role_roles_role_id_delete - - Delete Role - """ - pass - - def test_get_auth_model_auth_model_get(self) -> None: - """Test case for get_auth_model_auth_model_get - - Get Auth Model - """ - pass - - def test_impact_analysis_impact_analysis_post(self) -> None: - """Test case for impact_analysis_impact_analysis_post - - Impact Analysis - """ - pass - - def test_list_acl_entries_acl_resource_type_resource_id_get(self) -> None: - """Test case for list_acl_entries_acl_resource_type_resource_id_get - - List Acl Entries - """ - pass - - def test_list_audit_logs_audit_get(self) -> None: - """Test case for list_audit_logs_audit_get - - List Audit Logs - """ - pass - - def test_list_permission_roles_permissions_permission_id_roles_get(self) -> None: - """Test case for list_permission_roles_permissions_permission_id_roles_get - - List Permission Roles - """ - pass - - def test_list_permissions_permissions_get(self) -> None: - """Test case for list_permissions_permissions_get - - List Permissions - """ - pass - - def test_list_policies_policies_get(self) -> None: - """Test case for list_policies_policies_get - - List Policies - """ - pass - - def test_list_relationships_relationships_get(self) -> None: - """Test case for list_relationships_relationships_get - - List Relationships - """ - pass - - def test_list_role_permissions_roles_role_id_permissions_get(self) -> None: - """Test case for list_role_permissions_roles_role_id_permissions_get - - List Role Permissions - """ - pass - - def test_list_roles_roles_get(self) -> None: - """Test case for list_roles_roles_get - - List Roles - """ - pass - - def test_remove_permission_from_role_roles_role_id_permissions_permission_id_delete(self) -> None: - """Test case for remove_permission_from_role_roles_role_id_permissions_permission_id_delete - - Remove Permission From Role - """ - pass - - def test_rollback_policy_policies_policy_key_rollback_version_post(self) -> None: - """Test case for rollback_policy_policies_policy_key_rollback_version_post - - Rollback Policy - """ - pass - - def test_simulate_policy_simulate_policy_post(self) -> None: - """Test case for simulate_policy_simulate_policy_post - - Simulate Policy - """ - pass - - def test_update_permission_permissions_permission_id_put(self) -> None: - """Test case for update_permission_permissions_permission_id_put - - Update Permission - """ - pass - - def test_update_policy_policies_policy_key_put(self) -> None: - """Test case for update_policy_policies_policy_key_put - - Update Policy - """ - pass - - def test_update_role_roles_role_id_put(self) -> None: - """Test case for update_role_roles_role_id_put - - Update Role - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_meta_body.py b/sdks/python/test/test_meta_body.py deleted file mode 100644 index 2015c94..0000000 --- a/sdks/python/test/test_meta_body.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.meta_body import MetaBody - -class TestMetaBody(unittest.TestCase): - """MetaBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MetaBody: - """Test MetaBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MetaBody` - """ - model = MetaBody() - if include_optional: - return MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { } - ) - else: - return MetaBody( - ) - """ - - def testMetaBody(self): - """Test MetaBody""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_permission_create.py b/sdks/python/test/test_permission_create.py deleted file mode 100644 index c25e7d2..0000000 --- a/sdks/python/test/test_permission_create.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.permission_create import PermissionCreate - -class TestPermissionCreate(unittest.TestCase): - """PermissionCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionCreate: - """Test PermissionCreate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PermissionCreate` - """ - model = PermissionCreate() - if include_optional: - return PermissionCreate( - action = '' - ) - else: - return PermissionCreate( - action = '', - ) - """ - - def testPermissionCreate(self): - """Test PermissionCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_permission_out.py b/sdks/python/test/test_permission_out.py deleted file mode 100644 index 3b3faec..0000000 --- a/sdks/python/test/test_permission_out.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.permission_out import PermissionOut - -class TestPermissionOut(unittest.TestCase): - """PermissionOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionOut: - """Test PermissionOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PermissionOut` - """ - model = PermissionOut() - if include_optional: - return PermissionOut( - id = 56, - action = '' - ) - else: - return PermissionOut( - id = 56, - action = '', - ) - """ - - def testPermissionOut(self): - """Test PermissionOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_permission_update.py b/sdks/python/test/test_permission_update.py deleted file mode 100644 index ce78dd7..0000000 --- a/sdks/python/test/test_permission_update.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.permission_update import PermissionUpdate - -class TestPermissionUpdate(unittest.TestCase): - """PermissionUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PermissionUpdate: - """Test PermissionUpdate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PermissionUpdate` - """ - model = PermissionUpdate() - if include_optional: - return PermissionUpdate( - action = '' - ) - else: - return PermissionUpdate( - action = '', - ) - """ - - def testPermissionUpdate(self): - """Test PermissionUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_playground_api.py b/sdks/python/test/test_playground_api.py deleted file mode 100644 index 8df5557..0000000 --- a/sdks/python/test/test_playground_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.api.playground_api import PlaygroundApi - - -class TestPlaygroundApi(unittest.TestCase): - """PlaygroundApi unit test stubs""" - - def setUp(self) -> None: - self.api = PlaygroundApi() - - def tearDown(self) -> None: - pass - - def test_evaluate_playground_evaluate_post(self) -> None: - """Test case for evaluate_playground_evaluate_post - - Evaluate - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_playground_evaluate_request.py b/sdks/python/test/test_playground_evaluate_request.py deleted file mode 100644 index 78f3c3b..0000000 --- a/sdks/python/test/test_playground_evaluate_request.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.playground_evaluate_request import PlaygroundEvaluateRequest - -class TestPlaygroundEvaluateRequest(unittest.TestCase): - """PlaygroundEvaluateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlaygroundEvaluateRequest: - """Test PlaygroundEvaluateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlaygroundEvaluateRequest` - """ - model = PlaygroundEvaluateRequest() - if include_optional: - return PlaygroundEvaluateRequest( - policies = [ - keynetra_client.models.playground_policy.PlaygroundPolicy( - action = '', - effect = 'allow', - priority = 56, - policy_id = '', - conditions = { }, ) - ], - input = keynetra_client.models.playground_input.PlaygroundInput( - user = { }, - resource = { }, - action = '', - context = { }, ) - ) - else: - return PlaygroundEvaluateRequest( - policies = [ - keynetra_client.models.playground_policy.PlaygroundPolicy( - action = '', - effect = 'allow', - priority = 56, - policy_id = '', - conditions = { }, ) - ], - input = keynetra_client.models.playground_input.PlaygroundInput( - user = { }, - resource = { }, - action = '', - context = { }, ), - ) - """ - - def testPlaygroundEvaluateRequest(self): - """Test PlaygroundEvaluateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_playground_input.py b/sdks/python/test/test_playground_input.py deleted file mode 100644 index 5b35648..0000000 --- a/sdks/python/test/test_playground_input.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.playground_input import PlaygroundInput - -class TestPlaygroundInput(unittest.TestCase): - """PlaygroundInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlaygroundInput: - """Test PlaygroundInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlaygroundInput` - """ - model = PlaygroundInput() - if include_optional: - return PlaygroundInput( - user = { }, - resource = { }, - action = '', - context = { } - ) - else: - return PlaygroundInput( - ) - """ - - def testPlaygroundInput(self): - """Test PlaygroundInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_playground_policy.py b/sdks/python/test/test_playground_policy.py deleted file mode 100644 index e3926bd..0000000 --- a/sdks/python/test/test_playground_policy.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.playground_policy import PlaygroundPolicy - -class TestPlaygroundPolicy(unittest.TestCase): - """PlaygroundPolicy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlaygroundPolicy: - """Test PlaygroundPolicy - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlaygroundPolicy` - """ - model = PlaygroundPolicy() - if include_optional: - return PlaygroundPolicy( - action = '', - effect = 'allow', - priority = 56, - policy_id = '', - conditions = { } - ) - else: - return PlaygroundPolicy( - action = '', - ) - """ - - def testPlaygroundPolicy(self): - """Test PlaygroundPolicy""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_policy_create.py b/sdks/python/test/test_policy_create.py deleted file mode 100644 index c8da5d4..0000000 --- a/sdks/python/test/test_policy_create.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.policy_create import PolicyCreate - -class TestPolicyCreate(unittest.TestCase): - """PolicyCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PolicyCreate: - """Test PolicyCreate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PolicyCreate` - """ - model = PolicyCreate() - if include_optional: - return PolicyCreate( - action = '', - effect = 'allow', - priority = 56, - state = 'active', - conditions = { } - ) - else: - return PolicyCreate( - action = '', - ) - """ - - def testPolicyCreate(self): - """Test PolicyCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_policy_out.py b/sdks/python/test/test_policy_out.py deleted file mode 100644 index b21f468..0000000 --- a/sdks/python/test/test_policy_out.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.policy_out import PolicyOut - -class TestPolicyOut(unittest.TestCase): - """PolicyOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PolicyOut: - """Test PolicyOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PolicyOut` - """ - model = PolicyOut() - if include_optional: - return PolicyOut( - id = 56, - action = '', - effect = '', - priority = 56, - state = 'active', - conditions = { } - ) - else: - return PolicyOut( - id = 56, - action = '', - effect = '', - priority = 56, - conditions = { }, - ) - """ - - def testPolicyOut(self): - """Test PolicyOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_policy_simulation_input.py b/sdks/python/test/test_policy_simulation_input.py deleted file mode 100644 index 1f4c003..0000000 --- a/sdks/python/test/test_policy_simulation_input.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.policy_simulation_input import PolicySimulationInput - -class TestPolicySimulationInput(unittest.TestCase): - """PolicySimulationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PolicySimulationInput: - """Test PolicySimulationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PolicySimulationInput` - """ - model = PolicySimulationInput() - if include_optional: - return PolicySimulationInput( - policy_change = '', - relationship_change = { }, - role_change = { } - ) - else: - return PolicySimulationInput( - ) - """ - - def testPolicySimulationInput(self): - """Test PolicySimulationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_policy_simulation_request.py b/sdks/python/test/test_policy_simulation_request.py deleted file mode 100644 index 20b2844..0000000 --- a/sdks/python/test/test_policy_simulation_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.policy_simulation_request import PolicySimulationRequest - -class TestPolicySimulationRequest(unittest.TestCase): - """PolicySimulationRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PolicySimulationRequest: - """Test PolicySimulationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PolicySimulationRequest` - """ - model = PolicySimulationRequest() - if include_optional: - return PolicySimulationRequest( - simulate = keynetra_client.models.policy_simulation_input.PolicySimulationInput( - policy_change = '', - relationship_change = { }, - role_change = { }, ), - request = { } - ) - else: - return PolicySimulationRequest( - ) - """ - - def testPolicySimulationRequest(self): - """Test PolicySimulationRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_policy_simulation_response.py b/sdks/python/test/test_policy_simulation_response.py deleted file mode 100644 index c1a53c8..0000000 --- a/sdks/python/test/test_policy_simulation_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.policy_simulation_response import PolicySimulationResponse - -class TestPolicySimulationResponse(unittest.TestCase): - """PolicySimulationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PolicySimulationResponse: - """Test PolicySimulationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PolicySimulationResponse` - """ - model = PolicySimulationResponse() - if include_optional: - return PolicySimulationResponse( - decision_before = { }, - decision_after = { } - ) - else: - return PolicySimulationResponse( - decision_before = { }, - decision_after = { }, - ) - """ - - def testPolicySimulationResponse(self): - """Test PolicySimulationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_relationship_create.py b/sdks/python/test/test_relationship_create.py deleted file mode 100644 index e8f4b7d..0000000 --- a/sdks/python/test/test_relationship_create.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.relationship_create import RelationshipCreate - -class TestRelationshipCreate(unittest.TestCase): - """RelationshipCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RelationshipCreate: - """Test RelationshipCreate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RelationshipCreate` - """ - model = RelationshipCreate() - if include_optional: - return RelationshipCreate( - subject_type = '', - subject_id = '', - relation = '', - object_type = '', - object_id = '' - ) - else: - return RelationshipCreate( - subject_type = '', - subject_id = '', - relation = '', - object_type = '', - object_id = '', - ) - """ - - def testRelationshipCreate(self): - """Test RelationshipCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_relationship_out.py b/sdks/python/test/test_relationship_out.py deleted file mode 100644 index 1111c50..0000000 --- a/sdks/python/test/test_relationship_out.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.relationship_out import RelationshipOut - -class TestRelationshipOut(unittest.TestCase): - """RelationshipOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RelationshipOut: - """Test RelationshipOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RelationshipOut` - """ - model = RelationshipOut() - if include_optional: - return RelationshipOut( - subject_type = '', - subject_id = '', - relation = '', - object_type = '', - object_id = '', - id = 56 - ) - else: - return RelationshipOut( - subject_type = '', - subject_id = '', - relation = '', - object_type = '', - object_id = '', - id = 56, - ) - """ - - def testRelationshipOut(self): - """Test RelationshipOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_role_create.py b/sdks/python/test/test_role_create.py deleted file mode 100644 index 987e9d0..0000000 --- a/sdks/python/test/test_role_create.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.role_create import RoleCreate - -class TestRoleCreate(unittest.TestCase): - """RoleCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RoleCreate: - """Test RoleCreate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RoleCreate` - """ - model = RoleCreate() - if include_optional: - return RoleCreate( - name = '' - ) - else: - return RoleCreate( - name = '', - ) - """ - - def testRoleCreate(self): - """Test RoleCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_role_out.py b/sdks/python/test/test_role_out.py deleted file mode 100644 index 0b226db..0000000 --- a/sdks/python/test/test_role_out.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.role_out import RoleOut - -class TestRoleOut(unittest.TestCase): - """RoleOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RoleOut: - """Test RoleOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RoleOut` - """ - model = RoleOut() - if include_optional: - return RoleOut( - id = 56, - name = '' - ) - else: - return RoleOut( - id = 56, - name = '', - ) - """ - - def testRoleOut(self): - """Test RoleOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_role_update.py b/sdks/python/test/test_role_update.py deleted file mode 100644 index 71e7551..0000000 --- a/sdks/python/test/test_role_update.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.role_update import RoleUpdate - -class TestRoleUpdate(unittest.TestCase): - """RoleUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RoleUpdate: - """Test RoleUpdate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RoleUpdate` - """ - model = RoleUpdate() - if include_optional: - return RoleUpdate( - name = '' - ) - else: - return RoleUpdate( - name = '', - ) - """ - - def testRoleUpdate(self): - """Test RoleUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_simulation_response.py b/sdks/python/test/test_simulation_response.py deleted file mode 100644 index cbf8968..0000000 --- a/sdks/python/test/test_simulation_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.simulation_response import SimulationResponse - -class TestSimulationResponse(unittest.TestCase): - """SimulationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimulationResponse: - """Test SimulationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SimulationResponse` - """ - model = SimulationResponse() - if include_optional: - return SimulationResponse( - decision = '', - matched_policies = [ - '' - ], - reason = '', - policy_id = '', - explain_trace = [ - { } - ], - failed_conditions = [ - '' - ], - revision = 56 - ) - else: - return SimulationResponse( - decision = '', - matched_policies = [ - '' - ], - ) - """ - - def testSimulationResponse(self): - """Test SimulationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_access_decision_response.py b/sdks/python/test/test_success_response_access_decision_response.py deleted file mode 100644 index 8150dd1..0000000 --- a/sdks/python/test/test_success_response_access_decision_response.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_access_decision_response import SuccessResponseAccessDecisionResponse - -class TestSuccessResponseAccessDecisionResponse(unittest.TestCase): - """SuccessResponseAccessDecisionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseAccessDecisionResponse: - """Test SuccessResponseAccessDecisionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseAccessDecisionResponse` - """ - model = SuccessResponseAccessDecisionResponse() - if include_optional: - return SuccessResponseAccessDecisionResponse( - data = keynetra_client.models.access_decision_response.AccessDecisionResponse( - allowed = True, - decision = '', - matched_policies = [ - '' - ], - reason = '', - policy_id = '', - explain_trace = [ - { } - ], - revision = 56, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseAccessDecisionResponse( - data = keynetra_client.models.access_decision_response.AccessDecisionResponse( - allowed = True, - decision = '', - matched_policies = [ - '' - ], - reason = '', - policy_id = '', - explain_trace = [ - { } - ], - revision = 56, ), - ) - """ - - def testSuccessResponseAccessDecisionResponse(self): - """Test SuccessResponseAccessDecisionResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_acl_out.py b/sdks/python/test/test_success_response_acl_out.py deleted file mode 100644 index 6fd1b87..0000000 --- a/sdks/python/test/test_success_response_acl_out.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_acl_out import SuccessResponseACLOut - -class TestSuccessResponseACLOut(unittest.TestCase): - """SuccessResponseACLOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseACLOut: - """Test SuccessResponseACLOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseACLOut` - """ - model = SuccessResponseACLOut() - if include_optional: - return SuccessResponseACLOut( - data = keynetra_client.models.acl_out.ACLOut( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - id = 56, - tenant_id = 56, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseACLOut( - data = keynetra_client.models.acl_out.ACLOut( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - id = 56, - tenant_id = 56, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - ) - """ - - def testSuccessResponseACLOut(self): - """Test SuccessResponseACLOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_admin_login_response.py b/sdks/python/test/test_success_response_admin_login_response.py deleted file mode 100644 index 9a9f695..0000000 --- a/sdks/python/test/test_success_response_admin_login_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_admin_login_response import SuccessResponseAdminLoginResponse - -class TestSuccessResponseAdminLoginResponse(unittest.TestCase): - """SuccessResponseAdminLoginResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseAdminLoginResponse: - """Test SuccessResponseAdminLoginResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseAdminLoginResponse` - """ - model = SuccessResponseAdminLoginResponse() - if include_optional: - return SuccessResponseAdminLoginResponse( - data = keynetra_client.models.admin_login_response.AdminLoginResponse( - access_token = '', - token_type = 'bearer', - expires_in = 56, - role = 'admin', - tenant_key = '', ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseAdminLoginResponse( - data = keynetra_client.models.admin_login_response.AdminLoginResponse( - access_token = '', - token_type = 'bearer', - expires_in = 56, - role = 'admin', - tenant_key = '', ), - ) - """ - - def testSuccessResponseAdminLoginResponse(self): - """Test SuccessResponseAdminLoginResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_auth_model_out.py b/sdks/python/test/test_success_response_auth_model_out.py deleted file mode 100644 index 527bfb8..0000000 --- a/sdks/python/test/test_success_response_auth_model_out.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_auth_model_out import SuccessResponseAuthModelOut - -class TestSuccessResponseAuthModelOut(unittest.TestCase): - """SuccessResponseAuthModelOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseAuthModelOut: - """Test SuccessResponseAuthModelOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseAuthModelOut` - """ - model = SuccessResponseAuthModelOut() - if include_optional: - return SuccessResponseAuthModelOut( - data = keynetra_client.models.auth_model_out.AuthModelOut( - id = 56, - tenant_id = 56, - schema = '', - parsed = { }, - compiled = { }, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseAuthModelOut( - data = keynetra_client.models.auth_model_out.AuthModelOut( - id = 56, - tenant_id = 56, - schema = '', - parsed = { }, - compiled = { }, ), - ) - """ - - def testSuccessResponseAuthModelOut(self): - """Test SuccessResponseAuthModelOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_batch_access_response.py b/sdks/python/test/test_success_response_batch_access_response.py deleted file mode 100644 index 99ab9e7..0000000 --- a/sdks/python/test/test_success_response_batch_access_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_batch_access_response import SuccessResponseBatchAccessResponse - -class TestSuccessResponseBatchAccessResponse(unittest.TestCase): - """SuccessResponseBatchAccessResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseBatchAccessResponse: - """Test SuccessResponseBatchAccessResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseBatchAccessResponse` - """ - model = SuccessResponseBatchAccessResponse() - if include_optional: - return SuccessResponseBatchAccessResponse( - data = keynetra_client.models.batch_access_response.BatchAccessResponse( - results = [ - keynetra_client.models.batch_access_result.BatchAccessResult( - action = '', - allowed = True, - revision = 56, ) - ], - revision = 56, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseBatchAccessResponse( - data = keynetra_client.models.batch_access_response.BatchAccessResponse( - results = [ - keynetra_client.models.batch_access_result.BatchAccessResult( - action = '', - allowed = True, - revision = 56, ) - ], - revision = 56, ), - ) - """ - - def testSuccessResponseBatchAccessResponse(self): - """Test SuccessResponseBatchAccessResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_any.py b/sdks/python/test/test_success_response_dict_str_any.py deleted file mode 100644 index 78249f4..0000000 --- a/sdks/python/test/test_success_response_dict_str_any.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_dict_str_any import SuccessResponseDictStrAny - -class TestSuccessResponseDictStrAny(unittest.TestCase): - """SuccessResponseDictStrAny unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseDictStrAny: - """Test SuccessResponseDictStrAny - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseDictStrAny` - """ - model = SuccessResponseDictStrAny() - if include_optional: - return SuccessResponseDictStrAny( - data = { }, - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseDictStrAny( - data = { }, - ) - """ - - def testSuccessResponseDictStrAny(self): - """Test SuccessResponseDictStrAny""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_int.py b/sdks/python/test/test_success_response_dict_str_int.py deleted file mode 100644 index 8aaa279..0000000 --- a/sdks/python/test/test_success_response_dict_str_int.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_dict_str_int import SuccessResponseDictStrInt - -class TestSuccessResponseDictStrInt(unittest.TestCase): - """SuccessResponseDictStrInt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseDictStrInt: - """Test SuccessResponseDictStrInt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseDictStrInt` - """ - model = SuccessResponseDictStrInt() - if include_optional: - return SuccessResponseDictStrInt( - data = { - 'key' : 56 - }, - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseDictStrInt( - data = { - 'key' : 56 - }, - ) - """ - - def testSuccessResponseDictStrInt(self): - """Test SuccessResponseDictStrInt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_object.py b/sdks/python/test/test_success_response_dict_str_object.py deleted file mode 100644 index f99f78d..0000000 --- a/sdks/python/test/test_success_response_dict_str_object.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_dict_str_object import SuccessResponseDictStrObject - -class TestSuccessResponseDictStrObject(unittest.TestCase): - """SuccessResponseDictStrObject unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseDictStrObject: - """Test SuccessResponseDictStrObject - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseDictStrObject` - """ - model = SuccessResponseDictStrObject() - if include_optional: - return SuccessResponseDictStrObject( - data = { }, - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseDictStrObject( - data = { }, - ) - """ - - def testSuccessResponseDictStrObject(self): - """Test SuccessResponseDictStrObject""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_str.py b/sdks/python/test/test_success_response_dict_str_str.py deleted file mode 100644 index fda7bf4..0000000 --- a/sdks/python/test/test_success_response_dict_str_str.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_dict_str_str import SuccessResponseDictStrStr - -class TestSuccessResponseDictStrStr(unittest.TestCase): - """SuccessResponseDictStrStr unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseDictStrStr: - """Test SuccessResponseDictStrStr - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseDictStrStr` - """ - model = SuccessResponseDictStrStr() - if include_optional: - return SuccessResponseDictStrStr( - data = { - 'key' : '' - }, - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseDictStrStr( - data = { - 'key' : '' - }, - ) - """ - - def testSuccessResponseDictStrStr(self): - """Test SuccessResponseDictStrStr""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_dict_str_union_int_str.py b/sdks/python/test/test_success_response_dict_str_union_int_str.py deleted file mode 100644 index 78ee68c..0000000 --- a/sdks/python/test/test_success_response_dict_str_union_int_str.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_dict_str_union_int_str import SuccessResponseDictStrUnionIntStr - -class TestSuccessResponseDictStrUnionIntStr(unittest.TestCase): - """SuccessResponseDictStrUnionIntStr unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseDictStrUnionIntStr: - """Test SuccessResponseDictStrUnionIntStr - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseDictStrUnionIntStr` - """ - model = SuccessResponseDictStrUnionIntStr() - if include_optional: - return SuccessResponseDictStrUnionIntStr( - data = { - 'key' : null - }, - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseDictStrUnionIntStr( - data = { - 'key' : null - }, - ) - """ - - def testSuccessResponseDictStrUnionIntStr(self): - """Test SuccessResponseDictStrUnionIntStr""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_impact_analysis_response.py b/sdks/python/test/test_success_response_impact_analysis_response.py deleted file mode 100644 index 5e5e67d..0000000 --- a/sdks/python/test/test_success_response_impact_analysis_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_impact_analysis_response import SuccessResponseImpactAnalysisResponse - -class TestSuccessResponseImpactAnalysisResponse(unittest.TestCase): - """SuccessResponseImpactAnalysisResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseImpactAnalysisResponse: - """Test SuccessResponseImpactAnalysisResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseImpactAnalysisResponse` - """ - model = SuccessResponseImpactAnalysisResponse() - if include_optional: - return SuccessResponseImpactAnalysisResponse( - data = keynetra_client.models.impact_analysis_response.ImpactAnalysisResponse( - gained_access = [ - 56 - ], - lost_access = [ - 56 - ], ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseImpactAnalysisResponse( - data = keynetra_client.models.impact_analysis_response.ImpactAnalysisResponse( - gained_access = [ - 56 - ], - lost_access = [ - 56 - ], ), - ) - """ - - def testSuccessResponseImpactAnalysisResponse(self): - """Test SuccessResponseImpactAnalysisResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_list_acl_out.py b/sdks/python/test/test_success_response_list_acl_out.py deleted file mode 100644 index 0d5e49e..0000000 --- a/sdks/python/test/test_success_response_list_acl_out.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_list_acl_out import SuccessResponseListACLOut - -class TestSuccessResponseListACLOut(unittest.TestCase): - """SuccessResponseListACLOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseListACLOut: - """Test SuccessResponseListACLOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseListACLOut` - """ - model = SuccessResponseListACLOut() - if include_optional: - return SuccessResponseListACLOut( - data = [ - keynetra_client.models.acl_out.ACLOut( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - id = 56, - tenant_id = 56, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseListACLOut( - data = [ - keynetra_client.models.acl_out.ACLOut( - subject_type = '', - subject_id = '', - resource_type = '', - resource_id = '', - action = '', - effect = '', - id = 56, - tenant_id = 56, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - ) - """ - - def testSuccessResponseListACLOut(self): - """Test SuccessResponseListACLOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_list_audit_record_out.py b/sdks/python/test/test_success_response_list_audit_record_out.py deleted file mode 100644 index 6f33bd5..0000000 --- a/sdks/python/test/test_success_response_list_audit_record_out.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_list_audit_record_out import SuccessResponseListAuditRecordOut - -class TestSuccessResponseListAuditRecordOut(unittest.TestCase): - """SuccessResponseListAuditRecordOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseListAuditRecordOut: - """Test SuccessResponseListAuditRecordOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseListAuditRecordOut` - """ - model = SuccessResponseListAuditRecordOut() - if include_optional: - return SuccessResponseListAuditRecordOut( - data = [ - keynetra_client.models.audit_record_out.AuditRecordOut( - id = 56, - principal_type = '', - principal_id = '', - correlation_id = '', - user = { }, - action = '', - resource = { }, - decision = '', - matched_policies = [ - null - ], - reason = '', - evaluated_rules = [ - null - ], - failed_conditions = [ - null - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseListAuditRecordOut( - data = [ - keynetra_client.models.audit_record_out.AuditRecordOut( - id = 56, - principal_type = '', - principal_id = '', - correlation_id = '', - user = { }, - action = '', - resource = { }, - decision = '', - matched_policies = [ - null - ], - reason = '', - evaluated_rules = [ - null - ], - failed_conditions = [ - null - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - ) - """ - - def testSuccessResponseListAuditRecordOut(self): - """Test SuccessResponseListAuditRecordOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_list_dict_str_str.py b/sdks/python/test/test_success_response_list_dict_str_str.py deleted file mode 100644 index f401e54..0000000 --- a/sdks/python/test/test_success_response_list_dict_str_str.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_list_dict_str_str import SuccessResponseListDictStrStr - -class TestSuccessResponseListDictStrStr(unittest.TestCase): - """SuccessResponseListDictStrStr unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseListDictStrStr: - """Test SuccessResponseListDictStrStr - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseListDictStrStr` - """ - model = SuccessResponseListDictStrStr() - if include_optional: - return SuccessResponseListDictStrStr( - data = [ - { - 'key' : '' - } - ], - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseListDictStrStr( - data = [ - { - 'key' : '' - } - ], - ) - """ - - def testSuccessResponseListDictStrStr(self): - """Test SuccessResponseListDictStrStr""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_list_permission_out.py b/sdks/python/test/test_success_response_list_permission_out.py deleted file mode 100644 index 29ae7ec..0000000 --- a/sdks/python/test/test_success_response_list_permission_out.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_list_permission_out import SuccessResponseListPermissionOut - -class TestSuccessResponseListPermissionOut(unittest.TestCase): - """SuccessResponseListPermissionOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseListPermissionOut: - """Test SuccessResponseListPermissionOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseListPermissionOut` - """ - model = SuccessResponseListPermissionOut() - if include_optional: - return SuccessResponseListPermissionOut( - data = [ - keynetra_client.models.permission_out.PermissionOut( - id = 56, - action = '', ) - ], - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseListPermissionOut( - data = [ - keynetra_client.models.permission_out.PermissionOut( - id = 56, - action = '', ) - ], - ) - """ - - def testSuccessResponseListPermissionOut(self): - """Test SuccessResponseListPermissionOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_list_policy_out.py b/sdks/python/test/test_success_response_list_policy_out.py deleted file mode 100644 index ed43b00..0000000 --- a/sdks/python/test/test_success_response_list_policy_out.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_list_policy_out import SuccessResponseListPolicyOut - -class TestSuccessResponseListPolicyOut(unittest.TestCase): - """SuccessResponseListPolicyOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseListPolicyOut: - """Test SuccessResponseListPolicyOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseListPolicyOut` - """ - model = SuccessResponseListPolicyOut() - if include_optional: - return SuccessResponseListPolicyOut( - data = [ - keynetra_client.models.policy_out.PolicyOut( - id = 56, - action = '', - effect = '', - priority = 56, - state = 'active', - conditions = { }, ) - ], - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseListPolicyOut( - data = [ - keynetra_client.models.policy_out.PolicyOut( - id = 56, - action = '', - effect = '', - priority = 56, - state = 'active', - conditions = { }, ) - ], - ) - """ - - def testSuccessResponseListPolicyOut(self): - """Test SuccessResponseListPolicyOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_list_role_out.py b/sdks/python/test/test_success_response_list_role_out.py deleted file mode 100644 index 14f4ca2..0000000 --- a/sdks/python/test/test_success_response_list_role_out.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_list_role_out import SuccessResponseListRoleOut - -class TestSuccessResponseListRoleOut(unittest.TestCase): - """SuccessResponseListRoleOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseListRoleOut: - """Test SuccessResponseListRoleOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseListRoleOut` - """ - model = SuccessResponseListRoleOut() - if include_optional: - return SuccessResponseListRoleOut( - data = [ - keynetra_client.models.role_out.RoleOut( - id = 56, - name = '', ) - ], - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseListRoleOut( - data = [ - keynetra_client.models.role_out.RoleOut( - id = 56, - name = '', ) - ], - ) - """ - - def testSuccessResponseListRoleOut(self): - """Test SuccessResponseListRoleOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_permission_out.py b/sdks/python/test/test_success_response_permission_out.py deleted file mode 100644 index 14110d3..0000000 --- a/sdks/python/test/test_success_response_permission_out.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_permission_out import SuccessResponsePermissionOut - -class TestSuccessResponsePermissionOut(unittest.TestCase): - """SuccessResponsePermissionOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponsePermissionOut: - """Test SuccessResponsePermissionOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponsePermissionOut` - """ - model = SuccessResponsePermissionOut() - if include_optional: - return SuccessResponsePermissionOut( - data = keynetra_client.models.permission_out.PermissionOut( - id = 56, - action = '', ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponsePermissionOut( - data = keynetra_client.models.permission_out.PermissionOut( - id = 56, - action = '', ), - ) - """ - - def testSuccessResponsePermissionOut(self): - """Test SuccessResponsePermissionOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_policy_out.py b/sdks/python/test/test_success_response_policy_out.py deleted file mode 100644 index 2e02358..0000000 --- a/sdks/python/test/test_success_response_policy_out.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_policy_out import SuccessResponsePolicyOut - -class TestSuccessResponsePolicyOut(unittest.TestCase): - """SuccessResponsePolicyOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponsePolicyOut: - """Test SuccessResponsePolicyOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponsePolicyOut` - """ - model = SuccessResponsePolicyOut() - if include_optional: - return SuccessResponsePolicyOut( - data = keynetra_client.models.policy_out.PolicyOut( - id = 56, - action = '', - effect = '', - priority = 56, - state = 'active', - conditions = { }, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponsePolicyOut( - data = keynetra_client.models.policy_out.PolicyOut( - id = 56, - action = '', - effect = '', - priority = 56, - state = 'active', - conditions = { }, ), - ) - """ - - def testSuccessResponsePolicyOut(self): - """Test SuccessResponsePolicyOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_policy_simulation_response.py b/sdks/python/test/test_success_response_policy_simulation_response.py deleted file mode 100644 index 2e53b36..0000000 --- a/sdks/python/test/test_success_response_policy_simulation_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_policy_simulation_response import SuccessResponsePolicySimulationResponse - -class TestSuccessResponsePolicySimulationResponse(unittest.TestCase): - """SuccessResponsePolicySimulationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponsePolicySimulationResponse: - """Test SuccessResponsePolicySimulationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponsePolicySimulationResponse` - """ - model = SuccessResponsePolicySimulationResponse() - if include_optional: - return SuccessResponsePolicySimulationResponse( - data = keynetra_client.models.policy_simulation_response.PolicySimulationResponse( - decision_before = { }, - decision_after = { }, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponsePolicySimulationResponse( - data = keynetra_client.models.policy_simulation_response.PolicySimulationResponse( - decision_before = { }, - decision_after = { }, ), - ) - """ - - def testSuccessResponsePolicySimulationResponse(self): - """Test SuccessResponsePolicySimulationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_relationship_out.py b/sdks/python/test/test_success_response_relationship_out.py deleted file mode 100644 index fc84dfe..0000000 --- a/sdks/python/test/test_success_response_relationship_out.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_relationship_out import SuccessResponseRelationshipOut - -class TestSuccessResponseRelationshipOut(unittest.TestCase): - """SuccessResponseRelationshipOut unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseRelationshipOut: - """Test SuccessResponseRelationshipOut - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseRelationshipOut` - """ - model = SuccessResponseRelationshipOut() - if include_optional: - return SuccessResponseRelationshipOut( - data = keynetra_client.models.relationship_out.RelationshipOut( - subject_type = '', - subject_id = '', - relation = '', - object_type = '', - object_id = '', - id = 56, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseRelationshipOut( - data = keynetra_client.models.relationship_out.RelationshipOut( - subject_type = '', - subject_id = '', - relation = '', - object_type = '', - object_id = '', - id = 56, ), - ) - """ - - def testSuccessResponseRelationshipOut(self): - """Test SuccessResponseRelationshipOut""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_success_response_simulation_response.py b/sdks/python/test/test_success_response_simulation_response.py deleted file mode 100644 index ca5d4ed..0000000 --- a/sdks/python/test/test_success_response_simulation_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.success_response_simulation_response import SuccessResponseSimulationResponse - -class TestSuccessResponseSimulationResponse(unittest.TestCase): - """SuccessResponseSimulationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuccessResponseSimulationResponse: - """Test SuccessResponseSimulationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuccessResponseSimulationResponse` - """ - model = SuccessResponseSimulationResponse() - if include_optional: - return SuccessResponseSimulationResponse( - data = keynetra_client.models.simulation_response.SimulationResponse( - decision = '', - matched_policies = [ - '' - ], - reason = '', - policy_id = '', - explain_trace = [ - { } - ], - failed_conditions = [ - '' - ], - revision = 56, ), - meta = keynetra_client.models.meta_body.MetaBody( - request_id = '', - limit = 56, - next_cursor = '', - extra = { }, ), - error = None - ) - else: - return SuccessResponseSimulationResponse( - data = keynetra_client.models.simulation_response.SimulationResponse( - decision = '', - matched_policies = [ - '' - ], - reason = '', - policy_id = '', - explain_trace = [ - { } - ], - failed_conditions = [ - '' - ], - revision = 56, ), - ) - """ - - def testSuccessResponseSimulationResponse(self): - """Test SuccessResponseSimulationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/test/test_validation_error.py b/sdks/python/test/test_validation_error.py deleted file mode 100644 index f5c62e0..0000000 --- a/sdks/python/test/test_validation_error.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - KeyNetra - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from keynetra_client.models.validation_error import ValidationError - -class TestValidationError(unittest.TestCase): - """ValidationError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidationError: - """Test ValidationError - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ValidationError` - """ - model = ValidationError() - if include_optional: - return ValidationError( - loc = [ - null - ], - msg = '', - type = '', - input = None, - ctx = keynetra_client.models.context.Context() - ) - else: - return ValidationError( - loc = [ - null - ], - msg = '', - type = '', - ) - """ - - def testValidationError(self): - """Test ValidationError""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini deleted file mode 100644 index a3a103e..0000000 --- a/sdks/python/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=keynetra_client diff --git a/sdks/ruby/.gitignore b/sdks/ruby/.gitignore deleted file mode 100644 index 05a17cb..0000000 --- a/sdks/ruby/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by: https://openapi-generator.tech -# - -*.gem -*.rbc -/.config -/coverage/ -/InstalledFiles -/pkg/ -/spec/reports/ -/spec/examples.txt -/test/tmp/ -/test/version_tmp/ -/tmp/ - -## Specific to RubyMotion: -.dat* -.repl_history -build/ - -## Documentation cache and generated files: -/.yardoc/ -/_yardoc/ -/doc/ -/rdoc/ - -## Environment normalization: -/.bundle/ -/vendor/bundle -/lib/bundler/man/ - -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset - -# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: -.rvmrc diff --git a/sdks/ruby/.gitlab-ci.yml b/sdks/ruby/.gitlab-ci.yml deleted file mode 100644 index 3a253c4..0000000 --- a/sdks/ruby/.gitlab-ci.yml +++ /dev/null @@ -1,26 +0,0 @@ -.ruby: &ruby - variables: - LANG: "C.UTF-8" - before_script: - - ruby -v - - bundle config set --local deployment true - - bundle install -j $(nproc) - parallel: - matrix: - - RUBY_VERSION: ['2.7', '3.0', '3.1'] - image: "ruby:$RUBY_VERSION" - cache: - paths: - - vendor/ruby - key: 'ruby-$RUBY_VERSION' - -gem: - extends: .ruby - script: - - bundle exec rspec - - bundle exec rake build - - bundle exec rake install - artifacts: - paths: - - pkg/*.gem - diff --git a/sdks/ruby/.rspec b/sdks/ruby/.rspec deleted file mode 100644 index 83e16f8..0000000 --- a/sdks/ruby/.rspec +++ /dev/null @@ -1,2 +0,0 @@ ---color ---require spec_helper diff --git a/sdks/ruby/.rubocop.yml b/sdks/ruby/.rubocop.yml deleted file mode 100644 index d32b2b1..0000000 --- a/sdks/ruby/.rubocop.yml +++ /dev/null @@ -1,148 +0,0 @@ -# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) -# Automatically generated by OpenAPI Generator (https://openapi-generator.tech) -AllCops: - TargetRubyVersion: 2.4 - # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explicitly set in this file are enabled. - DisabledByDefault: true - Exclude: - - '**/templates/**/*' - - '**/vendor/**/*' - - 'actionpack/lib/action_dispatch/journey/parser.rb' - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Align `when` with `case`. -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/ElseAlignment: - Enabled: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstArgumentIndentation: - Enabled: true - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: false - -# Method definitions after `private` or `protected` isolated calls need one -# extra level of indentation. -Layout/IndentationConsistency: - Enabled: true - EnforcedStyle: indented_internal_methods - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: false - EnforcedStyle: always - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Check quotes usage according to lint rule below. -#Style/StringLiterals: -# Enabled: true -# EnforcedStyle: single_quotes - -# Detect hard tabs, no hard tabs. -Layout/IndentationStyle: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingEmptyLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: false - -# Use quotes for string literals when they are enough. -Style/RedundantPercentQ: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Layout/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. -Lint/RequireParentheses: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true diff --git a/sdks/ruby/.travis.yml b/sdks/ruby/.travis.yml deleted file mode 100644 index 2136bcb..0000000 --- a/sdks/ruby/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.7 - - 3.0 - - 3.1 -script: - - bundle install --path vendor/bundle - - bundle exec rspec - - gem build keynetra-client.gemspec - - gem install ./keynetra-client-0.1.1.gem diff --git a/sdks/ruby/Gemfile b/sdks/ruby/Gemfile deleted file mode 100644 index c2e3127..0000000 --- a/sdks/ruby/Gemfile +++ /dev/null @@ -1,9 +0,0 @@ -source 'https://rubygems.org' - -gemspec - -group :development, :test do - gem 'rake', '~> 13.0.1' - gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' -end diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md deleted file mode 100644 index 34c45e5..0000000 --- a/sdks/ruby/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# keynetra-client - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/ruby) - -Official Ruby Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Ruby applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -gem install keynetra-client -``` - -## ๐Ÿš€ Quick Start - -```ruby -require 'keynetra-client' - -client = KeyNetra::KeyNetraClient.new( - "http://localhost:8080", - "YOUR_API_KEY" -) - -# Perform an access check -decision = client.access_api.check_access(...) -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/ruby). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-ruby](https://github.com/keynetra/keynetra-client-ruby) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-ruby/issues) -- **License**: Apache-2.0 - diff --git a/sdks/ruby/Rakefile b/sdks/ruby/Rakefile deleted file mode 100644 index c72ca30..0000000 --- a/sdks/ruby/Rakefile +++ /dev/null @@ -1,10 +0,0 @@ -require "bundler/gem_tasks" - -begin - require 'rspec/core/rake_task' - - RSpec::Core::RakeTask.new(:spec) - task default: :spec -rescue LoadError - # no rspec available -end diff --git a/sdks/ruby/docs/ACLCreate.md b/sdks/ruby/docs/ACLCreate.md deleted file mode 100644 index 3522958..0000000 --- a/sdks/ruby/docs/ACLCreate.md +++ /dev/null @@ -1,28 +0,0 @@ -# KeyNetra::ACLCreate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **subject_type** | **String** | | | -| **subject_id** | **String** | | | -| **resource_type** | **String** | | | -| **resource_id** | **String** | | | -| **action** | **String** | | | -| **effect** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::ACLCreate.new( - subject_type: null, - subject_id: null, - resource_type: null, - resource_id: null, - action: null, - effect: null -) -``` - diff --git a/sdks/ruby/docs/ACLOut.md b/sdks/ruby/docs/ACLOut.md deleted file mode 100644 index b65e9bd..0000000 --- a/sdks/ruby/docs/ACLOut.md +++ /dev/null @@ -1,34 +0,0 @@ -# KeyNetra::ACLOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **subject_type** | **String** | | | -| **subject_id** | **String** | | | -| **resource_type** | **String** | | | -| **resource_id** | **String** | | | -| **action** | **String** | | | -| **effect** | **String** | | | -| **id** | **Integer** | | | -| **tenant_id** | **Integer** | | | -| **created_at** | **Time** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::ACLOut.new( - subject_type: null, - subject_id: null, - resource_type: null, - resource_id: null, - action: null, - effect: null, - id: null, - tenant_id: null, - created_at: null -) -``` - diff --git a/sdks/ruby/docs/AccessApi.md b/sdks/ruby/docs/AccessApi.md deleted file mode 100644 index 232393c..0000000 --- a/sdks/ruby/docs/AccessApi.md +++ /dev/null @@ -1,234 +0,0 @@ -# KeyNetra::AccessApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -| [**check_access_batch_check_access_batch_post**](AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch | -| [**check_access_check_access_post**](AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access | -| [**simulate_simulate_post**](AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate | - - -## check_access_batch_check_access_batch_post - -> check_access_batch_check_access_batch_post(batch_access_request, opts) - -Check Access Batch - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::AccessApi.new -batch_access_request = KeyNetra::BatchAccessRequest.new({items: [KeyNetra::BatchAccessItem.new({action: 'action_example'})]}) # BatchAccessRequest | -opts = { - policy_set: 'policy_set_example' # String | -} - -begin - # Check Access Batch - result = api_instance.check_access_batch_check_access_batch_post(batch_access_request, opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling AccessApi->check_access_batch_check_access_batch_post: #{e}" -end -``` - -#### Using the check_access_batch_check_access_batch_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> check_access_batch_check_access_batch_post_with_http_info(batch_access_request, opts) - -```ruby -begin - # Check Access Batch - data, status_code, headers = api_instance.check_access_batch_check_access_batch_post_with_http_info(batch_access_request, opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling AccessApi->check_access_batch_check_access_batch_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **batch_access_request** | [**BatchAccessRequest**](BatchAccessRequest.md) | | | -| **policy_set** | **String** | | [optional][default to 'active'] | - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## check_access_check_access_post - -> check_access_check_access_post(access_request, opts) - -Check Access - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::AccessApi.new -access_request = KeyNetra::AccessRequest.new({action: 'action_example'}) # AccessRequest | -opts = { - policy_set: 'policy_set_example' # String | -} - -begin - # Check Access - result = api_instance.check_access_check_access_post(access_request, opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling AccessApi->check_access_check_access_post: #{e}" -end -``` - -#### Using the check_access_check_access_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> check_access_check_access_post_with_http_info(access_request, opts) - -```ruby -begin - # Check Access - data, status_code, headers = api_instance.check_access_check_access_post_with_http_info(access_request, opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling AccessApi->check_access_check_access_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **access_request** | [**AccessRequest**](AccessRequest.md) | | | -| **policy_set** | **String** | | [optional][default to 'active'] | - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## simulate_simulate_post - -> simulate_simulate_post(access_request) - -Simulate - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::AccessApi.new -access_request = KeyNetra::AccessRequest.new({action: 'action_example'}) # AccessRequest | - -begin - # Simulate - result = api_instance.simulate_simulate_post(access_request) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling AccessApi->simulate_simulate_post: #{e}" -end -``` - -#### Using the simulate_simulate_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> simulate_simulate_post_with_http_info(access_request) - -```ruby -begin - # Simulate - data, status_code, headers = api_instance.simulate_simulate_post_with_http_info(access_request) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling AccessApi->simulate_simulate_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **access_request** | [**AccessRequest**](AccessRequest.md) | | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/sdks/ruby/docs/AccessDecisionResponse.md b/sdks/ruby/docs/AccessDecisionResponse.md deleted file mode 100644 index fdf6e64..0000000 --- a/sdks/ruby/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# KeyNetra::AccessDecisionResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **allowed** | **Boolean** | | | -| **decision** | **String** | | | -| **matched_policies** | **Array<String>** | | [optional] | -| **reason** | **String** | | [optional] | -| **policy_id** | **String** | | [optional] | -| **explain_trace** | **Array<Hash<String, Object>>** | | [optional] | -| **revision** | **Integer** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AccessDecisionResponse.new( - allowed: null, - decision: null, - matched_policies: null, - reason: null, - policy_id: null, - explain_trace: null, - revision: null -) -``` - diff --git a/sdks/ruby/docs/AccessRequest.md b/sdks/ruby/docs/AccessRequest.md deleted file mode 100644 index 1446490..0000000 --- a/sdks/ruby/docs/AccessRequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# KeyNetra::AccessRequest - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **user** | **Hash<String, Object>** | | [optional] | -| **action** | **String** | | | -| **resource** | **Hash<String, Object>** | | [optional] | -| **context** | **Hash<String, Object>** | | [optional] | -| **consistency** | **String** | | [optional][default to 'eventual'] | -| **revision** | **Integer** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AccessRequest.new( - user: null, - action: null, - resource: null, - context: null, - consistency: null, - revision: null -) -``` - diff --git a/sdks/ruby/docs/AdminLoginRequest.md b/sdks/ruby/docs/AdminLoginRequest.md deleted file mode 100644 index e419487..0000000 --- a/sdks/ruby/docs/AdminLoginRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::AdminLoginRequest - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **username** | **String** | | | -| **password** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AdminLoginRequest.new( - username: null, - password: null -) -``` - diff --git a/sdks/ruby/docs/AdminLoginResponse.md b/sdks/ruby/docs/AdminLoginResponse.md deleted file mode 100644 index 069e3f1..0000000 --- a/sdks/ruby/docs/AdminLoginResponse.md +++ /dev/null @@ -1,26 +0,0 @@ -# KeyNetra::AdminLoginResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **access_token** | **String** | | | -| **token_type** | **String** | | [optional][default to 'bearer'] | -| **expires_in** | **Integer** | | | -| **role** | **String** | | [optional][default to 'admin'] | -| **tenant_key** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AdminLoginResponse.new( - access_token: null, - token_type: null, - expires_in: null, - role: null, - tenant_key: null -) -``` - diff --git a/sdks/ruby/docs/AuditRecordOut.md b/sdks/ruby/docs/AuditRecordOut.md deleted file mode 100644 index 5c97928..0000000 --- a/sdks/ruby/docs/AuditRecordOut.md +++ /dev/null @@ -1,42 +0,0 @@ -# KeyNetra::AuditRecordOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **id** | **Integer** | | | -| **principal_type** | **String** | | | -| **principal_id** | **String** | | | -| **correlation_id** | **String** | | [optional] | -| **user** | **Hash<String, Object>** | | | -| **action** | **String** | | | -| **resource** | **Hash<String, Object>** | | | -| **decision** | **String** | | | -| **matched_policies** | **Array<Object>** | | | -| **reason** | **String** | | [optional] | -| **evaluated_rules** | **Array<Object>** | | | -| **failed_conditions** | **Array<Object>** | | | -| **created_at** | **Time** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AuditRecordOut.new( - id: null, - principal_type: null, - principal_id: null, - correlation_id: null, - user: null, - action: null, - resource: null, - decision: null, - matched_policies: null, - reason: null, - evaluated_rules: null, - failed_conditions: null, - created_at: null -) -``` - diff --git a/sdks/ruby/docs/AuthApi.md b/sdks/ruby/docs/AuthApi.md deleted file mode 100644 index e15d66c..0000000 --- a/sdks/ruby/docs/AuthApi.md +++ /dev/null @@ -1,133 +0,0 @@ -# KeyNetra::AuthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -| [**admin_login_admin_login_post**](AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login | -| [**admin_login_admin_login_post_0**](AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login | - - -## admin_login_admin_login_post - -> admin_login_admin_login_post(admin_login_request) - -Admin Login - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::AuthApi.new -admin_login_request = KeyNetra::AdminLoginRequest.new({username: 'username_example', password: 'password_example'}) # AdminLoginRequest | - -begin - # Admin Login - result = api_instance.admin_login_admin_login_post(admin_login_request) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling AuthApi->admin_login_admin_login_post: #{e}" -end -``` - -#### Using the admin_login_admin_login_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> admin_login_admin_login_post_with_http_info(admin_login_request) - -```ruby -begin - # Admin Login - data, status_code, headers = api_instance.admin_login_admin_login_post_with_http_info(admin_login_request) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling AuthApi->admin_login_admin_login_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## admin_login_admin_login_post_0 - -> admin_login_admin_login_post_0(admin_login_request) - -Admin Login - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::AuthApi.new -admin_login_request = KeyNetra::AdminLoginRequest.new({username: 'username_example', password: 'password_example'}) # AdminLoginRequest | - -begin - # Admin Login - result = api_instance.admin_login_admin_login_post_0(admin_login_request) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling AuthApi->admin_login_admin_login_post_0: #{e}" -end -``` - -#### Using the admin_login_admin_login_post_0_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> admin_login_admin_login_post_0_with_http_info(admin_login_request) - -```ruby -begin - # Admin Login - data, status_code, headers = api_instance.admin_login_admin_login_post_0_with_http_info(admin_login_request) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling AuthApi->admin_login_admin_login_post_0_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/sdks/ruby/docs/AuthModelCreate.md b/sdks/ruby/docs/AuthModelCreate.md deleted file mode 100644 index c367641..0000000 --- a/sdks/ruby/docs/AuthModelCreate.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::AuthModelCreate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **schema** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AuthModelCreate.new( - schema: null -) -``` - diff --git a/sdks/ruby/docs/AuthModelOut.md b/sdks/ruby/docs/AuthModelOut.md deleted file mode 100644 index 681478f..0000000 --- a/sdks/ruby/docs/AuthModelOut.md +++ /dev/null @@ -1,26 +0,0 @@ -# KeyNetra::AuthModelOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **id** | **Integer** | | | -| **tenant_id** | **Integer** | | | -| **schema** | **String** | | | -| **parsed** | **Hash<String, Object>** | | | -| **compiled** | **Hash<String, Object>** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::AuthModelOut.new( - id: null, - tenant_id: null, - schema: null, - parsed: null, - compiled: null -) -``` - diff --git a/sdks/ruby/docs/BatchAccessItem.md b/sdks/ruby/docs/BatchAccessItem.md deleted file mode 100644 index d267b6e..0000000 --- a/sdks/ruby/docs/BatchAccessItem.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::BatchAccessItem - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | **String** | | | -| **resource** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::BatchAccessItem.new( - action: null, - resource: null -) -``` - diff --git a/sdks/ruby/docs/BatchAccessRequest.md b/sdks/ruby/docs/BatchAccessRequest.md deleted file mode 100644 index b75c429..0000000 --- a/sdks/ruby/docs/BatchAccessRequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# KeyNetra::BatchAccessRequest - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **user** | **Hash<String, Object>** | | [optional] | -| **items** | [**Array<BatchAccessItem>**](BatchAccessItem.md) | | | -| **consistency** | **String** | | [optional][default to 'eventual'] | -| **revision** | **Integer** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::BatchAccessRequest.new( - user: null, - items: null, - consistency: null, - revision: null -) -``` - diff --git a/sdks/ruby/docs/BatchAccessResponse.md b/sdks/ruby/docs/BatchAccessResponse.md deleted file mode 100644 index 0b92c94..0000000 --- a/sdks/ruby/docs/BatchAccessResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::BatchAccessResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **results** | [**Array<BatchAccessResult>**](BatchAccessResult.md) | | | -| **revision** | **Integer** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::BatchAccessResponse.new( - results: null, - revision: null -) -``` - diff --git a/sdks/ruby/docs/BatchAccessResult.md b/sdks/ruby/docs/BatchAccessResult.md deleted file mode 100644 index bdad92e..0000000 --- a/sdks/ruby/docs/BatchAccessResult.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::BatchAccessResult - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | **String** | | | -| **allowed** | **Boolean** | | | -| **revision** | **Integer** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::BatchAccessResult.new( - action: null, - allowed: null, - revision: null -) -``` - diff --git a/sdks/ruby/docs/DataValue.md b/sdks/ruby/docs/DataValue.md deleted file mode 100644 index 8db738c..0000000 --- a/sdks/ruby/docs/DataValue.md +++ /dev/null @@ -1,15 +0,0 @@ -# KeyNetra::DataValue - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::DataValue.new() -``` - diff --git a/sdks/ruby/docs/DevApi.md b/sdks/ruby/docs/DevApi.md deleted file mode 100644 index b2fa6a5..0000000 --- a/sdks/ruby/docs/DevApi.md +++ /dev/null @@ -1,132 +0,0 @@ -# KeyNetra::DevApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -| [**get_sample_data_dev_sample_data_get**](DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data | -| [**seed_sample_data_dev_sample_data_seed_post**](DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data | - - -## get_sample_data_dev_sample_data_get - -> get_sample_data_dev_sample_data_get - -Get Sample Data - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::DevApi.new - -begin - # Get Sample Data - result = api_instance.get_sample_data_dev_sample_data_get - p result -rescue KeyNetra::ApiError => e - puts "Error when calling DevApi->get_sample_data_dev_sample_data_get: #{e}" -end -``` - -#### Using the get_sample_data_dev_sample_data_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> get_sample_data_dev_sample_data_get_with_http_info - -```ruby -begin - # Get Sample Data - data, status_code, headers = api_instance.get_sample_data_dev_sample_data_get_with_http_info - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling DevApi->get_sample_data_dev_sample_data_get_with_http_info: #{e}" -end -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## seed_sample_data_dev_sample_data_seed_post - -> seed_sample_data_dev_sample_data_seed_post(opts) - -Seed Sample Data - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::DevApi.new -opts = { - reset: true # Boolean | Clear the sample dataset before reseeding it. -} - -begin - # Seed Sample Data - result = api_instance.seed_sample_data_dev_sample_data_seed_post(opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling DevApi->seed_sample_data_dev_sample_data_seed_post: #{e}" -end -``` - -#### Using the seed_sample_data_dev_sample_data_seed_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> seed_sample_data_dev_sample_data_seed_post_with_http_info(opts) - -```ruby -begin - # Seed Sample Data - data, status_code, headers = api_instance.seed_sample_data_dev_sample_data_seed_post_with_http_info(opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling DevApi->seed_sample_data_dev_sample_data_seed_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **reset** | **Boolean** | Clear the sample dataset before reseeding it. | [optional][default to false] | - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/sdks/ruby/docs/HTTPValidationError.md b/sdks/ruby/docs/HTTPValidationError.md deleted file mode 100644 index baecb8f..0000000 --- a/sdks/ruby/docs/HTTPValidationError.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::HTTPValidationError - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **detail** | [**Array<ValidationError>**](ValidationError.md) | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::HTTPValidationError.new( - detail: null -) -``` - diff --git a/sdks/ruby/docs/HealthApi.md b/sdks/ruby/docs/HealthApi.md deleted file mode 100644 index 6fc98a1..0000000 --- a/sdks/ruby/docs/HealthApi.md +++ /dev/null @@ -1,187 +0,0 @@ -# KeyNetra::HealthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -| [**health_health_get**](HealthApi.md#health_health_get) | **GET** /health | Health | -| [**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness | -| [**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness | - - -## health_health_get - -> health_health_get - -Health - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::HealthApi.new - -begin - # Health - result = api_instance.health_health_get - p result -rescue KeyNetra::ApiError => e - puts "Error when calling HealthApi->health_health_get: #{e}" -end -``` - -#### Using the health_health_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> health_health_get_with_http_info - -```ruby -begin - # Health - data, status_code, headers = api_instance.health_health_get_with_http_info - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling HealthApi->health_health_get_with_http_info: #{e}" -end -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## liveness_health_live_get - -> liveness_health_live_get - -Liveness - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::HealthApi.new - -begin - # Liveness - result = api_instance.liveness_health_live_get - p result -rescue KeyNetra::ApiError => e - puts "Error when calling HealthApi->liveness_health_live_get: #{e}" -end -``` - -#### Using the liveness_health_live_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> liveness_health_live_get_with_http_info - -```ruby -begin - # Liveness - data, status_code, headers = api_instance.liveness_health_live_get_with_http_info - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling HealthApi->liveness_health_live_get_with_http_info: #{e}" -end -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## readiness_health_ready_get - -> readiness_health_ready_get - -Readiness - -### Examples - -```ruby -require 'time' -require 'keynetra-client' - -api_instance = KeyNetra::HealthApi.new - -begin - # Readiness - result = api_instance.readiness_health_ready_get - p result -rescue KeyNetra::ApiError => e - puts "Error when calling HealthApi->readiness_health_ready_get: #{e}" -end -``` - -#### Using the readiness_health_ready_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> readiness_health_ready_get_with_http_info - -```ruby -begin - # Readiness - data, status_code, headers = api_instance.readiness_health_ready_get_with_http_info - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling HealthApi->readiness_health_ready_get_with_http_info: #{e}" -end -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/sdks/ruby/docs/ImpactAnalysisRequest.md b/sdks/ruby/docs/ImpactAnalysisRequest.md deleted file mode 100644 index e6f1f5d..0000000 --- a/sdks/ruby/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::ImpactAnalysisRequest - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_change** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::ImpactAnalysisRequest.new( - policy_change: null -) -``` - diff --git a/sdks/ruby/docs/ImpactAnalysisResponse.md b/sdks/ruby/docs/ImpactAnalysisResponse.md deleted file mode 100644 index d2fa0e2..0000000 --- a/sdks/ruby/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::ImpactAnalysisResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **gained_access** | **Array<Integer>** | | [optional] | -| **lost_access** | **Array<Integer>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::ImpactAnalysisResponse.new( - gained_access: null, - lost_access: null -) -``` - diff --git a/sdks/ruby/docs/LocationInner.md b/sdks/ruby/docs/LocationInner.md deleted file mode 100644 index 7fe9deb..0000000 --- a/sdks/ruby/docs/LocationInner.md +++ /dev/null @@ -1,15 +0,0 @@ -# KeyNetra::LocationInner - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::LocationInner.new() -``` - diff --git a/sdks/ruby/docs/ManagementApi.md b/sdks/ruby/docs/ManagementApi.md deleted file mode 100644 index 11128de..0000000 --- a/sdks/ruby/docs/ManagementApi.md +++ /dev/null @@ -1,2096 +0,0 @@ -# KeyNetra::ManagementApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -| [**add_permission_to_role_roles_role_id_permissions_permission_id_post**](ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| [**create_acl_entry_acl_post**](ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry | -| [**create_auth_model_auth_model_post**](ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model | -| [**create_permission_permissions_post**](ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission | -| [**create_policy_from_dsl_policies_dsl_post**](ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl | -| [**create_policy_policies_post**](ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy | -| [**create_relationship_relationships_post**](ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship | -| [**create_role_roles_post**](ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role | -| [**delete_acl_entry_acl_acl_id_delete**](ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| [**delete_permission_permissions_permission_id_delete**](ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| [**delete_policy_policies_policy_key_delete**](ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy | -| [**delete_role_roles_role_id_delete**](ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role | -| [**get_auth_model_auth_model_get**](ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model | -| [**impact_analysis_impact_analysis_post**](ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis | -| [**list_acl_entries_acl_resource_type_resource_id_get**](ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| [**list_audit_logs_audit_get**](ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs | -| [**list_permission_roles_permissions_permission_id_roles_get**](ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| [**list_permissions_permissions_get**](ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions | -| [**list_policies_policies_get**](ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies | -| [**list_relationships_relationships_get**](ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships | -| [**list_role_permissions_roles_role_id_permissions_get**](ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| [**list_roles_roles_get**](ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles | -| [**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| [**rollback_policy_policies_policy_key_rollback_version_post**](ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| [**simulate_policy_simulate_policy_post**](ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy | -| [**update_permission_permissions_permission_id_put**](ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission | -| [**update_policy_policies_policy_key_put**](ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy | -| [**update_role_roles_role_id_put**](ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role | - - -## add_permission_to_role_roles_role_id_permissions_permission_id_post - -> add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) - -Add Permission To Role - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -role_id = 56 # Integer | -permission_id = 56 # Integer | - -begin - # Add Permission To Role - result = api_instance.add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post: #{e}" -end -``` - -#### Using the add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info(role_id, permission_id) - -```ruby -begin - # Add Permission To Role - data, status_code, headers = api_instance.add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info(role_id, permission_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **role_id** | **Integer** | | | -| **permission_id** | **Integer** | | | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## create_acl_entry_acl_post - -> create_acl_entry_acl_post(acl_create) - -Create Acl Entry - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -acl_create = KeyNetra::ACLCreate.new({subject_type: 'subject_type_example', subject_id: 'subject_id_example', resource_type: 'resource_type_example', resource_id: 'resource_id_example', action: 'action_example', effect: 'effect_example'}) # ACLCreate | - -begin - # Create Acl Entry - result = api_instance.create_acl_entry_acl_post(acl_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_acl_entry_acl_post: #{e}" -end -``` - -#### Using the create_acl_entry_acl_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_acl_entry_acl_post_with_http_info(acl_create) - -```ruby -begin - # Create Acl Entry - data, status_code, headers = api_instance.create_acl_entry_acl_post_with_http_info(acl_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_acl_entry_acl_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **acl_create** | [**ACLCreate**](ACLCreate.md) | | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## create_auth_model_auth_model_post - -> create_auth_model_auth_model_post(auth_model_create) - -Create Auth Model - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -auth_model_create = KeyNetra::AuthModelCreate.new({schema: 'schema_example'}) # AuthModelCreate | - -begin - # Create Auth Model - result = api_instance.create_auth_model_auth_model_post(auth_model_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_auth_model_auth_model_post: #{e}" -end -``` - -#### Using the create_auth_model_auth_model_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_auth_model_auth_model_post_with_http_info(auth_model_create) - -```ruby -begin - # Create Auth Model - data, status_code, headers = api_instance.create_auth_model_auth_model_post_with_http_info(auth_model_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_auth_model_auth_model_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **auth_model_create** | [**AuthModelCreate**](AuthModelCreate.md) | | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## create_permission_permissions_post - -> create_permission_permissions_post(permission_create) - -Create Permission - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -permission_create = KeyNetra::PermissionCreate.new({action: 'action_example'}) # PermissionCreate | - -begin - # Create Permission - result = api_instance.create_permission_permissions_post(permission_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_permission_permissions_post: #{e}" -end -``` - -#### Using the create_permission_permissions_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_permission_permissions_post_with_http_info(permission_create) - -```ruby -begin - # Create Permission - data, status_code, headers = api_instance.create_permission_permissions_post_with_http_info(permission_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_permission_permissions_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **permission_create** | [**PermissionCreate**](PermissionCreate.md) | | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## create_policy_from_dsl_policies_dsl_post - -> create_policy_from_dsl_policies_dsl_post(dsl) - -Create Policy From Dsl - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -dsl = 'dsl_example' # String | - -begin - # Create Policy From Dsl - result = api_instance.create_policy_from_dsl_policies_dsl_post(dsl) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_policy_from_dsl_policies_dsl_post: #{e}" -end -``` - -#### Using the create_policy_from_dsl_policies_dsl_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_policy_from_dsl_policies_dsl_post_with_http_info(dsl) - -```ruby -begin - # Create Policy From Dsl - data, status_code, headers = api_instance.create_policy_from_dsl_policies_dsl_post_with_http_info(dsl) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_policy_from_dsl_policies_dsl_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **dsl** | **String** | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## create_policy_policies_post - -> create_policy_policies_post(policy_create) - -Create Policy - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -policy_create = KeyNetra::PolicyCreate.new({action: 'action_example'}) # PolicyCreate | - -begin - # Create Policy - result = api_instance.create_policy_policies_post(policy_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_policy_policies_post: #{e}" -end -``` - -#### Using the create_policy_policies_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_policy_policies_post_with_http_info(policy_create) - -```ruby -begin - # Create Policy - data, status_code, headers = api_instance.create_policy_policies_post_with_http_info(policy_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_policy_policies_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_create** | [**PolicyCreate**](PolicyCreate.md) | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## create_relationship_relationships_post - -> create_relationship_relationships_post(relationship_create) - -Create Relationship - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -relationship_create = KeyNetra::RelationshipCreate.new({subject_type: 'subject_type_example', subject_id: 'subject_id_example', relation: 'relation_example', object_type: 'object_type_example', object_id: 'object_id_example'}) # RelationshipCreate | - -begin - # Create Relationship - result = api_instance.create_relationship_relationships_post(relationship_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_relationship_relationships_post: #{e}" -end -``` - -#### Using the create_relationship_relationships_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_relationship_relationships_post_with_http_info(relationship_create) - -```ruby -begin - # Create Relationship - data, status_code, headers = api_instance.create_relationship_relationships_post_with_http_info(relationship_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_relationship_relationships_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **relationship_create** | [**RelationshipCreate**](RelationshipCreate.md) | | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## create_role_roles_post - -> create_role_roles_post(role_create) - -Create Role - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -role_create = KeyNetra::RoleCreate.new({name: 'name_example'}) # RoleCreate | - -begin - # Create Role - result = api_instance.create_role_roles_post(role_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_role_roles_post: #{e}" -end -``` - -#### Using the create_role_roles_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> create_role_roles_post_with_http_info(role_create) - -```ruby -begin - # Create Role - data, status_code, headers = api_instance.create_role_roles_post_with_http_info(role_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->create_role_roles_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **role_create** | [**RoleCreate**](RoleCreate.md) | | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## delete_acl_entry_acl_acl_id_delete - -> delete_acl_entry_acl_acl_id_delete(acl_id) - -Delete Acl Entry - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -acl_id = 56 # Integer | - -begin - # Delete Acl Entry - result = api_instance.delete_acl_entry_acl_acl_id_delete(acl_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_acl_entry_acl_acl_id_delete: #{e}" -end -``` - -#### Using the delete_acl_entry_acl_acl_id_delete_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> delete_acl_entry_acl_acl_id_delete_with_http_info(acl_id) - -```ruby -begin - # Delete Acl Entry - data, status_code, headers = api_instance.delete_acl_entry_acl_acl_id_delete_with_http_info(acl_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_acl_entry_acl_acl_id_delete_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **acl_id** | **Integer** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## delete_permission_permissions_permission_id_delete - -> delete_permission_permissions_permission_id_delete(permission_id) - -Delete Permission - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -permission_id = 56 # Integer | - -begin - # Delete Permission - result = api_instance.delete_permission_permissions_permission_id_delete(permission_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_permission_permissions_permission_id_delete: #{e}" -end -``` - -#### Using the delete_permission_permissions_permission_id_delete_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> delete_permission_permissions_permission_id_delete_with_http_info(permission_id) - -```ruby -begin - # Delete Permission - data, status_code, headers = api_instance.delete_permission_permissions_permission_id_delete_with_http_info(permission_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_permission_permissions_permission_id_delete_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **permission_id** | **Integer** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## delete_policy_policies_policy_key_delete - -> delete_policy_policies_policy_key_delete(policy_key) - -Delete Policy - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -policy_key = 'policy_key_example' # String | - -begin - # Delete Policy - result = api_instance.delete_policy_policies_policy_key_delete(policy_key) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_policy_policies_policy_key_delete: #{e}" -end -``` - -#### Using the delete_policy_policies_policy_key_delete_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> delete_policy_policies_policy_key_delete_with_http_info(policy_key) - -```ruby -begin - # Delete Policy - data, status_code, headers = api_instance.delete_policy_policies_policy_key_delete_with_http_info(policy_key) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_policy_policies_policy_key_delete_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_key** | **String** | | | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## delete_role_roles_role_id_delete - -> delete_role_roles_role_id_delete(role_id) - -Delete Role - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -role_id = 56 # Integer | - -begin - # Delete Role - result = api_instance.delete_role_roles_role_id_delete(role_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_role_roles_role_id_delete: #{e}" -end -``` - -#### Using the delete_role_roles_role_id_delete_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> delete_role_roles_role_id_delete_with_http_info(role_id) - -```ruby -begin - # Delete Role - data, status_code, headers = api_instance.delete_role_roles_role_id_delete_with_http_info(role_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->delete_role_roles_role_id_delete_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **role_id** | **Integer** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## get_auth_model_auth_model_get - -> get_auth_model_auth_model_get - -Get Auth Model - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new - -begin - # Get Auth Model - result = api_instance.get_auth_model_auth_model_get - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->get_auth_model_auth_model_get: #{e}" -end -``` - -#### Using the get_auth_model_auth_model_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> get_auth_model_auth_model_get_with_http_info - -```ruby -begin - # Get Auth Model - data, status_code, headers = api_instance.get_auth_model_auth_model_get_with_http_info - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->get_auth_model_auth_model_get_with_http_info: #{e}" -end -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## impact_analysis_impact_analysis_post - -> impact_analysis_impact_analysis_post(impact_analysis_request) - -Impact Analysis - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -impact_analysis_request = KeyNetra::ImpactAnalysisRequest.new({policy_change: 'policy_change_example'}) # ImpactAnalysisRequest | - -begin - # Impact Analysis - result = api_instance.impact_analysis_impact_analysis_post(impact_analysis_request) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->impact_analysis_impact_analysis_post: #{e}" -end -``` - -#### Using the impact_analysis_impact_analysis_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> impact_analysis_impact_analysis_post_with_http_info(impact_analysis_request) - -```ruby -begin - # Impact Analysis - data, status_code, headers = api_instance.impact_analysis_impact_analysis_post_with_http_info(impact_analysis_request) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->impact_analysis_impact_analysis_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **impact_analysis_request** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## list_acl_entries_acl_resource_type_resource_id_get - -> list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) - -List Acl Entries - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -resource_type = 'resource_type_example' # String | -resource_id = 'resource_id_example' # String | - -begin - # List Acl Entries - result = api_instance.list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_acl_entries_acl_resource_type_resource_id_get: #{e}" -end -``` - -#### Using the list_acl_entries_acl_resource_type_resource_id_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_acl_entries_acl_resource_type_resource_id_get_with_http_info(resource_type, resource_id) - -```ruby -begin - # List Acl Entries - data, status_code, headers = api_instance.list_acl_entries_acl_resource_type_resource_id_get_with_http_info(resource_type, resource_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_acl_entries_acl_resource_type_resource_id_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **resource_type** | **String** | | | -| **resource_id** | **String** | | | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_audit_logs_audit_get - -> list_audit_logs_audit_get(opts) - -List Audit Logs - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -opts = { - limit: 56, # Integer | - cursor: 'cursor_example', # String | - user_id: 'user_id_example', # String | - resource_id: 'resource_id_example', # String | - decision: 'decision_example', # String | - start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | - end_time: Time.parse('2013-10-20T19:20:30+01:00') # Time | -} - -begin - # List Audit Logs - result = api_instance.list_audit_logs_audit_get(opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_audit_logs_audit_get: #{e}" -end -``` - -#### Using the list_audit_logs_audit_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_audit_logs_audit_get_with_http_info(opts) - -```ruby -begin - # List Audit Logs - data, status_code, headers = api_instance.list_audit_logs_audit_get_with_http_info(opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_audit_logs_audit_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **limit** | **Integer** | | [optional][default to 50] | -| **cursor** | **String** | | [optional] | -| **user_id** | **String** | | [optional] | -| **resource_id** | **String** | | [optional] | -| **decision** | **String** | | [optional] | -| **start_time** | **Time** | | [optional] | -| **end_time** | **Time** | | [optional] | - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_permission_roles_permissions_permission_id_roles_get - -> list_permission_roles_permissions_permission_id_roles_get(permission_id) - -List Permission Roles - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -permission_id = 56 # Integer | - -begin - # List Permission Roles - result = api_instance.list_permission_roles_permissions_permission_id_roles_get(permission_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_permission_roles_permissions_permission_id_roles_get: #{e}" -end -``` - -#### Using the list_permission_roles_permissions_permission_id_roles_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_permission_roles_permissions_permission_id_roles_get_with_http_info(permission_id) - -```ruby -begin - # List Permission Roles - data, status_code, headers = api_instance.list_permission_roles_permissions_permission_id_roles_get_with_http_info(permission_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_permission_roles_permissions_permission_id_roles_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **permission_id** | **Integer** | | | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_permissions_permissions_get - -> list_permissions_permissions_get(opts) - -List Permissions - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -opts = { - limit: 56, # Integer | - cursor: 'cursor_example' # String | -} - -begin - # List Permissions - result = api_instance.list_permissions_permissions_get(opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_permissions_permissions_get: #{e}" -end -``` - -#### Using the list_permissions_permissions_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_permissions_permissions_get_with_http_info(opts) - -```ruby -begin - # List Permissions - data, status_code, headers = api_instance.list_permissions_permissions_get_with_http_info(opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_permissions_permissions_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **limit** | **Integer** | | [optional][default to 50] | -| **cursor** | **String** | | [optional] | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_policies_policies_get - -> list_policies_policies_get(opts) - -List Policies - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -opts = { - limit: 56, # Integer | - cursor: 'cursor_example' # String | -} - -begin - # List Policies - result = api_instance.list_policies_policies_get(opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_policies_policies_get: #{e}" -end -``` - -#### Using the list_policies_policies_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_policies_policies_get_with_http_info(opts) - -```ruby -begin - # List Policies - data, status_code, headers = api_instance.list_policies_policies_get_with_http_info(opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_policies_policies_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **limit** | **Integer** | | [optional][default to 50] | -| **cursor** | **String** | | [optional] | - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_relationships_relationships_get - -> list_relationships_relationships_get(subject_type, subject_id, opts) - -List Relationships - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -subject_type = 'subject_type_example' # String | -subject_id = 'subject_id_example' # String | -opts = { - limit: 56, # Integer | - cursor: 'cursor_example' # String | -} - -begin - # List Relationships - result = api_instance.list_relationships_relationships_get(subject_type, subject_id, opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_relationships_relationships_get: #{e}" -end -``` - -#### Using the list_relationships_relationships_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_relationships_relationships_get_with_http_info(subject_type, subject_id, opts) - -```ruby -begin - # List Relationships - data, status_code, headers = api_instance.list_relationships_relationships_get_with_http_info(subject_type, subject_id, opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_relationships_relationships_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **subject_type** | **String** | | | -| **subject_id** | **String** | | | -| **limit** | **Integer** | | [optional][default to 50] | -| **cursor** | **String** | | [optional] | - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_role_permissions_roles_role_id_permissions_get - -> list_role_permissions_roles_role_id_permissions_get(role_id) - -List Role Permissions - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -role_id = 56 # Integer | - -begin - # List Role Permissions - result = api_instance.list_role_permissions_roles_role_id_permissions_get(role_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_role_permissions_roles_role_id_permissions_get: #{e}" -end -``` - -#### Using the list_role_permissions_roles_role_id_permissions_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_role_permissions_roles_role_id_permissions_get_with_http_info(role_id) - -```ruby -begin - # List Role Permissions - data, status_code, headers = api_instance.list_role_permissions_roles_role_id_permissions_get_with_http_info(role_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_role_permissions_roles_role_id_permissions_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **role_id** | **Integer** | | | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_roles_roles_get - -> list_roles_roles_get(opts) - -List Roles - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -opts = { - limit: 56, # Integer | - cursor: 'cursor_example' # String | -} - -begin - # List Roles - result = api_instance.list_roles_roles_get(opts) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_roles_roles_get: #{e}" -end -``` - -#### Using the list_roles_roles_get_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_roles_roles_get_with_http_info(opts) - -```ruby -begin - # List Roles - data, status_code, headers = api_instance.list_roles_roles_get_with_http_info(opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->list_roles_roles_get_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **limit** | **Integer** | | [optional][default to 50] | -| **cursor** | **String** | | [optional] | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## remove_permission_from_role_roles_role_id_permissions_permission_id_delete - -> remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) - -Remove Permission From Role - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -role_id = 56 # Integer | -permission_id = 56 # Integer | - -begin - # Remove Permission From Role - result = api_instance.remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete: #{e}" -end -``` - -#### Using the remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info(role_id, permission_id) - -```ruby -begin - # Remove Permission From Role - data, status_code, headers = api_instance.remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info(role_id, permission_id) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **role_id** | **Integer** | | | -| **permission_id** | **Integer** | | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## rollback_policy_policies_policy_key_rollback_version_post - -> rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) - -Rollback Policy - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -policy_key = 'policy_key_example' # String | -version = 56 # Integer | - -begin - # Rollback Policy - result = api_instance.rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->rollback_policy_policies_policy_key_rollback_version_post: #{e}" -end -``` - -#### Using the rollback_policy_policies_policy_key_rollback_version_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> rollback_policy_policies_policy_key_rollback_version_post_with_http_info(policy_key, version) - -```ruby -begin - # Rollback Policy - data, status_code, headers = api_instance.rollback_policy_policies_policy_key_rollback_version_post_with_http_info(policy_key, version) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->rollback_policy_policies_policy_key_rollback_version_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_key** | **String** | | | -| **version** | **Integer** | | | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## simulate_policy_simulate_policy_post - -> simulate_policy_simulate_policy_post(policy_simulation_request) - -Simulate Policy - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -policy_simulation_request = KeyNetra::PolicySimulationRequest.new # PolicySimulationRequest | - -begin - # Simulate Policy - result = api_instance.simulate_policy_simulate_policy_post(policy_simulation_request) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->simulate_policy_simulate_policy_post: #{e}" -end -``` - -#### Using the simulate_policy_simulate_policy_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> simulate_policy_simulate_policy_post_with_http_info(policy_simulation_request) - -```ruby -begin - # Simulate Policy - data, status_code, headers = api_instance.simulate_policy_simulate_policy_post_with_http_info(policy_simulation_request) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->simulate_policy_simulate_policy_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_simulation_request** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## update_permission_permissions_permission_id_put - -> update_permission_permissions_permission_id_put(permission_id, permission_update) - -Update Permission - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -permission_id = 56 # Integer | -permission_update = KeyNetra::PermissionUpdate.new({action: 'action_example'}) # PermissionUpdate | - -begin - # Update Permission - result = api_instance.update_permission_permissions_permission_id_put(permission_id, permission_update) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->update_permission_permissions_permission_id_put: #{e}" -end -``` - -#### Using the update_permission_permissions_permission_id_put_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> update_permission_permissions_permission_id_put_with_http_info(permission_id, permission_update) - -```ruby -begin - # Update Permission - data, status_code, headers = api_instance.update_permission_permissions_permission_id_put_with_http_info(permission_id, permission_update) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->update_permission_permissions_permission_id_put_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **permission_id** | **Integer** | | | -| **permission_update** | [**PermissionUpdate**](PermissionUpdate.md) | | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## update_policy_policies_policy_key_put - -> update_policy_policies_policy_key_put(policy_key, policy_create) - -Update Policy - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -policy_key = 'policy_key_example' # String | -policy_create = KeyNetra::PolicyCreate.new({action: 'action_example'}) # PolicyCreate | - -begin - # Update Policy - result = api_instance.update_policy_policies_policy_key_put(policy_key, policy_create) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->update_policy_policies_policy_key_put: #{e}" -end -``` - -#### Using the update_policy_policies_policy_key_put_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> update_policy_policies_policy_key_put_with_http_info(policy_key, policy_create) - -```ruby -begin - # Update Policy - data, status_code, headers = api_instance.update_policy_policies_policy_key_put_with_http_info(policy_key, policy_create) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->update_policy_policies_policy_key_put_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_key** | **String** | | | -| **policy_create** | [**PolicyCreate**](PolicyCreate.md) | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## update_role_roles_role_id_put - -> update_role_roles_role_id_put(role_id, role_update) - -Update Role - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::ManagementApi.new -role_id = 56 # Integer | -role_update = KeyNetra::RoleUpdate.new({name: 'name_example'}) # RoleUpdate | - -begin - # Update Role - result = api_instance.update_role_roles_role_id_put(role_id, role_update) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->update_role_roles_role_id_put: #{e}" -end -``` - -#### Using the update_role_roles_role_id_put_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> update_role_roles_role_id_put_with_http_info(role_id, role_update) - -```ruby -begin - # Update Role - data, status_code, headers = api_instance.update_role_roles_role_id_put_with_http_info(role_id, role_update) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling ManagementApi->update_role_roles_role_id_put_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **role_id** | **Integer** | | | -| **role_update** | [**RoleUpdate**](RoleUpdate.md) | | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/sdks/ruby/docs/MetaBody.md b/sdks/ruby/docs/MetaBody.md deleted file mode 100644 index cb3ac2c..0000000 --- a/sdks/ruby/docs/MetaBody.md +++ /dev/null @@ -1,24 +0,0 @@ -# KeyNetra::MetaBody - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **request_id** | **String** | | [optional] | -| **limit** | **Integer** | | [optional] | -| **next_cursor** | **String** | | [optional] | -| **extra** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::MetaBody.new( - request_id: null, - limit: null, - next_cursor: null, - extra: null -) -``` - diff --git a/sdks/ruby/docs/PermissionCreate.md b/sdks/ruby/docs/PermissionCreate.md deleted file mode 100644 index f507cb8..0000000 --- a/sdks/ruby/docs/PermissionCreate.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::PermissionCreate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PermissionCreate.new( - action: null -) -``` - diff --git a/sdks/ruby/docs/PermissionOut.md b/sdks/ruby/docs/PermissionOut.md deleted file mode 100644 index eea1ede..0000000 --- a/sdks/ruby/docs/PermissionOut.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::PermissionOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **id** | **Integer** | | | -| **action** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PermissionOut.new( - id: null, - action: null -) -``` - diff --git a/sdks/ruby/docs/PermissionUpdate.md b/sdks/ruby/docs/PermissionUpdate.md deleted file mode 100644 index 78fca42..0000000 --- a/sdks/ruby/docs/PermissionUpdate.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::PermissionUpdate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PermissionUpdate.new( - action: null -) -``` - diff --git a/sdks/ruby/docs/PlaygroundApi.md b/sdks/ruby/docs/PlaygroundApi.md deleted file mode 100644 index af73ee1..0000000 --- a/sdks/ruby/docs/PlaygroundApi.md +++ /dev/null @@ -1,80 +0,0 @@ -# KeyNetra::PlaygroundApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -| [**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate | - - -## evaluate_playground_evaluate_post - -> evaluate_playground_evaluate_post(playground_evaluate_request) - -Evaluate - -### Examples - -```ruby -require 'time' -require 'keynetra-client' -# setup authorization -KeyNetra.configure do |config| - # Configure API key authorization: APIKeyHeader - config.api_key['X-API-Key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['X-API-Key'] = 'Bearer' - - # Configure Bearer authorization: HTTPBearer - config.access_token = 'YOUR_BEARER_TOKEN' -end - -api_instance = KeyNetra::PlaygroundApi.new -playground_evaluate_request = KeyNetra::PlaygroundEvaluateRequest.new({policies: [KeyNetra::PlaygroundPolicy.new({action: 'action_example'})], input: KeyNetra::PlaygroundInput.new}) # PlaygroundEvaluateRequest | - -begin - # Evaluate - result = api_instance.evaluate_playground_evaluate_post(playground_evaluate_request) - p result -rescue KeyNetra::ApiError => e - puts "Error when calling PlaygroundApi->evaluate_playground_evaluate_post: #{e}" -end -``` - -#### Using the evaluate_playground_evaluate_post_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> evaluate_playground_evaluate_post_with_http_info(playground_evaluate_request) - -```ruby -begin - # Evaluate - data, status_code, headers = api_instance.evaluate_playground_evaluate_post_with_http_info(playground_evaluate_request) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue KeyNetra::ApiError => e - puts "Error when calling PlaygroundApi->evaluate_playground_evaluate_post_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/sdks/ruby/docs/PlaygroundEvaluateRequest.md b/sdks/ruby/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index 5c2c593..0000000 --- a/sdks/ruby/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::PlaygroundEvaluateRequest - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policies** | [**Array<PlaygroundPolicy>**](PlaygroundPolicy.md) | | | -| **input** | [**PlaygroundInput**](PlaygroundInput.md) | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PlaygroundEvaluateRequest.new( - policies: null, - input: null -) -``` - diff --git a/sdks/ruby/docs/PlaygroundInput.md b/sdks/ruby/docs/PlaygroundInput.md deleted file mode 100644 index d6e70eb..0000000 --- a/sdks/ruby/docs/PlaygroundInput.md +++ /dev/null @@ -1,24 +0,0 @@ -# KeyNetra::PlaygroundInput - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **user** | **Hash<String, Object>** | | [optional] | -| **resource** | **Hash<String, Object>** | | [optional] | -| **action** | **String** | | [optional][default to ''] | -| **context** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PlaygroundInput.new( - user: null, - resource: null, - action: null, - context: null -) -``` - diff --git a/sdks/ruby/docs/PlaygroundPolicy.md b/sdks/ruby/docs/PlaygroundPolicy.md deleted file mode 100644 index 5711e25..0000000 --- a/sdks/ruby/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,26 +0,0 @@ -# KeyNetra::PlaygroundPolicy - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | **String** | | | -| **effect** | **String** | | [optional][default to 'allow'] | -| **priority** | **Integer** | | [optional][default to 100] | -| **policy_id** | **String** | | [optional] | -| **conditions** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PlaygroundPolicy.new( - action: null, - effect: null, - priority: null, - policy_id: null, - conditions: null -) -``` - diff --git a/sdks/ruby/docs/PolicyCreate.md b/sdks/ruby/docs/PolicyCreate.md deleted file mode 100644 index 4ac2732..0000000 --- a/sdks/ruby/docs/PolicyCreate.md +++ /dev/null @@ -1,26 +0,0 @@ -# KeyNetra::PolicyCreate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | **String** | | | -| **effect** | **String** | | [optional][default to 'allow'] | -| **priority** | **Integer** | | [optional][default to 100] | -| **state** | **String** | | [optional][default to 'active'] | -| **conditions** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PolicyCreate.new( - action: null, - effect: null, - priority: null, - state: null, - conditions: null -) -``` - diff --git a/sdks/ruby/docs/PolicyOut.md b/sdks/ruby/docs/PolicyOut.md deleted file mode 100644 index f4e030c..0000000 --- a/sdks/ruby/docs/PolicyOut.md +++ /dev/null @@ -1,28 +0,0 @@ -# KeyNetra::PolicyOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **id** | **Integer** | | | -| **action** | **String** | | | -| **effect** | **String** | | | -| **priority** | **Integer** | | | -| **state** | **String** | | [optional][default to 'active'] | -| **conditions** | **Hash<String, Object>** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PolicyOut.new( - id: null, - action: null, - effect: null, - priority: null, - state: null, - conditions: null -) -``` - diff --git a/sdks/ruby/docs/PolicySimulationInput.md b/sdks/ruby/docs/PolicySimulationInput.md deleted file mode 100644 index 7ec8332..0000000 --- a/sdks/ruby/docs/PolicySimulationInput.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::PolicySimulationInput - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **policy_change** | **String** | | [optional] | -| **relationship_change** | **Hash<String, Object>** | | [optional] | -| **role_change** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PolicySimulationInput.new( - policy_change: null, - relationship_change: null, - role_change: null -) -``` - diff --git a/sdks/ruby/docs/PolicySimulationRequest.md b/sdks/ruby/docs/PolicySimulationRequest.md deleted file mode 100644 index 2497472..0000000 --- a/sdks/ruby/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::PolicySimulationRequest - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] | -| **request** | **Hash<String, Object>** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PolicySimulationRequest.new( - simulate: null, - request: null -) -``` - diff --git a/sdks/ruby/docs/PolicySimulationResponse.md b/sdks/ruby/docs/PolicySimulationResponse.md deleted file mode 100644 index 26a20d8..0000000 --- a/sdks/ruby/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::PolicySimulationResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **decision_before** | **Hash<String, Object>** | | | -| **decision_after** | **Hash<String, Object>** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::PolicySimulationResponse.new( - decision_before: null, - decision_after: null -) -``` - diff --git a/sdks/ruby/docs/RelationshipCreate.md b/sdks/ruby/docs/RelationshipCreate.md deleted file mode 100644 index 57b3b0e..0000000 --- a/sdks/ruby/docs/RelationshipCreate.md +++ /dev/null @@ -1,26 +0,0 @@ -# KeyNetra::RelationshipCreate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **subject_type** | **String** | | | -| **subject_id** | **String** | | | -| **relation** | **String** | | | -| **object_type** | **String** | | | -| **object_id** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::RelationshipCreate.new( - subject_type: null, - subject_id: null, - relation: null, - object_type: null, - object_id: null -) -``` - diff --git a/sdks/ruby/docs/RelationshipOut.md b/sdks/ruby/docs/RelationshipOut.md deleted file mode 100644 index 4b1fd0e..0000000 --- a/sdks/ruby/docs/RelationshipOut.md +++ /dev/null @@ -1,28 +0,0 @@ -# KeyNetra::RelationshipOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **subject_type** | **String** | | | -| **subject_id** | **String** | | | -| **relation** | **String** | | | -| **object_type** | **String** | | | -| **object_id** | **String** | | | -| **id** | **Integer** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::RelationshipOut.new( - subject_type: null, - subject_id: null, - relation: null, - object_type: null, - object_id: null, - id: null -) -``` - diff --git a/sdks/ruby/docs/RoleCreate.md b/sdks/ruby/docs/RoleCreate.md deleted file mode 100644 index 46d3027..0000000 --- a/sdks/ruby/docs/RoleCreate.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::RoleCreate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **name** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::RoleCreate.new( - name: null -) -``` - diff --git a/sdks/ruby/docs/RoleOut.md b/sdks/ruby/docs/RoleOut.md deleted file mode 100644 index cc4e718..0000000 --- a/sdks/ruby/docs/RoleOut.md +++ /dev/null @@ -1,20 +0,0 @@ -# KeyNetra::RoleOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **id** | **Integer** | | | -| **name** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::RoleOut.new( - id: null, - name: null -) -``` - diff --git a/sdks/ruby/docs/RoleUpdate.md b/sdks/ruby/docs/RoleUpdate.md deleted file mode 100644 index 75bea3b..0000000 --- a/sdks/ruby/docs/RoleUpdate.md +++ /dev/null @@ -1,18 +0,0 @@ -# KeyNetra::RoleUpdate - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **name** | **String** | | | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::RoleUpdate.new( - name: null -) -``` - diff --git a/sdks/ruby/docs/SimulationResponse.md b/sdks/ruby/docs/SimulationResponse.md deleted file mode 100644 index 25f7941..0000000 --- a/sdks/ruby/docs/SimulationResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# KeyNetra::SimulationResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **decision** | **String** | | | -| **matched_policies** | **Array<String>** | | | -| **reason** | **String** | | [optional] | -| **policy_id** | **String** | | [optional] | -| **explain_trace** | **Array<Hash<String, Object>>** | | [optional] | -| **failed_conditions** | **Array<String>** | | [optional] | -| **revision** | **Integer** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SimulationResponse.new( - decision: null, - matched_policies: null, - reason: null, - policy_id: null, - explain_trace: null, - failed_conditions: null, - revision: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseACLOut.md b/sdks/ruby/docs/SuccessResponseACLOut.md deleted file mode 100644 index 4cb0ecd..0000000 --- a/sdks/ruby/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseACLOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**ACLOut**](ACLOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseACLOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md b/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index 49c3c4b..0000000 --- a/sdks/ruby/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseAccessDecisionResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseAccessDecisionResponse.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md b/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index fc50e85..0000000 --- a/sdks/ruby/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseAdminLoginResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseAdminLoginResponse.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseAuthModelOut.md b/sdks/ruby/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index b00fda8..0000000 --- a/sdks/ruby/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseAuthModelOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**AuthModelOut**](AuthModelOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseAuthModelOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md b/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index a528f92..0000000 --- a/sdks/ruby/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseBatchAccessResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseBatchAccessResponse.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseDictStrAny.md b/sdks/ruby/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index 0f54b16..0000000 --- a/sdks/ruby/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseDictStrAny - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | **Hash<String, Object>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseDictStrAny.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseDictStrInt.md b/sdks/ruby/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 64d64ae..0000000 --- a/sdks/ruby/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseDictStrInt - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | **Hash<String, Integer>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseDictStrInt.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseDictStrObject.md b/sdks/ruby/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index dcbf253..0000000 --- a/sdks/ruby/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseDictStrObject - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | **Hash<String, Object>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseDictStrObject.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseDictStrStr.md b/sdks/ruby/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index 626c9f0..0000000 --- a/sdks/ruby/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseDictStrStr - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | **Hash<String, String>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseDictStrStr.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index 26f71df..0000000 --- a/sdks/ruby/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseDictStrUnionIntStr - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**Hash<String, DataValue>**](DataValue.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseDictStrUnionIntStr.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index edb291f..0000000 --- a/sdks/ruby/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseImpactAnalysisResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseImpactAnalysisResponse.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseListACLOut.md b/sdks/ruby/docs/SuccessResponseListACLOut.md deleted file mode 100644 index 26d8c1a..0000000 --- a/sdks/ruby/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseListACLOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**Array<ACLOut>**](ACLOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseListACLOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md b/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 3f64860..0000000 --- a/sdks/ruby/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseListAuditRecordOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**Array<AuditRecordOut>**](AuditRecordOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseListAuditRecordOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseListDictStrStr.md b/sdks/ruby/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index afb46b1..0000000 --- a/sdks/ruby/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseListDictStrStr - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | **Array<Hash<String, String>>** | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseListDictStrStr.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseListPermissionOut.md b/sdks/ruby/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index 5b936d7..0000000 --- a/sdks/ruby/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseListPermissionOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**Array<PermissionOut>**](PermissionOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseListPermissionOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseListPolicyOut.md b/sdks/ruby/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index a1c8ec9..0000000 --- a/sdks/ruby/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseListPolicyOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**Array<PolicyOut>**](PolicyOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseListPolicyOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseListRoleOut.md b/sdks/ruby/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index ffbd391..0000000 --- a/sdks/ruby/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseListRoleOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**Array<RoleOut>**](RoleOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseListRoleOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponsePermissionOut.md b/sdks/ruby/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index f6006d5..0000000 --- a/sdks/ruby/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponsePermissionOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**PermissionOut**](PermissionOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponsePermissionOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponsePolicyOut.md b/sdks/ruby/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index 6aae06e..0000000 --- a/sdks/ruby/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponsePolicyOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**PolicyOut**](PolicyOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponsePolicyOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md b/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index 7dd8f5f..0000000 --- a/sdks/ruby/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponsePolicySimulationResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponsePolicySimulationResponse.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseRelationshipOut.md b/sdks/ruby/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index 76af294..0000000 --- a/sdks/ruby/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseRelationshipOut - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**RelationshipOut**](RelationshipOut.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseRelationshipOut.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/SuccessResponseSimulationResponse.md b/sdks/ruby/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index cd1cd0a..0000000 --- a/sdks/ruby/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# KeyNetra::SuccessResponseSimulationResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data** | [**SimulationResponse**](SimulationResponse.md) | | | -| **meta** | [**MetaBody**](MetaBody.md) | | [optional] | -| **error** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::SuccessResponseSimulationResponse.new( - data: null, - meta: null, - error: null -) -``` - diff --git a/sdks/ruby/docs/ValidationError.md b/sdks/ruby/docs/ValidationError.md deleted file mode 100644 index 851d26a..0000000 --- a/sdks/ruby/docs/ValidationError.md +++ /dev/null @@ -1,26 +0,0 @@ -# KeyNetra::ValidationError - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **loc** | [**Array<LocationInner>**](LocationInner.md) | | | -| **msg** | **String** | | | -| **type** | **String** | | | -| **input** | **Object** | | [optional] | -| **ctx** | **Object** | | [optional] | - -## Example - -```ruby -require 'keynetra-client' - -instance = KeyNetra::ValidationError.new( - loc: null, - msg: null, - type: null, - input: null, - ctx: null -) -``` - diff --git a/sdks/ruby/git_push.sh b/sdks/ruby/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/ruby/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/ruby/keynetra-client.gemspec b/sdks/ruby/keynetra-client.gemspec deleted file mode 100644 index 48382aa..0000000 --- a/sdks/ruby/keynetra-client.gemspec +++ /dev/null @@ -1,39 +0,0 @@ -# -*- encoding: utf-8 -*- - -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -$:.push File.expand_path("../lib", __FILE__) -require "keynetra-client/version" - -Gem::Specification.new do |s| - s.name = "keynetra-client" - s.version = KeyNetra::VERSION - s.platform = Gem::Platform::RUBY - s.authors = ["SainathSapa"] - s.email = ["info.djsai@gmail.com"] - s.homepage = "https://github.com/keynetra/keynetra-client-ruby" - s.summary = "Official Ruby Client SDK for the KeyNetra authorization platform." - s.description = "Official Ruby SDK for the KeyNetra authorization platform." - s.license = "Apache-2.0" - s.required_ruby_version = ">= 2.7" - s.metadata = {} - - s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' - - s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' - - s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } - s.test_files = `find spec/*`.split("\n") - s.executables = [] - s.require_paths = ["lib"] -end diff --git a/sdks/ruby/spec/api/access_api_spec.rb b/sdks/ruby/spec/api/access_api_spec.rb deleted file mode 100644 index 4370d63..0000000 --- a/sdks/ruby/spec/api/access_api_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for KeyNetra::AccessApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AccessApi' do - before do - # run before each test - @api_instance = KeyNetra::AccessApi.new - end - - after do - # run after each test - end - - describe 'test an instance of AccessApi' do - it 'should create an instance of AccessApi' do - expect(@api_instance).to be_instance_of(KeyNetra::AccessApi) - end - end - - # unit tests for check_access_batch_check_access_batch_post - # Check Access Batch - # @param batch_access_request - # @param [Hash] opts the optional parameters - # @option opts [String] :policy_set - # @return [SuccessResponseBatchAccessResponse] - describe 'check_access_batch_check_access_batch_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for check_access_check_access_post - # Check Access - # @param access_request - # @param [Hash] opts the optional parameters - # @option opts [String] :policy_set - # @return [SuccessResponseAccessDecisionResponse] - describe 'check_access_check_access_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for simulate_simulate_post - # Simulate - # @param access_request - # @param [Hash] opts the optional parameters - # @return [SuccessResponseSimulationResponse] - describe 'simulate_simulate_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/api/auth_api_spec.rb b/sdks/ruby/spec/api/auth_api_spec.rb deleted file mode 100644 index 74f32bd..0000000 --- a/sdks/ruby/spec/api/auth_api_spec.rb +++ /dev/null @@ -1,57 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for KeyNetra::AuthApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AuthApi' do - before do - # run before each test - @api_instance = KeyNetra::AuthApi.new - end - - after do - # run after each test - end - - describe 'test an instance of AuthApi' do - it 'should create an instance of AuthApi' do - expect(@api_instance).to be_instance_of(KeyNetra::AuthApi) - end - end - - # unit tests for admin_login_admin_login_post - # Admin Login - # @param admin_login_request - # @param [Hash] opts the optional parameters - # @return [SuccessResponseAdminLoginResponse] - describe 'admin_login_admin_login_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for admin_login_admin_login_post_0 - # Admin Login - # @param admin_login_request - # @param [Hash] opts the optional parameters - # @return [SuccessResponseAdminLoginResponse] - describe 'admin_login_admin_login_post_0 test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/api/dev_api_spec.rb b/sdks/ruby/spec/api/dev_api_spec.rb deleted file mode 100644 index 40b701d..0000000 --- a/sdks/ruby/spec/api/dev_api_spec.rb +++ /dev/null @@ -1,56 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for KeyNetra::DevApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DevApi' do - before do - # run before each test - @api_instance = KeyNetra::DevApi.new - end - - after do - # run after each test - end - - describe 'test an instance of DevApi' do - it 'should create an instance of DevApi' do - expect(@api_instance).to be_instance_of(KeyNetra::DevApi) - end - end - - # unit tests for get_sample_data_dev_sample_data_get - # Get Sample Data - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrObject] - describe 'get_sample_data_dev_sample_data_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for seed_sample_data_dev_sample_data_seed_post - # Seed Sample Data - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :reset Clear the sample dataset before reseeding it. - # @return [SuccessResponseDictStrObject] - describe 'seed_sample_data_dev_sample_data_seed_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/api/health_api_spec.rb b/sdks/ruby/spec/api/health_api_spec.rb deleted file mode 100644 index 6b02cdd..0000000 --- a/sdks/ruby/spec/api/health_api_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for KeyNetra::HealthApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'HealthApi' do - before do - # run before each test - @api_instance = KeyNetra::HealthApi.new - end - - after do - # run after each test - end - - describe 'test an instance of HealthApi' do - it 'should create an instance of HealthApi' do - expect(@api_instance).to be_instance_of(KeyNetra::HealthApi) - end - end - - # unit tests for health_health_get - # Health - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrStr] - describe 'health_health_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for liveness_health_live_get - # Liveness - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrStr] - describe 'liveness_health_live_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for readiness_health_ready_get - # Readiness - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrObject] - describe 'readiness_health_ready_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/api/management_api_spec.rb b/sdks/ruby/spec/api/management_api_spec.rb deleted file mode 100644 index 2c76876..0000000 --- a/sdks/ruby/spec/api/management_api_spec.rb +++ /dev/null @@ -1,361 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for KeyNetra::ManagementApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ManagementApi' do - before do - # run before each test - @api_instance = KeyNetra::ManagementApi.new - end - - after do - # run after each test - end - - describe 'test an instance of ManagementApi' do - it 'should create an instance of ManagementApi' do - expect(@api_instance).to be_instance_of(KeyNetra::ManagementApi) - end - end - - # unit tests for add_permission_to_role_roles_role_id_permissions_permission_id_post - # Add Permission To Role - # @param role_id - # @param permission_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponsePermissionOut] - describe 'add_permission_to_role_roles_role_id_permissions_permission_id_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_acl_entry_acl_post - # Create Acl Entry - # @param acl_create - # @param [Hash] opts the optional parameters - # @return [SuccessResponseACLOut] - describe 'create_acl_entry_acl_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_auth_model_auth_model_post - # Create Auth Model - # @param auth_model_create - # @param [Hash] opts the optional parameters - # @return [SuccessResponseAuthModelOut] - describe 'create_auth_model_auth_model_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_permission_permissions_post - # Create Permission - # @param permission_create - # @param [Hash] opts the optional parameters - # @return [PermissionOut] - describe 'create_permission_permissions_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_policy_from_dsl_policies_dsl_post - # Create Policy From Dsl - # @param dsl - # @param [Hash] opts the optional parameters - # @return [SuccessResponsePolicyOut] - describe 'create_policy_from_dsl_policies_dsl_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_policy_policies_post - # Create Policy - # @param policy_create - # @param [Hash] opts the optional parameters - # @return [SuccessResponsePolicyOut] - describe 'create_policy_policies_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_relationship_relationships_post - # Create Relationship - # @param relationship_create - # @param [Hash] opts the optional parameters - # @return [SuccessResponseRelationshipOut] - describe 'create_relationship_relationships_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for create_role_roles_post - # Create Role - # @param role_create - # @param [Hash] opts the optional parameters - # @return [RoleOut] - describe 'create_role_roles_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for delete_acl_entry_acl_acl_id_delete - # Delete Acl Entry - # @param acl_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrInt] - describe 'delete_acl_entry_acl_acl_id_delete test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for delete_permission_permissions_permission_id_delete - # Delete Permission - # @param permission_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrInt] - describe 'delete_permission_permissions_permission_id_delete test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for delete_policy_policies_policy_key_delete - # Delete Policy - # @param policy_key - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrStr] - describe 'delete_policy_policies_policy_key_delete test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for delete_role_roles_role_id_delete - # Delete Role - # @param role_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrInt] - describe 'delete_role_roles_role_id_delete test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for get_auth_model_auth_model_get - # Get Auth Model - # @param [Hash] opts the optional parameters - # @return [SuccessResponseAuthModelOut] - describe 'get_auth_model_auth_model_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for impact_analysis_impact_analysis_post - # Impact Analysis - # @param impact_analysis_request - # @param [Hash] opts the optional parameters - # @return [SuccessResponseImpactAnalysisResponse] - describe 'impact_analysis_impact_analysis_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_acl_entries_acl_resource_type_resource_id_get - # List Acl Entries - # @param resource_type - # @param resource_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseListACLOut] - describe 'list_acl_entries_acl_resource_type_resource_id_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_audit_logs_audit_get - # List Audit Logs - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit - # @option opts [String] :cursor - # @option opts [String] :user_id - # @option opts [String] :resource_id - # @option opts [String] :decision - # @option opts [Time] :start_time - # @option opts [Time] :end_time - # @return [SuccessResponseListAuditRecordOut] - describe 'list_audit_logs_audit_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_permission_roles_permissions_permission_id_roles_get - # List Permission Roles - # @param permission_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseListRoleOut] - describe 'list_permission_roles_permissions_permission_id_roles_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_permissions_permissions_get - # List Permissions - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit - # @option opts [String] :cursor - # @return [SuccessResponseListPermissionOut] - describe 'list_permissions_permissions_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_policies_policies_get - # List Policies - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit - # @option opts [String] :cursor - # @return [SuccessResponseListPolicyOut] - describe 'list_policies_policies_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_relationships_relationships_get - # List Relationships - # @param subject_type - # @param subject_id - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit - # @option opts [String] :cursor - # @return [SuccessResponseListDictStrStr] - describe 'list_relationships_relationships_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_role_permissions_roles_role_id_permissions_get - # List Role Permissions - # @param role_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseListPermissionOut] - describe 'list_role_permissions_roles_role_id_permissions_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for list_roles_roles_get - # List Roles - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit - # @option opts [String] :cursor - # @return [SuccessResponseListRoleOut] - describe 'list_roles_roles_get test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for remove_permission_from_role_roles_role_id_permissions_permission_id_delete - # Remove Permission From Role - # @param role_id - # @param permission_id - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrInt] - describe 'remove_permission_from_role_roles_role_id_permissions_permission_id_delete test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for rollback_policy_policies_policy_key_rollback_version_post - # Rollback Policy - # @param policy_key - # @param version - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrUnionIntStr] - describe 'rollback_policy_policies_policy_key_rollback_version_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for simulate_policy_simulate_policy_post - # Simulate Policy - # @param policy_simulation_request - # @param [Hash] opts the optional parameters - # @return [SuccessResponsePolicySimulationResponse] - describe 'simulate_policy_simulate_policy_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for update_permission_permissions_permission_id_put - # Update Permission - # @param permission_id - # @param permission_update - # @param [Hash] opts the optional parameters - # @return [PermissionOut] - describe 'update_permission_permissions_permission_id_put test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for update_policy_policies_policy_key_put - # Update Policy - # @param policy_key - # @param policy_create - # @param [Hash] opts the optional parameters - # @return [SuccessResponsePolicyOut] - describe 'update_policy_policies_policy_key_put test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - # unit tests for update_role_roles_role_id_put - # Update Role - # @param role_id - # @param role_update - # @param [Hash] opts the optional parameters - # @return [RoleOut] - describe 'update_role_roles_role_id_put test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/api/playground_api_spec.rb b/sdks/ruby/spec/api/playground_api_spec.rb deleted file mode 100644 index ba33714..0000000 --- a/sdks/ruby/spec/api/playground_api_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for KeyNetra::PlaygroundApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlaygroundApi' do - before do - # run before each test - @api_instance = KeyNetra::PlaygroundApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PlaygroundApi' do - it 'should create an instance of PlaygroundApi' do - expect(@api_instance).to be_instance_of(KeyNetra::PlaygroundApi) - end - end - - # unit tests for evaluate_playground_evaluate_post - # Evaluate - # @param playground_evaluate_request - # @param [Hash] opts the optional parameters - # @return [SuccessResponseDictStrAny] - describe 'evaluate_playground_evaluate_post test' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/access_decision_response_spec.rb b/sdks/ruby/spec/models/access_decision_response_spec.rb deleted file mode 100644 index fb8012a..0000000 --- a/sdks/ruby/spec/models/access_decision_response_spec.rb +++ /dev/null @@ -1,72 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AccessDecisionResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AccessDecisionResponse do - #let(:instance) { KeyNetra::AccessDecisionResponse.new } - - describe 'test an instance of AccessDecisionResponse' do - it 'should create an instance of AccessDecisionResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AccessDecisionResponse) - end - end - - describe 'test attribute "allowed"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "decision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "matched_policies"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "reason"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "policy_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "explain_trace"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "revision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/access_request_spec.rb b/sdks/ruby/spec/models/access_request_spec.rb deleted file mode 100644 index 38c4a2e..0000000 --- a/sdks/ruby/spec/models/access_request_spec.rb +++ /dev/null @@ -1,66 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AccessRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AccessRequest do - #let(:instance) { KeyNetra::AccessRequest.new } - - describe 'test an instance of AccessRequest' do - it 'should create an instance of AccessRequest' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AccessRequest) - end - end - - describe 'test attribute "user"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "consistency"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "revision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/acl_create_spec.rb b/sdks/ruby/spec/models/acl_create_spec.rb deleted file mode 100644 index ca33987..0000000 --- a/sdks/ruby/spec/models/acl_create_spec.rb +++ /dev/null @@ -1,66 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::ACLCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::ACLCreate do - #let(:instance) { KeyNetra::ACLCreate.new } - - describe 'test an instance of ACLCreate' do - it 'should create an instance of ACLCreate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::ACLCreate) - end - end - - describe 'test attribute "subject_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "subject_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "effect"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/acl_out_spec.rb b/sdks/ruby/spec/models/acl_out_spec.rb deleted file mode 100644 index 4d2e0b6..0000000 --- a/sdks/ruby/spec/models/acl_out_spec.rb +++ /dev/null @@ -1,84 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::ACLOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::ACLOut do - #let(:instance) { KeyNetra::ACLOut.new } - - describe 'test an instance of ACLOut' do - it 'should create an instance of ACLOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::ACLOut) - end - end - - describe 'test attribute "subject_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "subject_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "effect"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "tenant_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/admin_login_request_spec.rb b/sdks/ruby/spec/models/admin_login_request_spec.rb deleted file mode 100644 index fe12ee3..0000000 --- a/sdks/ruby/spec/models/admin_login_request_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AdminLoginRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AdminLoginRequest do - #let(:instance) { KeyNetra::AdminLoginRequest.new } - - describe 'test an instance of AdminLoginRequest' do - it 'should create an instance of AdminLoginRequest' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AdminLoginRequest) - end - end - - describe 'test attribute "username"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "password"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/admin_login_response_spec.rb b/sdks/ruby/spec/models/admin_login_response_spec.rb deleted file mode 100644 index 924a3bc..0000000 --- a/sdks/ruby/spec/models/admin_login_response_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AdminLoginResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AdminLoginResponse do - #let(:instance) { KeyNetra::AdminLoginResponse.new } - - describe 'test an instance of AdminLoginResponse' do - it 'should create an instance of AdminLoginResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AdminLoginResponse) - end - end - - describe 'test attribute "access_token"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "token_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "expires_in"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "role"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "tenant_key"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/audit_record_out_spec.rb b/sdks/ruby/spec/models/audit_record_out_spec.rb deleted file mode 100644 index 5417049..0000000 --- a/sdks/ruby/spec/models/audit_record_out_spec.rb +++ /dev/null @@ -1,108 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AuditRecordOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AuditRecordOut do - #let(:instance) { KeyNetra::AuditRecordOut.new } - - describe 'test an instance of AuditRecordOut' do - it 'should create an instance of AuditRecordOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AuditRecordOut) - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "principal_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "principal_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "correlation_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "user"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "decision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "matched_policies"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "reason"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "evaluated_rules"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "failed_conditions"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/auth_model_create_spec.rb b/sdks/ruby/spec/models/auth_model_create_spec.rb deleted file mode 100644 index 7cb65fd..0000000 --- a/sdks/ruby/spec/models/auth_model_create_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AuthModelCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AuthModelCreate do - #let(:instance) { KeyNetra::AuthModelCreate.new } - - describe 'test an instance of AuthModelCreate' do - it 'should create an instance of AuthModelCreate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AuthModelCreate) - end - end - - describe 'test attribute "schema"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/auth_model_out_spec.rb b/sdks/ruby/spec/models/auth_model_out_spec.rb deleted file mode 100644 index a2af8cf..0000000 --- a/sdks/ruby/spec/models/auth_model_out_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::AuthModelOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::AuthModelOut do - #let(:instance) { KeyNetra::AuthModelOut.new } - - describe 'test an instance of AuthModelOut' do - it 'should create an instance of AuthModelOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::AuthModelOut) - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "tenant_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "schema"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "parsed"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "compiled"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/batch_access_item_spec.rb b/sdks/ruby/spec/models/batch_access_item_spec.rb deleted file mode 100644 index 4f4e414..0000000 --- a/sdks/ruby/spec/models/batch_access_item_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::BatchAccessItem -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::BatchAccessItem do - #let(:instance) { KeyNetra::BatchAccessItem.new } - - describe 'test an instance of BatchAccessItem' do - it 'should create an instance of BatchAccessItem' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::BatchAccessItem) - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/batch_access_request_spec.rb b/sdks/ruby/spec/models/batch_access_request_spec.rb deleted file mode 100644 index 68c6fd4..0000000 --- a/sdks/ruby/spec/models/batch_access_request_spec.rb +++ /dev/null @@ -1,54 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::BatchAccessRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::BatchAccessRequest do - #let(:instance) { KeyNetra::BatchAccessRequest.new } - - describe 'test an instance of BatchAccessRequest' do - it 'should create an instance of BatchAccessRequest' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::BatchAccessRequest) - end - end - - describe 'test attribute "user"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "items"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "consistency"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "revision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/batch_access_response_spec.rb b/sdks/ruby/spec/models/batch_access_response_spec.rb deleted file mode 100644 index 6b44a6f..0000000 --- a/sdks/ruby/spec/models/batch_access_response_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::BatchAccessResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::BatchAccessResponse do - #let(:instance) { KeyNetra::BatchAccessResponse.new } - - describe 'test an instance of BatchAccessResponse' do - it 'should create an instance of BatchAccessResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::BatchAccessResponse) - end - end - - describe 'test attribute "results"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "revision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/batch_access_result_spec.rb b/sdks/ruby/spec/models/batch_access_result_spec.rb deleted file mode 100644 index cfed9f7..0000000 --- a/sdks/ruby/spec/models/batch_access_result_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::BatchAccessResult -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::BatchAccessResult do - #let(:instance) { KeyNetra::BatchAccessResult.new } - - describe 'test an instance of BatchAccessResult' do - it 'should create an instance of BatchAccessResult' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::BatchAccessResult) - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "allowed"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "revision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/data_value_spec.rb b/sdks/ruby/spec/models/data_value_spec.rb deleted file mode 100644 index c1f3ab9..0000000 --- a/sdks/ruby/spec/models/data_value_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::DataValue -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::DataValue do -end diff --git a/sdks/ruby/spec/models/http_validation_error_spec.rb b/sdks/ruby/spec/models/http_validation_error_spec.rb deleted file mode 100644 index 95004ab..0000000 --- a/sdks/ruby/spec/models/http_validation_error_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::HTTPValidationError -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::HTTPValidationError do - #let(:instance) { KeyNetra::HTTPValidationError.new } - - describe 'test an instance of HTTPValidationError' do - it 'should create an instance of HTTPValidationError' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::HTTPValidationError) - end - end - - describe 'test attribute "detail"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/impact_analysis_request_spec.rb b/sdks/ruby/spec/models/impact_analysis_request_spec.rb deleted file mode 100644 index 56e0a63..0000000 --- a/sdks/ruby/spec/models/impact_analysis_request_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::ImpactAnalysisRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::ImpactAnalysisRequest do - #let(:instance) { KeyNetra::ImpactAnalysisRequest.new } - - describe 'test an instance of ImpactAnalysisRequest' do - it 'should create an instance of ImpactAnalysisRequest' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::ImpactAnalysisRequest) - end - end - - describe 'test attribute "policy_change"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/impact_analysis_response_spec.rb b/sdks/ruby/spec/models/impact_analysis_response_spec.rb deleted file mode 100644 index 73cff20..0000000 --- a/sdks/ruby/spec/models/impact_analysis_response_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::ImpactAnalysisResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::ImpactAnalysisResponse do - #let(:instance) { KeyNetra::ImpactAnalysisResponse.new } - - describe 'test an instance of ImpactAnalysisResponse' do - it 'should create an instance of ImpactAnalysisResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::ImpactAnalysisResponse) - end - end - - describe 'test attribute "gained_access"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "lost_access"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/location_inner_spec.rb b/sdks/ruby/spec/models/location_inner_spec.rb deleted file mode 100644 index 8c164eb..0000000 --- a/sdks/ruby/spec/models/location_inner_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::LocationInner -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::LocationInner do -end diff --git a/sdks/ruby/spec/models/meta_body_spec.rb b/sdks/ruby/spec/models/meta_body_spec.rb deleted file mode 100644 index 329a2ee..0000000 --- a/sdks/ruby/spec/models/meta_body_spec.rb +++ /dev/null @@ -1,54 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::MetaBody -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::MetaBody do - #let(:instance) { KeyNetra::MetaBody.new } - - describe 'test an instance of MetaBody' do - it 'should create an instance of MetaBody' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::MetaBody) - end - end - - describe 'test attribute "request_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "limit"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "next_cursor"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "extra"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/permission_create_spec.rb b/sdks/ruby/spec/models/permission_create_spec.rb deleted file mode 100644 index 5e585ce..0000000 --- a/sdks/ruby/spec/models/permission_create_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PermissionCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PermissionCreate do - #let(:instance) { KeyNetra::PermissionCreate.new } - - describe 'test an instance of PermissionCreate' do - it 'should create an instance of PermissionCreate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PermissionCreate) - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/permission_out_spec.rb b/sdks/ruby/spec/models/permission_out_spec.rb deleted file mode 100644 index 390e9a1..0000000 --- a/sdks/ruby/spec/models/permission_out_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PermissionOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PermissionOut do - #let(:instance) { KeyNetra::PermissionOut.new } - - describe 'test an instance of PermissionOut' do - it 'should create an instance of PermissionOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PermissionOut) - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/permission_update_spec.rb b/sdks/ruby/spec/models/permission_update_spec.rb deleted file mode 100644 index a26bad4..0000000 --- a/sdks/ruby/spec/models/permission_update_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PermissionUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PermissionUpdate do - #let(:instance) { KeyNetra::PermissionUpdate.new } - - describe 'test an instance of PermissionUpdate' do - it 'should create an instance of PermissionUpdate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PermissionUpdate) - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/playground_evaluate_request_spec.rb b/sdks/ruby/spec/models/playground_evaluate_request_spec.rb deleted file mode 100644 index 0e25f78..0000000 --- a/sdks/ruby/spec/models/playground_evaluate_request_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PlaygroundEvaluateRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PlaygroundEvaluateRequest do - #let(:instance) { KeyNetra::PlaygroundEvaluateRequest.new } - - describe 'test an instance of PlaygroundEvaluateRequest' do - it 'should create an instance of PlaygroundEvaluateRequest' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PlaygroundEvaluateRequest) - end - end - - describe 'test attribute "policies"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "input"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/playground_input_spec.rb b/sdks/ruby/spec/models/playground_input_spec.rb deleted file mode 100644 index 52df863..0000000 --- a/sdks/ruby/spec/models/playground_input_spec.rb +++ /dev/null @@ -1,54 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PlaygroundInput -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PlaygroundInput do - #let(:instance) { KeyNetra::PlaygroundInput.new } - - describe 'test an instance of PlaygroundInput' do - it 'should create an instance of PlaygroundInput' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PlaygroundInput) - end - end - - describe 'test attribute "user"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "resource"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/playground_policy_spec.rb b/sdks/ruby/spec/models/playground_policy_spec.rb deleted file mode 100644 index bcb59d3..0000000 --- a/sdks/ruby/spec/models/playground_policy_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PlaygroundPolicy -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PlaygroundPolicy do - #let(:instance) { KeyNetra::PlaygroundPolicy.new } - - describe 'test an instance of PlaygroundPolicy' do - it 'should create an instance of PlaygroundPolicy' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PlaygroundPolicy) - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "effect"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "priority"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "policy_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "conditions"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/policy_create_spec.rb b/sdks/ruby/spec/models/policy_create_spec.rb deleted file mode 100644 index 8558579..0000000 --- a/sdks/ruby/spec/models/policy_create_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PolicyCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PolicyCreate do - #let(:instance) { KeyNetra::PolicyCreate.new } - - describe 'test an instance of PolicyCreate' do - it 'should create an instance of PolicyCreate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PolicyCreate) - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "effect"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "priority"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "conditions"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/policy_out_spec.rb b/sdks/ruby/spec/models/policy_out_spec.rb deleted file mode 100644 index 760bc84..0000000 --- a/sdks/ruby/spec/models/policy_out_spec.rb +++ /dev/null @@ -1,66 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PolicyOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PolicyOut do - #let(:instance) { KeyNetra::PolicyOut.new } - - describe 'test an instance of PolicyOut' do - it 'should create an instance of PolicyOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PolicyOut) - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "effect"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "priority"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "conditions"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/policy_simulation_input_spec.rb b/sdks/ruby/spec/models/policy_simulation_input_spec.rb deleted file mode 100644 index ea8fb12..0000000 --- a/sdks/ruby/spec/models/policy_simulation_input_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PolicySimulationInput -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PolicySimulationInput do - #let(:instance) { KeyNetra::PolicySimulationInput.new } - - describe 'test an instance of PolicySimulationInput' do - it 'should create an instance of PolicySimulationInput' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PolicySimulationInput) - end - end - - describe 'test attribute "policy_change"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "relationship_change"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "role_change"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/policy_simulation_request_spec.rb b/sdks/ruby/spec/models/policy_simulation_request_spec.rb deleted file mode 100644 index e980411..0000000 --- a/sdks/ruby/spec/models/policy_simulation_request_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PolicySimulationRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PolicySimulationRequest do - #let(:instance) { KeyNetra::PolicySimulationRequest.new } - - describe 'test an instance of PolicySimulationRequest' do - it 'should create an instance of PolicySimulationRequest' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PolicySimulationRequest) - end - end - - describe 'test attribute "simulate"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "request"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/policy_simulation_response_spec.rb b/sdks/ruby/spec/models/policy_simulation_response_spec.rb deleted file mode 100644 index 49b599d..0000000 --- a/sdks/ruby/spec/models/policy_simulation_response_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::PolicySimulationResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::PolicySimulationResponse do - #let(:instance) { KeyNetra::PolicySimulationResponse.new } - - describe 'test an instance of PolicySimulationResponse' do - it 'should create an instance of PolicySimulationResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::PolicySimulationResponse) - end - end - - describe 'test attribute "decision_before"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "decision_after"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/relationship_create_spec.rb b/sdks/ruby/spec/models/relationship_create_spec.rb deleted file mode 100644 index e4c09b6..0000000 --- a/sdks/ruby/spec/models/relationship_create_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::RelationshipCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::RelationshipCreate do - #let(:instance) { KeyNetra::RelationshipCreate.new } - - describe 'test an instance of RelationshipCreate' do - it 'should create an instance of RelationshipCreate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::RelationshipCreate) - end - end - - describe 'test attribute "subject_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "subject_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "relation"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "object_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "object_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/relationship_out_spec.rb b/sdks/ruby/spec/models/relationship_out_spec.rb deleted file mode 100644 index a5c7436..0000000 --- a/sdks/ruby/spec/models/relationship_out_spec.rb +++ /dev/null @@ -1,66 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::RelationshipOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::RelationshipOut do - #let(:instance) { KeyNetra::RelationshipOut.new } - - describe 'test an instance of RelationshipOut' do - it 'should create an instance of RelationshipOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::RelationshipOut) - end - end - - describe 'test attribute "subject_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "subject_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "relation"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "object_type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "object_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/role_create_spec.rb b/sdks/ruby/spec/models/role_create_spec.rb deleted file mode 100644 index 54ac429..0000000 --- a/sdks/ruby/spec/models/role_create_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::RoleCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::RoleCreate do - #let(:instance) { KeyNetra::RoleCreate.new } - - describe 'test an instance of RoleCreate' do - it 'should create an instance of RoleCreate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::RoleCreate) - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/role_out_spec.rb b/sdks/ruby/spec/models/role_out_spec.rb deleted file mode 100644 index 62fad22..0000000 --- a/sdks/ruby/spec/models/role_out_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::RoleOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::RoleOut do - #let(:instance) { KeyNetra::RoleOut.new } - - describe 'test an instance of RoleOut' do - it 'should create an instance of RoleOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::RoleOut) - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/role_update_spec.rb b/sdks/ruby/spec/models/role_update_spec.rb deleted file mode 100644 index 9410524..0000000 --- a/sdks/ruby/spec/models/role_update_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::RoleUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::RoleUpdate do - #let(:instance) { KeyNetra::RoleUpdate.new } - - describe 'test an instance of RoleUpdate' do - it 'should create an instance of RoleUpdate' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::RoleUpdate) - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/simulation_response_spec.rb b/sdks/ruby/spec/models/simulation_response_spec.rb deleted file mode 100644 index 9f29287..0000000 --- a/sdks/ruby/spec/models/simulation_response_spec.rb +++ /dev/null @@ -1,72 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SimulationResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SimulationResponse do - #let(:instance) { KeyNetra::SimulationResponse.new } - - describe 'test an instance of SimulationResponse' do - it 'should create an instance of SimulationResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SimulationResponse) - end - end - - describe 'test attribute "decision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "matched_policies"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "reason"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "policy_id"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "explain_trace"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "failed_conditions"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "revision"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_access_decision_response_spec.rb b/sdks/ruby/spec/models/success_response_access_decision_response_spec.rb deleted file mode 100644 index 8896d9f..0000000 --- a/sdks/ruby/spec/models/success_response_access_decision_response_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseAccessDecisionResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseAccessDecisionResponse do - #let(:instance) { KeyNetra::SuccessResponseAccessDecisionResponse.new } - - describe 'test an instance of SuccessResponseAccessDecisionResponse' do - it 'should create an instance of SuccessResponseAccessDecisionResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseAccessDecisionResponse) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_acl_out_spec.rb b/sdks/ruby/spec/models/success_response_acl_out_spec.rb deleted file mode 100644 index b89bf33..0000000 --- a/sdks/ruby/spec/models/success_response_acl_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseACLOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseACLOut do - #let(:instance) { KeyNetra::SuccessResponseACLOut.new } - - describe 'test an instance of SuccessResponseACLOut' do - it 'should create an instance of SuccessResponseACLOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseACLOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_admin_login_response_spec.rb b/sdks/ruby/spec/models/success_response_admin_login_response_spec.rb deleted file mode 100644 index f363618..0000000 --- a/sdks/ruby/spec/models/success_response_admin_login_response_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseAdminLoginResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseAdminLoginResponse do - #let(:instance) { KeyNetra::SuccessResponseAdminLoginResponse.new } - - describe 'test an instance of SuccessResponseAdminLoginResponse' do - it 'should create an instance of SuccessResponseAdminLoginResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseAdminLoginResponse) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_auth_model_out_spec.rb b/sdks/ruby/spec/models/success_response_auth_model_out_spec.rb deleted file mode 100644 index 84c21a4..0000000 --- a/sdks/ruby/spec/models/success_response_auth_model_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseAuthModelOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseAuthModelOut do - #let(:instance) { KeyNetra::SuccessResponseAuthModelOut.new } - - describe 'test an instance of SuccessResponseAuthModelOut' do - it 'should create an instance of SuccessResponseAuthModelOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseAuthModelOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_batch_access_response_spec.rb b/sdks/ruby/spec/models/success_response_batch_access_response_spec.rb deleted file mode 100644 index 555b125..0000000 --- a/sdks/ruby/spec/models/success_response_batch_access_response_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseBatchAccessResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseBatchAccessResponse do - #let(:instance) { KeyNetra::SuccessResponseBatchAccessResponse.new } - - describe 'test an instance of SuccessResponseBatchAccessResponse' do - it 'should create an instance of SuccessResponseBatchAccessResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseBatchAccessResponse) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_dict_str_any_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_any_spec.rb deleted file mode 100644 index 874f2ed..0000000 --- a/sdks/ruby/spec/models/success_response_dict_str_any_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseDictStrAny -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseDictStrAny do - #let(:instance) { KeyNetra::SuccessResponseDictStrAny.new } - - describe 'test an instance of SuccessResponseDictStrAny' do - it 'should create an instance of SuccessResponseDictStrAny' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrAny) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_dict_str_int_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_int_spec.rb deleted file mode 100644 index 574e9d5..0000000 --- a/sdks/ruby/spec/models/success_response_dict_str_int_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseDictStrInt -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseDictStrInt do - #let(:instance) { KeyNetra::SuccessResponseDictStrInt.new } - - describe 'test an instance of SuccessResponseDictStrInt' do - it 'should create an instance of SuccessResponseDictStrInt' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrInt) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_dict_str_object_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_object_spec.rb deleted file mode 100644 index 7f0f885..0000000 --- a/sdks/ruby/spec/models/success_response_dict_str_object_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseDictStrObject -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseDictStrObject do - #let(:instance) { KeyNetra::SuccessResponseDictStrObject.new } - - describe 'test an instance of SuccessResponseDictStrObject' do - it 'should create an instance of SuccessResponseDictStrObject' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrObject) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_dict_str_str_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_str_spec.rb deleted file mode 100644 index 3adcbdb..0000000 --- a/sdks/ruby/spec/models/success_response_dict_str_str_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseDictStrStr -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseDictStrStr do - #let(:instance) { KeyNetra::SuccessResponseDictStrStr.new } - - describe 'test an instance of SuccessResponseDictStrStr' do - it 'should create an instance of SuccessResponseDictStrStr' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrStr) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb b/sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb deleted file mode 100644 index 411a995..0000000 --- a/sdks/ruby/spec/models/success_response_dict_str_union_int_str_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseDictStrUnionIntStr -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseDictStrUnionIntStr do - #let(:instance) { KeyNetra::SuccessResponseDictStrUnionIntStr.new } - - describe 'test an instance of SuccessResponseDictStrUnionIntStr' do - it 'should create an instance of SuccessResponseDictStrUnionIntStr' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseDictStrUnionIntStr) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb b/sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb deleted file mode 100644 index 7404ed3..0000000 --- a/sdks/ruby/spec/models/success_response_impact_analysis_response_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseImpactAnalysisResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseImpactAnalysisResponse do - #let(:instance) { KeyNetra::SuccessResponseImpactAnalysisResponse.new } - - describe 'test an instance of SuccessResponseImpactAnalysisResponse' do - it 'should create an instance of SuccessResponseImpactAnalysisResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseImpactAnalysisResponse) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_list_acl_out_spec.rb b/sdks/ruby/spec/models/success_response_list_acl_out_spec.rb deleted file mode 100644 index 2518bb1..0000000 --- a/sdks/ruby/spec/models/success_response_list_acl_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseListACLOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseListACLOut do - #let(:instance) { KeyNetra::SuccessResponseListACLOut.new } - - describe 'test an instance of SuccessResponseListACLOut' do - it 'should create an instance of SuccessResponseListACLOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListACLOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb b/sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb deleted file mode 100644 index 56b46bc..0000000 --- a/sdks/ruby/spec/models/success_response_list_audit_record_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseListAuditRecordOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseListAuditRecordOut do - #let(:instance) { KeyNetra::SuccessResponseListAuditRecordOut.new } - - describe 'test an instance of SuccessResponseListAuditRecordOut' do - it 'should create an instance of SuccessResponseListAuditRecordOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListAuditRecordOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb b/sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb deleted file mode 100644 index af40178..0000000 --- a/sdks/ruby/spec/models/success_response_list_dict_str_str_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseListDictStrStr -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseListDictStrStr do - #let(:instance) { KeyNetra::SuccessResponseListDictStrStr.new } - - describe 'test an instance of SuccessResponseListDictStrStr' do - it 'should create an instance of SuccessResponseListDictStrStr' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListDictStrStr) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_list_permission_out_spec.rb b/sdks/ruby/spec/models/success_response_list_permission_out_spec.rb deleted file mode 100644 index ce4d0ba..0000000 --- a/sdks/ruby/spec/models/success_response_list_permission_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseListPermissionOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseListPermissionOut do - #let(:instance) { KeyNetra::SuccessResponseListPermissionOut.new } - - describe 'test an instance of SuccessResponseListPermissionOut' do - it 'should create an instance of SuccessResponseListPermissionOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListPermissionOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_list_policy_out_spec.rb b/sdks/ruby/spec/models/success_response_list_policy_out_spec.rb deleted file mode 100644 index 69cdb68..0000000 --- a/sdks/ruby/spec/models/success_response_list_policy_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseListPolicyOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseListPolicyOut do - #let(:instance) { KeyNetra::SuccessResponseListPolicyOut.new } - - describe 'test an instance of SuccessResponseListPolicyOut' do - it 'should create an instance of SuccessResponseListPolicyOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListPolicyOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_list_role_out_spec.rb b/sdks/ruby/spec/models/success_response_list_role_out_spec.rb deleted file mode 100644 index 8ddb108..0000000 --- a/sdks/ruby/spec/models/success_response_list_role_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseListRoleOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseListRoleOut do - #let(:instance) { KeyNetra::SuccessResponseListRoleOut.new } - - describe 'test an instance of SuccessResponseListRoleOut' do - it 'should create an instance of SuccessResponseListRoleOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseListRoleOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_permission_out_spec.rb b/sdks/ruby/spec/models/success_response_permission_out_spec.rb deleted file mode 100644 index cd75a30..0000000 --- a/sdks/ruby/spec/models/success_response_permission_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponsePermissionOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponsePermissionOut do - #let(:instance) { KeyNetra::SuccessResponsePermissionOut.new } - - describe 'test an instance of SuccessResponsePermissionOut' do - it 'should create an instance of SuccessResponsePermissionOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponsePermissionOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_policy_out_spec.rb b/sdks/ruby/spec/models/success_response_policy_out_spec.rb deleted file mode 100644 index 9abc26d..0000000 --- a/sdks/ruby/spec/models/success_response_policy_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponsePolicyOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponsePolicyOut do - #let(:instance) { KeyNetra::SuccessResponsePolicyOut.new } - - describe 'test an instance of SuccessResponsePolicyOut' do - it 'should create an instance of SuccessResponsePolicyOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponsePolicyOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb b/sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb deleted file mode 100644 index e70c517..0000000 --- a/sdks/ruby/spec/models/success_response_policy_simulation_response_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponsePolicySimulationResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponsePolicySimulationResponse do - #let(:instance) { KeyNetra::SuccessResponsePolicySimulationResponse.new } - - describe 'test an instance of SuccessResponsePolicySimulationResponse' do - it 'should create an instance of SuccessResponsePolicySimulationResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponsePolicySimulationResponse) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_relationship_out_spec.rb b/sdks/ruby/spec/models/success_response_relationship_out_spec.rb deleted file mode 100644 index 66e9b8c..0000000 --- a/sdks/ruby/spec/models/success_response_relationship_out_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseRelationshipOut -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseRelationshipOut do - #let(:instance) { KeyNetra::SuccessResponseRelationshipOut.new } - - describe 'test an instance of SuccessResponseRelationshipOut' do - it 'should create an instance of SuccessResponseRelationshipOut' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseRelationshipOut) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/success_response_simulation_response_spec.rb b/sdks/ruby/spec/models/success_response_simulation_response_spec.rb deleted file mode 100644 index 64b88c4..0000000 --- a/sdks/ruby/spec/models/success_response_simulation_response_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::SuccessResponseSimulationResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::SuccessResponseSimulationResponse do - #let(:instance) { KeyNetra::SuccessResponseSimulationResponse.new } - - describe 'test an instance of SuccessResponseSimulationResponse' do - it 'should create an instance of SuccessResponseSimulationResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::SuccessResponseSimulationResponse) - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/models/validation_error_spec.rb b/sdks/ruby/spec/models/validation_error_spec.rb deleted file mode 100644 index 50dc0c5..0000000 --- a/sdks/ruby/spec/models/validation_error_spec.rb +++ /dev/null @@ -1,60 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for KeyNetra::ValidationError -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe KeyNetra::ValidationError do - #let(:instance) { KeyNetra::ValidationError.new } - - describe 'test an instance of ValidationError' do - it 'should create an instance of ValidationError' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(KeyNetra::ValidationError) - end - end - - describe 'test attribute "loc"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "msg"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "input"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - - describe 'test attribute "ctx"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/sdks/ruby/spec/spec_helper.rb b/sdks/ruby/spec/spec_helper.rb deleted file mode 100644 index 149ff47..0000000 --- a/sdks/ruby/spec/spec_helper.rb +++ /dev/null @@ -1,111 +0,0 @@ -=begin -#KeyNetra - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.1.1 - -Generated by: https://openapi-generator.tech -Generator version: 7.21.0 - -=end - -# load the gem -require 'keynetra-client' - -# The following was generated by the `rspec --init` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# The generated `.rspec` file contains `--require spec_helper` which will cause -# this file to always be loaded, without a need to explicitly require it in any -# files. -# -# Given that it is always loaded, you are encouraged to keep this file as -# light-weight as possible. Requiring heavyweight dependencies from this file -# will add to the boot time of your test suite on EVERY test run, even for an -# individual file that may not need all of that loaded. Instead, consider making -# a separate helper file that requires the additional dependencies and performs -# the additional setup, and require it from the spec files that actually need -# it. -# -# The `.rspec` file also contains a few flags that are not defaults but that -# users commonly want. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -RSpec.configure do |config| - # rspec-expectations config goes here. You can use an alternate - # assertion/expectation library such as wrong or the stdlib/minitest - # assertions if you prefer. - config.expect_with :rspec do |expectations| - # This option will default to `true` in RSpec 4. It makes the `description` - # and `failure_message` of custom matchers include text for helper methods - # defined using `chain`, e.g.: - # be_bigger_than(2).and_smaller_than(4).description - # # => "be bigger than 2 and smaller than 4" - # ...rather than: - # # => "be bigger than 2" - expectations.include_chain_clauses_in_custom_matcher_descriptions = true - end - - # rspec-mocks config goes here. You can use an alternate test double - # library (such as bogus or mocha) by changing the `mock_with` option here. - config.mock_with :rspec do |mocks| - # Prevents you from mocking or stubbing a method that does not exist on - # a real object. This is generally recommended, and will default to - # `true` in RSpec 4. - mocks.verify_partial_doubles = true - end - -# The settings below are suggested to provide a good initial experience -# with RSpec, but feel free to customize to your heart's content. -=begin - # These two settings work together to allow you to limit a spec run - # to individual examples or groups you care about by tagging them with - # `:focus` metadata. When nothing is tagged with `:focus`, all examples - # get run. - config.filter_run :focus - config.run_all_when_everything_filtered = true - - # Allows RSpec to persist some state between runs in order to support - # the `--only-failures` and `--next-failure` CLI options. We recommend - # you configure your source control system to ignore this file. - config.example_status_persistence_file_path = "spec/examples.txt" - - # Limits the available syntax to the non-monkey patched syntax that is - # recommended. For more details, see: - # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ - # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode - config.disable_monkey_patching! - - # This setting enables warnings. It's recommended, but in some cases may - # be too noisy due to issues in dependencies. - config.warnings = true - - # Many RSpec users commonly either run the entire suite or an individual - # file, and it's useful to allow more verbose output when running an - # individual spec file. - if config.files_to_run.one? - # Use the documentation formatter for detailed output, - # unless a formatter has already been configured - # (e.g. via a command-line flag). - config.default_formatter = 'doc' - end - - # Print the 10 slowest examples and example groups at the - # end of the spec run, to help surface which specs are running - # particularly slow. - config.profile_examples = 10 - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = :random - - # Seed global randomization in this process using the `--seed` CLI option. - # Setting this allows you to use `--seed` to deterministically reproduce - # test failures related to randomization by passing the same `--seed` value - # as the one that triggered the failure. - Kernel.srand config.seed -=end -end diff --git a/sdks/rust/.gitignore b/sdks/rust/.gitignore deleted file mode 100644 index 6aa1064..0000000 --- a/sdks/rust/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/target/ -**/*.rs.bk -Cargo.lock diff --git a/sdks/rust/.travis.yml b/sdks/rust/.travis.yml deleted file mode 100644 index 22761ba..0000000 --- a/sdks/rust/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: rust diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml deleted file mode 100644 index 439a6dc..0000000 --- a/sdks/rust/Cargo.toml +++ /dev/null @@ -1,22 +0,0 @@ -[package] -readme = "README.md" -name = "keynetra-client" -version = "0.1.1" -authors = ["KeyNetra "] -description = "Official Rust Client SDK for the KeyNetra authorization platform." -# Override this license by providing a License Object in the OpenAPI. -license = "Apache-2.0" -edition = "2021" - -[dependencies] -serde = { version = "^1.0", features = ["derive"] } -serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] } -serde_json = "^1.0" -serde_repr = "^0.1" -url = "^2.5" -reqwest = { version = "^0.13", default-features = false, features = ["json", "multipart", "query", "form"] } - -[features] -default = ["native-tls"] -native-tls = ["reqwest/native-tls"] -rustls = ["reqwest/rustls"] diff --git a/sdks/rust/README.md b/sdks/rust/README.md deleted file mode 100644 index 2661720..0000000 --- a/sdks/rust/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# keynetra-client - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/rust) - -Official Rust Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Rust applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -cargo add keynetra-client -``` - -## ๐Ÿš€ Quick Start - -```rust -use keynetra_client::keynetra_client::KeyNetraClient; - -let client = KeyNetraClient::new( - "http://localhost:8080", - "YOUR_API_KEY" -); - -// Perform an access check -let decision = client.access() - .check_access(...) - .await?; -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/rust). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-rust](https://github.com/keynetra/keynetra-client-rust) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-rust/issues) -- **License**: Apache-2.0 - diff --git a/sdks/rust/docs/AccessApi.md b/sdks/rust/docs/AccessApi.md deleted file mode 100644 index 8abc809..0000000 --- a/sdks/rust/docs/AccessApi.md +++ /dev/null @@ -1,97 +0,0 @@ -# \AccessApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**check_access_batch_check_access_batch_post**](AccessApi.md#check_access_batch_check_access_batch_post) | **POST** /check-access-batch | Check Access Batch -[**check_access_check_access_post**](AccessApi.md#check_access_check_access_post) | **POST** /check-access | Check Access -[**simulate_simulate_post**](AccessApi.md#simulate_simulate_post) | **POST** /simulate | Simulate - - - -## check_access_batch_check_access_batch_post - -> models::SuccessResponseBatchAccessResponse check_access_batch_check_access_batch_post(batch_access_request, policy_set) -Check Access Batch - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**batch_access_request** | [**BatchAccessRequest**](BatchAccessRequest.md) | | [required] | -**policy_set** | Option<**String**> | | |[default to active] - -### Return type - -[**models::SuccessResponseBatchAccessResponse**](SuccessResponse_BatchAccessResponse_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## check_access_check_access_post - -> models::SuccessResponseAccessDecisionResponse check_access_check_access_post(access_request, policy_set) -Check Access - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**access_request** | [**AccessRequest**](AccessRequest.md) | | [required] | -**policy_set** | Option<**String**> | | |[default to active] - -### Return type - -[**models::SuccessResponseAccessDecisionResponse**](SuccessResponse_AccessDecisionResponse_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## simulate_simulate_post - -> models::SuccessResponseSimulationResponse simulate_simulate_post(access_request) -Simulate - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**access_request** | [**AccessRequest**](AccessRequest.md) | | [required] | - -### Return type - -[**models::SuccessResponseSimulationResponse**](SuccessResponse_SimulationResponse_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/docs/AccessDecisionResponse.md b/sdks/rust/docs/AccessDecisionResponse.md deleted file mode 100644 index 7e59c32..0000000 --- a/sdks/rust/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# AccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **bool** | | -**decision** | **String** | | -**matched_policies** | Option<**Vec**> | | [optional] -**reason** | Option<**String**> | | [optional] -**policy_id** | Option<**String**> | | [optional] -**explain_trace** | Option<**Vec>**> | | [optional] -**revision** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AccessRequest.md b/sdks/rust/docs/AccessRequest.md deleted file mode 100644 index 99c40ab..0000000 --- a/sdks/rust/docs/AccessRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# AccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | Option<**std::collections::HashMap**> | | [optional] -**action** | **String** | | -**resource** | Option<**std::collections::HashMap**> | | [optional] -**context** | Option<**std::collections::HashMap**> | | [optional] -**consistency** | Option<**String**> | | [optional][default to eventual] -**revision** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AclCreate.md b/sdks/rust/docs/AclCreate.md deleted file mode 100644 index 854befe..0000000 --- a/sdks/rust/docs/AclCreate.md +++ /dev/null @@ -1,16 +0,0 @@ -# AclCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject_type** | **String** | | -**subject_id** | **String** | | -**resource_type** | **String** | | -**resource_id** | **String** | | -**action** | **String** | | -**effect** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AclOut.md b/sdks/rust/docs/AclOut.md deleted file mode 100644 index 01c9828..0000000 --- a/sdks/rust/docs/AclOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# AclOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject_type** | **String** | | -**subject_id** | **String** | | -**resource_type** | **String** | | -**resource_id** | **String** | | -**action** | **String** | | -**effect** | **String** | | -**id** | **i32** | | -**tenant_id** | **i32** | | -**created_at** | Option<**String**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AdminLoginRequest.md b/sdks/rust/docs/AdminLoginRequest.md deleted file mode 100644 index 7bac3c6..0000000 --- a/sdks/rust/docs/AdminLoginRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AdminLoginRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**username** | **String** | | -**password** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AdminLoginResponse.md b/sdks/rust/docs/AdminLoginResponse.md deleted file mode 100644 index 0060be6..0000000 --- a/sdks/rust/docs/AdminLoginResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# AdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **String** | | -**token_type** | Option<**String**> | | [optional][default to bearer] -**expires_in** | **i32** | | -**role** | Option<**String**> | | [optional][default to admin] -**tenant_key** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AuditRecordOut.md b/sdks/rust/docs/AuditRecordOut.md deleted file mode 100644 index 02b8517..0000000 --- a/sdks/rust/docs/AuditRecordOut.md +++ /dev/null @@ -1,23 +0,0 @@ -# AuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **i32** | | -**principal_type** | **String** | | -**principal_id** | **String** | | -**correlation_id** | Option<**String**> | | [optional] -**user** | **std::collections::HashMap** | | -**action** | **String** | | -**resource** | **std::collections::HashMap** | | -**decision** | **String** | | -**matched_policies** | **Vec** | | -**reason** | Option<**String**> | | [optional] -**evaluated_rules** | **Vec** | | -**failed_conditions** | **Vec** | | -**created_at** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AuthApi.md b/sdks/rust/docs/AuthApi.md deleted file mode 100644 index 34d7e85..0000000 --- a/sdks/rust/docs/AuthApi.md +++ /dev/null @@ -1,66 +0,0 @@ -# \AuthApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_login_admin_login_post**](AuthApi.md#admin_login_admin_login_post) | **POST** /admin/login | Admin Login -[**admin_login_admin_login_post_0**](AuthApi.md#admin_login_admin_login_post_0) | **POST** /admin/login | Admin Login - - - -## admin_login_admin_login_post - -> models::SuccessResponseAdminLoginResponse admin_login_admin_login_post(admin_login_request) -Admin Login - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | [required] | - -### Return type - -[**models::SuccessResponseAdminLoginResponse**](SuccessResponse_AdminLoginResponse_.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## admin_login_admin_login_post_0 - -> models::SuccessResponseAdminLoginResponse admin_login_admin_login_post_0(admin_login_request) -Admin Login - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**admin_login_request** | [**AdminLoginRequest**](AdminLoginRequest.md) | | [required] | - -### Return type - -[**models::SuccessResponseAdminLoginResponse**](SuccessResponse_AdminLoginResponse_.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/docs/AuthModelCreate.md b/sdks/rust/docs/AuthModelCreate.md deleted file mode 100644 index 3ee310f..0000000 --- a/sdks/rust/docs/AuthModelCreate.md +++ /dev/null @@ -1,11 +0,0 @@ -# AuthModelCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**schema** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/AuthModelOut.md b/sdks/rust/docs/AuthModelOut.md deleted file mode 100644 index 92ab439..0000000 --- a/sdks/rust/docs/AuthModelOut.md +++ /dev/null @@ -1,15 +0,0 @@ -# AuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **i32** | | -**tenant_id** | **i32** | | -**schema** | **String** | | -**parsed** | **std::collections::HashMap** | | -**compiled** | **std::collections::HashMap** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/BatchAccessItem.md b/sdks/rust/docs/BatchAccessItem.md deleted file mode 100644 index d735eb3..0000000 --- a/sdks/rust/docs/BatchAccessItem.md +++ /dev/null @@ -1,12 +0,0 @@ -# BatchAccessItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**resource** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/BatchAccessRequest.md b/sdks/rust/docs/BatchAccessRequest.md deleted file mode 100644 index 3e2071a..0000000 --- a/sdks/rust/docs/BatchAccessRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# BatchAccessRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | Option<**std::collections::HashMap**> | | [optional] -**items** | [**Vec**](BatchAccessItem.md) | | -**consistency** | Option<**String**> | | [optional][default to eventual] -**revision** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/BatchAccessResponse.md b/sdks/rust/docs/BatchAccessResponse.md deleted file mode 100644 index 4ccad20..0000000 --- a/sdks/rust/docs/BatchAccessResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# BatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**Vec**](BatchAccessResult.md) | | -**revision** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/BatchAccessResult.md b/sdks/rust/docs/BatchAccessResult.md deleted file mode 100644 index 0bbe31f..0000000 --- a/sdks/rust/docs/BatchAccessResult.md +++ /dev/null @@ -1,13 +0,0 @@ -# BatchAccessResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**allowed** | **bool** | | -**revision** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/DataValue.md b/sdks/rust/docs/DataValue.md deleted file mode 100644 index 7642193..0000000 --- a/sdks/rust/docs/DataValue.md +++ /dev/null @@ -1,10 +0,0 @@ -# DataValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/DevApi.md b/sdks/rust/docs/DevApi.md deleted file mode 100644 index 6663ef2..0000000 --- a/sdks/rust/docs/DevApi.md +++ /dev/null @@ -1,63 +0,0 @@ -# \DevApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_sample_data_dev_sample_data_get**](DevApi.md#get_sample_data_dev_sample_data_get) | **GET** /dev/sample-data | Get Sample Data -[**seed_sample_data_dev_sample_data_seed_post**](DevApi.md#seed_sample_data_dev_sample_data_seed_post) | **POST** /dev/sample-data/seed | Seed Sample Data - - - -## get_sample_data_dev_sample_data_get - -> models::SuccessResponseDictStrObject get_sample_data_dev_sample_data_get() -Get Sample Data - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**models::SuccessResponseDictStrObject**](SuccessResponse_dict_str__object__.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## seed_sample_data_dev_sample_data_seed_post - -> models::SuccessResponseDictStrObject seed_sample_data_dev_sample_data_seed_post(reset) -Seed Sample Data - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**reset** | Option<**bool**> | Clear the sample dataset before reseeding it. | |[default to false] - -### Return type - -[**models::SuccessResponseDictStrObject**](SuccessResponse_dict_str__object__.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/docs/HealthApi.md b/sdks/rust/docs/HealthApi.md deleted file mode 100644 index e9adab6..0000000 --- a/sdks/rust/docs/HealthApi.md +++ /dev/null @@ -1,86 +0,0 @@ -# \HealthApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**health_health_get**](HealthApi.md#health_health_get) | **GET** /health | Health -[**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness -[**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness - - - -## health_health_get - -> models::SuccessResponseDictStrStr health_health_get() -Health - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**models::SuccessResponseDictStrStr**](SuccessResponse_dict_str__str__.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## liveness_health_live_get - -> models::SuccessResponseDictStrStr liveness_health_live_get() -Liveness - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**models::SuccessResponseDictStrStr**](SuccessResponse_dict_str__str__.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## readiness_health_ready_get - -> models::SuccessResponseDictStrObject readiness_health_ready_get() -Readiness - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**models::SuccessResponseDictStrObject**](SuccessResponse_dict_str__object__.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/docs/HttpValidationError.md b/sdks/rust/docs/HttpValidationError.md deleted file mode 100644 index d111ad5..0000000 --- a/sdks/rust/docs/HttpValidationError.md +++ /dev/null @@ -1,11 +0,0 @@ -# HttpValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**detail** | Option<[**Vec**](ValidationError.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/ImpactAnalysisRequest.md b/sdks/rust/docs/ImpactAnalysisRequest.md deleted file mode 100644 index cdba02a..0000000 --- a/sdks/rust/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# ImpactAnalysisRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policy_change** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/ImpactAnalysisResponse.md b/sdks/rust/docs/ImpactAnalysisResponse.md deleted file mode 100644 index 021babc..0000000 --- a/sdks/rust/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gained_access** | Option<**Vec**> | | [optional] -**lost_access** | Option<**Vec**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/LocationInner.md b/sdks/rust/docs/LocationInner.md deleted file mode 100644 index c5db6f0..0000000 --- a/sdks/rust/docs/LocationInner.md +++ /dev/null @@ -1,10 +0,0 @@ -# LocationInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/ManagementApi.md b/sdks/rust/docs/ManagementApi.md deleted file mode 100644 index ac25d82..0000000 --- a/sdks/rust/docs/ManagementApi.md +++ /dev/null @@ -1,836 +0,0 @@ -# \ManagementApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_permission_to_role_roles_role_id_permissions_permission_id_post**](ManagementApi.md#add_permission_to_role_roles_role_id_permissions_permission_id_post) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -[**create_acl_entry_acl_post**](ManagementApi.md#create_acl_entry_acl_post) | **POST** /acl | Create Acl Entry -[**create_auth_model_auth_model_post**](ManagementApi.md#create_auth_model_auth_model_post) | **POST** /auth-model | Create Auth Model -[**create_permission_permissions_post**](ManagementApi.md#create_permission_permissions_post) | **POST** /permissions | Create Permission -[**create_policy_from_dsl_policies_dsl_post**](ManagementApi.md#create_policy_from_dsl_policies_dsl_post) | **POST** /policies/dsl | Create Policy From Dsl -[**create_policy_policies_post**](ManagementApi.md#create_policy_policies_post) | **POST** /policies | Create Policy -[**create_relationship_relationships_post**](ManagementApi.md#create_relationship_relationships_post) | **POST** /relationships | Create Relationship -[**create_role_roles_post**](ManagementApi.md#create_role_roles_post) | **POST** /roles | Create Role -[**delete_acl_entry_acl_acl_id_delete**](ManagementApi.md#delete_acl_entry_acl_acl_id_delete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -[**delete_permission_permissions_permission_id_delete**](ManagementApi.md#delete_permission_permissions_permission_id_delete) | **DELETE** /permissions/{permission_id} | Delete Permission -[**delete_policy_policies_policy_key_delete**](ManagementApi.md#delete_policy_policies_policy_key_delete) | **DELETE** /policies/{policy_key} | Delete Policy -[**delete_role_roles_role_id_delete**](ManagementApi.md#delete_role_roles_role_id_delete) | **DELETE** /roles/{role_id} | Delete Role -[**get_auth_model_auth_model_get**](ManagementApi.md#get_auth_model_auth_model_get) | **GET** /auth-model | Get Auth Model -[**impact_analysis_impact_analysis_post**](ManagementApi.md#impact_analysis_impact_analysis_post) | **POST** /impact-analysis | Impact Analysis -[**list_acl_entries_acl_resource_type_resource_id_get**](ManagementApi.md#list_acl_entries_acl_resource_type_resource_id_get) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -[**list_audit_logs_audit_get**](ManagementApi.md#list_audit_logs_audit_get) | **GET** /audit | List Audit Logs -[**list_permission_roles_permissions_permission_id_roles_get**](ManagementApi.md#list_permission_roles_permissions_permission_id_roles_get) | **GET** /permissions/{permission_id}/roles | List Permission Roles -[**list_permissions_permissions_get**](ManagementApi.md#list_permissions_permissions_get) | **GET** /permissions | List Permissions -[**list_policies_policies_get**](ManagementApi.md#list_policies_policies_get) | **GET** /policies | List Policies -[**list_relationships_relationships_get**](ManagementApi.md#list_relationships_relationships_get) | **GET** /relationships | List Relationships -[**list_role_permissions_roles_role_id_permissions_get**](ManagementApi.md#list_role_permissions_roles_role_id_permissions_get) | **GET** /roles/{role_id}/permissions | List Role Permissions -[**list_roles_roles_get**](ManagementApi.md#list_roles_roles_get) | **GET** /roles | List Roles -[**remove_permission_from_role_roles_role_id_permissions_permission_id_delete**](ManagementApi.md#remove_permission_from_role_roles_role_id_permissions_permission_id_delete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -[**rollback_policy_policies_policy_key_rollback_version_post**](ManagementApi.md#rollback_policy_policies_policy_key_rollback_version_post) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -[**simulate_policy_simulate_policy_post**](ManagementApi.md#simulate_policy_simulate_policy_post) | **POST** /simulate-policy | Simulate Policy -[**update_permission_permissions_permission_id_put**](ManagementApi.md#update_permission_permissions_permission_id_put) | **PUT** /permissions/{permission_id} | Update Permission -[**update_policy_policies_policy_key_put**](ManagementApi.md#update_policy_policies_policy_key_put) | **PUT** /policies/{policy_key} | Update Policy -[**update_role_roles_role_id_put**](ManagementApi.md#update_role_roles_role_id_put) | **PUT** /roles/{role_id} | Update Role - - - -## add_permission_to_role_roles_role_id_permissions_permission_id_post - -> models::SuccessResponsePermissionOut add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id) -Add Permission To Role - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**role_id** | **i32** | | [required] | -**permission_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponsePermissionOut**](SuccessResponse_PermissionOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_acl_entry_acl_post - -> models::SuccessResponseAclOut create_acl_entry_acl_post(acl_create) -Create Acl Entry - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**acl_create** | [**AclCreate**](AclCreate.md) | | [required] | - -### Return type - -[**models::SuccessResponseAclOut**](SuccessResponse_ACLOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_auth_model_auth_model_post - -> models::SuccessResponseAuthModelOut create_auth_model_auth_model_post(auth_model_create) -Create Auth Model - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**auth_model_create** | [**AuthModelCreate**](AuthModelCreate.md) | | [required] | - -### Return type - -[**models::SuccessResponseAuthModelOut**](SuccessResponse_AuthModelOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_permission_permissions_post - -> models::PermissionOut create_permission_permissions_post(permission_create) -Create Permission - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**permission_create** | [**PermissionCreate**](PermissionCreate.md) | | [required] | - -### Return type - -[**models::PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_policy_from_dsl_policies_dsl_post - -> models::SuccessResponsePolicyOut create_policy_from_dsl_policies_dsl_post(dsl) -Create Policy From Dsl - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**dsl** | **String** | | [required] | - -### Return type - -[**models::SuccessResponsePolicyOut**](SuccessResponse_PolicyOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_policy_policies_post - -> models::SuccessResponsePolicyOut create_policy_policies_post(policy_create) -Create Policy - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**policy_create** | [**PolicyCreate**](PolicyCreate.md) | | [required] | - -### Return type - -[**models::SuccessResponsePolicyOut**](SuccessResponse_PolicyOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_relationship_relationships_post - -> models::SuccessResponseRelationshipOut create_relationship_relationships_post(relationship_create) -Create Relationship - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**relationship_create** | [**RelationshipCreate**](RelationshipCreate.md) | | [required] | - -### Return type - -[**models::SuccessResponseRelationshipOut**](SuccessResponse_RelationshipOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## create_role_roles_post - -> models::RoleOut create_role_roles_post(role_create) -Create Role - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**role_create** | [**RoleCreate**](RoleCreate.md) | | [required] | - -### Return type - -[**models::RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## delete_acl_entry_acl_acl_id_delete - -> models::SuccessResponseDictStrInt delete_acl_entry_acl_acl_id_delete(acl_id) -Delete Acl Entry - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**acl_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## delete_permission_permissions_permission_id_delete - -> models::SuccessResponseDictStrInt delete_permission_permissions_permission_id_delete(permission_id) -Delete Permission - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**permission_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## delete_policy_policies_policy_key_delete - -> models::SuccessResponseDictStrStr delete_policy_policies_policy_key_delete(policy_key) -Delete Policy - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**policy_key** | **String** | | [required] | - -### Return type - -[**models::SuccessResponseDictStrStr**](SuccessResponse_dict_str__str__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## delete_role_roles_role_id_delete - -> models::SuccessResponseDictStrInt delete_role_roles_role_id_delete(role_id) -Delete Role - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**role_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## get_auth_model_auth_model_get - -> models::SuccessResponseAuthModelOut get_auth_model_auth_model_get() -Get Auth Model - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**models::SuccessResponseAuthModelOut**](SuccessResponse_AuthModelOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## impact_analysis_impact_analysis_post - -> models::SuccessResponseImpactAnalysisResponse impact_analysis_impact_analysis_post(impact_analysis_request) -Impact Analysis - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**impact_analysis_request** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | [required] | - -### Return type - -[**models::SuccessResponseImpactAnalysisResponse**](SuccessResponse_ImpactAnalysisResponse_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_acl_entries_acl_resource_type_resource_id_get - -> models::SuccessResponseListAclOut list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id) -List Acl Entries - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**resource_type** | **String** | | [required] | -**resource_id** | **String** | | [required] | - -### Return type - -[**models::SuccessResponseListAclOut**](SuccessResponse_list_ACLOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_audit_logs_audit_get - -> models::SuccessResponseListAuditRecordOut list_audit_logs_audit_get(limit, cursor, user_id, resource_id, decision, start_time, end_time) -List Audit Logs - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**limit** | Option<**i32**> | | |[default to 50] -**cursor** | Option<**String**> | | | -**user_id** | Option<**String**> | | | -**resource_id** | Option<**String**> | | | -**decision** | Option<**String**> | | | -**start_time** | Option<**String**> | | | -**end_time** | Option<**String**> | | | - -### Return type - -[**models::SuccessResponseListAuditRecordOut**](SuccessResponse_list_AuditRecordOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_permission_roles_permissions_permission_id_roles_get - -> models::SuccessResponseListRoleOut list_permission_roles_permissions_permission_id_roles_get(permission_id) -List Permission Roles - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**permission_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseListRoleOut**](SuccessResponse_list_RoleOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_permissions_permissions_get - -> models::SuccessResponseListPermissionOut list_permissions_permissions_get(limit, cursor) -List Permissions - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**limit** | Option<**i32**> | | |[default to 50] -**cursor** | Option<**String**> | | | - -### Return type - -[**models::SuccessResponseListPermissionOut**](SuccessResponse_list_PermissionOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_policies_policies_get - -> models::SuccessResponseListPolicyOut list_policies_policies_get(limit, cursor) -List Policies - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**limit** | Option<**i32**> | | |[default to 50] -**cursor** | Option<**String**> | | | - -### Return type - -[**models::SuccessResponseListPolicyOut**](SuccessResponse_list_PolicyOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_relationships_relationships_get - -> models::SuccessResponseListDictStrStr list_relationships_relationships_get(subject_type, subject_id, limit, cursor) -List Relationships - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**subject_type** | **String** | | [required] | -**subject_id** | **String** | | [required] | -**limit** | Option<**i32**> | | |[default to 50] -**cursor** | Option<**String**> | | | - -### Return type - -[**models::SuccessResponseListDictStrStr**](SuccessResponse_list_dict_str__str___.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_role_permissions_roles_role_id_permissions_get - -> models::SuccessResponseListPermissionOut list_role_permissions_roles_role_id_permissions_get(role_id) -List Role Permissions - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**role_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseListPermissionOut**](SuccessResponse_list_PermissionOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## list_roles_roles_get - -> models::SuccessResponseListRoleOut list_roles_roles_get(limit, cursor) -List Roles - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**limit** | Option<**i32**> | | |[default to 50] -**cursor** | Option<**String**> | | | - -### Return type - -[**models::SuccessResponseListRoleOut**](SuccessResponse_list_RoleOut__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## remove_permission_from_role_roles_role_id_permissions_permission_id_delete - -> models::SuccessResponseDictStrInt remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id) -Remove Permission From Role - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**role_id** | **i32** | | [required] | -**permission_id** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseDictStrInt**](SuccessResponse_dict_str__int__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## rollback_policy_policies_policy_key_rollback_version_post - -> models::SuccessResponseDictStrUnionIntStr rollback_policy_policies_policy_key_rollback_version_post(policy_key, version) -Rollback Policy - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**policy_key** | **String** | | [required] | -**version** | **i32** | | [required] | - -### Return type - -[**models::SuccessResponseDictStrUnionIntStr**](SuccessResponse_dict_str__Union_int__str___.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## simulate_policy_simulate_policy_post - -> models::SuccessResponsePolicySimulationResponse simulate_policy_simulate_policy_post(policy_simulation_request) -Simulate Policy - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**policy_simulation_request** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | [required] | - -### Return type - -[**models::SuccessResponsePolicySimulationResponse**](SuccessResponse_PolicySimulationResponse_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## update_permission_permissions_permission_id_put - -> models::PermissionOut update_permission_permissions_permission_id_put(permission_id, permission_update) -Update Permission - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**permission_id** | **i32** | | [required] | -**permission_update** | [**PermissionUpdate**](PermissionUpdate.md) | | [required] | - -### Return type - -[**models::PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## update_policy_policies_policy_key_put - -> models::SuccessResponsePolicyOut update_policy_policies_policy_key_put(policy_key, policy_create) -Update Policy - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**policy_key** | **String** | | [required] | -**policy_create** | [**PolicyCreate**](PolicyCreate.md) | | [required] | - -### Return type - -[**models::SuccessResponsePolicyOut**](SuccessResponse_PolicyOut_.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## update_role_roles_role_id_put - -> models::RoleOut update_role_roles_role_id_put(role_id, role_update) -Update Role - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**role_id** | **i32** | | [required] | -**role_update** | [**RoleUpdate**](RoleUpdate.md) | | [required] | - -### Return type - -[**models::RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/docs/MetaBody.md b/sdks/rust/docs/MetaBody.md deleted file mode 100644 index 5a070b5..0000000 --- a/sdks/rust/docs/MetaBody.md +++ /dev/null @@ -1,14 +0,0 @@ -# MetaBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request_id** | Option<**String**> | | [optional] -**limit** | Option<**i32**> | | [optional] -**next_cursor** | Option<**String**> | | [optional] -**extra** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PermissionCreate.md b/sdks/rust/docs/PermissionCreate.md deleted file mode 100644 index dd17cc0..0000000 --- a/sdks/rust/docs/PermissionCreate.md +++ /dev/null @@ -1,11 +0,0 @@ -# PermissionCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PermissionOut.md b/sdks/rust/docs/PermissionOut.md deleted file mode 100644 index a5f91d3..0000000 --- a/sdks/rust/docs/PermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# PermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **i32** | | -**action** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PermissionUpdate.md b/sdks/rust/docs/PermissionUpdate.md deleted file mode 100644 index e83f18c..0000000 --- a/sdks/rust/docs/PermissionUpdate.md +++ /dev/null @@ -1,11 +0,0 @@ -# PermissionUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PlaygroundApi.md b/sdks/rust/docs/PlaygroundApi.md deleted file mode 100644 index 5c39be0..0000000 --- a/sdks/rust/docs/PlaygroundApi.md +++ /dev/null @@ -1,37 +0,0 @@ -# \PlaygroundApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate - - - -## evaluate_playground_evaluate_post - -> models::SuccessResponseDictStrAny evaluate_playground_evaluate_post(playground_evaluate_request) -Evaluate - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | [required] | - -### Return type - -[**models::SuccessResponseDictStrAny**](SuccessResponse_dict_str__Any__.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/docs/PlaygroundEvaluateRequest.md b/sdks/rust/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index 3351ff3..0000000 --- a/sdks/rust/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PlaygroundEvaluateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policies** | [**Vec**](PlaygroundPolicy.md) | | -**input** | [**models::PlaygroundInput**](PlaygroundInput.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PlaygroundInput.md b/sdks/rust/docs/PlaygroundInput.md deleted file mode 100644 index f0f97ca..0000000 --- a/sdks/rust/docs/PlaygroundInput.md +++ /dev/null @@ -1,14 +0,0 @@ -# PlaygroundInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | Option<**std::collections::HashMap**> | | [optional] -**resource** | Option<**std::collections::HashMap**> | | [optional] -**action** | Option<**String**> | | [optional][default to ] -**context** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PlaygroundPolicy.md b/sdks/rust/docs/PlaygroundPolicy.md deleted file mode 100644 index 635743c..0000000 --- a/sdks/rust/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,15 +0,0 @@ -# PlaygroundPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**effect** | Option<**String**> | | [optional][default to allow] -**priority** | Option<**i32**> | | [optional][default to 100] -**policy_id** | Option<**String**> | | [optional] -**conditions** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PolicyCreate.md b/sdks/rust/docs/PolicyCreate.md deleted file mode 100644 index 0605206..0000000 --- a/sdks/rust/docs/PolicyCreate.md +++ /dev/null @@ -1,15 +0,0 @@ -# PolicyCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**effect** | Option<**String**> | | [optional][default to allow] -**priority** | Option<**i32**> | | [optional][default to 100] -**state** | Option<**String**> | | [optional][default to active] -**conditions** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PolicyOut.md b/sdks/rust/docs/PolicyOut.md deleted file mode 100644 index 148b60b..0000000 --- a/sdks/rust/docs/PolicyOut.md +++ /dev/null @@ -1,16 +0,0 @@ -# PolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **i32** | | -**action** | **String** | | -**effect** | **String** | | -**priority** | **i32** | | -**state** | Option<**String**> | | [optional][default to active] -**conditions** | **std::collections::HashMap** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PolicySimulationInput.md b/sdks/rust/docs/PolicySimulationInput.md deleted file mode 100644 index a10d289..0000000 --- a/sdks/rust/docs/PolicySimulationInput.md +++ /dev/null @@ -1,13 +0,0 @@ -# PolicySimulationInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policy_change** | Option<**String**> | | [optional] -**relationship_change** | Option<**std::collections::HashMap**> | | [optional] -**role_change** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PolicySimulationRequest.md b/sdks/rust/docs/PolicySimulationRequest.md deleted file mode 100644 index 3c904b4..0000000 --- a/sdks/rust/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PolicySimulationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**simulate** | Option<[**models::PolicySimulationInput**](PolicySimulationInput.md)> | | [optional] -**request** | Option<**std::collections::HashMap**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/PolicySimulationResponse.md b/sdks/rust/docs/PolicySimulationResponse.md deleted file mode 100644 index 4f1384e..0000000 --- a/sdks/rust/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decision_before** | **std::collections::HashMap** | | -**decision_after** | **std::collections::HashMap** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/RelationshipCreate.md b/sdks/rust/docs/RelationshipCreate.md deleted file mode 100644 index 1de9dfd..0000000 --- a/sdks/rust/docs/RelationshipCreate.md +++ /dev/null @@ -1,15 +0,0 @@ -# RelationshipCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject_type** | **String** | | -**subject_id** | **String** | | -**relation** | **String** | | -**object_type** | **String** | | -**object_id** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/RelationshipOut.md b/sdks/rust/docs/RelationshipOut.md deleted file mode 100644 index bd8d884..0000000 --- a/sdks/rust/docs/RelationshipOut.md +++ /dev/null @@ -1,16 +0,0 @@ -# RelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject_type** | **String** | | -**subject_id** | **String** | | -**relation** | **String** | | -**object_type** | **String** | | -**object_id** | **String** | | -**id** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/RoleCreate.md b/sdks/rust/docs/RoleCreate.md deleted file mode 100644 index 4eb1eab..0000000 --- a/sdks/rust/docs/RoleCreate.md +++ /dev/null @@ -1,11 +0,0 @@ -# RoleCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/RoleOut.md b/sdks/rust/docs/RoleOut.md deleted file mode 100644 index c3ef727..0000000 --- a/sdks/rust/docs/RoleOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# RoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **i32** | | -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/RoleUpdate.md b/sdks/rust/docs/RoleUpdate.md deleted file mode 100644 index 8e78b41..0000000 --- a/sdks/rust/docs/RoleUpdate.md +++ /dev/null @@ -1,11 +0,0 @@ -# RoleUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SimulationResponse.md b/sdks/rust/docs/SimulationResponse.md deleted file mode 100644 index 639a5a0..0000000 --- a/sdks/rust/docs/SimulationResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# SimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decision** | **String** | | -**matched_policies** | **Vec** | | -**reason** | Option<**String**> | | [optional] -**policy_id** | Option<**String**> | | [optional] -**explain_trace** | Option<**Vec>**> | | [optional] -**failed_conditions** | Option<**Vec**> | | [optional] -**revision** | Option<**i32**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md b/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index b2f35ae..0000000 --- a/sdks/rust/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseAccessDecisionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::AccessDecisionResponse**](AccessDecisionResponse.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseAclOut.md b/sdks/rust/docs/SuccessResponseAclOut.md deleted file mode 100644 index 75e58a8..0000000 --- a/sdks/rust/docs/SuccessResponseAclOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseAclOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::AclOut**](ACLOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseAdminLoginResponse.md b/sdks/rust/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index 660df9a..0000000 --- a/sdks/rust/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseAdminLoginResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::AdminLoginResponse**](AdminLoginResponse.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseAuthModelOut.md b/sdks/rust/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index 4d3d807..0000000 --- a/sdks/rust/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseAuthModelOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::AuthModelOut**](AuthModelOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseBatchAccessResponse.md b/sdks/rust/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index dedd231..0000000 --- a/sdks/rust/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseBatchAccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::BatchAccessResponse**](BatchAccessResponse.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseDictStrAny.md b/sdks/rust/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index 032f779..0000000 --- a/sdks/rust/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseDictStrAny - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **std::collections::HashMap** | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseDictStrInt.md b/sdks/rust/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 0ed2d24..0000000 --- a/sdks/rust/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseDictStrInt - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **std::collections::HashMap** | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseDictStrObject.md b/sdks/rust/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index 3a727dc..0000000 --- a/sdks/rust/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseDictStrObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **std::collections::HashMap** | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseDictStrStr.md b/sdks/rust/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index 1cfa1d1..0000000 --- a/sdks/rust/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **std::collections::HashMap** | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index d283e9e..0000000 --- a/sdks/rust/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseDictStrUnionIntStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**std::collections::HashMap**](DataValue.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index 5ff74c4..0000000 --- a/sdks/rust/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseImpactAnalysisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseListAclOut.md b/sdks/rust/docs/SuccessResponseListAclOut.md deleted file mode 100644 index a752f94..0000000 --- a/sdks/rust/docs/SuccessResponseListAclOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseListAclOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Vec**](ACLOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseListAuditRecordOut.md b/sdks/rust/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 69975dd..0000000 --- a/sdks/rust/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseListAuditRecordOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Vec**](AuditRecordOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseListDictStrStr.md b/sdks/rust/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index de4d089..0000000 --- a/sdks/rust/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseListDictStrStr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **Vec>** | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseListPermissionOut.md b/sdks/rust/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index c7f02a2..0000000 --- a/sdks/rust/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseListPermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Vec**](PermissionOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseListPolicyOut.md b/sdks/rust/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index 6ffbb68..0000000 --- a/sdks/rust/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseListPolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Vec**](PolicyOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseListRoleOut.md b/sdks/rust/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index daf6ab2..0000000 --- a/sdks/rust/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseListRoleOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Vec**](RoleOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponsePermissionOut.md b/sdks/rust/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index 770d62a..0000000 --- a/sdks/rust/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponsePermissionOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::PermissionOut**](PermissionOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponsePolicyOut.md b/sdks/rust/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index e60fbf1..0000000 --- a/sdks/rust/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponsePolicyOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::PolicyOut**](PolicyOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md b/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index e35fd8e..0000000 --- a/sdks/rust/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponsePolicySimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::PolicySimulationResponse**](PolicySimulationResponse.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseRelationshipOut.md b/sdks/rust/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index eb41e71..0000000 --- a/sdks/rust/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseRelationshipOut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::RelationshipOut**](RelationshipOut.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/SuccessResponseSimulationResponse.md b/sdks/rust/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index 46a52d9..0000000 --- a/sdks/rust/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SuccessResponseSimulationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**models::SimulationResponse**](SimulationResponse.md) | | -**meta** | Option<[**models::MetaBody**](MetaBody.md)> | | [optional] -**error** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/docs/ValidationError.md b/sdks/rust/docs/ValidationError.md deleted file mode 100644 index d7d06bd..0000000 --- a/sdks/rust/docs/ValidationError.md +++ /dev/null @@ -1,15 +0,0 @@ -# ValidationError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loc** | [**Vec**](LocationInner.md) | | -**msg** | **String** | | -**r#type** | **String** | | -**input** | Option<**serde_json::Value**> | | [optional] -**ctx** | Option<**serde_json::Value**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/rust/git_push.sh b/sdks/rust/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/rust/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/swift/.gitignore b/sdks/swift/.gitignore deleted file mode 100644 index 316a845..0000000 --- a/sdks/swift/.gitignore +++ /dev/null @@ -1,100 +0,0 @@ -# Created by https://www.toptal.com/developers/gitignore/api/xcode,swift -# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,swift - -### Swift ### -# Xcode -# -# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore - -## User settings -xcuserdata/ - -## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) -*.xcscmblueprint -*.xccheckout - -## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) -build/ -DerivedData/ -*.moved-aside -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 - -## Obj-C/Swift specific -*.hmap - -## App packaging -*.ipa -*.dSYM.zip -*.dSYM - -## Playgrounds -timeline.xctimeline -playground.xcworkspace - -# Swift Package Manager -# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. -# Packages/ -# Package.pins -# Package.resolved -# *.xcodeproj -# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata -# hence it is not needed unless you have added a package configuration file to your project -# .swiftpm - -.build/ - -# CocoaPods -# We recommend against adding the Pods directory to your .gitignore. However -# you should judge for yourself, the pros and cons are mentioned at: -# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control -# Pods/ -# Add this line if you want to avoid checking in source code from the Xcode workspace -# *.xcworkspace - -# Carthage -# Add this line if you want to avoid checking in source code from Carthage dependencies. -# Carthage/Checkouts - -Carthage/Build/ - -# Accio dependency management -Dependencies/ -.accio/ - -# fastlane -# It is recommended to not store the screenshots in the git repo. -# Instead, use fastlane to re-generate the screenshots whenever they are needed. -# For more information about the recommended setup visit: -# https://docs.fastlane.tools/best-practices/source-control/#source-control - -fastlane/report.xml -fastlane/Preview.html -fastlane/screenshots/**/*.png -fastlane/test_output - -# Code Injection -# After new code Injection tools there's a generated folder /iOSInjectionProject -# https://github.com/johnno1962/injectionforxcode - -iOSInjectionProject/ - -### Xcode ### - -## Xcode 8 and earlier - -### Xcode Patch ### -*.xcodeproj/* -!*.xcodeproj/project.pbxproj -!*.xcodeproj/xcshareddata/ -!*.xcworkspace/contents.xcworkspacedata -/*.gcno -**/xcshareddata/WorkspaceSettings.xcsettings - -# End of https://www.toptal.com/developers/gitignore/api/xcode,swift diff --git a/sdks/swift/.swiftformat b/sdks/swift/.swiftformat deleted file mode 100644 index 9300725..0000000 --- a/sdks/swift/.swiftformat +++ /dev/null @@ -1,45 +0,0 @@ -# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/ -# -# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md -# -# file options - -# uncomment below to exclude files, folders -#--exclude path/to/test1.swift,Snapshots,Build - -# format options - ---allman false ---binarygrouping 4,8 ---commas always ---comments indent ---decimalgrouping 3,6 ---elseposition same-line ---empty void ---exponentcase lowercase ---exponentgrouping disabled ---fractiongrouping disabled ---header ignore ---hexgrouping 4,8 ---hexliteralcase uppercase ---ifdef indent ---indent 4 ---indentcase false ---importgrouping testable-bottom ---linebreaks lf ---maxwidth none ---octalgrouping 4,8 ---operatorfunc spaced ---patternlet hoist ---ranges spaced ---self remove ---semicolons inline ---stripunusedargs always ---swiftversion 5.4 ---trimwhitespace always ---wraparguments preserve ---wrapcollections preserve - -# rules - ---enable isEmpty diff --git a/sdks/swift/Cartfile b/sdks/swift/Cartfile deleted file mode 100644 index 8b13789..0000000 --- a/sdks/swift/Cartfile +++ /dev/null @@ -1 +0,0 @@ - diff --git a/sdks/swift/KeyNetraClient.podspec b/sdks/swift/KeyNetraClient.podspec deleted file mode 100644 index 9ccbad6..0000000 --- a/sdks/swift/KeyNetraClient.podspec +++ /dev/null @@ -1,15 +0,0 @@ -Pod::Spec.new do |s| - s.name = 'KeyNetraClient' - s.ios.deployment_target = '13.0' - s.osx.deployment_target = '10.15' - s.tvos.deployment_target = '13.0' - s.watchos.deployment_target = '6.0' - s.version = '0.1.1' - s.source = https://github.com/keynetra/keynetra-client-swift - s.authors = 'KeyNetra' - s.license = Apache-2.0 - s.homepage = 'https://keynetra.com' - s.summary = 'Official Swift Client SDK for the KeyNetra authorization platform.' - s.description = 'KeyNetra provides high-performance, distributed authorization as a service. This SDK allows Swift applications to integrate with KeyNetra for access control.' - s.source_files = 'Sources/KeyNetraClient/**/*.swift' -end diff --git a/sdks/swift/Package.swift b/sdks/swift/Package.swift deleted file mode 100644 index 6f1761f..0000000 --- a/sdks/swift/Package.swift +++ /dev/null @@ -1,33 +0,0 @@ -// swift-tools-version:6.0 - -import PackageDescription - -let package = Package( - name: "KeyNetraClient", - platforms: [ - .iOS(.v13), - .macOS(.v10_15), - .tvOS(.v13), - .watchOS(.v6), - ], - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "KeyNetraClient", - targets: ["KeyNetraClient"] - ), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "KeyNetraClient", - dependencies: [], - path: "Sources/KeyNetraClient" - ), - ], - swiftLanguageModes: [.v6] -) diff --git a/sdks/swift/README.md b/sdks/swift/README.md deleted file mode 100644 index 597c44d..0000000 --- a/sdks/swift/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# KeyNetraClient - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/swift) - -Official Swift Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your Swift applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -dependencies: [ - .package(url: "https://github.com/keynetra/keynetra-client-swift.git", from: "0.1.1") -] -``` - -## ๐Ÿš€ Quick Start - -```swift -import KeyNetraClient - -let client = KeyNetraClient( - baseUrl: "http://localhost:8080", - apiKey: "YOUR_API_KEY" -) - -// Perform an access check -client.accessApi.checkAccess(...) -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/swift). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-swift](https://github.com/keynetra/keynetra-client-swift) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-swift/issues) -- **License**: Apache-2.0 - diff --git a/sdks/swift/docs/ACLCreate.md b/sdks/swift/docs/ACLCreate.md deleted file mode 100644 index 19951f7..0000000 --- a/sdks/swift/docs/ACLCreate.md +++ /dev/null @@ -1,15 +0,0 @@ -# ACLCreate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **String** | | -**subjectId** | **String** | | -**resourceType** | **String** | | -**resourceId** | **String** | | -**action** | **String** | | -**effect** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/ACLOut.md b/sdks/swift/docs/ACLOut.md deleted file mode 100644 index 68e9da7..0000000 --- a/sdks/swift/docs/ACLOut.md +++ /dev/null @@ -1,18 +0,0 @@ -# ACLOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **String** | | -**subjectId** | **String** | | -**resourceType** | **String** | | -**resourceId** | **String** | | -**action** | **String** | | -**effect** | **String** | | -**id** | **Int** | | -**tenantId** | **Int** | | -**createdAt** | **Date** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AccessAPI.md b/sdks/swift/docs/AccessAPI.md deleted file mode 100644 index c2507d7..0000000 --- a/sdks/swift/docs/AccessAPI.md +++ /dev/null @@ -1,159 +0,0 @@ -# AccessAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**checkAccessBatchCheckAccessBatchPost**](AccessAPI.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch -[**checkAccessCheckAccessPost**](AccessAPI.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access -[**simulateSimulatePost**](AccessAPI.md#simulatesimulatepost) | **POST** /simulate | Simulate - - -# **checkAccessBatchCheckAccessBatchPost** -```swift - open class func checkAccessBatchCheckAccessBatchPost(batchAccessRequest: BatchAccessRequest, policySet: String? = nil, completion: @escaping (_ data: SuccessResponseBatchAccessResponse?, _ error: Error?) -> Void) -``` - -Check Access Batch - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let batchAccessRequest = BatchAccessRequest(user: "TODO", items: [BatchAccessItem(action: "action_example", resource: "TODO")], consistency: "consistency_example", revision: 123) // BatchAccessRequest | -let policySet = "policySet_example" // String | (optional) (default to "active") - -// Check Access Batch -AccessAPI.checkAccessBatchCheckAccessBatchPost(batchAccessRequest: batchAccessRequest, policySet: policySet) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **batchAccessRequest** | [**BatchAccessRequest**](BatchAccessRequest.md) | | - **policySet** | **String** | | [optional] [default to "active"] - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **checkAccessCheckAccessPost** -```swift - open class func checkAccessCheckAccessPost(accessRequest: AccessRequest, policySet: String? = nil, completion: @escaping (_ data: SuccessResponseAccessDecisionResponse?, _ error: Error?) -> Void) -``` - -Check Access - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let accessRequest = AccessRequest(user: "TODO", action: "action_example", resource: "TODO", context: "TODO", consistency: "consistency_example", revision: 123) // AccessRequest | -let policySet = "policySet_example" // String | (optional) (default to "active") - -// Check Access -AccessAPI.checkAccessCheckAccessPost(accessRequest: accessRequest, policySet: policySet) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **accessRequest** | [**AccessRequest**](AccessRequest.md) | | - **policySet** | **String** | | [optional] [default to "active"] - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **simulateSimulatePost** -```swift - open class func simulateSimulatePost(accessRequest: AccessRequest, completion: @escaping (_ data: SuccessResponseSimulationResponse?, _ error: Error?) -> Void) -``` - -Simulate - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let accessRequest = AccessRequest(user: "TODO", action: "action_example", resource: "TODO", context: "TODO", consistency: "consistency_example", revision: 123) // AccessRequest | - -// Simulate -AccessAPI.simulateSimulatePost(accessRequest: accessRequest) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **accessRequest** | [**AccessRequest**](AccessRequest.md) | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/swift/docs/AccessDecisionResponse.md b/sdks/swift/docs/AccessDecisionResponse.md deleted file mode 100644 index 2d3c741..0000000 --- a/sdks/swift/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# AccessDecisionResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Bool** | | -**decision** | **String** | | -**matchedPolicies** | **[String]** | | [optional] -**reason** | **String** | | [optional] -**policyId** | **String** | | [optional] -**explainTrace** | [[String: JSONValue]] | | [optional] -**revision** | **Int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AccessRequest.md b/sdks/swift/docs/AccessRequest.md deleted file mode 100644 index bb8e61e..0000000 --- a/sdks/swift/docs/AccessRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# AccessRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **[String: JSONValue]** | | [optional] -**action** | **String** | | -**resource** | **[String: JSONValue]** | | [optional] -**context** | **[String: JSONValue]** | | [optional] -**consistency** | **String** | | [optional] [default to "eventual"] -**revision** | **Int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AdminLoginRequest.md b/sdks/swift/docs/AdminLoginRequest.md deleted file mode 100644 index 9b240c8..0000000 --- a/sdks/swift/docs/AdminLoginRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AdminLoginRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**username** | **String** | | -**password** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AdminLoginResponse.md b/sdks/swift/docs/AdminLoginResponse.md deleted file mode 100644 index b01d06a..0000000 --- a/sdks/swift/docs/AdminLoginResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# AdminLoginResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | | -**tokenType** | **String** | | [optional] [default to "bearer"] -**expiresIn** | **Int** | | -**role** | **String** | | [optional] [default to "admin"] -**tenantKey** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AuditRecordOut.md b/sdks/swift/docs/AuditRecordOut.md deleted file mode 100644 index 47ec7a1..0000000 --- a/sdks/swift/docs/AuditRecordOut.md +++ /dev/null @@ -1,22 +0,0 @@ -# AuditRecordOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Int** | | -**principalType** | **String** | | -**principalId** | **String** | | -**correlationId** | **String** | | [optional] -**user** | **[String: JSONValue]** | | -**action** | **String** | | -**resource** | **[String: JSONValue]** | | -**decision** | **String** | | -**matchedPolicies** | **[JSONValue]** | | -**reason** | **String** | | [optional] -**evaluatedRules** | **[JSONValue]** | | -**failedConditions** | **[JSONValue]** | | -**createdAt** | **Date** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AuthAPI.md b/sdks/swift/docs/AuthAPI.md deleted file mode 100644 index 59b1422..0000000 --- a/sdks/swift/docs/AuthAPI.md +++ /dev/null @@ -1,106 +0,0 @@ -# AuthAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**adminLoginAdminLoginPost**](AuthAPI.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login -[**adminLoginAdminLoginPost_0**](AuthAPI.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login - - -# **adminLoginAdminLoginPost** -```swift - open class func adminLoginAdminLoginPost(adminLoginRequest: AdminLoginRequest, completion: @escaping (_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void) -``` - -Admin Login - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let adminLoginRequest = AdminLoginRequest(username: "username_example", password: "password_example") // AdminLoginRequest | - -// Admin Login -AuthAPI.adminLoginAdminLoginPost(adminLoginRequest: adminLoginRequest) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **adminLoginAdminLoginPost_0** -```swift - open class func adminLoginAdminLoginPost_0(adminLoginRequest: AdminLoginRequest, completion: @escaping (_ data: SuccessResponseAdminLoginResponse?, _ error: Error?) -> Void) -``` - -Admin Login - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let adminLoginRequest = AdminLoginRequest(username: "username_example", password: "password_example") // AdminLoginRequest | - -// Admin Login -AuthAPI.adminLoginAdminLoginPost_0(adminLoginRequest: adminLoginRequest) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **adminLoginRequest** | [**AdminLoginRequest**](AdminLoginRequest.md) | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/swift/docs/AuthModelCreate.md b/sdks/swift/docs/AuthModelCreate.md deleted file mode 100644 index 40adea1..0000000 --- a/sdks/swift/docs/AuthModelCreate.md +++ /dev/null @@ -1,10 +0,0 @@ -# AuthModelCreate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**schema** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/AuthModelOut.md b/sdks/swift/docs/AuthModelOut.md deleted file mode 100644 index d34a36d..0000000 --- a/sdks/swift/docs/AuthModelOut.md +++ /dev/null @@ -1,14 +0,0 @@ -# AuthModelOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Int** | | -**tenantId** | **Int** | | -**schema** | **String** | | -**parsed** | **[String: JSONValue]** | | -**compiled** | **[String: JSONValue]** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/BatchAccessItem.md b/sdks/swift/docs/BatchAccessItem.md deleted file mode 100644 index 6f017cc..0000000 --- a/sdks/swift/docs/BatchAccessItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# BatchAccessItem - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**resource** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/BatchAccessRequest.md b/sdks/swift/docs/BatchAccessRequest.md deleted file mode 100644 index 801fcaa..0000000 --- a/sdks/swift/docs/BatchAccessRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# BatchAccessRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **[String: JSONValue]** | | [optional] -**items** | [BatchAccessItem] | | -**consistency** | **String** | | [optional] [default to "eventual"] -**revision** | **Int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/BatchAccessResponse.md b/sdks/swift/docs/BatchAccessResponse.md deleted file mode 100644 index 5b27701..0000000 --- a/sdks/swift/docs/BatchAccessResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# BatchAccessResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [BatchAccessResult] | | -**revision** | **Int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/BatchAccessResult.md b/sdks/swift/docs/BatchAccessResult.md deleted file mode 100644 index 62568a2..0000000 --- a/sdks/swift/docs/BatchAccessResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# BatchAccessResult - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**allowed** | **Bool** | | -**revision** | **Int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/DataValue.md b/sdks/swift/docs/DataValue.md deleted file mode 100644 index 9bb682a..0000000 --- a/sdks/swift/docs/DataValue.md +++ /dev/null @@ -1,9 +0,0 @@ -# DataValue - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/DevAPI.md b/sdks/swift/docs/DevAPI.md deleted file mode 100644 index 2ecfdd1..0000000 --- a/sdks/swift/docs/DevAPI.md +++ /dev/null @@ -1,102 +0,0 @@ -# DevAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getSampleDataDevSampleDataGet**](DevAPI.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data -[**seedSampleDataDevSampleDataSeedPost**](DevAPI.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data - - -# **getSampleDataDevSampleDataGet** -```swift - open class func getSampleDataDevSampleDataGet(completion: @escaping (_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void) -``` - -Get Sample Data - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - - -// Get Sample Data -DevAPI.getSampleDataDevSampleDataGet() { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **seedSampleDataDevSampleDataSeedPost** -```swift - open class func seedSampleDataDevSampleDataSeedPost(reset: Bool? = nil, completion: @escaping (_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void) -``` - -Seed Sample Data - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let reset = true // Bool | Clear the sample dataset before reseeding it. (optional) (default to false) - -// Seed Sample Data -DevAPI.seedSampleDataDevSampleDataSeedPost(reset: reset) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reset** | **Bool** | Clear the sample dataset before reseeding it. | [optional] [default to false] - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/swift/docs/HTTPValidationError.md b/sdks/swift/docs/HTTPValidationError.md deleted file mode 100644 index e609879..0000000 --- a/sdks/swift/docs/HTTPValidationError.md +++ /dev/null @@ -1,10 +0,0 @@ -# HTTPValidationError - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**detail** | [ValidationError] | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/HealthAPI.md b/sdks/swift/docs/HealthAPI.md deleted file mode 100644 index 3dfdd57..0000000 --- a/sdks/swift/docs/HealthAPI.md +++ /dev/null @@ -1,143 +0,0 @@ -# HealthAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**healthHealthGet**](HealthAPI.md#healthhealthget) | **GET** /health | Health -[**livenessHealthLiveGet**](HealthAPI.md#livenesshealthliveget) | **GET** /health/live | Liveness -[**readinessHealthReadyGet**](HealthAPI.md#readinesshealthreadyget) | **GET** /health/ready | Readiness - - -# **healthHealthGet** -```swift - open class func healthHealthGet(completion: @escaping (_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void) -``` - -Health - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - - -// Health -HealthAPI.healthHealthGet() { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **livenessHealthLiveGet** -```swift - open class func livenessHealthLiveGet(completion: @escaping (_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void) -``` - -Liveness - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - - -// Liveness -HealthAPI.livenessHealthLiveGet() { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **readinessHealthReadyGet** -```swift - open class func readinessHealthReadyGet(completion: @escaping (_ data: SuccessResponseDictStrObject?, _ error: Error?) -> Void) -``` - -Readiness - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - - -// Readiness -HealthAPI.readinessHealthReadyGet() { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/swift/docs/ImpactAnalysisRequest.md b/sdks/swift/docs/ImpactAnalysisRequest.md deleted file mode 100644 index e86b403..0000000 --- a/sdks/swift/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# ImpactAnalysisRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policyChange** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/ImpactAnalysisResponse.md b/sdks/swift/docs/ImpactAnalysisResponse.md deleted file mode 100644 index 16f8708..0000000 --- a/sdks/swift/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ImpactAnalysisResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gainedAccess** | **[Int]** | | [optional] -**lostAccess** | **[Int]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/LocationInner.md b/sdks/swift/docs/LocationInner.md deleted file mode 100644 index 3d04747..0000000 --- a/sdks/swift/docs/LocationInner.md +++ /dev/null @@ -1,9 +0,0 @@ -# LocationInner - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/ManagementAPI.md b/sdks/swift/docs/ManagementAPI.md deleted file mode 100644 index eb3df16..0000000 --- a/sdks/swift/docs/ManagementAPI.md +++ /dev/null @@ -1,1414 +0,0 @@ -# ManagementAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementAPI.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role -[**createAclEntryAclPost**](ManagementAPI.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry -[**createAuthModelAuthModelPost**](ManagementAPI.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model -[**createPermissionPermissionsPost**](ManagementAPI.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission -[**createPolicyFromDslPoliciesDslPost**](ManagementAPI.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl -[**createPolicyPoliciesPost**](ManagementAPI.md#createpolicypoliciespost) | **POST** /policies | Create Policy -[**createRelationshipRelationshipsPost**](ManagementAPI.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship -[**createRoleRolesPost**](ManagementAPI.md#createrolerolespost) | **POST** /roles | Create Role -[**deleteAclEntryAclAclIdDelete**](ManagementAPI.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry -[**deletePermissionPermissionsPermissionIdDelete**](ManagementAPI.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission -[**deletePolicyPoliciesPolicyKeyDelete**](ManagementAPI.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy -[**deleteRoleRolesRoleIdDelete**](ManagementAPI.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role -[**getAuthModelAuthModelGet**](ManagementAPI.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model -[**impactAnalysisImpactAnalysisPost**](ManagementAPI.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis -[**listAclEntriesAclResourceTypeResourceIdGet**](ManagementAPI.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries -[**listAuditLogsAuditGet**](ManagementAPI.md#listauditlogsauditget) | **GET** /audit | List Audit Logs -[**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementAPI.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles -[**listPermissionsPermissionsGet**](ManagementAPI.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions -[**listPoliciesPoliciesGet**](ManagementAPI.md#listpoliciespoliciesget) | **GET** /policies | List Policies -[**listRelationshipsRelationshipsGet**](ManagementAPI.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships -[**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementAPI.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions -[**listRolesRolesGet**](ManagementAPI.md#listrolesrolesget) | **GET** /roles | List Roles -[**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementAPI.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role -[**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementAPI.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy -[**simulatePolicySimulatePolicyPost**](ManagementAPI.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy -[**updatePermissionPermissionsPermissionIdPut**](ManagementAPI.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission -[**updatePolicyPoliciesPolicyKeyPut**](ManagementAPI.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy -[**updateRoleRolesRoleIdPut**](ManagementAPI.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role - - -# **addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost** -```swift - open class func addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId: Int, permissionId: Int, completion: @escaping (_ data: SuccessResponsePermissionOut?, _ error: Error?) -> Void) -``` - -Add Permission To Role - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let roleId = 987 // Int | -let permissionId = 987 // Int | - -// Add Permission To Role -ManagementAPI.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId: roleId, permissionId: permissionId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleId** | **Int** | | - **permissionId** | **Int** | | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createAclEntryAclPost** -```swift - open class func createAclEntryAclPost(aCLCreate: ACLCreate, completion: @escaping (_ data: SuccessResponseACLOut?, _ error: Error?) -> Void) -``` - -Create Acl Entry - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let aCLCreate = ACLCreate(subjectType: "subjectType_example", subjectId: "subjectId_example", resourceType: "resourceType_example", resourceId: "resourceId_example", action: "action_example", effect: "effect_example") // ACLCreate | - -// Create Acl Entry -ManagementAPI.createAclEntryAclPost(aCLCreate: aCLCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **aCLCreate** | [**ACLCreate**](ACLCreate.md) | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createAuthModelAuthModelPost** -```swift - open class func createAuthModelAuthModelPost(authModelCreate: AuthModelCreate, completion: @escaping (_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void) -``` - -Create Auth Model - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let authModelCreate = AuthModelCreate(schema: "schema_example") // AuthModelCreate | - -// Create Auth Model -ManagementAPI.createAuthModelAuthModelPost(authModelCreate: authModelCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **authModelCreate** | [**AuthModelCreate**](AuthModelCreate.md) | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createPermissionPermissionsPost** -```swift - open class func createPermissionPermissionsPost(permissionCreate: PermissionCreate, completion: @escaping (_ data: PermissionOut?, _ error: Error?) -> Void) -``` - -Create Permission - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let permissionCreate = PermissionCreate(action: "action_example") // PermissionCreate | - -// Create Permission -ManagementAPI.createPermissionPermissionsPost(permissionCreate: permissionCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permissionCreate** | [**PermissionCreate**](PermissionCreate.md) | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createPolicyFromDslPoliciesDslPost** -```swift - open class func createPolicyFromDslPoliciesDslPost(dsl: String, completion: @escaping (_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void) -``` - -Create Policy From Dsl - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let dsl = "dsl_example" // String | - -// Create Policy From Dsl -ManagementAPI.createPolicyFromDslPoliciesDslPost(dsl: dsl) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **dsl** | **String** | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createPolicyPoliciesPost** -```swift - open class func createPolicyPoliciesPost(policyCreate: PolicyCreate, completion: @escaping (_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void) -``` - -Create Policy - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let policyCreate = PolicyCreate(action: "action_example", effect: "effect_example", priority: 123, state: "state_example", conditions: "TODO") // PolicyCreate | - -// Create Policy -ManagementAPI.createPolicyPoliciesPost(policyCreate: policyCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createRelationshipRelationshipsPost** -```swift - open class func createRelationshipRelationshipsPost(relationshipCreate: RelationshipCreate, completion: @escaping (_ data: SuccessResponseRelationshipOut?, _ error: Error?) -> Void) -``` - -Create Relationship - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let relationshipCreate = RelationshipCreate(subjectType: "subjectType_example", subjectId: "subjectId_example", relation: "relation_example", objectType: "objectType_example", objectId: "objectId_example") // RelationshipCreate | - -// Create Relationship -ManagementAPI.createRelationshipRelationshipsPost(relationshipCreate: relationshipCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **relationshipCreate** | [**RelationshipCreate**](RelationshipCreate.md) | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createRoleRolesPost** -```swift - open class func createRoleRolesPost(roleCreate: RoleCreate, completion: @escaping (_ data: RoleOut?, _ error: Error?) -> Void) -``` - -Create Role - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let roleCreate = RoleCreate(name: "name_example") // RoleCreate | - -// Create Role -ManagementAPI.createRoleRolesPost(roleCreate: roleCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleCreate** | [**RoleCreate**](RoleCreate.md) | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteAclEntryAclAclIdDelete** -```swift - open class func deleteAclEntryAclAclIdDelete(aclId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) -``` - -Delete Acl Entry - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let aclId = 987 // Int | - -// Delete Acl Entry -ManagementAPI.deleteAclEntryAclAclIdDelete(aclId: aclId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **aclId** | **Int** | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deletePermissionPermissionsPermissionIdDelete** -```swift - open class func deletePermissionPermissionsPermissionIdDelete(permissionId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) -``` - -Delete Permission - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let permissionId = 987 // Int | - -// Delete Permission -ManagementAPI.deletePermissionPermissionsPermissionIdDelete(permissionId: permissionId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permissionId** | **Int** | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deletePolicyPoliciesPolicyKeyDelete** -```swift - open class func deletePolicyPoliciesPolicyKeyDelete(policyKey: String, completion: @escaping (_ data: SuccessResponseDictStrStr?, _ error: Error?) -> Void) -``` - -Delete Policy - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let policyKey = "policyKey_example" // String | - -// Delete Policy -ManagementAPI.deletePolicyPoliciesPolicyKeyDelete(policyKey: policyKey) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policyKey** | **String** | | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteRoleRolesRoleIdDelete** -```swift - open class func deleteRoleRolesRoleIdDelete(roleId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) -``` - -Delete Role - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let roleId = 987 // Int | - -// Delete Role -ManagementAPI.deleteRoleRolesRoleIdDelete(roleId: roleId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleId** | **Int** | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAuthModelAuthModelGet** -```swift - open class func getAuthModelAuthModelGet(completion: @escaping (_ data: SuccessResponseAuthModelOut?, _ error: Error?) -> Void) -``` - -Get Auth Model - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - - -// Get Auth Model -ManagementAPI.getAuthModelAuthModelGet() { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **impactAnalysisImpactAnalysisPost** -```swift - open class func impactAnalysisImpactAnalysisPost(impactAnalysisRequest: ImpactAnalysisRequest, completion: @escaping (_ data: SuccessResponseImpactAnalysisResponse?, _ error: Error?) -> Void) -``` - -Impact Analysis - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let impactAnalysisRequest = ImpactAnalysisRequest(policyChange: "policyChange_example") // ImpactAnalysisRequest | - -// Impact Analysis -ManagementAPI.impactAnalysisImpactAnalysisPost(impactAnalysisRequest: impactAnalysisRequest) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **impactAnalysisRequest** | [**ImpactAnalysisRequest**](ImpactAnalysisRequest.md) | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listAclEntriesAclResourceTypeResourceIdGet** -```swift - open class func listAclEntriesAclResourceTypeResourceIdGet(resourceType: String, resourceId: String, completion: @escaping (_ data: SuccessResponseListACLOut?, _ error: Error?) -> Void) -``` - -List Acl Entries - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let resourceType = "resourceType_example" // String | -let resourceId = "resourceId_example" // String | - -// List Acl Entries -ManagementAPI.listAclEntriesAclResourceTypeResourceIdGet(resourceType: resourceType, resourceId: resourceId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resourceType** | **String** | | - **resourceId** | **String** | | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listAuditLogsAuditGet** -```swift - open class func listAuditLogsAuditGet(limit: Int? = nil, cursor: String? = nil, userId: String? = nil, resourceId: String? = nil, decision: String? = nil, startTime: Date? = nil, endTime: Date? = nil, completion: @escaping (_ data: SuccessResponseListAuditRecordOut?, _ error: Error?) -> Void) -``` - -List Audit Logs - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let limit = 987 // Int | (optional) (default to 50) -let cursor = "cursor_example" // String | (optional) -let userId = "userId_example" // String | (optional) -let resourceId = "resourceId_example" // String | (optional) -let decision = "decision_example" // String | (optional) -let startTime = Date() // Date | (optional) -let endTime = Date() // Date | (optional) - -// List Audit Logs -ManagementAPI.listAuditLogsAuditGet(limit: limit, cursor: cursor, userId: userId, resourceId: resourceId, decision: decision, startTime: startTime, endTime: endTime) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **Int** | | [optional] [default to 50] - **cursor** | **String** | | [optional] - **userId** | **String** | | [optional] - **resourceId** | **String** | | [optional] - **decision** | **String** | | [optional] - **startTime** | **Date** | | [optional] - **endTime** | **Date** | | [optional] - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listPermissionRolesPermissionsPermissionIdRolesGet** -```swift - open class func listPermissionRolesPermissionsPermissionIdRolesGet(permissionId: Int, completion: @escaping (_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void) -``` - -List Permission Roles - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let permissionId = 987 // Int | - -// List Permission Roles -ManagementAPI.listPermissionRolesPermissionsPermissionIdRolesGet(permissionId: permissionId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permissionId** | **Int** | | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listPermissionsPermissionsGet** -```swift - open class func listPermissionsPermissionsGet(limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void) -``` - -List Permissions - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let limit = 987 // Int | (optional) (default to 50) -let cursor = "cursor_example" // String | (optional) - -// List Permissions -ManagementAPI.listPermissionsPermissionsGet(limit: limit, cursor: cursor) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **Int** | | [optional] [default to 50] - **cursor** | **String** | | [optional] - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listPoliciesPoliciesGet** -```swift - open class func listPoliciesPoliciesGet(limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListPolicyOut?, _ error: Error?) -> Void) -``` - -List Policies - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let limit = 987 // Int | (optional) (default to 50) -let cursor = "cursor_example" // String | (optional) - -// List Policies -ManagementAPI.listPoliciesPoliciesGet(limit: limit, cursor: cursor) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **Int** | | [optional] [default to 50] - **cursor** | **String** | | [optional] - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listRelationshipsRelationshipsGet** -```swift - open class func listRelationshipsRelationshipsGet(subjectType: String, subjectId: String, limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListDictStrStr?, _ error: Error?) -> Void) -``` - -List Relationships - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let subjectType = "subjectType_example" // String | -let subjectId = "subjectId_example" // String | -let limit = 987 // Int | (optional) (default to 50) -let cursor = "cursor_example" // String | (optional) - -// List Relationships -ManagementAPI.listRelationshipsRelationshipsGet(subjectType: subjectType, subjectId: subjectId, limit: limit, cursor: cursor) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **subjectType** | **String** | | - **subjectId** | **String** | | - **limit** | **Int** | | [optional] [default to 50] - **cursor** | **String** | | [optional] - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listRolePermissionsRolesRoleIdPermissionsGet** -```swift - open class func listRolePermissionsRolesRoleIdPermissionsGet(roleId: Int, completion: @escaping (_ data: SuccessResponseListPermissionOut?, _ error: Error?) -> Void) -``` - -List Role Permissions - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let roleId = 987 // Int | - -// List Role Permissions -ManagementAPI.listRolePermissionsRolesRoleIdPermissionsGet(roleId: roleId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleId** | **Int** | | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **listRolesRolesGet** -```swift - open class func listRolesRolesGet(limit: Int? = nil, cursor: String? = nil, completion: @escaping (_ data: SuccessResponseListRoleOut?, _ error: Error?) -> Void) -``` - -List Roles - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let limit = 987 // Int | (optional) (default to 50) -let cursor = "cursor_example" // String | (optional) - -// List Roles -ManagementAPI.listRolesRolesGet(limit: limit, cursor: cursor) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **Int** | | [optional] [default to 50] - **cursor** | **String** | | [optional] - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete** -```swift - open class func removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId: Int, permissionId: Int, completion: @escaping (_ data: SuccessResponseDictStrInt?, _ error: Error?) -> Void) -``` - -Remove Permission From Role - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let roleId = 987 // Int | -let permissionId = 987 // Int | - -// Remove Permission From Role -ManagementAPI.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId: roleId, permissionId: permissionId) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleId** | **Int** | | - **permissionId** | **Int** | | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rollbackPolicyPoliciesPolicyKeyRollbackVersionPost** -```swift - open class func rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey: String, version: Int, completion: @escaping (_ data: SuccessResponseDictStrUnionIntStr?, _ error: Error?) -> Void) -``` - -Rollback Policy - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let policyKey = "policyKey_example" // String | -let version = 987 // Int | - -// Rollback Policy -ManagementAPI.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey: policyKey, version: version) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policyKey** | **String** | | - **version** | **Int** | | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **simulatePolicySimulatePolicyPost** -```swift - open class func simulatePolicySimulatePolicyPost(policySimulationRequest: PolicySimulationRequest, completion: @escaping (_ data: SuccessResponsePolicySimulationResponse?, _ error: Error?) -> Void) -``` - -Simulate Policy - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let policySimulationRequest = PolicySimulationRequest(simulate: PolicySimulationInput(policyChange: "policyChange_example", relationshipChange: "TODO", roleChange: "TODO"), request: "TODO") // PolicySimulationRequest | - -// Simulate Policy -ManagementAPI.simulatePolicySimulatePolicyPost(policySimulationRequest: policySimulationRequest) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policySimulationRequest** | [**PolicySimulationRequest**](PolicySimulationRequest.md) | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updatePermissionPermissionsPermissionIdPut** -```swift - open class func updatePermissionPermissionsPermissionIdPut(permissionId: Int, permissionUpdate: PermissionUpdate, completion: @escaping (_ data: PermissionOut?, _ error: Error?) -> Void) -``` - -Update Permission - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let permissionId = 987 // Int | -let permissionUpdate = PermissionUpdate(action: "action_example") // PermissionUpdate | - -// Update Permission -ManagementAPI.updatePermissionPermissionsPermissionIdPut(permissionId: permissionId, permissionUpdate: permissionUpdate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **permissionId** | **Int** | | - **permissionUpdate** | [**PermissionUpdate**](PermissionUpdate.md) | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updatePolicyPoliciesPolicyKeyPut** -```swift - open class func updatePolicyPoliciesPolicyKeyPut(policyKey: String, policyCreate: PolicyCreate, completion: @escaping (_ data: SuccessResponsePolicyOut?, _ error: Error?) -> Void) -``` - -Update Policy - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let policyKey = "policyKey_example" // String | -let policyCreate = PolicyCreate(action: "action_example", effect: "effect_example", priority: 123, state: "state_example", conditions: "TODO") // PolicyCreate | - -// Update Policy -ManagementAPI.updatePolicyPoliciesPolicyKeyPut(policyKey: policyKey, policyCreate: policyCreate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **policyKey** | **String** | | - **policyCreate** | [**PolicyCreate**](PolicyCreate.md) | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateRoleRolesRoleIdPut** -```swift - open class func updateRoleRolesRoleIdPut(roleId: Int, roleUpdate: RoleUpdate, completion: @escaping (_ data: RoleOut?, _ error: Error?) -> Void) -``` - -Update Role - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let roleId = 987 // Int | -let roleUpdate = RoleUpdate(name: "name_example") // RoleUpdate | - -// Update Role -ManagementAPI.updateRoleRolesRoleIdPut(roleId: roleId, roleUpdate: roleUpdate) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **roleId** | **Int** | | - **roleUpdate** | [**RoleUpdate**](RoleUpdate.md) | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/swift/docs/MetaBody.md b/sdks/swift/docs/MetaBody.md deleted file mode 100644 index 488f234..0000000 --- a/sdks/swift/docs/MetaBody.md +++ /dev/null @@ -1,13 +0,0 @@ -# MetaBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **String** | | [optional] -**limit** | **Int** | | [optional] -**nextCursor** | **String** | | [optional] -**extra** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PermissionCreate.md b/sdks/swift/docs/PermissionCreate.md deleted file mode 100644 index d02307c..0000000 --- a/sdks/swift/docs/PermissionCreate.md +++ /dev/null @@ -1,10 +0,0 @@ -# PermissionCreate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PermissionOut.md b/sdks/swift/docs/PermissionOut.md deleted file mode 100644 index 855e5cb..0000000 --- a/sdks/swift/docs/PermissionOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# PermissionOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Int** | | -**action** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PermissionUpdate.md b/sdks/swift/docs/PermissionUpdate.md deleted file mode 100644 index 5112b5f..0000000 --- a/sdks/swift/docs/PermissionUpdate.md +++ /dev/null @@ -1,10 +0,0 @@ -# PermissionUpdate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PlaygroundAPI.md b/sdks/swift/docs/PlaygroundAPI.md deleted file mode 100644 index 53cfc93..0000000 --- a/sdks/swift/docs/PlaygroundAPI.md +++ /dev/null @@ -1,57 +0,0 @@ -# PlaygroundAPI - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**evaluatePlaygroundEvaluatePost**](PlaygroundAPI.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate - - -# **evaluatePlaygroundEvaluatePost** -```swift - open class func evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest: PlaygroundEvaluateRequest, completion: @escaping (_ data: SuccessResponseDictStrAny?, _ error: Error?) -> Void) -``` - -Evaluate - -### Example -```swift -// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new -import KeyNetraClient - -let playgroundEvaluateRequest = PlaygroundEvaluateRequest(policies: [PlaygroundPolicy(action: "action_example", effect: "effect_example", priority: 123, policyId: "policyId_example", conditions: "TODO")], input: PlaygroundInput(user: "TODO", resource: "TODO", action: "action_example", context: "TODO")) // PlaygroundEvaluateRequest | - -// Evaluate -PlaygroundAPI.evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest: playgroundEvaluateRequest) { (response, error) in - guard error == nil else { - print(error) - return - } - - if (response) { - dump(response) - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **playgroundEvaluateRequest** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/swift/docs/PlaygroundEvaluateRequest.md b/sdks/swift/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index b786372..0000000 --- a/sdks/swift/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# PlaygroundEvaluateRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policies** | [PlaygroundPolicy] | | -**input** | [**PlaygroundInput**](PlaygroundInput.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PlaygroundInput.md b/sdks/swift/docs/PlaygroundInput.md deleted file mode 100644 index 4fc9496..0000000 --- a/sdks/swift/docs/PlaygroundInput.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlaygroundInput - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | **[String: JSONValue]** | | [optional] -**resource** | **[String: JSONValue]** | | [optional] -**action** | **String** | | [optional] [default to ""] -**context** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PlaygroundPolicy.md b/sdks/swift/docs/PlaygroundPolicy.md deleted file mode 100644 index abbbf13..0000000 --- a/sdks/swift/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,14 +0,0 @@ -# PlaygroundPolicy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**effect** | **String** | | [optional] [default to "allow"] -**priority** | **Int** | | [optional] [default to 100] -**policyId** | **String** | | [optional] -**conditions** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PolicyCreate.md b/sdks/swift/docs/PolicyCreate.md deleted file mode 100644 index 3fbf446..0000000 --- a/sdks/swift/docs/PolicyCreate.md +++ /dev/null @@ -1,14 +0,0 @@ -# PolicyCreate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | | -**effect** | **String** | | [optional] [default to "allow"] -**priority** | **Int** | | [optional] [default to 100] -**state** | **String** | | [optional] [default to "active"] -**conditions** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PolicyOut.md b/sdks/swift/docs/PolicyOut.md deleted file mode 100644 index d65cbfc..0000000 --- a/sdks/swift/docs/PolicyOut.md +++ /dev/null @@ -1,15 +0,0 @@ -# PolicyOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Int** | | -**action** | **String** | | -**effect** | **String** | | -**priority** | **Int** | | -**state** | **String** | | [optional] [default to "active"] -**conditions** | **[String: JSONValue]** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PolicySimulationInput.md b/sdks/swift/docs/PolicySimulationInput.md deleted file mode 100644 index 0f6f060..0000000 --- a/sdks/swift/docs/PolicySimulationInput.md +++ /dev/null @@ -1,12 +0,0 @@ -# PolicySimulationInput - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policyChange** | **String** | | [optional] -**relationshipChange** | **[String: JSONValue]** | | [optional] -**roleChange** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PolicySimulationRequest.md b/sdks/swift/docs/PolicySimulationRequest.md deleted file mode 100644 index 7464084..0000000 --- a/sdks/swift/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# PolicySimulationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] -**request** | **[String: JSONValue]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/PolicySimulationResponse.md b/sdks/swift/docs/PolicySimulationResponse.md deleted file mode 100644 index 461b5a2..0000000 --- a/sdks/swift/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PolicySimulationResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decisionBefore** | **[String: JSONValue]** | | -**decisionAfter** | **[String: JSONValue]** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/RelationshipCreate.md b/sdks/swift/docs/RelationshipCreate.md deleted file mode 100644 index 3fde247..0000000 --- a/sdks/swift/docs/RelationshipCreate.md +++ /dev/null @@ -1,14 +0,0 @@ -# RelationshipCreate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **String** | | -**subjectId** | **String** | | -**relation** | **String** | | -**objectType** | **String** | | -**objectId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/RelationshipOut.md b/sdks/swift/docs/RelationshipOut.md deleted file mode 100644 index 9366e97..0000000 --- a/sdks/swift/docs/RelationshipOut.md +++ /dev/null @@ -1,15 +0,0 @@ -# RelationshipOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subjectType** | **String** | | -**subjectId** | **String** | | -**relation** | **String** | | -**objectType** | **String** | | -**objectId** | **String** | | -**id** | **Int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/RoleCreate.md b/sdks/swift/docs/RoleCreate.md deleted file mode 100644 index 87e882f..0000000 --- a/sdks/swift/docs/RoleCreate.md +++ /dev/null @@ -1,10 +0,0 @@ -# RoleCreate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/RoleOut.md b/sdks/swift/docs/RoleOut.md deleted file mode 100644 index 63a9aed..0000000 --- a/sdks/swift/docs/RoleOut.md +++ /dev/null @@ -1,11 +0,0 @@ -# RoleOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Int** | | -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/RoleUpdate.md b/sdks/swift/docs/RoleUpdate.md deleted file mode 100644 index 80710c0..0000000 --- a/sdks/swift/docs/RoleUpdate.md +++ /dev/null @@ -1,10 +0,0 @@ -# RoleUpdate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SimulationResponse.md b/sdks/swift/docs/SimulationResponse.md deleted file mode 100644 index 2cb2faf..0000000 --- a/sdks/swift/docs/SimulationResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SimulationResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**decision** | **String** | | -**matchedPolicies** | **[String]** | | -**reason** | **String** | | [optional] -**policyId** | **String** | | [optional] -**explainTrace** | [[String: JSONValue]] | | [optional] -**failedConditions** | **[String]** | | [optional] -**revision** | **Int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseACLOut.md b/sdks/swift/docs/SuccessResponseACLOut.md deleted file mode 100644 index 4e1466f..0000000 --- a/sdks/swift/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseACLOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ACLOut**](ACLOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md b/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index c11e8f1..0000000 --- a/sdks/swift/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseAccessDecisionResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseAdminLoginResponse.md b/sdks/swift/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index c855867..0000000 --- a/sdks/swift/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseAdminLoginResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseAuthModelOut.md b/sdks/swift/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index 9db0e8b..0000000 --- a/sdks/swift/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseAuthModelOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AuthModelOut**](AuthModelOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseBatchAccessResponse.md b/sdks/swift/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index 1f2bff7..0000000 --- a/sdks/swift/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseBatchAccessResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseDictStrAny.md b/sdks/swift/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index d21cd6c..0000000 --- a/sdks/swift/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseDictStrAny - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[String: JSONValue]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseDictStrInt.md b/sdks/swift/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 4d93b09..0000000 --- a/sdks/swift/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseDictStrInt - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[String: Int]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseDictStrObject.md b/sdks/swift/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index 126b9d7..0000000 --- a/sdks/swift/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseDictStrObject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[String: JSONValue]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseDictStrStr.md b/sdks/swift/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index c8aeb7f..0000000 --- a/sdks/swift/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseDictStrStr - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[String: String]** | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index c019142..0000000 --- a/sdks/swift/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseDictStrUnionIntStr - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [String: DataValue] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index a17ee7f..0000000 --- a/sdks/swift/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseImpactAnalysisResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseListACLOut.md b/sdks/swift/docs/SuccessResponseListACLOut.md deleted file mode 100644 index 1cde044..0000000 --- a/sdks/swift/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseListACLOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [ACLOut] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseListAuditRecordOut.md b/sdks/swift/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 4919032..0000000 --- a/sdks/swift/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseListAuditRecordOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [AuditRecordOut] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseListDictStrStr.md b/sdks/swift/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index 004cf66..0000000 --- a/sdks/swift/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseListDictStrStr - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [[String: String]] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseListPermissionOut.md b/sdks/swift/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index ff71000..0000000 --- a/sdks/swift/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseListPermissionOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [PermissionOut] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseListPolicyOut.md b/sdks/swift/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index 99e755b..0000000 --- a/sdks/swift/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseListPolicyOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [PolicyOut] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseListRoleOut.md b/sdks/swift/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index 2352682..0000000 --- a/sdks/swift/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseListRoleOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [RoleOut] | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponsePermissionOut.md b/sdks/swift/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index 3a4ebc1..0000000 --- a/sdks/swift/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponsePermissionOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PermissionOut**](PermissionOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponsePolicyOut.md b/sdks/swift/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index f95a928..0000000 --- a/sdks/swift/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponsePolicyOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PolicyOut**](PolicyOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md b/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index 855cd34..0000000 --- a/sdks/swift/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponsePolicySimulationResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PolicySimulationResponse**](PolicySimulationResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseRelationshipOut.md b/sdks/swift/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index 0403314..0000000 --- a/sdks/swift/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseRelationshipOut - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RelationshipOut**](RelationshipOut.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/SuccessResponseSimulationResponse.md b/sdks/swift/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index 5d82f7d..0000000 --- a/sdks/swift/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SuccessResponseSimulationResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SimulationResponse**](SimulationResponse.md) | | -**meta** | [**MetaBody**](MetaBody.md) | | [optional] -**error** | **Any** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/docs/ValidationError.md b/sdks/swift/docs/ValidationError.md deleted file mode 100644 index 4be532f..0000000 --- a/sdks/swift/docs/ValidationError.md +++ /dev/null @@ -1,14 +0,0 @@ -# ValidationError - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loc** | [LocationInner] | | -**msg** | **String** | | -**type** | **String** | | -**input** | **JSONValue** | | [optional] -**ctx** | **JSONValue** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/swift/git_push.sh b/sdks/swift/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/sdks/swift/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdks/swift/project.yml b/sdks/swift/project.yml deleted file mode 100644 index 8d6d8dc..0000000 --- a/sdks/swift/project.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: KeyNetraClient -targets: - KeyNetraClient: - type: framework - platform: iOS - deploymentTarget: "11.0" - sources: [Sources] - info: - path: ./Info.plist - version: 0.1.1 - settings: - APPLICATION_EXTENSION_API_ONLY: true - scheme: {} - dependencies: diff --git a/sdks/typescript/.gitignore b/sdks/typescript/.gitignore deleted file mode 100644 index 149b576..0000000 --- a/sdks/typescript/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -wwwroot/*.js -node_modules -typings -dist diff --git a/sdks/typescript/.npmignore b/sdks/typescript/.npmignore deleted file mode 100644 index 42061c0..0000000 --- a/sdks/typescript/.npmignore +++ /dev/null @@ -1 +0,0 @@ -README.md \ No newline at end of file diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md deleted file mode 100644 index a2cced2..0000000 --- a/sdks/typescript/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# @keynetra/client - -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Version](https://img.shields.io/badge/version-0.1.1-green.svg)]() -[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://docs.keynetra.com/sdks/typescript) - -Official TypeScript Client SDK for the [KeyNetra](https://keynetra.com) authorization platform. ๐Ÿ›ก๏ธ - -KeyNetra provides high-performance, distributed authorization as a service. This SDK allows your TypeScript applications to integrate seamlessly with KeyNetra for access control and policy management. - -## โœจ Features - -- **๐Ÿš€ Unified Client**: Simple entry point for all API operations. -- **๐Ÿ›ก๏ธ Type Safety**: Full type definitions for requests and responses. -- **๐Ÿ”‘ Security**: Built-in support for API Key and Bearer token authentication. -- **โšก Performance**: Optimized for low-latency authorization checks. - -## ๐Ÿ“ฆ Installation - -```bash -npm install @keynetra/client -``` - -## ๐Ÿš€ Quick Start - -```typescript -import { KeyNetraClient } from "@keynetra/client"; - -const client = new KeyNetraClient({ - baseUrl: "http://localhost:8080", - apiKey: "YOUR_API_KEY" -}); - -// Perform an access check -const decision = await client.access.checkAccess({ - subject: "user:123", - action: "read", - resource: "document:456" -}); -``` - - - -## ๐Ÿ“š Documentation - -For full API documentation, please visit the [KeyNetra Documentation Portal](https://docs.keynetra.com/sdks/typescript). - -## ๐Ÿค Support - -- **Source**: [https://github.com/keynetra/keynetra-client-typescript](https://github.com/keynetra/keynetra-client-typescript) -- **Issues**: [GitHub Issues](https://github.com/keynetra/keynetra-client-typescript/issues) -- **License**: Apache-2.0 - diff --git a/sdks/typescript/docs/ACLCreate.md b/sdks/typescript/docs/ACLCreate.md deleted file mode 100644 index b7107b2..0000000 --- a/sdks/typescript/docs/ACLCreate.md +++ /dev/null @@ -1,44 +0,0 @@ - -# ACLCreate - - -## Properties - -Name | Type ------------- | ------------- -`subjectType` | string -`subjectId` | string -`resourceType` | string -`resourceId` | string -`action` | string -`effect` | string - -## Example - -```typescript -import type { ACLCreate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "subjectType": null, - "subjectId": null, - "resourceType": null, - "resourceId": null, - "action": null, - "effect": null, -} satisfies ACLCreate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ACLCreate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/ACLOut.md b/sdks/typescript/docs/ACLOut.md deleted file mode 100644 index b727693..0000000 --- a/sdks/typescript/docs/ACLOut.md +++ /dev/null @@ -1,50 +0,0 @@ - -# ACLOut - - -## Properties - -Name | Type ------------- | ------------- -`subjectType` | string -`subjectId` | string -`resourceType` | string -`resourceId` | string -`action` | string -`effect` | string -`id` | number -`tenantId` | number -`createdAt` | Date - -## Example - -```typescript -import type { ACLOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "subjectType": null, - "subjectId": null, - "resourceType": null, - "resourceId": null, - "action": null, - "effect": null, - "id": null, - "tenantId": null, - "createdAt": null, -} satisfies ACLOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ACLOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AccessApi.md b/sdks/typescript/docs/AccessApi.md deleted file mode 100644 index 9d1875c..0000000 --- a/sdks/typescript/docs/AccessApi.md +++ /dev/null @@ -1,233 +0,0 @@ -# AccessApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**checkAccessBatchCheckAccessBatchPost**](AccessApi.md#checkaccessbatchcheckaccessbatchpost) | **POST** /check-access-batch | Check Access Batch | -| [**checkAccessCheckAccessPost**](AccessApi.md#checkaccesscheckaccesspost) | **POST** /check-access | Check Access | -| [**simulateSimulatePost**](AccessApi.md#simulatesimulatepost) | **POST** /simulate | Simulate | - - - -## checkAccessBatchCheckAccessBatchPost - -> SuccessResponseBatchAccessResponse checkAccessBatchCheckAccessBatchPost(batchAccessRequest, policySet) - -Check Access Batch - -### Example - -```ts -import { - Configuration, - AccessApi, -} from '@keynetra/client'; -import type { CheckAccessBatchCheckAccessBatchPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new AccessApi(config); - - const body = { - // BatchAccessRequest - batchAccessRequest: ..., - // string (optional) - policySet: policySet_example, - } satisfies CheckAccessBatchCheckAccessBatchPostRequest; - - try { - const data = await api.checkAccessBatchCheckAccessBatchPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **batchAccessRequest** | [BatchAccessRequest](BatchAccessRequest.md) | | | -| **policySet** | `string` | | [Optional] [Defaults to `'active'`] | - -### Return type - -[**SuccessResponseBatchAccessResponse**](SuccessResponseBatchAccessResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## checkAccessCheckAccessPost - -> SuccessResponseAccessDecisionResponse checkAccessCheckAccessPost(accessRequest, policySet) - -Check Access - -### Example - -```ts -import { - Configuration, - AccessApi, -} from '@keynetra/client'; -import type { CheckAccessCheckAccessPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new AccessApi(config); - - const body = { - // AccessRequest - accessRequest: ..., - // string (optional) - policySet: policySet_example, - } satisfies CheckAccessCheckAccessPostRequest; - - try { - const data = await api.checkAccessCheckAccessPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accessRequest** | [AccessRequest](AccessRequest.md) | | | -| **policySet** | `string` | | [Optional] [Defaults to `'active'`] | - -### Return type - -[**SuccessResponseAccessDecisionResponse**](SuccessResponseAccessDecisionResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## simulateSimulatePost - -> SuccessResponseSimulationResponse simulateSimulatePost(accessRequest) - -Simulate - -### Example - -```ts -import { - Configuration, - AccessApi, -} from '@keynetra/client'; -import type { SimulateSimulatePostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new AccessApi(config); - - const body = { - // AccessRequest - accessRequest: ..., - } satisfies SimulateSimulatePostRequest; - - try { - const data = await api.simulateSimulatePost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accessRequest** | [AccessRequest](AccessRequest.md) | | | - -### Return type - -[**SuccessResponseSimulationResponse**](SuccessResponseSimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/sdks/typescript/docs/AccessDecisionResponse.md b/sdks/typescript/docs/AccessDecisionResponse.md deleted file mode 100644 index acbe94b..0000000 --- a/sdks/typescript/docs/AccessDecisionResponse.md +++ /dev/null @@ -1,46 +0,0 @@ - -# AccessDecisionResponse - - -## Properties - -Name | Type ------------- | ------------- -`allowed` | boolean -`decision` | string -`matchedPolicies` | Array<string> -`reason` | string -`policyId` | string -`explainTrace` | Array<{ [key: string]: any; }> -`revision` | number - -## Example - -```typescript -import type { AccessDecisionResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "allowed": null, - "decision": null, - "matchedPolicies": null, - "reason": null, - "policyId": null, - "explainTrace": null, - "revision": null, -} satisfies AccessDecisionResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AccessDecisionResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AccessRequest.md b/sdks/typescript/docs/AccessRequest.md deleted file mode 100644 index eb7723d..0000000 --- a/sdks/typescript/docs/AccessRequest.md +++ /dev/null @@ -1,45 +0,0 @@ - -# AccessRequest - -Explicit authorization request passed through the API boundary. - -## Properties - -Name | Type ------------- | ------------- -`user` | { [key: string]: any; } -`action` | string -`resource` | { [key: string]: any; } -`context` | { [key: string]: any; } -`consistency` | string -`revision` | number - -## Example - -```typescript -import type { AccessRequest } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "user": null, - "action": null, - "resource": null, - "context": null, - "consistency": null, - "revision": null, -} satisfies AccessRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AccessRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AdminLoginRequest.md b/sdks/typescript/docs/AdminLoginRequest.md deleted file mode 100644 index 9415e5d..0000000 --- a/sdks/typescript/docs/AdminLoginRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# AdminLoginRequest - - -## Properties - -Name | Type ------------- | ------------- -`username` | string -`password` | string - -## Example - -```typescript -import type { AdminLoginRequest } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "username": null, - "password": null, -} satisfies AdminLoginRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AdminLoginRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AdminLoginResponse.md b/sdks/typescript/docs/AdminLoginResponse.md deleted file mode 100644 index 05fc583..0000000 --- a/sdks/typescript/docs/AdminLoginResponse.md +++ /dev/null @@ -1,42 +0,0 @@ - -# AdminLoginResponse - - -## Properties - -Name | Type ------------- | ------------- -`accessToken` | string -`tokenType` | string -`expiresIn` | number -`role` | string -`tenantKey` | string - -## Example - -```typescript -import type { AdminLoginResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "accessToken": null, - "tokenType": null, - "expiresIn": null, - "role": null, - "tenantKey": null, -} satisfies AdminLoginResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AdminLoginResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AuditRecordOut.md b/sdks/typescript/docs/AuditRecordOut.md deleted file mode 100644 index 2b280e9..0000000 --- a/sdks/typescript/docs/AuditRecordOut.md +++ /dev/null @@ -1,58 +0,0 @@ - -# AuditRecordOut - - -## Properties - -Name | Type ------------- | ------------- -`id` | number -`principalType` | string -`principalId` | string -`correlationId` | string -`user` | { [key: string]: any; } -`action` | string -`resource` | { [key: string]: any; } -`decision` | string -`matchedPolicies` | Array<any> -`reason` | string -`evaluatedRules` | Array<any> -`failedConditions` | Array<any> -`createdAt` | Date - -## Example - -```typescript -import type { AuditRecordOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "id": null, - "principalType": null, - "principalId": null, - "correlationId": null, - "user": null, - "action": null, - "resource": null, - "decision": null, - "matchedPolicies": null, - "reason": null, - "evaluatedRules": null, - "failedConditions": null, - "createdAt": null, -} satisfies AuditRecordOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AuditRecordOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AuthApi.md b/sdks/typescript/docs/AuthApi.md deleted file mode 100644 index 3631dae..0000000 --- a/sdks/typescript/docs/AuthApi.md +++ /dev/null @@ -1,142 +0,0 @@ -# AuthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**adminLoginAdminLoginPost**](AuthApi.md#adminloginadminloginpost) | **POST** /admin/login | Admin Login | -| [**adminLoginAdminLoginPost_0**](AuthApi.md#adminloginadminloginpost_0) | **POST** /admin/login | Admin Login | - - - -## adminLoginAdminLoginPost - -> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost(adminLoginRequest) - -Admin Login - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@keynetra/client'; -import type { AdminLoginAdminLoginPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new AuthApi(); - - const body = { - // AdminLoginRequest - adminLoginRequest: ..., - } satisfies AdminLoginAdminLoginPostRequest; - - try { - const data = await api.adminLoginAdminLoginPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adminLoginRequest** | [AdminLoginRequest](AdminLoginRequest.md) | | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## adminLoginAdminLoginPost_0 - -> SuccessResponseAdminLoginResponse adminLoginAdminLoginPost_0(adminLoginRequest) - -Admin Login - -### Example - -```ts -import { - Configuration, - AuthApi, -} from '@keynetra/client'; -import type { AdminLoginAdminLoginPost0Request } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new AuthApi(); - - const body = { - // AdminLoginRequest - adminLoginRequest: ..., - } satisfies AdminLoginAdminLoginPost0Request; - - try { - const data = await api.adminLoginAdminLoginPost_0(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adminLoginRequest** | [AdminLoginRequest](AdminLoginRequest.md) | | | - -### Return type - -[**SuccessResponseAdminLoginResponse**](SuccessResponseAdminLoginResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/sdks/typescript/docs/AuthModelCreate.md b/sdks/typescript/docs/AuthModelCreate.md deleted file mode 100644 index c48ba64..0000000 --- a/sdks/typescript/docs/AuthModelCreate.md +++ /dev/null @@ -1,34 +0,0 @@ - -# AuthModelCreate - - -## Properties - -Name | Type ------------- | ------------- -`schema` | string - -## Example - -```typescript -import type { AuthModelCreate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "schema": null, -} satisfies AuthModelCreate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AuthModelCreate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/AuthModelOut.md b/sdks/typescript/docs/AuthModelOut.md deleted file mode 100644 index ad93cf4..0000000 --- a/sdks/typescript/docs/AuthModelOut.md +++ /dev/null @@ -1,42 +0,0 @@ - -# AuthModelOut - - -## Properties - -Name | Type ------------- | ------------- -`id` | number -`tenantId` | number -`schema` | string -`parsed` | { [key: string]: any; } -`compiled` | { [key: string]: any; } - -## Example - -```typescript -import type { AuthModelOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "id": null, - "tenantId": null, - "schema": null, - "parsed": null, - "compiled": null, -} satisfies AuthModelOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AuthModelOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/BatchAccessItem.md b/sdks/typescript/docs/BatchAccessItem.md deleted file mode 100644 index bc1b018..0000000 --- a/sdks/typescript/docs/BatchAccessItem.md +++ /dev/null @@ -1,36 +0,0 @@ - -# BatchAccessItem - - -## Properties - -Name | Type ------------- | ------------- -`action` | string -`resource` | { [key: string]: any; } - -## Example - -```typescript -import type { BatchAccessItem } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "action": null, - "resource": null, -} satisfies BatchAccessItem - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as BatchAccessItem -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/BatchAccessRequest.md b/sdks/typescript/docs/BatchAccessRequest.md deleted file mode 100644 index bac2dc2..0000000 --- a/sdks/typescript/docs/BatchAccessRequest.md +++ /dev/null @@ -1,40 +0,0 @@ - -# BatchAccessRequest - - -## Properties - -Name | Type ------------- | ------------- -`user` | { [key: string]: any; } -`items` | [Array<BatchAccessItem>](BatchAccessItem.md) -`consistency` | string -`revision` | number - -## Example - -```typescript -import type { BatchAccessRequest } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "user": null, - "items": null, - "consistency": null, - "revision": null, -} satisfies BatchAccessRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as BatchAccessRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/BatchAccessResponse.md b/sdks/typescript/docs/BatchAccessResponse.md deleted file mode 100644 index 51e517f..0000000 --- a/sdks/typescript/docs/BatchAccessResponse.md +++ /dev/null @@ -1,36 +0,0 @@ - -# BatchAccessResponse - - -## Properties - -Name | Type ------------- | ------------- -`results` | [Array<BatchAccessResult>](BatchAccessResult.md) -`revision` | number - -## Example - -```typescript -import type { BatchAccessResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "results": null, - "revision": null, -} satisfies BatchAccessResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as BatchAccessResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/BatchAccessResult.md b/sdks/typescript/docs/BatchAccessResult.md deleted file mode 100644 index 4b4db9b..0000000 --- a/sdks/typescript/docs/BatchAccessResult.md +++ /dev/null @@ -1,38 +0,0 @@ - -# BatchAccessResult - - -## Properties - -Name | Type ------------- | ------------- -`action` | string -`allowed` | boolean -`revision` | number - -## Example - -```typescript -import type { BatchAccessResult } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "action": null, - "allowed": null, - "revision": null, -} satisfies BatchAccessResult - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as BatchAccessResult -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/DataValue.md b/sdks/typescript/docs/DataValue.md deleted file mode 100644 index 7b2237c..0000000 --- a/sdks/typescript/docs/DataValue.md +++ /dev/null @@ -1,32 +0,0 @@ - -# DataValue - - -## Properties - -Name | Type ------------- | ------------- - -## Example - -```typescript -import type { DataValue } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { -} satisfies DataValue - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DataValue -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/DevApi.md b/sdks/typescript/docs/DevApi.md deleted file mode 100644 index 303126d..0000000 --- a/sdks/typescript/docs/DevApi.md +++ /dev/null @@ -1,133 +0,0 @@ -# DevApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getSampleDataDevSampleDataGet**](DevApi.md#getsampledatadevsampledataget) | **GET** /dev/sample-data | Get Sample Data | -| [**seedSampleDataDevSampleDataSeedPost**](DevApi.md#seedsampledatadevsampledataseedpost) | **POST** /dev/sample-data/seed | Seed Sample Data | - - - -## getSampleDataDevSampleDataGet - -> SuccessResponseDictStrObject getSampleDataDevSampleDataGet() - -Get Sample Data - -### Example - -```ts -import { - Configuration, - DevApi, -} from '@keynetra/client'; -import type { GetSampleDataDevSampleDataGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new DevApi(); - - try { - const data = await api.getSampleDataDevSampleDataGet(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## seedSampleDataDevSampleDataSeedPost - -> SuccessResponseDictStrObject seedSampleDataDevSampleDataSeedPost(reset) - -Seed Sample Data - -### Example - -```ts -import { - Configuration, - DevApi, -} from '@keynetra/client'; -import type { SeedSampleDataDevSampleDataSeedPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new DevApi(); - - const body = { - // boolean | Clear the sample dataset before reseeding it. (optional) - reset: true, - } satisfies SeedSampleDataDevSampleDataSeedPostRequest; - - try { - const data = await api.seedSampleDataDevSampleDataSeedPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **reset** | `boolean` | Clear the sample dataset before reseeding it. | [Optional] [Defaults to `false`] | - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/sdks/typescript/docs/HTTPValidationError.md b/sdks/typescript/docs/HTTPValidationError.md deleted file mode 100644 index 65fe274..0000000 --- a/sdks/typescript/docs/HTTPValidationError.md +++ /dev/null @@ -1,34 +0,0 @@ - -# HTTPValidationError - - -## Properties - -Name | Type ------------- | ------------- -`detail` | [Array<ValidationError>](ValidationError.md) - -## Example - -```typescript -import type { HTTPValidationError } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "detail": null, -} satisfies HTTPValidationError - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HTTPValidationError -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/HealthApi.md b/sdks/typescript/docs/HealthApi.md deleted file mode 100644 index b2a02bb..0000000 --- a/sdks/typescript/docs/HealthApi.md +++ /dev/null @@ -1,182 +0,0 @@ -# HealthApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**healthHealthGet**](HealthApi.md#healthhealthget) | **GET** /health | Health | -| [**livenessHealthLiveGet**](HealthApi.md#livenesshealthliveget) | **GET** /health/live | Liveness | -| [**readinessHealthReadyGet**](HealthApi.md#readinesshealthreadyget) | **GET** /health/ready | Readiness | - - - -## healthHealthGet - -> SuccessResponseDictStrStr healthHealthGet() - -Health - -### Example - -```ts -import { - Configuration, - HealthApi, -} from '@keynetra/client'; -import type { HealthHealthGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new HealthApi(); - - try { - const data = await api.healthHealthGet(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## livenessHealthLiveGet - -> SuccessResponseDictStrStr livenessHealthLiveGet() - -Liveness - -### Example - -```ts -import { - Configuration, - HealthApi, -} from '@keynetra/client'; -import type { LivenessHealthLiveGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new HealthApi(); - - try { - const data = await api.livenessHealthLiveGet(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## readinessHealthReadyGet - -> SuccessResponseDictStrObject readinessHealthReadyGet() - -Readiness - -### Example - -```ts -import { - Configuration, - HealthApi, -} from '@keynetra/client'; -import type { ReadinessHealthReadyGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const api = new HealthApi(); - - try { - const data = await api.readinessHealthReadyGet(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseDictStrObject**](SuccessResponseDictStrObject.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/sdks/typescript/docs/ImpactAnalysisRequest.md b/sdks/typescript/docs/ImpactAnalysisRequest.md deleted file mode 100644 index 0c47d38..0000000 --- a/sdks/typescript/docs/ImpactAnalysisRequest.md +++ /dev/null @@ -1,34 +0,0 @@ - -# ImpactAnalysisRequest - - -## Properties - -Name | Type ------------- | ------------- -`policyChange` | string - -## Example - -```typescript -import type { ImpactAnalysisRequest } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "policyChange": null, -} satisfies ImpactAnalysisRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ImpactAnalysisRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/ImpactAnalysisResponse.md b/sdks/typescript/docs/ImpactAnalysisResponse.md deleted file mode 100644 index d332dc5..0000000 --- a/sdks/typescript/docs/ImpactAnalysisResponse.md +++ /dev/null @@ -1,36 +0,0 @@ - -# ImpactAnalysisResponse - - -## Properties - -Name | Type ------------- | ------------- -`gainedAccess` | Array<number> -`lostAccess` | Array<number> - -## Example - -```typescript -import type { ImpactAnalysisResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "gainedAccess": null, - "lostAccess": null, -} satisfies ImpactAnalysisResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ImpactAnalysisResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/LocationInner.md b/sdks/typescript/docs/LocationInner.md deleted file mode 100644 index 5f584bd..0000000 --- a/sdks/typescript/docs/LocationInner.md +++ /dev/null @@ -1,32 +0,0 @@ - -# LocationInner - - -## Properties - -Name | Type ------------- | ------------- - -## Example - -```typescript -import type { LocationInner } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { -} satisfies LocationInner - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as LocationInner -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/ManagementApi.md b/sdks/typescript/docs/ManagementApi.md deleted file mode 100644 index 459af69..0000000 --- a/sdks/typescript/docs/ManagementApi.md +++ /dev/null @@ -1,2100 +0,0 @@ -# ManagementApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost**](ManagementApi.md#addpermissiontorolerolesroleidpermissionspermissionidpost) | **POST** /roles/{role_id}/permissions/{permission_id} | Add Permission To Role | -| [**createAclEntryAclPost**](ManagementApi.md#createaclentryaclpost) | **POST** /acl | Create Acl Entry | -| [**createAuthModelAuthModelPost**](ManagementApi.md#createauthmodelauthmodelpost) | **POST** /auth-model | Create Auth Model | -| [**createPermissionPermissionsPost**](ManagementApi.md#createpermissionpermissionspost) | **POST** /permissions | Create Permission | -| [**createPolicyFromDslPoliciesDslPost**](ManagementApi.md#createpolicyfromdslpoliciesdslpost) | **POST** /policies/dsl | Create Policy From Dsl | -| [**createPolicyPoliciesPost**](ManagementApi.md#createpolicypoliciespost) | **POST** /policies | Create Policy | -| [**createRelationshipRelationshipsPost**](ManagementApi.md#createrelationshiprelationshipspost) | **POST** /relationships | Create Relationship | -| [**createRoleRolesPost**](ManagementApi.md#createrolerolespost) | **POST** /roles | Create Role | -| [**deleteAclEntryAclAclIdDelete**](ManagementApi.md#deleteaclentryaclacliddelete) | **DELETE** /acl/{acl_id} | Delete Acl Entry | -| [**deletePermissionPermissionsPermissionIdDelete**](ManagementApi.md#deletepermissionpermissionspermissioniddelete) | **DELETE** /permissions/{permission_id} | Delete Permission | -| [**deletePolicyPoliciesPolicyKeyDelete**](ManagementApi.md#deletepolicypoliciespolicykeydelete) | **DELETE** /policies/{policy_key} | Delete Policy | -| [**deleteRoleRolesRoleIdDelete**](ManagementApi.md#deleterolerolesroleiddelete) | **DELETE** /roles/{role_id} | Delete Role | -| [**getAuthModelAuthModelGet**](ManagementApi.md#getauthmodelauthmodelget) | **GET** /auth-model | Get Auth Model | -| [**impactAnalysisImpactAnalysisPost**](ManagementApi.md#impactanalysisimpactanalysispost) | **POST** /impact-analysis | Impact Analysis | -| [**listAclEntriesAclResourceTypeResourceIdGet**](ManagementApi.md#listaclentriesaclresourcetyperesourceidget) | **GET** /acl/{resource_type}/{resource_id} | List Acl Entries | -| [**listAuditLogsAuditGet**](ManagementApi.md#listauditlogsauditget) | **GET** /audit | List Audit Logs | -| [**listPermissionRolesPermissionsPermissionIdRolesGet**](ManagementApi.md#listpermissionrolespermissionspermissionidrolesget) | **GET** /permissions/{permission_id}/roles | List Permission Roles | -| [**listPermissionsPermissionsGet**](ManagementApi.md#listpermissionspermissionsget) | **GET** /permissions | List Permissions | -| [**listPoliciesPoliciesGet**](ManagementApi.md#listpoliciespoliciesget) | **GET** /policies | List Policies | -| [**listRelationshipsRelationshipsGet**](ManagementApi.md#listrelationshipsrelationshipsget) | **GET** /relationships | List Relationships | -| [**listRolePermissionsRolesRoleIdPermissionsGet**](ManagementApi.md#listrolepermissionsrolesroleidpermissionsget) | **GET** /roles/{role_id}/permissions | List Role Permissions | -| [**listRolesRolesGet**](ManagementApi.md#listrolesrolesget) | **GET** /roles | List Roles | -| [**removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete**](ManagementApi.md#removepermissionfromrolerolesroleidpermissionspermissioniddelete) | **DELETE** /roles/{role_id}/permissions/{permission_id} | Remove Permission From Role | -| [**rollbackPolicyPoliciesPolicyKeyRollbackVersionPost**](ManagementApi.md#rollbackpolicypoliciespolicykeyrollbackversionpost) | **POST** /policies/{policy_key}/rollback/{version} | Rollback Policy | -| [**simulatePolicySimulatePolicyPost**](ManagementApi.md#simulatepolicysimulatepolicypost) | **POST** /simulate-policy | Simulate Policy | -| [**updatePermissionPermissionsPermissionIdPut**](ManagementApi.md#updatepermissionpermissionspermissionidput) | **PUT** /permissions/{permission_id} | Update Permission | -| [**updatePolicyPoliciesPolicyKeyPut**](ManagementApi.md#updatepolicypoliciespolicykeyput) | **PUT** /policies/{policy_key} | Update Policy | -| [**updateRoleRolesRoleIdPut**](ManagementApi.md#updaterolerolesroleidput) | **PUT** /roles/{role_id} | Update Role | - - - -## addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost - -> SuccessResponsePermissionOut addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(roleId, permissionId) - -Add Permission To Role - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - roleId: 56, - // number - permissionId: 56, - } satisfies AddPermissionToRoleRolesRoleIdPermissionsPermissionIdPostRequest; - - try { - const data = await api.addPermissionToRoleRolesRoleIdPermissionsPermissionIdPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | `number` | | [Defaults to `undefined`] | -| **permissionId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponsePermissionOut**](SuccessResponsePermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createAclEntryAclPost - -> SuccessResponseACLOut createAclEntryAclPost(aCLCreate) - -Create Acl Entry - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreateAclEntryAclPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // ACLCreate - aCLCreate: ..., - } satisfies CreateAclEntryAclPostRequest; - - try { - const data = await api.createAclEntryAclPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **aCLCreate** | [ACLCreate](ACLCreate.md) | | | - -### Return type - -[**SuccessResponseACLOut**](SuccessResponseACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createAuthModelAuthModelPost - -> SuccessResponseAuthModelOut createAuthModelAuthModelPost(authModelCreate) - -Create Auth Model - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreateAuthModelAuthModelPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // AuthModelCreate - authModelCreate: ..., - } satisfies CreateAuthModelAuthModelPostRequest; - - try { - const data = await api.createAuthModelAuthModelPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **authModelCreate** | [AuthModelCreate](AuthModelCreate.md) | | | - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createPermissionPermissionsPost - -> PermissionOut createPermissionPermissionsPost(permissionCreate) - -Create Permission - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreatePermissionPermissionsPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // PermissionCreate - permissionCreate: ..., - } satisfies CreatePermissionPermissionsPostRequest; - - try { - const data = await api.createPermissionPermissionsPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionCreate** | [PermissionCreate](PermissionCreate.md) | | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createPolicyFromDslPoliciesDslPost - -> SuccessResponsePolicyOut createPolicyFromDslPoliciesDslPost(dsl) - -Create Policy From Dsl - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreatePolicyFromDslPoliciesDslPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // string - dsl: dsl_example, - } satisfies CreatePolicyFromDslPoliciesDslPostRequest; - - try { - const data = await api.createPolicyFromDslPoliciesDslPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **dsl** | `string` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createPolicyPoliciesPost - -> SuccessResponsePolicyOut createPolicyPoliciesPost(policyCreate) - -Create Policy - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreatePolicyPoliciesPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // PolicyCreate - policyCreate: ..., - } satisfies CreatePolicyPoliciesPostRequest; - - try { - const data = await api.createPolicyPoliciesPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyCreate** | [PolicyCreate](PolicyCreate.md) | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createRelationshipRelationshipsPost - -> SuccessResponseRelationshipOut createRelationshipRelationshipsPost(relationshipCreate) - -Create Relationship - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreateRelationshipRelationshipsPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // RelationshipCreate - relationshipCreate: ..., - } satisfies CreateRelationshipRelationshipsPostRequest; - - try { - const data = await api.createRelationshipRelationshipsPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **relationshipCreate** | [RelationshipCreate](RelationshipCreate.md) | | | - -### Return type - -[**SuccessResponseRelationshipOut**](SuccessResponseRelationshipOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## createRoleRolesPost - -> RoleOut createRoleRolesPost(roleCreate) - -Create Role - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { CreateRoleRolesPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // RoleCreate - roleCreate: ..., - } satisfies CreateRoleRolesPostRequest; - - try { - const data = await api.createRoleRolesPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleCreate** | [RoleCreate](RoleCreate.md) | | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteAclEntryAclAclIdDelete - -> SuccessResponseDictStrInt deleteAclEntryAclAclIdDelete(aclId) - -Delete Acl Entry - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { DeleteAclEntryAclAclIdDeleteRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - aclId: 56, - } satisfies DeleteAclEntryAclAclIdDeleteRequest; - - try { - const data = await api.deleteAclEntryAclAclIdDelete(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **aclId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deletePermissionPermissionsPermissionIdDelete - -> SuccessResponseDictStrInt deletePermissionPermissionsPermissionIdDelete(permissionId) - -Delete Permission - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { DeletePermissionPermissionsPermissionIdDeleteRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - permissionId: 56, - } satisfies DeletePermissionPermissionsPermissionIdDeleteRequest; - - try { - const data = await api.deletePermissionPermissionsPermissionIdDelete(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deletePolicyPoliciesPolicyKeyDelete - -> SuccessResponseDictStrStr deletePolicyPoliciesPolicyKeyDelete(policyKey) - -Delete Policy - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { DeletePolicyPoliciesPolicyKeyDeleteRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // string - policyKey: policyKey_example, - } satisfies DeletePolicyPoliciesPolicyKeyDeleteRequest; - - try { - const data = await api.deletePolicyPoliciesPolicyKeyDelete(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyKey** | `string` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseDictStrStr**](SuccessResponseDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## deleteRoleRolesRoleIdDelete - -> SuccessResponseDictStrInt deleteRoleRolesRoleIdDelete(roleId) - -Delete Role - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { DeleteRoleRolesRoleIdDeleteRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - roleId: 56, - } satisfies DeleteRoleRolesRoleIdDeleteRequest; - - try { - const data = await api.deleteRoleRolesRoleIdDelete(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## getAuthModelAuthModelGet - -> SuccessResponseAuthModelOut getAuthModelAuthModelGet() - -Get Auth Model - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { GetAuthModelAuthModelGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - try { - const data = await api.getAuthModelAuthModelGet(); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SuccessResponseAuthModelOut**](SuccessResponseAuthModelOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## impactAnalysisImpactAnalysisPost - -> SuccessResponseImpactAnalysisResponse impactAnalysisImpactAnalysisPost(impactAnalysisRequest) - -Impact Analysis - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ImpactAnalysisImpactAnalysisPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // ImpactAnalysisRequest - impactAnalysisRequest: ..., - } satisfies ImpactAnalysisImpactAnalysisPostRequest; - - try { - const data = await api.impactAnalysisImpactAnalysisPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **impactAnalysisRequest** | [ImpactAnalysisRequest](ImpactAnalysisRequest.md) | | | - -### Return type - -[**SuccessResponseImpactAnalysisResponse**](SuccessResponseImpactAnalysisResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listAclEntriesAclResourceTypeResourceIdGet - -> SuccessResponseListACLOut listAclEntriesAclResourceTypeResourceIdGet(resourceType, resourceId) - -List Acl Entries - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListAclEntriesAclResourceTypeResourceIdGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // string - resourceType: resourceType_example, - // string - resourceId: resourceId_example, - } satisfies ListAclEntriesAclResourceTypeResourceIdGetRequest; - - try { - const data = await api.listAclEntriesAclResourceTypeResourceIdGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **resourceType** | `string` | | [Defaults to `undefined`] | -| **resourceId** | `string` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListACLOut**](SuccessResponseListACLOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listAuditLogsAuditGet - -> SuccessResponseListAuditRecordOut listAuditLogsAuditGet(limit, cursor, userId, resourceId, decision, startTime, endTime) - -List Audit Logs - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListAuditLogsAuditGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number (optional) - limit: 56, - // string (optional) - cursor: cursor_example, - // string (optional) - userId: userId_example, - // string (optional) - resourceId: resourceId_example, - // string (optional) - decision: decision_example, - // Date (optional) - startTime: 2013-10-20T19:20:30+01:00, - // Date (optional) - endTime: 2013-10-20T19:20:30+01:00, - } satisfies ListAuditLogsAuditGetRequest; - - try { - const data = await api.listAuditLogsAuditGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | `number` | | [Optional] [Defaults to `50`] | -| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | -| **userId** | `string` | | [Optional] [Defaults to `undefined`] | -| **resourceId** | `string` | | [Optional] [Defaults to `undefined`] | -| **decision** | `string` | | [Optional] [Defaults to `undefined`] | -| **startTime** | `Date` | | [Optional] [Defaults to `undefined`] | -| **endTime** | `Date` | | [Optional] [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListAuditRecordOut**](SuccessResponseListAuditRecordOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listPermissionRolesPermissionsPermissionIdRolesGet - -> SuccessResponseListRoleOut listPermissionRolesPermissionsPermissionIdRolesGet(permissionId) - -List Permission Roles - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListPermissionRolesPermissionsPermissionIdRolesGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - permissionId: 56, - } satisfies ListPermissionRolesPermissionsPermissionIdRolesGetRequest; - - try { - const data = await api.listPermissionRolesPermissionsPermissionIdRolesGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listPermissionsPermissionsGet - -> SuccessResponseListPermissionOut listPermissionsPermissionsGet(limit, cursor) - -List Permissions - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListPermissionsPermissionsGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number (optional) - limit: 56, - // string (optional) - cursor: cursor_example, - } satisfies ListPermissionsPermissionsGetRequest; - - try { - const data = await api.listPermissionsPermissionsGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | `number` | | [Optional] [Defaults to `50`] | -| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listPoliciesPoliciesGet - -> SuccessResponseListPolicyOut listPoliciesPoliciesGet(limit, cursor) - -List Policies - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListPoliciesPoliciesGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number (optional) - limit: 56, - // string (optional) - cursor: cursor_example, - } satisfies ListPoliciesPoliciesGetRequest; - - try { - const data = await api.listPoliciesPoliciesGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | `number` | | [Optional] [Defaults to `50`] | -| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListPolicyOut**](SuccessResponseListPolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listRelationshipsRelationshipsGet - -> SuccessResponseListDictStrStr listRelationshipsRelationshipsGet(subjectType, subjectId, limit, cursor) - -List Relationships - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListRelationshipsRelationshipsGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // string - subjectType: subjectType_example, - // string - subjectId: subjectId_example, - // number (optional) - limit: 56, - // string (optional) - cursor: cursor_example, - } satisfies ListRelationshipsRelationshipsGetRequest; - - try { - const data = await api.listRelationshipsRelationshipsGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **subjectType** | `string` | | [Defaults to `undefined`] | -| **subjectId** | `string` | | [Defaults to `undefined`] | -| **limit** | `number` | | [Optional] [Defaults to `50`] | -| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListDictStrStr**](SuccessResponseListDictStrStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listRolePermissionsRolesRoleIdPermissionsGet - -> SuccessResponseListPermissionOut listRolePermissionsRolesRoleIdPermissionsGet(roleId) - -List Role Permissions - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListRolePermissionsRolesRoleIdPermissionsGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - roleId: 56, - } satisfies ListRolePermissionsRolesRoleIdPermissionsGetRequest; - - try { - const data = await api.listRolePermissionsRolesRoleIdPermissionsGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListPermissionOut**](SuccessResponseListPermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## listRolesRolesGet - -> SuccessResponseListRoleOut listRolesRolesGet(limit, cursor) - -List Roles - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { ListRolesRolesGetRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number (optional) - limit: 56, - // string (optional) - cursor: cursor_example, - } satisfies ListRolesRolesGetRequest; - - try { - const data = await api.listRolesRolesGet(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **limit** | `number` | | [Optional] [Defaults to `50`] | -| **cursor** | `string` | | [Optional] [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseListRoleOut**](SuccessResponseListRoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete - -> SuccessResponseDictStrInt removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(roleId, permissionId) - -Remove Permission From Role - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - roleId: 56, - // number - permissionId: 56, - } satisfies RemovePermissionFromRoleRolesRoleIdPermissionsPermissionIdDeleteRequest; - - try { - const data = await api.removePermissionFromRoleRolesRoleIdPermissionsPermissionIdDelete(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | `number` | | [Defaults to `undefined`] | -| **permissionId** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseDictStrInt**](SuccessResponseDictStrInt.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## rollbackPolicyPoliciesPolicyKeyRollbackVersionPost - -> SuccessResponseDictStrUnionIntStr rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(policyKey, version) - -Rollback Policy - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { RollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // string - policyKey: policyKey_example, - // number - version: 56, - } satisfies RollbackPolicyPoliciesPolicyKeyRollbackVersionPostRequest; - - try { - const data = await api.rollbackPolicyPoliciesPolicyKeyRollbackVersionPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyKey** | `string` | | [Defaults to `undefined`] | -| **version** | `number` | | [Defaults to `undefined`] | - -### Return type - -[**SuccessResponseDictStrUnionIntStr**](SuccessResponseDictStrUnionIntStr.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## simulatePolicySimulatePolicyPost - -> SuccessResponsePolicySimulationResponse simulatePolicySimulatePolicyPost(policySimulationRequest) - -Simulate Policy - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { SimulatePolicySimulatePolicyPostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // PolicySimulationRequest - policySimulationRequest: ..., - } satisfies SimulatePolicySimulatePolicyPostRequest; - - try { - const data = await api.simulatePolicySimulatePolicyPost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policySimulationRequest** | [PolicySimulationRequest](PolicySimulationRequest.md) | | | - -### Return type - -[**SuccessResponsePolicySimulationResponse**](SuccessResponsePolicySimulationResponse.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updatePermissionPermissionsPermissionIdPut - -> PermissionOut updatePermissionPermissionsPermissionIdPut(permissionId, permissionUpdate) - -Update Permission - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { UpdatePermissionPermissionsPermissionIdPutRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - permissionId: 56, - // PermissionUpdate - permissionUpdate: ..., - } satisfies UpdatePermissionPermissionsPermissionIdPutRequest; - - try { - const data = await api.updatePermissionPermissionsPermissionIdPut(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **permissionId** | `number` | | [Defaults to `undefined`] | -| **permissionUpdate** | [PermissionUpdate](PermissionUpdate.md) | | | - -### Return type - -[**PermissionOut**](PermissionOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updatePolicyPoliciesPolicyKeyPut - -> SuccessResponsePolicyOut updatePolicyPoliciesPolicyKeyPut(policyKey, policyCreate) - -Update Policy - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { UpdatePolicyPoliciesPolicyKeyPutRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // string - policyKey: policyKey_example, - // PolicyCreate - policyCreate: ..., - } satisfies UpdatePolicyPoliciesPolicyKeyPutRequest; - - try { - const data = await api.updatePolicyPoliciesPolicyKeyPut(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyKey** | `string` | | [Defaults to `undefined`] | -| **policyCreate** | [PolicyCreate](PolicyCreate.md) | | | - -### Return type - -[**SuccessResponsePolicyOut**](SuccessResponsePolicyOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## updateRoleRolesRoleIdPut - -> RoleOut updateRoleRolesRoleIdPut(roleId, roleUpdate) - -Update Role - -### Example - -```ts -import { - Configuration, - ManagementApi, -} from '@keynetra/client'; -import type { UpdateRoleRolesRoleIdPutRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new ManagementApi(config); - - const body = { - // number - roleId: 56, - // RoleUpdate - roleUpdate: ..., - } satisfies UpdateRoleRolesRoleIdPutRequest; - - try { - const data = await api.updateRoleRolesRoleIdPut(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **roleId** | `number` | | [Defaults to `undefined`] | -| **roleUpdate** | [RoleUpdate](RoleUpdate.md) | | | - -### Return type - -[**RoleOut**](RoleOut.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/sdks/typescript/docs/MetaBody.md b/sdks/typescript/docs/MetaBody.md deleted file mode 100644 index 8c4d939..0000000 --- a/sdks/typescript/docs/MetaBody.md +++ /dev/null @@ -1,40 +0,0 @@ - -# MetaBody - - -## Properties - -Name | Type ------------- | ------------- -`requestId` | string -`limit` | number -`nextCursor` | string -`extra` | { [key: string]: any; } - -## Example - -```typescript -import type { MetaBody } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "requestId": null, - "limit": null, - "nextCursor": null, - "extra": null, -} satisfies MetaBody - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as MetaBody -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PermissionCreate.md b/sdks/typescript/docs/PermissionCreate.md deleted file mode 100644 index eb159d8..0000000 --- a/sdks/typescript/docs/PermissionCreate.md +++ /dev/null @@ -1,34 +0,0 @@ - -# PermissionCreate - - -## Properties - -Name | Type ------------- | ------------- -`action` | string - -## Example - -```typescript -import type { PermissionCreate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "action": null, -} satisfies PermissionCreate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PermissionCreate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PermissionOut.md b/sdks/typescript/docs/PermissionOut.md deleted file mode 100644 index 6b4cb9a..0000000 --- a/sdks/typescript/docs/PermissionOut.md +++ /dev/null @@ -1,36 +0,0 @@ - -# PermissionOut - - -## Properties - -Name | Type ------------- | ------------- -`id` | number -`action` | string - -## Example - -```typescript -import type { PermissionOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "id": null, - "action": null, -} satisfies PermissionOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PermissionOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PermissionUpdate.md b/sdks/typescript/docs/PermissionUpdate.md deleted file mode 100644 index cabd06e..0000000 --- a/sdks/typescript/docs/PermissionUpdate.md +++ /dev/null @@ -1,34 +0,0 @@ - -# PermissionUpdate - - -## Properties - -Name | Type ------------- | ------------- -`action` | string - -## Example - -```typescript -import type { PermissionUpdate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "action": null, -} satisfies PermissionUpdate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PermissionUpdate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PlaygroundApi.md b/sdks/typescript/docs/PlaygroundApi.md deleted file mode 100644 index 68a241b..0000000 --- a/sdks/typescript/docs/PlaygroundApi.md +++ /dev/null @@ -1,81 +0,0 @@ -# PlaygroundApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**evaluatePlaygroundEvaluatePost**](PlaygroundApi.md#evaluateplaygroundevaluatepost) | **POST** /playground/evaluate | Evaluate | - - - -## evaluatePlaygroundEvaluatePost - -> SuccessResponseDictStrAny evaluatePlaygroundEvaluatePost(playgroundEvaluateRequest) - -Evaluate - -### Example - -```ts -import { - Configuration, - PlaygroundApi, -} from '@keynetra/client'; -import type { EvaluatePlaygroundEvaluatePostRequest } from '@keynetra/client'; - -async function example() { - console.log("๐Ÿš€ Testing @keynetra/client SDK..."); - const config = new Configuration({ - // To configure API key authorization: APIKeyHeader - apiKey: "YOUR API KEY", - // Configure HTTP bearer authorization: HTTPBearer - accessToken: "YOUR BEARER TOKEN", - }); - const api = new PlaygroundApi(config); - - const body = { - // PlaygroundEvaluateRequest - playgroundEvaluateRequest: ..., - } satisfies EvaluatePlaygroundEvaluatePostRequest; - - try { - const data = await api.evaluatePlaygroundEvaluatePost(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **playgroundEvaluateRequest** | [PlaygroundEvaluateRequest](PlaygroundEvaluateRequest.md) | | | - -### Return type - -[**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md) - -### Authorization - -[APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - diff --git a/sdks/typescript/docs/PlaygroundEvaluateRequest.md b/sdks/typescript/docs/PlaygroundEvaluateRequest.md deleted file mode 100644 index 10a669c..0000000 --- a/sdks/typescript/docs/PlaygroundEvaluateRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# PlaygroundEvaluateRequest - - -## Properties - -Name | Type ------------- | ------------- -`policies` | [Array<PlaygroundPolicy>](PlaygroundPolicy.md) -`input` | [PlaygroundInput](PlaygroundInput.md) - -## Example - -```typescript -import type { PlaygroundEvaluateRequest } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "policies": null, - "input": null, -} satisfies PlaygroundEvaluateRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PlaygroundEvaluateRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PlaygroundInput.md b/sdks/typescript/docs/PlaygroundInput.md deleted file mode 100644 index 696180a..0000000 --- a/sdks/typescript/docs/PlaygroundInput.md +++ /dev/null @@ -1,40 +0,0 @@ - -# PlaygroundInput - - -## Properties - -Name | Type ------------- | ------------- -`user` | { [key: string]: any; } -`resource` | { [key: string]: any; } -`action` | string -`context` | { [key: string]: any; } - -## Example - -```typescript -import type { PlaygroundInput } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "user": null, - "resource": null, - "action": null, - "context": null, -} satisfies PlaygroundInput - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PlaygroundInput -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PlaygroundPolicy.md b/sdks/typescript/docs/PlaygroundPolicy.md deleted file mode 100644 index 9907c7f..0000000 --- a/sdks/typescript/docs/PlaygroundPolicy.md +++ /dev/null @@ -1,42 +0,0 @@ - -# PlaygroundPolicy - - -## Properties - -Name | Type ------------- | ------------- -`action` | string -`effect` | string -`priority` | number -`policyId` | string -`conditions` | { [key: string]: any; } - -## Example - -```typescript -import type { PlaygroundPolicy } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "action": null, - "effect": null, - "priority": null, - "policyId": null, - "conditions": null, -} satisfies PlaygroundPolicy - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PlaygroundPolicy -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PolicyCreate.md b/sdks/typescript/docs/PolicyCreate.md deleted file mode 100644 index 89d0507..0000000 --- a/sdks/typescript/docs/PolicyCreate.md +++ /dev/null @@ -1,42 +0,0 @@ - -# PolicyCreate - - -## Properties - -Name | Type ------------- | ------------- -`action` | string -`effect` | string -`priority` | number -`state` | string -`conditions` | { [key: string]: any; } - -## Example - -```typescript -import type { PolicyCreate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "action": null, - "effect": null, - "priority": null, - "state": null, - "conditions": null, -} satisfies PolicyCreate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PolicyCreate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PolicyOut.md b/sdks/typescript/docs/PolicyOut.md deleted file mode 100644 index 44aa3be..0000000 --- a/sdks/typescript/docs/PolicyOut.md +++ /dev/null @@ -1,44 +0,0 @@ - -# PolicyOut - - -## Properties - -Name | Type ------------- | ------------- -`id` | number -`action` | string -`effect` | string -`priority` | number -`state` | string -`conditions` | { [key: string]: any; } - -## Example - -```typescript -import type { PolicyOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "id": null, - "action": null, - "effect": null, - "priority": null, - "state": null, - "conditions": null, -} satisfies PolicyOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PolicyOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PolicySimulationInput.md b/sdks/typescript/docs/PolicySimulationInput.md deleted file mode 100644 index 6123485..0000000 --- a/sdks/typescript/docs/PolicySimulationInput.md +++ /dev/null @@ -1,38 +0,0 @@ - -# PolicySimulationInput - - -## Properties - -Name | Type ------------- | ------------- -`policyChange` | string -`relationshipChange` | { [key: string]: any; } -`roleChange` | { [key: string]: any; } - -## Example - -```typescript -import type { PolicySimulationInput } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "policyChange": null, - "relationshipChange": null, - "roleChange": null, -} satisfies PolicySimulationInput - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PolicySimulationInput -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PolicySimulationRequest.md b/sdks/typescript/docs/PolicySimulationRequest.md deleted file mode 100644 index 2e45e3b..0000000 --- a/sdks/typescript/docs/PolicySimulationRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - -# PolicySimulationRequest - - -## Properties - -Name | Type ------------- | ------------- -`simulate` | [PolicySimulationInput](PolicySimulationInput.md) -`request` | { [key: string]: any; } - -## Example - -```typescript -import type { PolicySimulationRequest } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "simulate": null, - "request": null, -} satisfies PolicySimulationRequest - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PolicySimulationRequest -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/PolicySimulationResponse.md b/sdks/typescript/docs/PolicySimulationResponse.md deleted file mode 100644 index 5384a19..0000000 --- a/sdks/typescript/docs/PolicySimulationResponse.md +++ /dev/null @@ -1,36 +0,0 @@ - -# PolicySimulationResponse - - -## Properties - -Name | Type ------------- | ------------- -`decisionBefore` | { [key: string]: any; } -`decisionAfter` | { [key: string]: any; } - -## Example - -```typescript -import type { PolicySimulationResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "decisionBefore": null, - "decisionAfter": null, -} satisfies PolicySimulationResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PolicySimulationResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/RelationshipCreate.md b/sdks/typescript/docs/RelationshipCreate.md deleted file mode 100644 index 0e6a18a..0000000 --- a/sdks/typescript/docs/RelationshipCreate.md +++ /dev/null @@ -1,42 +0,0 @@ - -# RelationshipCreate - - -## Properties - -Name | Type ------------- | ------------- -`subjectType` | string -`subjectId` | string -`relation` | string -`objectType` | string -`objectId` | string - -## Example - -```typescript -import type { RelationshipCreate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "subjectType": null, - "subjectId": null, - "relation": null, - "objectType": null, - "objectId": null, -} satisfies RelationshipCreate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as RelationshipCreate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/RelationshipOut.md b/sdks/typescript/docs/RelationshipOut.md deleted file mode 100644 index 8ada9fe..0000000 --- a/sdks/typescript/docs/RelationshipOut.md +++ /dev/null @@ -1,44 +0,0 @@ - -# RelationshipOut - - -## Properties - -Name | Type ------------- | ------------- -`subjectType` | string -`subjectId` | string -`relation` | string -`objectType` | string -`objectId` | string -`id` | number - -## Example - -```typescript -import type { RelationshipOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "subjectType": null, - "subjectId": null, - "relation": null, - "objectType": null, - "objectId": null, - "id": null, -} satisfies RelationshipOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as RelationshipOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/RoleCreate.md b/sdks/typescript/docs/RoleCreate.md deleted file mode 100644 index 681d185..0000000 --- a/sdks/typescript/docs/RoleCreate.md +++ /dev/null @@ -1,34 +0,0 @@ - -# RoleCreate - - -## Properties - -Name | Type ------------- | ------------- -`name` | string - -## Example - -```typescript -import type { RoleCreate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "name": null, -} satisfies RoleCreate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as RoleCreate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/RoleOut.md b/sdks/typescript/docs/RoleOut.md deleted file mode 100644 index 46233ea..0000000 --- a/sdks/typescript/docs/RoleOut.md +++ /dev/null @@ -1,36 +0,0 @@ - -# RoleOut - - -## Properties - -Name | Type ------------- | ------------- -`id` | number -`name` | string - -## Example - -```typescript -import type { RoleOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "id": null, - "name": null, -} satisfies RoleOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as RoleOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/RoleUpdate.md b/sdks/typescript/docs/RoleUpdate.md deleted file mode 100644 index e76d8ec..0000000 --- a/sdks/typescript/docs/RoleUpdate.md +++ /dev/null @@ -1,34 +0,0 @@ - -# RoleUpdate - - -## Properties - -Name | Type ------------- | ------------- -`name` | string - -## Example - -```typescript -import type { RoleUpdate } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "name": null, -} satisfies RoleUpdate - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as RoleUpdate -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SimulationResponse.md b/sdks/typescript/docs/SimulationResponse.md deleted file mode 100644 index 0bfa4dc..0000000 --- a/sdks/typescript/docs/SimulationResponse.md +++ /dev/null @@ -1,46 +0,0 @@ - -# SimulationResponse - - -## Properties - -Name | Type ------------- | ------------- -`decision` | string -`matchedPolicies` | Array<string> -`reason` | string -`policyId` | string -`explainTrace` | Array<{ [key: string]: any; }> -`failedConditions` | Array<string> -`revision` | number - -## Example - -```typescript -import type { SimulationResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "decision": null, - "matchedPolicies": null, - "reason": null, - "policyId": null, - "explainTrace": null, - "failedConditions": null, - "revision": null, -} satisfies SimulationResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SimulationResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseACLOut.md b/sdks/typescript/docs/SuccessResponseACLOut.md deleted file mode 100644 index 2838460..0000000 --- a/sdks/typescript/docs/SuccessResponseACLOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseACLOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [ACLOut](ACLOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseACLOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseACLOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseACLOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md b/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md deleted file mode 100644 index dfbc3f1..0000000 --- a/sdks/typescript/docs/SuccessResponseAccessDecisionResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseAccessDecisionResponse - - -## Properties - -Name | Type ------------- | ------------- -`data` | [AccessDecisionResponse](AccessDecisionResponse.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseAccessDecisionResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseAccessDecisionResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseAccessDecisionResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md b/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md deleted file mode 100644 index 44fe722..0000000 --- a/sdks/typescript/docs/SuccessResponseAdminLoginResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseAdminLoginResponse - - -## Properties - -Name | Type ------------- | ------------- -`data` | [AdminLoginResponse](AdminLoginResponse.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseAdminLoginResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseAdminLoginResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseAdminLoginResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseAuthModelOut.md b/sdks/typescript/docs/SuccessResponseAuthModelOut.md deleted file mode 100644 index 222d6f4..0000000 --- a/sdks/typescript/docs/SuccessResponseAuthModelOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseAuthModelOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [AuthModelOut](AuthModelOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseAuthModelOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseAuthModelOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseAuthModelOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md b/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md deleted file mode 100644 index 3d4fafa..0000000 --- a/sdks/typescript/docs/SuccessResponseBatchAccessResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseBatchAccessResponse - - -## Properties - -Name | Type ------------- | ------------- -`data` | [BatchAccessResponse](BatchAccessResponse.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseBatchAccessResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseBatchAccessResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseBatchAccessResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseDictStrAny.md b/sdks/typescript/docs/SuccessResponseDictStrAny.md deleted file mode 100644 index 294fb20..0000000 --- a/sdks/typescript/docs/SuccessResponseDictStrAny.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseDictStrAny - - -## Properties - -Name | Type ------------- | ------------- -`data` | { [key: string]: any; } -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseDictStrAny } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseDictStrAny - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrAny -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseDictStrInt.md b/sdks/typescript/docs/SuccessResponseDictStrInt.md deleted file mode 100644 index 6a291c5..0000000 --- a/sdks/typescript/docs/SuccessResponseDictStrInt.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseDictStrInt - - -## Properties - -Name | Type ------------- | ------------- -`data` | { [key: string]: number; } -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseDictStrInt } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseDictStrInt - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrInt -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseDictStrObject.md b/sdks/typescript/docs/SuccessResponseDictStrObject.md deleted file mode 100644 index 60c491f..0000000 --- a/sdks/typescript/docs/SuccessResponseDictStrObject.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseDictStrObject - - -## Properties - -Name | Type ------------- | ------------- -`data` | { [key: string]: any; } -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseDictStrObject } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseDictStrObject - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrObject -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseDictStrStr.md b/sdks/typescript/docs/SuccessResponseDictStrStr.md deleted file mode 100644 index 3a455f8..0000000 --- a/sdks/typescript/docs/SuccessResponseDictStrStr.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseDictStrStr - - -## Properties - -Name | Type ------------- | ------------- -`data` | { [key: string]: string; } -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseDictStrStr } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseDictStrStr - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrStr -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md b/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md deleted file mode 100644 index e9a591d..0000000 --- a/sdks/typescript/docs/SuccessResponseDictStrUnionIntStr.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseDictStrUnionIntStr - - -## Properties - -Name | Type ------------- | ------------- -`data` | [{ [key: string]: DataValue; }](DataValue.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseDictStrUnionIntStr } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseDictStrUnionIntStr - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseDictStrUnionIntStr -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md b/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md deleted file mode 100644 index fde9984..0000000 --- a/sdks/typescript/docs/SuccessResponseImpactAnalysisResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseImpactAnalysisResponse - - -## Properties - -Name | Type ------------- | ------------- -`data` | [ImpactAnalysisResponse](ImpactAnalysisResponse.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseImpactAnalysisResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseImpactAnalysisResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseImpactAnalysisResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseListACLOut.md b/sdks/typescript/docs/SuccessResponseListACLOut.md deleted file mode 100644 index f4c0172..0000000 --- a/sdks/typescript/docs/SuccessResponseListACLOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseListACLOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [Array<ACLOut>](ACLOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseListACLOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseListACLOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListACLOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md b/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md deleted file mode 100644 index 83b45c2..0000000 --- a/sdks/typescript/docs/SuccessResponseListAuditRecordOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseListAuditRecordOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [Array<AuditRecordOut>](AuditRecordOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseListAuditRecordOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseListAuditRecordOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListAuditRecordOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseListDictStrStr.md b/sdks/typescript/docs/SuccessResponseListDictStrStr.md deleted file mode 100644 index f02cc86..0000000 --- a/sdks/typescript/docs/SuccessResponseListDictStrStr.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseListDictStrStr - - -## Properties - -Name | Type ------------- | ------------- -`data` | Array<{ [key: string]: string; }> -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseListDictStrStr } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseListDictStrStr - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListDictStrStr -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseListPermissionOut.md b/sdks/typescript/docs/SuccessResponseListPermissionOut.md deleted file mode 100644 index 05718a5..0000000 --- a/sdks/typescript/docs/SuccessResponseListPermissionOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseListPermissionOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [Array<PermissionOut>](PermissionOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseListPermissionOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseListPermissionOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListPermissionOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseListPolicyOut.md b/sdks/typescript/docs/SuccessResponseListPolicyOut.md deleted file mode 100644 index 51789b9..0000000 --- a/sdks/typescript/docs/SuccessResponseListPolicyOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseListPolicyOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [Array<PolicyOut>](PolicyOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseListPolicyOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseListPolicyOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListPolicyOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseListRoleOut.md b/sdks/typescript/docs/SuccessResponseListRoleOut.md deleted file mode 100644 index 8b9cc87..0000000 --- a/sdks/typescript/docs/SuccessResponseListRoleOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseListRoleOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [Array<RoleOut>](RoleOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseListRoleOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseListRoleOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseListRoleOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponsePermissionOut.md b/sdks/typescript/docs/SuccessResponsePermissionOut.md deleted file mode 100644 index 7013546..0000000 --- a/sdks/typescript/docs/SuccessResponsePermissionOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponsePermissionOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [PermissionOut](PermissionOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponsePermissionOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponsePermissionOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponsePermissionOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponsePolicyOut.md b/sdks/typescript/docs/SuccessResponsePolicyOut.md deleted file mode 100644 index 5531b2e..0000000 --- a/sdks/typescript/docs/SuccessResponsePolicyOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponsePolicyOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [PolicyOut](PolicyOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponsePolicyOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponsePolicyOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponsePolicyOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md b/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md deleted file mode 100644 index ba88bd7..0000000 --- a/sdks/typescript/docs/SuccessResponsePolicySimulationResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponsePolicySimulationResponse - - -## Properties - -Name | Type ------------- | ------------- -`data` | [PolicySimulationResponse](PolicySimulationResponse.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponsePolicySimulationResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponsePolicySimulationResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponsePolicySimulationResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseRelationshipOut.md b/sdks/typescript/docs/SuccessResponseRelationshipOut.md deleted file mode 100644 index 350535e..0000000 --- a/sdks/typescript/docs/SuccessResponseRelationshipOut.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseRelationshipOut - - -## Properties - -Name | Type ------------- | ------------- -`data` | [RelationshipOut](RelationshipOut.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseRelationshipOut } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseRelationshipOut - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseRelationshipOut -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/SuccessResponseSimulationResponse.md b/sdks/typescript/docs/SuccessResponseSimulationResponse.md deleted file mode 100644 index 141ff9a..0000000 --- a/sdks/typescript/docs/SuccessResponseSimulationResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - -# SuccessResponseSimulationResponse - - -## Properties - -Name | Type ------------- | ------------- -`data` | [SimulationResponse](SimulationResponse.md) -`meta` | [MetaBody](MetaBody.md) -`error` | any - -## Example - -```typescript -import type { SuccessResponseSimulationResponse } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "meta": null, - "error": null, -} satisfies SuccessResponseSimulationResponse - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SuccessResponseSimulationResponse -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/docs/ValidationError.md b/sdks/typescript/docs/ValidationError.md deleted file mode 100644 index ed41e78..0000000 --- a/sdks/typescript/docs/ValidationError.md +++ /dev/null @@ -1,42 +0,0 @@ - -# ValidationError - - -## Properties - -Name | Type ------------- | ------------- -`loc` | [Array<LocationInner>](LocationInner.md) -`msg` | string -`type` | string -`input` | any -`ctx` | object - -## Example - -```typescript -import type { ValidationError } from '@keynetra/client' - -// TODO: Update the object below with actual values -const example = { - "loc": null, - "msg": null, - "type": null, - "input": null, - "ctx": null, -} satisfies ValidationError - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ValidationError -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json deleted file mode 100644 index 4420e8a..0000000 --- a/sdks/typescript/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@keynetra/client", - "version": "0.1.1", - "description": "Official TypeScript Client SDK for the KeyNetra authorization platform.", - "license": "Apache-2.0", - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", - "files": [ - "dist", - "src", - "README.md" - ], - "author": "KeyNetra ", - "repository": { - "type": "git", - "url": "git+https://github.com/keynetra/keynetra-client-typescript.git" - }, - "homepage": "https://github.com/keynetra/keynetra-client-typescript", - "scripts": { - "build": "tsc -p tsconfig.json" - }, - "devDependencies": { - "typescript": "^5.0.0" - } -} diff --git a/sdks/typescript/tsconfig.esm.json b/sdks/typescript/tsconfig.esm.json deleted file mode 100644 index 2c0331c..0000000 --- a/sdks/typescript/tsconfig.esm.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "esnext", - "outDir": "dist/esm" - } -} diff --git a/sdks/typescript/tsconfig.json b/sdks/typescript/tsconfig.json deleted file mode 100644 index 6f11d0e..0000000 --- a/sdks/typescript/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "CommonJS", - "moduleResolution": "Node", - "declaration": true, - "outDir": "dist", - "rootDir": "src", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true - }, - "include": ["src/**/*.ts"] -} From 655f902a49fe28ced163bde7cbb7f095708f8a42 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 03:38:39 +0530 Subject: [PATCH 21/40] fix: resolve Go syntax and Kotlin serialization errors via generator config --- scripts/generate-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index a0a3dac..b02b6ab 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -123,7 +123,7 @@ generate_sdk_go() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ - --type-mappings=null=interface{},object=interface{},any=interface{},Any=interface{},AnyOf=interface{},OneOf=interface{} \ +--type-mappings=null=interface{},object=map[string]interface{},Any=interface{} \ --additional-properties=disallowAdditionalPropertiesIfNotPresent=false \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." From 472e46a3dac9453471f24ae91d8019826b7dd46a Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 03:59:13 +0530 Subject: [PATCH 22/40] removed kotlin --- .github/workflows/release.yml | 110 +++++++++++++++++----------------- 1 file changed, 56 insertions(+), 54 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa76fc7..68e5cd3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,8 +69,8 @@ jobs: id: php - language: Ruby id: ruby - - language: Kotlin - id: kotlin + # - language: Kotlin + # id: kotlin - language: Swift id: swift services: @@ -115,7 +115,9 @@ jobs: node-version: "20" - name: โ˜• Setup Java - if: matrix.id == 'java' || matrix.id == 'kotlin' + # if: matrix.id == 'java' || matrix.id == 'kotlin' + # if: matrix.id == 'java' + uses: actions/setup-java@v4 with: distribution: temurin @@ -215,12 +217,12 @@ jobs: cd sdks/ruby gem build *.gemspec - - name: ๐Ÿ“ฑ Test Kotlin (Local) - if: matrix.id == 'kotlin' - run: | - cd sdks/kotlin - chmod +x ./gradlew - ./gradlew build --stacktrace + # - name: ๐Ÿ“ฑ Test Kotlin (Local) + # if: matrix.id == 'kotlin' + # run: | + # cd sdks/kotlin + # chmod +x ./gradlew + # ./gradlew build --stacktrace - name: ๐ŸŽ Test Swift (Local) if: matrix.id == 'swift' @@ -567,44 +569,44 @@ jobs: user-email: business.keynetra@gmail.com target-branch: main - kotlin: - name: ๐Ÿ“ฑ Publish Kotlin - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks - - - name: โ˜• Setup Java - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: "21" - cache: gradle - - - name: ๐Ÿ› ๏ธ Build Kotlin Library - working-directory: sdks/kotlin - run: | - chmod +x ./gradlew - ./gradlew build - - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/kotlin' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-kotlin' - user-email: business.keynetra@gmail.com - target-branch: main + # kotlin: + # name: ๐Ÿ“ฑ Publish Kotlin + # runs-on: ubuntu-latest + # needs: [prepare, smoke-test] + # if: success() + # steps: + # - name: ๐Ÿ“ฅ Checkout + # uses: actions/checkout@v4 + + # - name: ๐Ÿ“‚ Download SDKs + # uses: actions/download-artifact@v4 + # with: + # name: generated-sdks + # path: sdks + + # - name: โ˜• Setup Java + # uses: actions/setup-java@v4 + # with: + # distribution: temurin + # java-version: "21" + # cache: gradle + + # - name: ๐Ÿ› ๏ธ Build Kotlin Library + # working-directory: sdks/kotlin + # run: | + # chmod +x ./gradlew + # ./gradlew build + + # - name: ๐Ÿ”„ Mirror to dedicated repo + # uses: cpina/github-action-push-to-another-repository@main + # env: + # API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + # with: + # source-directory: 'sdks/kotlin' + # destination-github-username: 'keynetra' + # destination-repository-name: 'keynetra-client-kotlin' + # user-email: business.keynetra@gmail.com + # target-branch: main swift: name: ๐ŸŽ Publish Swift @@ -669,9 +671,9 @@ jobs: - language: Ruby id: ruby wait: 60 - - language: Kotlin - id: kotlin - wait: 120 + # - language: Kotlin + # id: kotlin + # wait: 120 - language: Swift id: swift wait: 45 @@ -743,10 +745,10 @@ jobs: run: | echo "Ruby verification from RubyGems" - - name: ๐Ÿ“ฑ Verify Kotlin from Maven - if: matrix.id == 'kotlin' - run: | - echo "Kotlin verification from Maven Central" + # - name: ๐Ÿ“ฑ Verify Kotlin from Maven + # if: matrix.id == 'kotlin' + # run: | + # echo "Kotlin verification from Maven Central" - name: ๐ŸŽ Verify Swift from GitHub if: matrix.id == 'swift' From dddec4ac5f442009ffe1294c77ee7c2c1c4b08e0 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 04:00:47 +0530 Subject: [PATCH 23/40] removed kotlin --- scripts/generate-all.sh | 2 +- scripts/prepare-packages.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index b02b6ab..9730bbb 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -384,7 +384,7 @@ FAIL=0 (generate_sdk_csharp) || FAIL=1 & (generate_sdk_php) || FAIL=1 & (generate_sdk_ruby) || FAIL=1 & -(generate_sdk_kotlin) || FAIL=1 & +# (generate_sdk_kotlin) || FAIL=1 & (generate_sdk_swift) || FAIL=1 & # Wait for all background jobs to finish diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 216c252..00bfe42 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -634,7 +634,7 @@ prepare_rust prepare_csharp prepare_php prepare_ruby -prepare_kotlin +# prepare_kotlin prepare_swift log_success "Prepared SDK package metadata and unified KeyNetraClient wrappers." From 3320de076be70faafac456f2f9977afad59f605b Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 04:04:50 +0530 Subject: [PATCH 24/40] removed kotlin --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68e5cd3..b632a4d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -641,7 +641,8 @@ jobs: # --- STAGE 4: ๐Ÿ Post-Publish Verification (Registry Libraries) --- verify-publish: name: "๐Ÿ Registry: ${{ matrix.language }}" - needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, kotlin, swift] + needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, swift] + # needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, kotlin, swift] runs-on: ubuntu-latest strategy: fail-fast: false From cc1ee808fba11aa0209feb2c87003a293241bbc2 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 05:29:12 +0530 Subject: [PATCH 25/40] paraller jobs --- .github/workflows/release.yml | 838 ++++++++-------------------------- 1 file changed, 181 insertions(+), 657 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b632a4d..0316765 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,774 +1,298 @@ -name: ๐Ÿš€ Release SDKs +name: ๐Ÿš€ KeyNetra SDK Release on: push: tags: - - sdk-* + - sdk-v* workflow_dispatch: +concurrency: + group: sdk-release-${{ github.ref }} + cancel-in-progress: false + permissions: contents: write +env: + REGISTRY_WAIT: 60 + +# ------------------------------------------------------------ +# BUILD SDKs +# ------------------------------------------------------------ + jobs: + prepare: - name: ๐Ÿ—๏ธ Build & Prepare + name: ๐Ÿ— Generate SDKs runs-on: ubuntu-latest + outputs: - version: ${{ steps.version.outputs.value }} + version: ${{ steps.version.outputs.version }} + steps: - - name: ๐Ÿ“ฅ Checkout + - name: Checkout uses: actions/checkout@v4 - - name: ๐ŸŸข Setup Node.js + - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "20" + node-version: 20 + cache: npm - - name: ๐Ÿท๏ธ Resolve SDK version + - name: Extract version id: version - run: echo "value=${GITHUB_REF_NAME#sdk-v}" >> "$GITHUB_OUTPUT" + run: | + VERSION=$(echo "${GITHUB_REF_NAME}" | sed 's/^sdk-v//') + echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: ๐Ÿ“ฆ Install OpenAPI Generator + - name: Install OpenAPI Generator run: npm install -g @openapitools/openapi-generator-cli - - name: ๐Ÿ› ๏ธ Generate SDKs + - name: Generate SDKs env: - SDK_VERSION: ${{ steps.version.outputs.value }} + SDK_VERSION: ${{ steps.version.outputs.version }} run: | - chmod +x scripts/generate-all.sh scripts/prepare-packages.sh + chmod +x scripts/generate-all.sh ./scripts/generate-all.sh - - name: ๐Ÿ’พ Upload artifacts + - name: Upload SDK artifacts uses: actions/upload-artifact@v4 with: - name: generated-sdks + name: sdks path: sdks - # --- STAGE 2: ๐Ÿงช Pre-Publish Verification (Local Artifacts) --- +# ------------------------------------------------------------ +# LOCAL TESTS +# ------------------------------------------------------------ + smoke-test: - name: "๐Ÿงช Local: ${{ matrix.language }}" + name: ๐Ÿงช Local Test (${{ matrix.lang }}) needs: prepare runs-on: ubuntu-latest + strategy: fail-fast: false matrix: - include: - - language: Python - id: python - - language: Go - id: go - - language: TypeScript - id: typescript - - language: Java - id: java - - language: Rust - id: rust - - language: C# - id: csharp - - language: PHP - id: php - - language: Ruby - id: ruby - # - language: Kotlin - # id: kotlin - - language: Swift - id: swift - services: - keynetra: - image: docker.io/keynetra/keynetra:latest - ports: - - 8080:8080 - options: >- - --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" - --health-interval 15s - --health-timeout 10s - --health-retries 10 + lang: [python, typescript, go, rust, dotnet] + steps: - - name: ๐Ÿ“ฅ Checkout Code - uses: actions/checkout@v4 - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 with: - name: generated-sdks + name: sdks path: sdks - # Language Setups - - name: ๐Ÿ Setup Python - if: matrix.id == 'python' - uses: actions/setup-python@v5 + # Python + - uses: actions/setup-python@v5 + if: matrix.lang == 'python' with: python-version: "3.11" - cache: "pip" - - - name: ๐Ÿน Setup Go - if: matrix.id == 'go' - uses: actions/setup-go@v5 - with: - go-version: "1.23" - cache: false - - - name: ๐ŸŸข Setup Node.js - if: matrix.id == 'typescript' - uses: actions/setup-node@v4 - with: - node-version: "20" - - - name: โ˜• Setup Java - # if: matrix.id == 'java' || matrix.id == 'kotlin' - # if: matrix.id == 'java' - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: "21" - cache: gradle - - name: ๐Ÿฆ€ Setup Rust - if: matrix.id == 'rust' - uses: dtolnay/rust-toolchain@stable + - name: Test Python + if: matrix.lang == 'python' + run: | + cd sdks/python + pip install build + python -m build - - name: ๐Ÿฆ€ Cache Cargo - if: matrix.id == 'rust' - uses: actions/cache@v4 + # TypeScript + - uses: actions/setup-node@v4 + if: matrix.lang == 'typescript' with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('sdks/rust/Cargo.toml') }} - - - name: ๐Ÿ’  Setup .NET - if: matrix.id == 'csharp' - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "8.0.x" - cache: true - cache-dependency-path: sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj + node-version: 20 - - name: ๏ฟฝ Setup PHP - if: matrix.id == 'php' - uses: shivammathur/setup-php@v2 - with: - php-version: "8.2" + - name: Test TypeScript + if: matrix.lang == 'typescript' + run: | + cd sdks/typescript + npm install + npm run build - - name: ๐Ÿ’Ž Setup Ruby - if: matrix.id == 'ruby' - uses: ruby/setup-ruby@v1 + # Go + - uses: actions/setup-go@v5 + if: matrix.lang == 'go' with: - ruby-version: "3.2" - cache: true + go-version: "1.22" - # Local Tests - - name: ๐Ÿ Test Python (Local) - if: matrix.id == 'python' - run: | - cd tests/python - pip install pydantic urllib3 python-dateutil typing-extensions - python3 test_full.py - - - name: ๐Ÿน Test Go (Local) - if: matrix.id == 'go' + - name: Test Go + if: matrix.lang == 'go' run: | cd sdks/go - go mod init github.com/keynetra/keynetra-client-go || true + go mod init tmp || true go mod tidy go build ./... - - name: ๐ŸŸข Test TypeScript (Local Artifact) - if: matrix.id == 'typescript' - run: | - cd sdks/typescript - npm install - npm run build - # Check for both named and default exports - node -e "const pkg = require('./dist/index.js'); const Client = pkg.KeyNetraClient || pkg.default?.KeyNetraClient; if (!Client) throw new Error('KeyNetraClient not found'); new Client({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('TS Local Verified');" - - - name: โ˜• Test Java (Local) - if: matrix.id == 'java' - run: | - cd sdks/java - chmod +x ./gradlew - ./gradlew build + # Rust + - uses: dtolnay/rust-toolchain@stable + if: matrix.lang == 'rust' - - name: ๐Ÿฆ€ Test Rust (Local) - if: matrix.id == 'rust' + - name: Test Rust + if: matrix.lang == 'rust' run: | cd sdks/rust cargo build - - name: ๐Ÿ’Ž Test C# (Local) - if: matrix.id == 'csharp' - run: | - cd sdks/csharp/src/KeyNetra.Client - dotnet build + # .NET + - uses: actions/setup-dotnet@v4 + if: matrix.lang == 'dotnet' + with: + dotnet-version: 8.0.x - - name: ๐Ÿ˜ Test PHP (Local) - if: matrix.id == 'php' + - name: Test .NET + if: matrix.lang == 'dotnet' run: | - cd sdks/php - composer validate + cd sdks/csharp + dotnet build - - name: ๐Ÿ’Ž Test Ruby (Local) - if: matrix.id == 'ruby' - run: | - cd sdks/ruby - gem build *.gemspec - - # - name: ๐Ÿ“ฑ Test Kotlin (Local) - # if: matrix.id == 'kotlin' - # run: | - # cd sdks/kotlin - # chmod +x ./gradlew - # ./gradlew build --stacktrace - - - name: ๐ŸŽ Test Swift (Local) - if: matrix.id == 'swift' - run: | - echo "Swift local verification" +# ------------------------------------------------------------ +# PUBLISH SDKs (PARALLEL) +# ------------------------------------------------------------ - # --- STAGE 3: ๐Ÿš€ Publish SDKs --- - python: - name: ๐Ÿ Publish Python - runs-on: ubuntu-latest + publish: + name: ๐Ÿ“ฆ Publish (${{ matrix.lang }}) needs: [prepare, smoke-test] - if: success() - permissions: - id-token: write + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + lang: [python, typescript, rust, dotnet] + steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 with: - name: generated-sdks + name: sdks path: sdks - - name: ๐Ÿ Setup Python - uses: actions/setup-python@v5 +# ---------------- Python ---------------- + + - uses: actions/setup-python@v5 + if: matrix.lang == 'python' with: python-version: "3.11" - - name: ๐Ÿ“ฆ Build & Check - working-directory: sdks/python + - name: Publish Python + if: matrix.lang == 'python' run: | - python -m pip install --upgrade pip build twine + cd sdks/python + pip install build twine python -m build - python -m twine check dist/* - - name: ๐Ÿš€ Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: sdks/python/dist/ + twine upload dist/* \ + --skip-existing \ + -u __token__ \ + -p ${{ secrets.PYPI_TOKEN }} - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/python' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-python' - user-email: business.keynetra@gmail.com - target-branch: main - - typescript: - name: ๐Ÿ“˜ Publish TypeScript - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 +# ---------------- TypeScript ---------------- - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 + - uses: actions/setup-node@v4 + if: matrix.lang == 'typescript' with: - name: generated-sdks - path: sdks + node-version: 20 - - name: ๐ŸŸข Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "20" - registry-url: "https://registry.npmjs.org" - - - name: ๐Ÿš€ Publish to npm - working-directory: sdks/typescript - run: | - npm publish --access public + - name: Publish npm + if: matrix.lang == 'typescript' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/typescript' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-typescript' - user-email: business.keynetra@gmail.com - target-branch: main - - go: - name: ๐Ÿน Publish Go - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks - - - name: ๐Ÿน Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - cache: true - - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/go' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-go' - user-email: business.keynetra@gmail.com - target-branch: main - - - name: ๐Ÿท๏ธ Create release tag in target repo run: | - echo "Mirrored to keynetra-go" - - java: - name: โ˜• Publish Java - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 + cd sdks/typescript + VERSION=$(node -p "require('./package.json').version") + PACKAGE=$(node -p "require('./package.json').name") - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks + if npm view "$PACKAGE@$VERSION" version >/dev/null 2>&1; then + echo "Version exists โ€” skipping" + else + npm publish --access public + fi - - name: โ˜• Setup Java - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: "21" - cache: gradle - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - - - name: ๐Ÿš€ Publish to Maven - working-directory: sdks/java - env: - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - run: | - chmod +x ./gradlew - ./gradlew publish +# ---------------- Rust ---------------- - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/java' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-java' - user-email: business.keynetra@gmail.com - target-branch: main - - rust: - name: ๐Ÿฆ€ Publish Rust - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + if: matrix.lang == 'rust' - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks - - - name: ๐Ÿฆ€ Setup Rust - uses: dtolnay/rust-toolchain@stable + - name: Publish Rust + if: matrix.lang == 'rust' + run: | + cd sdks/rust - - name: ๐Ÿฆ€ Cache Cargo - uses: actions/cache@v4 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('sdks/rust/Cargo.toml') }} - - - name: ๐Ÿš€ Publish to crates.io - working-directory: sdks/rust - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - run: cargo publish --locked + VERSION=$(grep '^version' Cargo.toml | cut -d '"' -f2) - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/rust' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-rust' - user-email: business.keynetra@gmail.com - target-branch: main - - csharp: - name: ๐Ÿ’Ž Publish C# - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 + if cargo search keynetra-client | grep "$VERSION"; then + echo "Version exists" + else + cargo publish --token ${{ secrets.CRATES_TOKEN }} + fi - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks +# ---------------- .NET ---------------- - - name: ๐Ÿ’  Setup .NET - uses: actions/setup-dotnet@v4 + - uses: actions/setup-dotnet@v4 + if: matrix.lang == 'dotnet' with: - dotnet-version: "8.0.x" - cache: true - cache-dependency-path: sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj + dotnet-version: 8.0.x - - name: ๐Ÿ“ฆ Pack NuGet package - working-directory: sdks/csharp/src/KeyNetra.Client - run: dotnet pack -c Release -p:PackageVersion=${{ needs.prepare.outputs.version }} - - - name: ๐Ÿš€ Publish to NuGet - working-directory: sdks/csharp/src/KeyNetra.Client/bin/Release - env: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + - name: Publish NuGet + if: matrix.lang == 'dotnet' run: | - dotnet nuget push "*.nupkg" \ - --api-key "$NUGET_API_KEY" \ - --source https://api.nuget.org/v3/index.json \ - --skip-duplicate + cd sdks/csharp + dotnet pack -c Release - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/csharp' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-csharp' - user-email: business.keynetra@gmail.com - target-branch: main - - php: - name: ๐Ÿ˜ Publish PHP - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks - - - name: ๐Ÿ˜ Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.2" + dotnet nuget push bin/Release/*.nupkg \ + --api-key ${{ secrets.NUGET_TOKEN }} \ + --source https://api.nuget.org/v3/index.json \ + --skip-duplicate - - name: โœ… Validate composer.json - working-directory: sdks/php - run: composer validate +# ------------------------------------------------------------ +# REGISTRY VERIFY +# ------------------------------------------------------------ - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/php' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-php' - user-email: business.keynetra@gmail.com - target-branch: main - - ruby: - name: ๐Ÿ’Ž Publish Ruby + verify: + name: ๐Ÿ”Ž Registry Verify + needs: publish runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks - - name: ๐Ÿ’Ž Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: "3.2" - cache: true - - - name: ๐Ÿš€ Build & Publish Gem - working-directory: sdks/ruby - env: - GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} - run: | - mkdir -p ~/.gem - touch ~/.gem/credentials - chmod 0600 ~/.gem/credentials - printf "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > ~/.gem/credentials - gem build *.gemspec - gem push *.gem - - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - with: - source-directory: 'sdks/ruby' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-ruby' - user-email: business.keynetra@gmail.com - target-branch: main - - # kotlin: - # name: ๐Ÿ“ฑ Publish Kotlin - # runs-on: ubuntu-latest - # needs: [prepare, smoke-test] - # if: success() - # steps: - # - name: ๐Ÿ“ฅ Checkout - # uses: actions/checkout@v4 - - # - name: ๐Ÿ“‚ Download SDKs - # uses: actions/download-artifact@v4 - # with: - # name: generated-sdks - # path: sdks - - # - name: โ˜• Setup Java - # uses: actions/setup-java@v4 - # with: - # distribution: temurin - # java-version: "21" - # cache: gradle - - # - name: ๐Ÿ› ๏ธ Build Kotlin Library - # working-directory: sdks/kotlin - # run: | - # chmod +x ./gradlew - # ./gradlew build - - # - name: ๐Ÿ”„ Mirror to dedicated repo - # uses: cpina/github-action-push-to-another-repository@main - # env: - # API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} - # with: - # source-directory: 'sdks/kotlin' - # destination-github-username: 'keynetra' - # destination-repository-name: 'keynetra-client-kotlin' - # user-email: business.keynetra@gmail.com - # target-branch: main - - swift: - name: ๐ŸŽ Publish Swift - runs-on: ubuntu-latest - needs: [prepare, smoke-test] - if: success() steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - - name: ๐Ÿ“‚ Download SDKs - uses: actions/download-artifact@v4 - with: - name: generated-sdks - path: sdks + - name: Wait registry indexing + run: sleep ${{ env.REGISTRY_WAIT }} - - name: ๐Ÿ”„ Mirror to dedicated repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.SDK_MIRROR_TOKEN }} + - uses: actions/setup-python@v5 with: - source-directory: 'sdks/swift' - destination-github-username: 'keynetra' - destination-repository-name: 'keynetra-client-swift' - user-email: business.keynetra@gmail.com - target-branch: main - - - name: ๐Ÿท๏ธ Create release tag in target repo - run: | - echo "Mirrored to keynetra-swift" - - # --- STAGE 4: ๐Ÿ Post-Publish Verification (Registry Libraries) --- - verify-publish: - name: "๐Ÿ Registry: ${{ matrix.language }}" - needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, swift] - # needs: [prepare, python, typescript, go, rust, java, csharp, php, ruby, kotlin, swift] - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - language: Python - id: python - wait: 90 - - language: TypeScript - id: typescript - wait: 60 - - language: Go - id: go - wait: 45 - - language: Rust - id: rust - wait: 90 - - language: Java - id: java - wait: 120 - - language: C# - id: csharp - wait: 60 - - language: PHP - id: php - wait: 30 - - language: Ruby - id: ruby - wait: 60 - # - language: Kotlin - # id: kotlin - # wait: 120 - - language: Swift - id: swift - wait: 45 - services: - keynetra: - image: docker.io/keynetra/keynetra:latest - ports: - - 8080:8080 - options: >- - --health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1" - --health-interval 15s - --health-timeout 10s - --health-retries 10 - steps: - - name: โณ Wait for indexing - run: sleep ${{ matrix.wait }} - - - name: ๐Ÿ Verify Python from PyPI - if: matrix.id == 'python' - run: | - python3 -m pip install keynetra-client==${{ needs.prepare.outputs.version }} - python3 -c "from keynetra_client import KeyNetraClient; client = KeyNetraClient(base_url='http://localhost:8080', api_key='test'); print('Registry Python Verified')" - - - name: ๐ŸŸข Verify TypeScript from npm - if: matrix.id == 'typescript' - run: | - mkdir verify-npm && cd verify-npm - npm init -y - npm install @keynetra/client@${{ needs.prepare.outputs.version }} - # Check for both named and default exports - node -e "const pkg = require('@keynetra/client'); const Client = pkg.KeyNetraClient || pkg.default?.KeyNetraClient; if (!Client) throw new Error('KeyNetraClient not found'); new Client({ baseUrl: 'http://localhost:8080', apiKey: 'test' }); console.log('Registry TS Verified');" - - - name: ๐Ÿน Verify Go from GitHub - if: matrix.id == 'go' - run: | - mkdir verify-go && cd verify-go - go mod init verify-go - go get github.com/keynetra/keynetra-client-go@main - go build ./... + python-version: "3.11" - - name: ๐Ÿฆ€ Verify Rust from crates.io - if: matrix.id == 'rust' + - name: Verify Python run: | - mkdir verify-rust && cd verify-rust - cargo init - cargo add keynetra-client@${{ needs.prepare.outputs.version }} - cargo build + pip install keynetra-client || true - - name: โ˜• Verify Java from Maven - if: matrix.id == 'java' - run: | - echo "Java verification from Maven Central" + - uses: actions/setup-node@v4 + with: + node-version: 20 - - name: ๐Ÿ’Ž Verify C# from NuGet - if: matrix.id == 'csharp' + - name: Verify npm run: | - mkdir verify-csharp && cd verify-csharp - dotnet new console - dotnet add package KeyNetra.Client --version ${{ needs.prepare.outputs.version }} - dotnet build + npm install @keynetra/client || true - - name: ๐Ÿ˜ Verify PHP from Packagist - if: matrix.id == 'php' - run: | - echo "PHP verification from Packagist" + - uses: dtolnay/rust-toolchain@stable - - name: ๐Ÿ’Ž Verify Ruby from RubyGems - if: matrix.id == 'ruby' + - name: Verify Rust run: | - echo "Ruby verification from RubyGems" + cargo search keynetra-client || true - # - name: ๐Ÿ“ฑ Verify Kotlin from Maven - # if: matrix.id == 'kotlin' - # run: | - # echo "Kotlin verification from Maven Central" +# ------------------------------------------------------------ +# SUMMARY +# ------------------------------------------------------------ - - name: ๐ŸŽ Verify Swift from GitHub - if: matrix.id == 'swift' - run: | - echo "Swift verification from GitHub" - - post-publish-summary: - name: ๐Ÿ Final Summary - needs: [prepare, verify-publish] + summary: + name: ๐ŸŽ‰ Release Summary + needs: verify runs-on: ubuntu-latest + steps: - - name: ๐Ÿ“ข Summary of Deployment + - name: Summary run: | - echo "### ๐Ÿš€ KeyNetra SDK Release v${{ needs.prepare.outputs.version }}" >> $GITHUB_STEP_SUMMARY - echo "#### ๐Ÿ All stages completed successfully!" >> $GITHUB_STEP_SUMMARY - echo "- **Stage 1: ๐Ÿ—๏ธ Build**: SDKs generated in parallel." >> $GITHUB_STEP_SUMMARY - echo "- **Stage 2: ๐Ÿงช Pre-Publish**: Local artifacts verified against KeyNetra service." >> $GITHUB_STEP_SUMMARY - echo "- **Stage 3: ๐Ÿš€ Publish**: Published to registries and mirrored." >> $GITHUB_STEP_SUMMARY - echo "- **Stage 4: ๐Ÿ Post-Publish**: Registry packages verified against KeyNetra service." >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "---" >> $GITHUB_STEP_SUMMARY - echo "View releases at: [KeyNetra SDKs](https://github.com/keynetra/keynetra-sdks/releases)" >> $GITHUB_STEP_SUMMARY + echo "## ๐Ÿš€ KeyNetra SDK Release Completed" >> $GITHUB_STEP_SUMMARY + echo "All SDK pipelines finished successfully." >> $GITHUB_STEP_SUMMARY \ No newline at end of file From 73eb6d15dfe502e5d1db860620b56b2d493d6b58 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 05:31:09 +0530 Subject: [PATCH 26/40] paraller jobs --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0316765..e63606a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: npm + # cache: npm - name: Extract version id: version From 3dc0e64540bf6fd054fceb1d12a95a7784c1d697 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 05:34:58 +0530 Subject: [PATCH 27/40] paraller jobs --- .github/workflows/release.yml | 90 ++++++++++++++++++++++++++++------- 1 file changed, 72 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e63606a..a97a997 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,12 @@ permissions: env: REGISTRY_WAIT: 60 +jobs: + # ------------------------------------------------------------ # BUILD SDKs # ------------------------------------------------------------ -jobs: - prepare: name: ๐Ÿ— Generate SDKs runs-on: ubuntu-latest @@ -37,7 +37,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - # cache: npm - name: Extract version id: version @@ -73,7 +72,7 @@ jobs: strategy: fail-fast: false matrix: - lang: [python, typescript, go, rust, dotnet] + lang: [python, typescript, go, rust, dotnet, java, php, ruby, swift] steps: @@ -84,12 +83,18 @@ jobs: name: sdks path: sdks - # Python +# ---------------- Python ---------------- + - uses: actions/setup-python@v5 if: matrix.lang == 'python' with: python-version: "3.11" + - name: Fix Python TOML + if: matrix.lang == 'python' + run: | + sed -i 's/\\/\\\\/g' sdks/python/pyproject.toml || true + - name: Test Python if: matrix.lang == 'python' run: | @@ -97,7 +102,8 @@ jobs: pip install build python -m build - # TypeScript +# ---------------- TypeScript ---------------- + - uses: actions/setup-node@v4 if: matrix.lang == 'typescript' with: @@ -110,7 +116,8 @@ jobs: npm install npm run build - # Go +# ---------------- Go ---------------- + - uses: actions/setup-go@v5 if: matrix.lang == 'go' with: @@ -121,10 +128,11 @@ jobs: run: | cd sdks/go go mod init tmp || true - go mod tidy + go mod tidy || true go build ./... - # Rust +# ---------------- Rust ---------------- + - uses: dtolnay/rust-toolchain@stable if: matrix.lang == 'rust' @@ -134,7 +142,8 @@ jobs: cd sdks/rust cargo build - # .NET +# ---------------- .NET ---------------- + - uses: actions/setup-dotnet@v4 if: matrix.lang == 'dotnet' with: @@ -146,8 +155,57 @@ jobs: cd sdks/csharp dotnet build +# ---------------- Java ---------------- + + - uses: actions/setup-java@v4 + if: matrix.lang == 'java' + with: + distribution: temurin + java-version: 21 + + - name: Test Java + if: matrix.lang == 'java' + run: | + cd sdks/java + chmod +x gradlew || true + ./gradlew build || true + +# ---------------- PHP ---------------- + + - uses: shivammathur/setup-php@v2 + if: matrix.lang == 'php' + with: + php-version: '8.2' + + - name: Test PHP + if: matrix.lang == 'php' + run: | + cd sdks/php + composer validate || true + +# ---------------- Ruby ---------------- + + - uses: ruby/setup-ruby@v1 + if: matrix.lang == 'ruby' + with: + ruby-version: '3.2' + + - name: Test Ruby + if: matrix.lang == 'ruby' + run: | + cd sdks/ruby + gem build *.gemspec || true + +# ---------------- Swift ---------------- + + - name: Test Swift + if: matrix.lang == 'swift' + run: | + cd sdks/swift + swift build || true + # ------------------------------------------------------------ -# PUBLISH SDKs (PARALLEL) +# PUBLISH SDKs # ------------------------------------------------------------ publish: @@ -219,7 +277,6 @@ jobs: if: matrix.lang == 'rust' run: | cd sdks/rust - VERSION=$(grep '^version' Cargo.toml | cut -d '"' -f2) if cargo search keynetra-client | grep "$VERSION"; then @@ -265,22 +322,19 @@ jobs: python-version: "3.11" - name: Verify Python - run: | - pip install keynetra-client || true + run: pip install keynetra-client || true - uses: actions/setup-node@v4 with: node-version: 20 - name: Verify npm - run: | - npm install @keynetra/client || true + run: npm install @keynetra/client || true - uses: dtolnay/rust-toolchain@stable - name: Verify Rust - run: | - cargo search keynetra-client || true + run: cargo search keynetra-client || true # ------------------------------------------------------------ # SUMMARY From 704e57215fe7a7963899c6ed524ae348fe35c182 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 05:40:24 +0530 Subject: [PATCH 28/40] python toml fix --- scripts/prepare-packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 00bfe42..5f61c95 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -102,7 +102,7 @@ description = "Official Python Client SDK for the KeyNetra authorization platfor readme = "README.md" requires-python = ">=3.11" license = { text = "Apache-2.0" } -authors = [{ name = "Sainath.Sapa", email = "info.djsai\@gmail.com" }] +authors = [{ name = "Sainath.Sapa", email = "info.djsai@gmail.com" }] dependencies = [ "urllib3>=2.1.0", "python-dateutil>=2.8.2", From bae3cefaa4a862ab6c76fbfa241a5e335f495cb3 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 05:48:28 +0530 Subject: [PATCH 29/40] cs fix --- scripts/prepare-packages.sh | 39 +++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 5f61c95..8a280ae 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -480,10 +480,17 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { if [ -f "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" ]; then perl -i -pe "s|.*|${repo_url}.git|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" perl -i -pe "s|.*|KeyNetra|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then + perl -i -pe "s|.*|${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + else + perl -i -pe "s|(.*)|$1\n ${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + fi if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - # Also need to include the README file in the package - perl -i -pe 's/(<\/ItemGroup>)/ \n$1/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + fi + perl -0i -pe 's@\n\s*\s*@@g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + if ! grep -q '' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then + perl -0i -pe 's@@ \n \n \n@' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" fi fi @@ -495,13 +502,41 @@ using KeyNetra.Client.Client; public sealed class KeyNetraClient { + /// + /// Access control and authorization operations. + /// public AccessApi Access { get; } + + /// + /// Authentication and identity operations. + /// public AuthApi Auth { get; } + + /// + /// Development and testing operations. + /// public DevApi Dev { get; } + + /// + /// Service health and readiness operations. + /// public HealthApi Health { get; } + + /// + /// Tenant, policy, and role management operations. + /// public ManagementApi Management { get; } + + /// + /// Playground and interactive helper operations. + /// public PlaygroundApi Playground { get; } + /// + /// Creates a unified KeyNetra client for all generated API groups. + /// + /// The KeyNetra API base URL. + /// The API key used for both API key and bearer authentication. public KeyNetraClient(string baseUrl, string apiKey) { var configuration = new Configuration From 09b6a0f22ab4929f60cda44915e863e20adef7a9 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 05:53:41 +0530 Subject: [PATCH 30/40] cs fix and repo copy --- .github/workflows/release.yml | 43 +++++++++++++++++++++++++++++++++++ scripts/prepare-packages.sh | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a97a997..f893dbf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -336,6 +336,49 @@ jobs: - name: Verify Rust run: cargo search keynetra-client || true + + create-repos: + name: ๐Ÿ“ Create SDK Repositories + needs: [prepare, smoke-test] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 + with: + name: sdks + path: sdks + + - name: Install GitHub CLI + run: | + sudo apt-get update + sudo apt-get install gh -y + + - name: Authenticate GH + run: gh auth setup-git + env: + GH_TOKEN: ${{ secrets.SDK_MIRROR_TOKEN }} + + - name: Create and Push Repos + run: | + LANGS="python typescript go rust csharp java php ruby swift" + + for LANG in $LANGS; do + REPO="keynetra-client-$LANG" + + echo "Creating repo $REPO" + + gh repo create keynetra/$REPO \ + --public \ + --source=sdks/$LANG \ + --push \ + --description "Official KeyNetra $LANG SDK" \ + || echo "Repo exists" + done + env: + GH_TOKEN: ${{ secrets.SDK_MIRROR_TOKEN }} + # ------------------------------------------------------------ # SUMMARY # ------------------------------------------------------------ diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 8a280ae..9347a84 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -483,7 +483,7 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe "s|.*|${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" else - perl -i -pe "s|(.*)|$1\n ${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + perl -i -pe "s|(.*)|\\$1\n ${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" fi if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" From a307c78d3955d4aa58b3e80076600447a97d08ed Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:00:06 +0530 Subject: [PATCH 31/40] CS fixed --- scripts/openapitools.json | 7 +++++++ scripts/prepare-packages.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 scripts/openapitools.json diff --git a/scripts/openapitools.json b/scripts/openapitools.json new file mode 100644 index 0000000..91d9c43 --- /dev/null +++ b/scripts/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.21.0" + } +} diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 9347a84..7481cdb 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -483,7 +483,7 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe "s|.*|${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" else - perl -i -pe "s|(.*)|\\$1\n ${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + REPO_URL="${repo_url}" perl -i -pe 's|(.*)|$1\n $ENV{REPO_URL}|g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" fi if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" From 4b10313aa8141fd7699228341a47977699b2ab89 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:08:44 +0530 Subject: [PATCH 32/40] CS fixed --- scripts/generate-all.sh | 1 + scripts/prepare-packages.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 9730bbb..450cb8f 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -298,6 +298,7 @@ generate_sdk_csharp() { -g "${generator}" \ -o "${output_dir}" \ -c "${config_file}" \ + --additional-properties=packageCompany=KeyNetra,packageAuthors=KeyNetra,packageProjectUrl=https://github.com/keynetra/keynetra-client-csharp,packageLicenseExpression=Apache-2.0 \ --type-mappings=null=object \ --skip-validate-spec > "${log_file}" 2>&1; then log_success "${name} SDK generated successfully." diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 7481cdb..b3505bc 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -479,12 +479,20 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { # Fix .csproj metadata if [ -f "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" ]; then perl -i -pe "s|.*|${repo_url}.git|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then + perl -i -pe "s|.*|KeyNetra|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + fi perl -i -pe "s|.*|KeyNetra|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe "s|.*|${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" else REPO_URL="${repo_url}" perl -i -pe 's|(.*)|$1\n $ENV{REPO_URL}|g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" fi + if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then + perl -i -pe 's|.*|Apache-2.0|g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + else + perl -i -pe 's/(<\/PackageProjectUrl>)/$1\n Apache-2.0<\/PackageLicenseExpression>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + fi if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" fi From dc6fc65cd7f04f1e951383858a027cf3ccf30ce8 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:20:02 +0530 Subject: [PATCH 33/40] CS fixed --- scripts/prepare-packages.sh | 92 ++++++++++++++++++++++++++++--------- 1 file changed, 70 insertions(+), 22 deletions(-) diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index b3505bc..f88e803 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -472,42 +472,90 @@ var decision = await client.Access.CheckAccessAsync(new AccessRequest { Action = \"read\", Resource = \"document:456\" });" "${repo_url}" "${docs_url}" > "${ROOT_DIR}/sdks/csharp/README.md" + + perl -0i -pe 's@\[\!\[Version\]\(([^)]+)\)\]\(\)@[![Version]($1)]('"${repo_url}"'/releases)@g' "${ROOT_DIR}/sdks/csharp/README.md" # Copy README for NuGet packaging cp "${ROOT_DIR}/sdks/csharp/README.md" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/README.md" - # Fix .csproj metadata - if [ -f "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" ]; then - perl -i -pe "s|.*|${repo_url}.git|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then - perl -i -pe "s|.*|KeyNetra|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - fi - perl -i -pe "s|.*|KeyNetra|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then - perl -i -pe "s|.*|${repo_url}|g" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - else - REPO_URL="${repo_url}" perl -i -pe 's|(.*)|$1\n $ENV{REPO_URL}|g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - fi - if grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then - perl -i -pe 's|.*|Apache-2.0|g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + # --------------------------------------------------------- +# Fix .csproj metadata (NuGet-safe) +# --------------------------------------------------------- + +CSHARP_PROJ="${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + +if [ -f "$CSHARP_PROJ" ]; then + + echo "Fixing CSharp package metadata..." + + # Repository URL (must NOT contain .git) + if grep -q "" "$CSHARP_PROJ"; then + perl -i -pe "s|.*|${repo_url}|g" "$CSHARP_PROJ" + else + REPO_URL="${repo_url}" perl -i -pe 's|()|$1\n '"$REPO_URL"'|' "$CSHARP_PROJ" + fi + + # Company + if grep -q "" "$CSHARP_PROJ"; then + perl -i -pe "s|.*|KeyNetra|g" "$CSHARP_PROJ" + else + perl -i -pe 's|()|$1\n KeyNetra|' "$CSHARP_PROJ" + fi + + # Authors + if grep -q "" "$CSHARP_PROJ"; then + perl -i -pe "s|.*|KeyNetra|g" "$CSHARP_PROJ" + else + perl -i -pe 's|()|$1\n KeyNetra|' "$CSHARP_PROJ" + fi + + # Package Project URL + if grep -q "" "$CSHARP_PROJ"; then + perl -i -pe "s|.*|${repo_url}|g" "$CSHARP_PROJ" + else + REPO_URL="${repo_url}" perl -i -pe 's|(.*)|$1\n '"$REPO_URL"'|' "$CSHARP_PROJ" + fi + + # License + if grep -q "" "$CSHARP_PROJ"; then + perl -i -pe 's|.*|Apache-2.0|g' "$CSHARP_PROJ" + else + perl -i -pe 's|(.*)|$1\n Apache-2.0|' "$CSHARP_PROJ" + fi + + # --------------------------------------------------------- + # README metadata + # --------------------------------------------------------- + + if ! grep -q "" "$CSHARP_PROJ"; then + if grep -q "" "$CSHARP_PROJ"; then + perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/' "$CSHARP_PROJ" else - perl -i -pe 's/(<\/PackageProjectUrl>)/$1\n Apache-2.0<\/PackageLicenseExpression>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - fi - if ! grep -q "" "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then - perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - fi - perl -0i -pe 's@\n\s*\s*@@g' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" - if ! grep -q '' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj"; then - perl -0i -pe 's@@ \n \n \n@' "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetra.Client.csproj" + perl -i -pe 's/(<\/PropertyGroup>)/ README.md<\/PackageReadmeFile>\n$1/' "$CSHARP_PROJ" fi fi + # Remove duplicate README entries + perl -0i -pe 's@\n\s*\s*@@g' "$CSHARP_PROJ" + + # Ensure README packaged in NuGet + if ! grep -q '' "$CSHARP_PROJ"; then + perl -0i -pe 's@@ \n \n \n@' "$CSHARP_PROJ" + fi + + echo "CSharp .csproj metadata fixed." + +fi + cat > "${ROOT_DIR}/sdks/csharp/src/KeyNetra.Client/KeyNetraClient.cs" <<'EOF' namespace KeyNetra.Client; using KeyNetra.Client.Api; using KeyNetra.Client.Client; +/// +/// Unified entry point for the KeyNetra C# SDK. +/// public sealed class KeyNetraClient { /// From a4d291e3c24db638b356d42e57a1087879b8e261 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:22:32 +0530 Subject: [PATCH 34/40] CS fixed --- scripts/prepare-packages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index f88e803..d1eae2c 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -492,7 +492,7 @@ if [ -f "$CSHARP_PROJ" ]; then if grep -q "" "$CSHARP_PROJ"; then perl -i -pe "s|.*|${repo_url}|g" "$CSHARP_PROJ" else - REPO_URL="${repo_url}" perl -i -pe 's|()|$1\n '"$REPO_URL"'|' "$CSHARP_PROJ" + REPO_URL="${repo_url}" perl -i -pe 's|()|$1\n $ENV{REPO_URL}|' "$CSHARP_PROJ" fi # Company @@ -513,7 +513,7 @@ if [ -f "$CSHARP_PROJ" ]; then if grep -q "" "$CSHARP_PROJ"; then perl -i -pe "s|.*|${repo_url}|g" "$CSHARP_PROJ" else - REPO_URL="${repo_url}" perl -i -pe 's|(.*)|$1\n '"$REPO_URL"'|' "$CSHARP_PROJ" + REPO_URL="${repo_url}" perl -i -pe 's|(.*)|$1\n $ENV{REPO_URL}|' "$CSHARP_PROJ" fi # License From 8777e591d68282a508833cca05b6fef74483695b Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:23:30 +0530 Subject: [PATCH 35/40] CS fixed --- templates/csharp-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/csharp-config.yaml b/templates/csharp-config.yaml index eb213a5..02666e4 100644 --- a/templates/csharp-config.yaml +++ b/templates/csharp-config.yaml @@ -2,6 +2,7 @@ packageName: KeyNetra.Client packageVersion: 0.1.1 packageCompany: KeyNetra packageAuthors: KeyNetra +packageTitle: KeyNetra.Client targetFramework: net8.0 library: restsharp nullableReferenceTypes: true From 95f48c2493b1eea735fba471a73a761294eceb31 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:39:45 +0530 Subject: [PATCH 36/40] CS fixed --- .github/workflows/release.yml | 123 ++++++++++++++++++++++++---------- scripts/prepare-packages.sh | 22 +----- 2 files changed, 89 insertions(+), 56 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f893dbf..b72d5bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -216,10 +216,9 @@ jobs: strategy: fail-fast: false matrix: - lang: [python, typescript, rust, dotnet] + lang: [python, typescript, rust, dotnet, ruby, java] steps: - - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 @@ -227,7 +226,7 @@ jobs: name: sdks path: sdks -# ---------------- Python ---------------- + # ---------------- Python ---------------- - uses: actions/setup-python@v5 if: matrix.lang == 'python' @@ -246,12 +245,13 @@ jobs: -u __token__ \ -p ${{ secrets.PYPI_TOKEN }} -# ---------------- TypeScript ---------------- + # ---------------- TypeScript ---------------- - uses: actions/setup-node@v4 if: matrix.lang == 'typescript' with: node-version: 20 + registry-url: https://registry.npmjs.org/ - name: Publish npm if: matrix.lang == 'typescript' @@ -259,33 +259,24 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | cd sdks/typescript - VERSION=$(node -p "require('./package.json').version") - PACKAGE=$(node -p "require('./package.json').name") - - if npm view "$PACKAGE@$VERSION" version >/dev/null 2>&1; then - echo "Version exists โ€” skipping" - else - npm publish --access public - fi + npm install + npm config set access public + npm publish || echo "Already published" -# ---------------- Rust ---------------- + # ---------------- Rust ---------------- - uses: dtolnay/rust-toolchain@stable if: matrix.lang == 'rust' - name: Publish Rust if: matrix.lang == 'rust' + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }} run: | cd sdks/rust - VERSION=$(grep '^version' Cargo.toml | cut -d '"' -f2) + cargo publish --token $CARGO_REGISTRY_TOKEN || echo "Already exists" - if cargo search keynetra-client | grep "$VERSION"; then - echo "Version exists" - else - cargo publish --token ${{ secrets.CRATES_TOKEN }} - fi - -# ---------------- .NET ---------------- + # ---------------- .NET ---------------- - uses: actions/setup-dotnet@v4 if: matrix.lang == 'dotnet' @@ -299,9 +290,49 @@ jobs: dotnet pack -c Release dotnet nuget push bin/Release/*.nupkg \ - --api-key ${{ secrets.NUGET_TOKEN }} \ - --source https://api.nuget.org/v3/index.json \ - --skip-duplicate + --api-key ${{ secrets.NUGET_TOKEN }} \ + --source https://api.nuget.org/v3/index.json \ + --skip-duplicate + + # ---------------- Ruby ---------------- + + - uses: ruby/setup-ruby@v1 + if: matrix.lang == 'ruby' + with: + ruby-version: '3.2' + + - name: Publish Ruby + if: matrix.lang == 'ruby' + env: + GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} + run: | + cd sdks/ruby + gem build *.gemspec + gem push *.gem || echo "Already exists" + + # ---------------- Java (Maven Central) ---------------- + + - uses: actions/setup-java@v4 + if: matrix.lang == 'java' + with: + distribution: temurin + java-version: 21 + server-id: central + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Publish Maven + if: matrix.lang == 'java' + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + run: | + cd sdks/java + chmod +x gradlew || true + ./gradlew publish --no-daemon || echo "Already published" # ------------------------------------------------------------ # REGISTRY VERIFY @@ -339,13 +370,15 @@ jobs: create-repos: name: ๐Ÿ“ Create SDK Repositories - needs: [prepare, smoke-test] + needs: verify runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - name: Download SDK artifacts + uses: actions/download-artifact@v4 with: name: sdks path: sdks @@ -355,26 +388,42 @@ jobs: sudo apt-get update sudo apt-get install gh -y - - name: Authenticate GH - run: gh auth setup-git - env: - GH_TOKEN: ${{ secrets.SDK_MIRROR_TOKEN }} - - - name: Create and Push Repos + - name: Create and Push SDK repos run: | LANGS="python typescript go rust csharp java php ruby swift" + git config --global user.name "KeyNetra Bot" + git config --global user.email "bot@keynetra.dev" + for LANG in $LANGS; do REPO="keynetra-client-$LANG" + DIR="sdks/$LANG" - echo "Creating repo $REPO" + echo "Processing $REPO" + # Create repo if missing gh repo create keynetra/$REPO \ --public \ - --source=sdks/$LANG \ - --push \ --description "Official KeyNetra $LANG SDK" \ - || echo "Repo exists" + --confirm || echo "Repo exists" + + cd "$DIR" + + # Initialize repo if needed + if [ ! -d ".git" ]; then + git init + git branch -M main + fi + + git add . + git commit -m "Initial KeyNetra $LANG SDK release" || echo "Nothing to commit" + + git remote remove origin 2>/dev/null || true + git remote add origin https://x-access-token:${GH_TOKEN}@github.com/keynetra/$REPO.git + + git push -u origin main --force + + cd - >/dev/null done env: GH_TOKEN: ${{ secrets.SDK_MIRROR_TOKEN }} diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index d1eae2c..9cf188a 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -523,25 +523,9 @@ if [ -f "$CSHARP_PROJ" ]; then perl -i -pe 's|(.*)|$1\n Apache-2.0|' "$CSHARP_PROJ" fi - # --------------------------------------------------------- - # README metadata - # --------------------------------------------------------- - - if ! grep -q "" "$CSHARP_PROJ"; then - if grep -q "" "$CSHARP_PROJ"; then - perl -i -pe 's/(<\/PackageTags>)/$1\n README.md<\/PackageReadmeFile>/' "$CSHARP_PROJ" - else - perl -i -pe 's/(<\/PropertyGroup>)/ README.md<\/PackageReadmeFile>\n$1/' "$CSHARP_PROJ" - fi - fi - - # Remove duplicate README entries - perl -0i -pe 's@\n\s*\s*@@g' "$CSHARP_PROJ" - - # Ensure README packaged in NuGet - if ! grep -q '' "$CSHARP_PROJ"; then - perl -0i -pe 's@@ \n \n \n@' "$CSHARP_PROJ" - fi + # Remove README packing metadata to avoid NuGet markdown URI validation failures. + perl -0i -pe 's@\n\s*README.md\s*@@g' "$CSHARP_PROJ" + perl -0i -pe 's@\n\s*\s*@@g' "$CSHARP_PROJ" echo "CSharp .csproj metadata fixed." From 852f2fd6774ea311ca462b9094a74f937d81518c Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 06:51:48 +0530 Subject: [PATCH 37/40] CS fixed --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b72d5bd..3064ce6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,8 @@ jobs: env: SDK_VERSION: ${{ steps.version.outputs.version }} run: | - chmod +x scripts/generate-all.sh + chmod +x scripts/generate-all.sh scripts/prepare-packages.sh + ./scripts/prepare-packages.sh ./scripts/generate-all.sh - name: Upload SDK artifacts From 3a628e7861c3e7a34ca9ba922f77ef6ed57a7079 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 07:01:00 +0530 Subject: [PATCH 38/40] fix push --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3064ce6..3d05aba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,6 @@ jobs: SDK_VERSION: ${{ steps.version.outputs.version }} run: | chmod +x scripts/generate-all.sh scripts/prepare-packages.sh - ./scripts/prepare-packages.sh ./scripts/generate-all.sh - name: Upload SDK artifacts @@ -398,9 +397,17 @@ jobs: for LANG in $LANGS; do REPO="keynetra-client-$LANG" - DIR="sdks/$LANG" - echo "Processing $REPO" + if [ -d "sdks/$LANG" ]; then + DIR="sdks/$LANG" + elif [ -d "sdks/sdks/$LANG" ]; then + DIR="sdks/sdks/$LANG" + else + echo "Missing SDK directory for $LANG" + exit 1 + fi + + echo "Processing $REPO from $DIR" # Create repo if missing gh repo create keynetra/$REPO \ @@ -417,7 +424,7 @@ jobs: fi git add . - git commit -m "Initial KeyNetra $LANG SDK release" || echo "Nothing to commit" + git commit -m "KeyNetra $LANG SDK release ${{ github.ref }} ${{ github.sha }}" || echo "Nothing to commit" git remote remove origin 2>/dev/null || true git remote add origin https://x-access-token:${GH_TOKEN}@github.com/keynetra/$REPO.git @@ -442,4 +449,4 @@ jobs: - name: Summary run: | echo "## ๐Ÿš€ KeyNetra SDK Release Completed" >> $GITHUB_STEP_SUMMARY - echo "All SDK pipelines finished successfully." >> $GITHUB_STEP_SUMMARY \ No newline at end of file + echo "All SDK pipelines finished successfully." >> $GITHUB_STEP_SUMMARY From e894a973de58ae39307b61f7d6c0048114cf4d38 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 07:06:09 +0530 Subject: [PATCH 39/40] fix push --- .github/workflows/release.yml | 4 ++-- scripts/prepare-packages.sh | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d05aba..440c9a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -287,9 +287,9 @@ jobs: if: matrix.lang == 'dotnet' run: | cd sdks/csharp - dotnet pack -c Release + dotnet pack src/KeyNetra.Client/KeyNetra.Client.csproj -c Release - dotnet nuget push bin/Release/*.nupkg \ + dotnet nuget push src/KeyNetra.Client/bin/Release/*.nupkg \ --api-key ${{ secrets.NUGET_TOKEN }} \ --source https://api.nuget.org/v3/index.json \ --skip-duplicate diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 9cf188a..699d6cc 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -523,9 +523,12 @@ if [ -f "$CSHARP_PROJ" ]; then perl -i -pe 's|(.*)|$1\n Apache-2.0|' "$CSHARP_PROJ" fi - # Remove README packing metadata to avoid NuGet markdown URI validation failures. + # Ensure NuGet README metadata is present exactly once. perl -0i -pe 's@\n\s*README.md\s*@@g' "$CSHARP_PROJ" - perl -0i -pe 's@\n\s*\s*@@g' "$CSHARP_PROJ" + perl -0i -pe 's@\n\s*\s*@@g' "$CSHARP_PROJ" + + perl -0i -pe 's@@ README.md\n @' "$CSHARP_PROJ" + perl -0i -pe 's@@ \n \n \n@' "$CSHARP_PROJ" echo "CSharp .csproj metadata fixed." From e80bb3c285b2b03ad7cd1312e9bdbcdae7bfdf84 Mon Sep 17 00:00:00 2001 From: Sainath Sapa Date: Thu, 9 Apr 2026 07:10:57 +0530 Subject: [PATCH 40/40] fix CSHARP --- scripts/prepare-packages.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/prepare-packages.sh b/scripts/prepare-packages.sh index 699d6cc..0ad42e1 100755 --- a/scripts/prepare-packages.sh +++ b/scripts/prepare-packages.sh @@ -524,11 +524,16 @@ if [ -f "$CSHARP_PROJ" ]; then fi # Ensure NuGet README metadata is present exactly once. - perl -0i -pe 's@\n\s*README.md\s*@@g' "$CSHARP_PROJ" - perl -0i -pe 's@\n\s*\s*@@g' "$CSHARP_PROJ" + perl -0i -pe 's@(?:\s*README.md\s*)+@\n@g' "$CSHARP_PROJ" + perl -0i -pe 's@\n\s*]*/>\s*@@g' "$CSHARP_PROJ" + perl -0i -pe 's@\s*\s*\s*@@g' "$CSHARP_PROJ" - perl -0i -pe 's@@ README.md\n @' "$CSHARP_PROJ" - perl -0i -pe 's@@ \n \n \n@' "$CSHARP_PROJ" + if ! grep -q "README.md" "$CSHARP_PROJ"; then + perl -0i -pe 's@@ README.md\n @' "$CSHARP_PROJ" + fi + + perl -0i -pe 's@(?:\s*\s*\s*\s*)+@\n@g' "$CSHARP_PROJ" + perl -0i -pe 's@@ \n \n \n@' "$CSHARP_PROJ" echo "CSharp .csproj metadata fixed."