emasser 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.dockerignore +11 -0
- data/.env-example +10 -0
- data/.github/release-drafter.yml +16 -0
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.github/workflows/draft-release.yml +16 -0
- data/.github/workflows/generate_docs.yml +33 -0
- data/.github/workflows/gh-pages.yml +33 -0
- data/.github/workflows/release.yml +38 -0
- data/.github/workflows/rubocop.yml +23 -0
- data/.github/workflows/test-cli.yml +73 -0
- data/.gitignore +17 -0
- data/.mergify.yml +25 -0
- data/.rubocop.yml +80 -0
- data/.rubocop_todo.yml +27 -0
- data/CHANGELOG.md +16 -0
- data/Dockerfile +10 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +110 -0
- data/LICENSE.md +15 -0
- data/README.md +108 -0
- data/Rakefile +18 -0
- data/TAGS +2393 -0
- data/_config.yml +2 -0
- data/docs/developers.md +115 -0
- data/docs/features.md +1193 -0
- data/docs/redoc/index.html +1231 -0
- data/docs/swagger/dist/favicon-16x16.png +0 -0
- data/docs/swagger/dist/favicon-32x32.png +0 -0
- data/docs/swagger/dist/oauth2-redirect.html +75 -0
- data/docs/swagger/dist/swagger-ui-bundle.js +3 -0
- data/docs/swagger/dist/swagger-ui-bundle.js.map +1 -0
- data/docs/swagger/dist/swagger-ui-es-bundle-core.js +3 -0
- data/docs/swagger/dist/swagger-ui-es-bundle-core.js.map +1 -0
- data/docs/swagger/dist/swagger-ui-es-bundle.js +3 -0
- data/docs/swagger/dist/swagger-ui-es-bundle.js.map +1 -0
- data/docs/swagger/dist/swagger-ui-standalone-preset.js +3 -0
- data/docs/swagger/dist/swagger-ui-standalone-preset.js.map +1 -0
- data/docs/swagger/dist/swagger-ui.css +4 -0
- data/docs/swagger/dist/swagger-ui.css.map +1 -0
- data/docs/swagger/dist/swagger-ui.js +3 -0
- data/docs/swagger/dist/swagger-ui.js.map +1 -0
- data/docs/swagger/index.html +60 -0
- data/emass_client/eMASSRestOpenApi.yaml +5698 -0
- data/emass_client/ruby_client/.gitignore +39 -0
- data/emass_client/ruby_client/.rspec +2 -0
- data/emass_client/ruby_client/.rubocop.yml +154 -0
- data/emass_client/ruby_client/.swagger-codegen/VERSION +1 -0
- data/emass_client/ruby_client/.swagger-codegen-ignore +23 -0
- data/emass_client/ruby_client/Gemfile +9 -0
- data/emass_client/ruby_client/README.md +1284 -0
- data/emass_client/ruby_client/Rakefile +8 -0
- data/emass_client/ruby_client/docs/ArtifactsApi.md +284 -0
- data/emass_client/ruby_client/docs/ArtifactsDelete.md +6 -0
- data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +7 -0
- data/emass_client/ruby_client/docs/ArtifactsExportApi.md +76 -0
- data/emass_client/ruby_client/docs/ArtifactsGet.md +20 -0
- data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +16 -0
- data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +8 -0
- data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +9 -0
- data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +8 -0
- data/emass_client/ruby_client/docs/CACApi.md +140 -0
- data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +71 -0
- data/emass_client/ruby_client/docs/CacGet.md +13 -0
- data/emass_client/ruby_client/docs/CacRequestPostBody.md +8 -0
- data/emass_client/ruby_client/docs/CacResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/CacResponsePost.md +8 -0
- data/emass_client/ruby_client/docs/CacResponsePostData.md +9 -0
- data/emass_client/ruby_client/docs/CmmcGet.md +19 -0
- data/emass_client/ruby_client/docs/CmmcResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/ConnectivityCcsd.md +8 -0
- data/emass_client/ruby_client/docs/ControlsApi.md +140 -0
- data/emass_client/ruby_client/docs/ControlsGet.md +36 -0
- data/emass_client/ruby_client/docs/ControlsPut.md +9 -0
- data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +29 -0
- data/emass_client/ruby_client/docs/ControlsResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/ControlsResponsePut.md +8 -0
- data/emass_client/ruby_client/docs/DefinitionTransitions.md +9 -0
- data/emass_client/ruby_client/docs/DeleteMilestone.md +7 -0
- data/emass_client/ruby_client/docs/DeletePoam.md +7 -0
- data/emass_client/ruby_client/docs/Empty200Response.md +6 -0
- data/emass_client/ruby_client/docs/Error.md +8 -0
- data/emass_client/ruby_client/docs/InstancesTransitions.md +12 -0
- data/emass_client/ruby_client/docs/MilestoneResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/MilestoneResponsePost.md +8 -0
- data/emass_client/ruby_client/docs/MilestoneResponsePut.md +8 -0
- data/emass_client/ruby_client/docs/MilestonesApi.md +350 -0
- data/emass_client/ruby_client/docs/MilestonesDelete.md +6 -0
- data/emass_client/ruby_client/docs/MilestonesGet.md +12 -0
- data/emass_client/ruby_client/docs/MilestonesPost.md +6 -0
- data/emass_client/ruby_client/docs/MilestonesPut.md +6 -0
- data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +11 -0
- data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +9 -0
- data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +9 -0
- data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +8 -0
- data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +9 -0
- data/emass_client/ruby_client/docs/Model200.md +7 -0
- data/emass_client/ruby_client/docs/Model201.md +7 -0
- data/emass_client/ruby_client/docs/Model201Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model400.md +7 -0
- data/emass_client/ruby_client/docs/Model400Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model400Response.md +7 -0
- data/emass_client/ruby_client/docs/Model401.md +7 -0
- data/emass_client/ruby_client/docs/Model401Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model403.md +7 -0
- data/emass_client/ruby_client/docs/Model403Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model404.md +8 -0
- data/emass_client/ruby_client/docs/Model404Response.md +7 -0
- data/emass_client/ruby_client/docs/Model405.md +7 -0
- data/emass_client/ruby_client/docs/Model405Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model411.md +7 -0
- data/emass_client/ruby_client/docs/Model411Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model490.md +7 -0
- data/emass_client/ruby_client/docs/Model490Meta.md +8 -0
- data/emass_client/ruby_client/docs/Model500.md +7 -0
- data/emass_client/ruby_client/docs/Model500Meta.md +8 -0
- data/emass_client/ruby_client/docs/PACApi.md +137 -0
- data/emass_client/ruby_client/docs/POAMApi.md +346 -0
- data/emass_client/ruby_client/docs/PacGet.md +14 -0
- data/emass_client/ruby_client/docs/PacPost.md +9 -0
- data/emass_client/ruby_client/docs/PacRequestPostBody.md +9 -0
- data/emass_client/ruby_client/docs/PacResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/PacResponsePost.md +8 -0
- data/emass_client/ruby_client/docs/PoamDelete.md +6 -0
- data/emass_client/ruby_client/docs/PoamGet.md +39 -0
- data/emass_client/ruby_client/docs/PoamPost.md +6 -0
- data/emass_client/ruby_client/docs/PoamPostPutDel.md +10 -0
- data/emass_client/ruby_client/docs/PoamPut.md +6 -0
- data/emass_client/ruby_client/docs/PoamRequestPostBody.md +6 -0
- data/emass_client/ruby_client/docs/PoamRequestPutBody.md +6 -0
- data/emass_client/ruby_client/docs/PoamRequiredPost.md +32 -0
- data/emass_client/ruby_client/docs/PoamRequiredPut.md +35 -0
- data/emass_client/ruby_client/docs/PoamResponseDelete.md +8 -0
- data/emass_client/ruby_client/docs/PoamResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/PoamResponsePost.md +8 -0
- data/emass_client/ruby_client/docs/PoamResponsePut.md +8 -0
- data/emass_client/ruby_client/docs/Register.md +8 -0
- data/emass_client/ruby_client/docs/RegisterData.md +7 -0
- data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +7 -0
- data/emass_client/ruby_client/docs/RegistrationApi.md +71 -0
- data/emass_client/ruby_client/docs/RoleCategory.md +10 -0
- data/emass_client/ruby_client/docs/Roles.md +9 -0
- data/emass_client/ruby_client/docs/Ssps.md +9 -0
- data/emass_client/ruby_client/docs/Stage.md +8 -0
- data/emass_client/ruby_client/docs/StaticCodeApplication.md +12 -0
- data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +6 -0
- data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +8 -0
- data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +8 -0
- data/emass_client/ruby_client/docs/StaticCodeScansApi.md +73 -0
- data/emass_client/ruby_client/docs/Success200Response.md +8 -0
- data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +10 -0
- data/emass_client/ruby_client/docs/SystemResponse.md +8 -0
- data/emass_client/ruby_client/docs/SystemRolesApi.md +137 -0
- data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +8 -0
- data/emass_client/ruby_client/docs/SystemRolesResponse.md +8 -0
- data/emass_client/ruby_client/docs/SystemRolesResponseData.md +8 -0
- data/emass_client/ruby_client/docs/Systems.md +70 -0
- data/emass_client/ruby_client/docs/SystemsApi.md +155 -0
- data/emass_client/ruby_client/docs/Test.md +8 -0
- data/emass_client/ruby_client/docs/TestApi.md +66 -0
- data/emass_client/ruby_client/docs/TestData.md +7 -0
- data/emass_client/ruby_client/docs/TestResultsApi.md +144 -0
- data/emass_client/ruby_client/docs/TestResultsGet.md +15 -0
- data/emass_client/ruby_client/docs/TestResultsPost.md +9 -0
- data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +11 -0
- data/emass_client/ruby_client/docs/TestResultsResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/TestResultsResponsePost.md +8 -0
- data/emass_client/ruby_client/docs/Users.md +9 -0
- data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +11 -0
- data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +8 -0
- data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +74 -0
- data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +146 -0
- data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +16 -0
- data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +8 -0
- data/emass_client/ruby_client/git_push.sh +55 -0
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +310 -0
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +86 -0
- data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +143 -0
- data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +77 -0
- data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +143 -0
- data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +366 -0
- data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +140 -0
- data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +345 -0
- data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +78 -0
- data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +84 -0
- data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +150 -0
- data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +162 -0
- data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +70 -0
- data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +149 -0
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +76 -0
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +153 -0
- data/emass_client/ruby_client/lib/swagger_client/api_client.rb +389 -0
- data/emass_client/ruby_client/lib/swagger_client/api_error.rb +57 -0
- data/emass_client/ruby_client/lib/swagger_client/configuration.rb +224 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +201 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +207 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +383 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +363 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +225 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +301 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +225 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +398 -0
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +663 -0
- data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +227 -0
- data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +606 -0
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +274 -0
- data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +212 -0
- data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +212 -0
- data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/error.rb +225 -0
- data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +327 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +291 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +247 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +242 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +242 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +227 -0
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +242 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +208 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +311 -0
- data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +259 -0
- data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +261 -0
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +646 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +237 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +564 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +594 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/register.rb +215 -0
- data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +211 -0
- data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +272 -0
- data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +274 -0
- data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +227 -0
- data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +252 -0
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +303 -0
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +197 -0
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +284 -0
- data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +219 -0
- data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +1137 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test.rb +215 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +206 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +333 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +227 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +306 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/users.rb +224 -0
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +282 -0
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +368 -0
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +217 -0
- data/emass_client/ruby_client/lib/swagger_client/version.rb +14 -0
- data/emass_client/ruby_client/lib/swagger_client.rb +161 -0
- data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +92 -0
- data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +48 -0
- data/emass_client/ruby_client/spec/api/cac_api_spec.rb +60 -0
- data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +46 -0
- data/emass_client/ruby_client/spec/api/controls_api_spec.rb +60 -0
- data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +105 -0
- data/emass_client/ruby_client/spec/api/pac_api_spec.rb +59 -0
- data/emass_client/ruby_client/spec/api/poam_api_spec.rb +103 -0
- data/emass_client/ruby_client/spec/api/registration_api_spec.rb +46 -0
- data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +47 -0
- data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +60 -0
- data/emass_client/ruby_client/spec/api/systems_api_spec.rb +67 -0
- data/emass_client/ruby_client/spec/api/test_api_spec.rb +45 -0
- data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +62 -0
- data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +47 -0
- data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +63 -0
- data/emass_client/ruby_client/spec/api_client_spec.rb +225 -0
- data/emass_client/ruby_client/spec/base_object_spec.rb +109 -0
- data/emass_client/ruby_client/spec/configuration_spec.rb +41 -0
- data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +126 -0
- data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +102 -0
- data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/cac_get_spec.rb +80 -0
- data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +128 -0
- data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/controls_get_spec.rb +262 -0
- data/emass_client/ruby_client/spec/models/controls_put_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +216 -0
- data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +64 -0
- data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/error_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +86 -0
- data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +74 -0
- data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +64 -0
- data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/model_200_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_201_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_400_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_401_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_403_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_404_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_405_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_411_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_490_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/model_500_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/pac_get_spec.rb +86 -0
- data/emass_client/ruby_client/spec/models/pac_post_spec.rb +56 -0
- data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +56 -0
- data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/poam_get_spec.rb +264 -0
- data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +58 -0
- data/emass_client/ruby_client/spec/models/poam_post_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/poam_put_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +218 -0
- data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +236 -0
- data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/register_data_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/register_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/role_category_spec.rb +62 -0
- data/emass_client/ruby_client/spec/models/roles_spec.rb +60 -0
- data/emass_client/ruby_client/spec/models/ssps_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/stage_spec.rb +50 -0
- data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +78 -0
- data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +34 -0
- data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/success200_response_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +66 -0
- data/emass_client/ruby_client/spec/models/system_response_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/systems_spec.rb +510 -0
- data/emass_client/ruby_client/spec/models/test_data_spec.rb +40 -0
- data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +96 -0
- data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +68 -0
- data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/test_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/users_spec.rb +52 -0
- data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +68 -0
- data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +110 -0
- data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +46 -0
- data/emass_client/ruby_client/spec/spec_helper.rb +110 -0
- data/emass_client/ruby_client/swagger_client.gemspec +38 -0
- data/emass_client/swagger-codegen/ruby_template/api_client.mustache +384 -0
- data/emass_client/swagger-codegen/ruby_template/api_info.mustache +12 -0
- data/emass_client/swagger-codegen/ruby_template/configuration.mustache +234 -0
- data/emass_client/swagger-codegen/ruby_template/gemspec.mustache +37 -0
- data/emasser.gemspec +40 -0
- data/exe/emasser +5 -0
- data/lib/emasser/cli.rb +25 -0
- data/lib/emasser/configuration.rb +34 -0
- data/lib/emasser/constants.rb +18 -0
- data/lib/emasser/delete.rb +146 -0
- data/lib/emasser/errors.rb +14 -0
- data/lib/emasser/get.rb +675 -0
- data/lib/emasser/help/approvalCac_post_mapper.md +20 -0
- data/lib/emasser/help/approvalPac_post_mapper.md +20 -0
- data/lib/emasser/help/artifacts_del_mapper.md +9 -0
- data/lib/emasser/help/artifacts_post_mapper.md +59 -0
- data/lib/emasser/help/artifacts_put_mapper.md +34 -0
- data/lib/emasser/help/cmmc_get_mapper.md +4 -0
- data/lib/emasser/help/controls_put_mapper.md +74 -0
- data/lib/emasser/help/milestone_del_mapper.md +11 -0
- data/lib/emasser/help/milestone_post_mapper.md +14 -0
- data/lib/emasser/help/milestone_put_mapper.md +23 -0
- data/lib/emasser/help/poam_del_mapper.md +5 -0
- data/lib/emasser/help/poam_post_mapper.md +93 -0
- data/lib/emasser/help/poam_put_mapper.md +107 -0
- data/lib/emasser/help/staticcode_clear_mapper.md +16 -0
- data/lib/emasser/help/staticcode_post_mapper.md +21 -0
- data/lib/emasser/help/testresults_post_mapper.md +21 -0
- data/lib/emasser/help.rb +11 -0
- data/lib/emasser/input_converters.rb +21 -0
- data/lib/emasser/options_parser.rb +20 -0
- data/lib/emasser/output_converters.rb +14 -0
- data/lib/emasser/post.rb +609 -0
- data/lib/emasser/put.rb +581 -0
- data/lib/emasser/version.rb +5 -0
- data/lib/emasser.rb +19 -0
- metadata +725 -0
@@ -0,0 +1,146 @@
|
|
1
|
+
# SwaggerClient::WorkflowInstancesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:4010*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_system_workflow_instances**](WorkflowInstancesApi.md#get_system_workflow_instances) | **GET** /api/systems/{systemId}/workflow-instances | Get workflow instances in a system
|
8
|
+
[**get_system_workflow_instances_by_workflow_instance_id**](WorkflowInstancesApi.md#get_system_workflow_instances_by_workflow_instance_id) | **GET** /api/systems/{systemId}/workflow-instances/{workflowInstanceId} | Get workflow instance by ID in a system
|
9
|
+
|
10
|
+
# **get_system_workflow_instances**
|
11
|
+
> WorkflowInstancesResponseGet get_system_workflow_instances(system_id, opts)
|
12
|
+
|
13
|
+
Get workflow instances in a system
|
14
|
+
|
15
|
+
View detailed information on all active and historical workflows for a system `systemId` and filtered by provided parameters.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'swagger_client'
|
21
|
+
# setup authorization
|
22
|
+
SwaggerClient.configure do |config|
|
23
|
+
# Configure API key authorization: apikey
|
24
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
27
|
+
|
28
|
+
# Configure API key authorization: mockType
|
29
|
+
config.api_key['Prefer'] = 'YOUR API KEY'
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
+
#config.api_key_prefix['Prefer'] = 'Bearer'
|
32
|
+
|
33
|
+
# Configure API key authorization: userid
|
34
|
+
config.api_key['user-uid'] = 'YOUR API KEY'
|
35
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
36
|
+
#config.api_key_prefix['user-uid'] = 'Bearer'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = SwaggerClient::WorkflowInstancesApi.new
|
40
|
+
system_id = 56 # Integer | **System Id**: The unique system record identifier.
|
41
|
+
opts = {
|
42
|
+
include_comments: true, # BOOLEAN | **Include Comments**: If no value is specified, the default returns true to not include transition comments. Note: Corresponds to the Comments textbox that is required at most workflow transitions. Does not include other text input fields such as Terms / Conditions for Authorization.
|
43
|
+
page_index: 0, # Integer | **Page Index**: If no value is specified, the default returns true to not include transition comments.
|
44
|
+
since_date: 'since_date_example', # String | **Date**: Filter on authorization/assessment date (Unix date format). Note: Filters off the lastEditedDate field. Note: The authorization/assessment decisions on completed workflows can be edited for up to 30 days after the initial decision is made.
|
45
|
+
status: 'all' # String | **Status**: Filter by status. If no value is specified, the default returns all to include both active and inactive workflows. Note: Any workflows at a current stage of Complete or Cancelled are inactive. Ongoing workflows currently at other stages are active.
|
46
|
+
}
|
47
|
+
|
48
|
+
begin
|
49
|
+
#Get workflow instances in a system
|
50
|
+
result = api_instance.get_system_workflow_instances(system_id, opts)
|
51
|
+
p result
|
52
|
+
rescue SwaggerClient::ApiError => e
|
53
|
+
puts "Exception when calling WorkflowInstancesApi->get_system_workflow_instances: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
Name | Type | Description | Notes
|
60
|
+
------------- | ------------- | ------------- | -------------
|
61
|
+
**system_id** | **Integer**| **System Id**: The unique system record identifier. |
|
62
|
+
**include_comments** | **BOOLEAN**| **Include Comments**: If no value is specified, the default returns true to not include transition comments. Note: Corresponds to the Comments textbox that is required at most workflow transitions. Does not include other text input fields such as Terms / Conditions for Authorization. | [optional] [default to true]
|
63
|
+
**page_index** | **Integer**| **Page Index**: If no value is specified, the default returns true to not include transition comments. | [optional] [default to 0]
|
64
|
+
**since_date** | **String**| **Date**: Filter on authorization/assessment date (Unix date format). Note: Filters off the lastEditedDate field. Note: The authorization/assessment decisions on completed workflows can be edited for up to 30 days after the initial decision is made. | [optional]
|
65
|
+
**status** | **String**| **Status**: Filter by status. If no value is specified, the default returns all to include both active and inactive workflows. Note: Any workflows at a current stage of Complete or Cancelled are inactive. Ongoing workflows currently at other stages are active. | [optional] [default to all]
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**WorkflowInstancesResponseGet**](WorkflowInstancesResponseGet.md)
|
70
|
+
|
71
|
+
### Authorization
|
72
|
+
|
73
|
+
[apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid)
|
74
|
+
|
75
|
+
### HTTP request headers
|
76
|
+
|
77
|
+
- **Content-Type**: Not defined
|
78
|
+
- **Accept**: application/json
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
# **get_system_workflow_instances_by_workflow_instance_id**
|
83
|
+
> WorkflowInstancesResponseGet get_system_workflow_instances_by_workflow_instance_id(system_id, workflow_instance_id)
|
84
|
+
|
85
|
+
Get workflow instance by ID in a system
|
86
|
+
|
87
|
+
View detailed information on all active and historical workflows for a system `systemId` and `workflowInstanceId`.
|
88
|
+
|
89
|
+
### Example
|
90
|
+
```ruby
|
91
|
+
# load the gem
|
92
|
+
require 'swagger_client'
|
93
|
+
# setup authorization
|
94
|
+
SwaggerClient.configure do |config|
|
95
|
+
# Configure API key authorization: apikey
|
96
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
97
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
98
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
99
|
+
|
100
|
+
# Configure API key authorization: mockType
|
101
|
+
config.api_key['Prefer'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
#config.api_key_prefix['Prefer'] = 'Bearer'
|
104
|
+
|
105
|
+
# Configure API key authorization: userid
|
106
|
+
config.api_key['user-uid'] = 'YOUR API KEY'
|
107
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
108
|
+
#config.api_key_prefix['user-uid'] = 'Bearer'
|
109
|
+
end
|
110
|
+
|
111
|
+
api_instance = SwaggerClient::WorkflowInstancesApi.new
|
112
|
+
system_id = 56 # Integer | **System Id**: The unique system record identifier.
|
113
|
+
workflow_instance_id = 56 # Integer | **Workflow Instance Id**: The unique milestone record identifier.
|
114
|
+
|
115
|
+
|
116
|
+
begin
|
117
|
+
#Get workflow instance by ID in a system
|
118
|
+
result = api_instance.get_system_workflow_instances_by_workflow_instance_id(system_id, workflow_instance_id)
|
119
|
+
p result
|
120
|
+
rescue SwaggerClient::ApiError => e
|
121
|
+
puts "Exception when calling WorkflowInstancesApi->get_system_workflow_instances_by_workflow_instance_id: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
### Parameters
|
126
|
+
|
127
|
+
Name | Type | Description | Notes
|
128
|
+
------------- | ------------- | ------------- | -------------
|
129
|
+
**system_id** | **Integer**| **System Id**: The unique system record identifier. |
|
130
|
+
**workflow_instance_id** | **Integer**| **Workflow Instance Id**: The unique milestone record identifier. |
|
131
|
+
|
132
|
+
### Return type
|
133
|
+
|
134
|
+
[**WorkflowInstancesResponseGet**](WorkflowInstancesResponseGet.md)
|
135
|
+
|
136
|
+
### Authorization
|
137
|
+
|
138
|
+
[apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid)
|
139
|
+
|
140
|
+
### HTTP request headers
|
141
|
+
|
142
|
+
- **Content-Type**: Not defined
|
143
|
+
- **Accept**: application/json
|
144
|
+
|
145
|
+
|
146
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# SwaggerClient::WorkflowInstancesGet
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**created_date** | **Integer** | [Read-Only] Date the workflow instance or the workflow transition was created. | [optional]
|
7
|
+
**current_stage** | **String** | [Read-Only] Name of the current stage. | [optional]
|
8
|
+
**last_edited_by** | **String** | [Read-Only] User that last acted on the workflow. | [optional]
|
9
|
+
**last_edited_date** | **Integer** | [Read-Only] Date the workflow was last acted on. | [optional]
|
10
|
+
**package_name** | **String** | [Read-Only] The package name. | [optional]
|
11
|
+
**system_name** | **String** | [Read-Only] The system name. | [optional]
|
12
|
+
**version** | **String** | [Read-Only] Version of the workflow definition. | [optional]
|
13
|
+
**workflow** | **String** | [Read-Only] The workflow type. | [optional]
|
14
|
+
**workflow_instance_id** | **Integer** | [Read-Only] Unique workflow instance identifier. | [optional]
|
15
|
+
**transitions** | [**Array<InstancesTransitions>**](InstancesTransitions.md) | | [optional]
|
16
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# SwaggerClient::WorkflowInstancesResponseGet
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**meta** | [**Model200**](Model200.md) | | [optional]
|
7
|
+
**data** | [**Array<WorkflowInstancesGet>**](WorkflowInstancesGet.md) | | [optional]
|
8
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,310 @@
|
|
1
|
+
=begin
|
2
|
+
#Enterprise Mission Assurance Support Service (eMASS)
|
3
|
+
|
4
|
+
#The Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The `emasser` is a command-line interface (CLI) tool that implements all of the eMASS endpoints defined in the eMASS REST API v3.2, dated October 21, 2021.</br><br> <strong>Register CLI</strong></br> New users will need to register an API key with the eMASS development team prior to accessing the site for the first time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only) where {url}/api/register (POST) is used to register the client certificate.</br></br> Every call to the eMASS REST API will require the use of the agreed upon public key certificate and API key. The API key must be provided in the request header for all endpoint calls (api-key). If the service receives an untrusted certificate or API key, a 401 error response code will be returned along with an error message.</br></br> <strong>Available Request Headers:</strong></br> <table> <tr> <th align=left>key</th> <th align=left>Example Value</th> <th align=left>Description</th> </tr> <tr> <td>`api-key`</td> <td>api-key-provided-by-emass</td> <td>This API key must be provided in the request header for all endpoint calls</td> </tr> <tr> <td>`user-uid`</td> <td>USER.UID.KEY</td> <td>This User unique identifier key must be provided in the request header for all PUT, POST, and DELETE endpoint calls</td> </tr> <tr> <td></td><td></td> <td> Note: For DoD users this is the DoD ID Number (EIDIPI) on their DoD CAC </td> </tr> </table> </br><strong>Approve API Client for Actionable Requests</strong></br> Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions. Please note that leaving a field parameter blank (for PUT/POST requests) has the potential to clear information in the active eMASS records. To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC:
|
5
|
+
|
6
|
+
OpenAPI spec version: v3.2
|
7
|
+
Contact: disa.meade.id.mbx.emass-tier-iii-support@mail.mil
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.26
|
10
|
+
=end
|
11
|
+
|
12
|
+
module SwaggerClient
|
13
|
+
class ArtifactsApi
|
14
|
+
attr_accessor :api_client
|
15
|
+
|
16
|
+
def initialize(api_client = ApiClient.default)
|
17
|
+
@api_client = api_client
|
18
|
+
end
|
19
|
+
# Add one or many artifacts in a system
|
20
|
+
# <strong>Information</strong><br> The request body of a POST request through the Artifact Endpoint accepts a single binary file with file extension \".zip\" only. This accepted .zip file should contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt. Filename uniqueness throughout eMASS will be enforced by the API.<br><br> Upon successful receipt of a file, if a file within the .zip is matched via filename to an artifact existing within the application, the file associated with the artifact will be updated. If no artifact is matched via filename to the application, a new artifact will be created with the following default values. Any values not specified below will be blank. <ul> <li>isTemplate: false</li> <li>type: other</li> <li>category: evidence</li> </ul> To update values other than the file itself, please submit a PUT request.<br> <strong>Zip file information</strong><br> Upload a zip file contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt.<br><br> <strong>Business Rules</strong><br> Artifact cannot be saved if the file does not have the following file extensions: .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mh,tml,.html,.htm,.pdf,.mdb,.accdb,.ppt, .pptx,.xls,.xlsx,.csv,.log,.jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif,.zip,.rar,.msg, .vsd,.vsw,.vdx,.z{#},.ckl,.avi,.vsdx Artifact version cannot be saved if an Artifact with the same file name already exist in the system. Artifact cannot be saved if the file size exceeds 30MB.
|
21
|
+
# @param is_template
|
22
|
+
# @param type
|
23
|
+
# @param category
|
24
|
+
# @param zipper
|
25
|
+
# @param system_id **System Id**: The unique system record identifier.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [ArtifactsResponsePutPost]
|
28
|
+
def add_artifacts_by_system_id(is_template, type, category, zipper, system_id, opts = {})
|
29
|
+
data, _status_code, _headers = add_artifacts_by_system_id_with_http_info(is_template, type, category, zipper, system_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add one or many artifacts in a system
|
34
|
+
# <strong>Information</strong><br> The request body of a POST request through the Artifact Endpoint accepts a single binary file with file extension \".zip\" only. This accepted .zip file should contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt. Filename uniqueness throughout eMASS will be enforced by the API.<br><br> Upon successful receipt of a file, if a file within the .zip is matched via filename to an artifact existing within the application, the file associated with the artifact will be updated. If no artifact is matched via filename to the application, a new artifact will be created with the following default values. Any values not specified below will be blank. <ul> <li>isTemplate: false</li> <li>type: other</li> <li>category: evidence</li> </ul> To update values other than the file itself, please submit a PUT request.<br> <strong>Zip file information</strong><br> Upload a zip file contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt.<br><br> <strong>Business Rules</strong><br> Artifact cannot be saved if the file does not have the following file extensions: .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mh,tml,.html,.htm,.pdf,.mdb,.accdb,.ppt, .pptx,.xls,.xlsx,.csv,.log,.jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif,.zip,.rar,.msg, .vsd,.vsw,.vdx,.z{#},.ckl,.avi,.vsdx Artifact version cannot be saved if an Artifact with the same file name already exist in the system. Artifact cannot be saved if the file size exceeds 30MB.
|
35
|
+
# @param is_template
|
36
|
+
# @param type
|
37
|
+
# @param category
|
38
|
+
# @param zipper
|
39
|
+
# @param system_id **System Id**: The unique system record identifier.
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(ArtifactsResponsePutPost, Integer, Hash)>] ArtifactsResponsePutPost data, response status code and response headers
|
42
|
+
def add_artifacts_by_system_id_with_http_info(is_template, type, category, zipper, system_id, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.add_artifacts_by_system_id ...'
|
45
|
+
end
|
46
|
+
# verify the required parameter 'is_template' is set
|
47
|
+
if @api_client.config.client_side_validation && is_template.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'is_template' when calling ArtifactsApi.add_artifacts_by_system_id"
|
49
|
+
end
|
50
|
+
# verify the required parameter 'type' is set
|
51
|
+
if @api_client.config.client_side_validation && type.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling ArtifactsApi.add_artifacts_by_system_id"
|
53
|
+
end
|
54
|
+
# verify enum value
|
55
|
+
if @api_client.config.client_side_validation && !['Procedure', 'Diagram', 'Policy', 'Labor', 'Document', 'Image', 'Other', 'Scan Result', 'Auditor Report'].include?(type)
|
56
|
+
fail ArgumentError, "invalid value for 'type', must be one of Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report"
|
57
|
+
end
|
58
|
+
# verify the required parameter 'category' is set
|
59
|
+
if @api_client.config.client_side_validation && category.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'category' when calling ArtifactsApi.add_artifacts_by_system_id"
|
61
|
+
end
|
62
|
+
# verify enum value
|
63
|
+
if @api_client.config.client_side_validation && !['Implementation Guidance', 'Evidence'].include?(category)
|
64
|
+
fail ArgumentError, "invalid value for 'category', must be one of Implementation Guidance, Evidence"
|
65
|
+
end
|
66
|
+
# verify the required parameter 'zipper' is set
|
67
|
+
if @api_client.config.client_side_validation && zipper.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'zipper' when calling ArtifactsApi.add_artifacts_by_system_id"
|
69
|
+
end
|
70
|
+
# verify the required parameter 'system_id' is set
|
71
|
+
if @api_client.config.client_side_validation && system_id.nil?
|
72
|
+
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.add_artifacts_by_system_id"
|
73
|
+
end
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
76
|
+
|
77
|
+
# query parameters
|
78
|
+
query_params = opts[:query_params] || {}
|
79
|
+
|
80
|
+
# header parameters
|
81
|
+
header_params = opts[:header_params] || {}
|
82
|
+
# HTTP header 'Accept' (if needed)
|
83
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
84
|
+
# HTTP header 'Content-Type'
|
85
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
86
|
+
|
87
|
+
# form parameters
|
88
|
+
form_params = opts[:form_params] || {}
|
89
|
+
form_params['isTemplate'] = is_template
|
90
|
+
form_params['type'] = type
|
91
|
+
form_params['category'] = category
|
92
|
+
form_params['Zipper'] = zipper
|
93
|
+
|
94
|
+
# http body (model)
|
95
|
+
post_body = opts[:body]
|
96
|
+
|
97
|
+
return_type = opts[:return_type] || 'ArtifactsResponsePutPost'
|
98
|
+
|
99
|
+
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
100
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
101
|
+
:header_params => header_params,
|
102
|
+
:query_params => query_params,
|
103
|
+
:form_params => form_params,
|
104
|
+
:body => post_body,
|
105
|
+
:auth_names => auth_names,
|
106
|
+
:return_type => return_type)
|
107
|
+
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#add_artifacts_by_system_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
110
|
+
end
|
111
|
+
return data, status_code, headers
|
112
|
+
end
|
113
|
+
# Remove one or many artifacts in a system
|
114
|
+
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br> <b>Note:</b> Multiple files can be deleted by providing multiple file names at the CL (comma delimited) Example: --files file1.txt, file2.txt
|
115
|
+
# @param body See notes above for additional information
|
116
|
+
# @param system_id **System Id**: The unique system record identifier.
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @return [ArtifactsResponseDel]
|
119
|
+
def delete_artifact(body, system_id, opts = {})
|
120
|
+
data, _status_code, _headers = delete_artifact_with_http_info(body, system_id, opts)
|
121
|
+
data
|
122
|
+
end
|
123
|
+
|
124
|
+
# Remove one or many artifacts in a system
|
125
|
+
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br> <b>Note:</b> Multiple files can be deleted by providing multiple file names at the CL (comma delimited) Example: --files file1.txt, file2.txt
|
126
|
+
# @param body See notes above for additional information
|
127
|
+
# @param system_id **System Id**: The unique system record identifier.
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [Array<(ArtifactsResponseDel, Integer, Hash)>] ArtifactsResponseDel data, response status code and response headers
|
130
|
+
def delete_artifact_with_http_info(body, system_id, opts = {})
|
131
|
+
if @api_client.config.debugging
|
132
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.delete_artifact ...'
|
133
|
+
end
|
134
|
+
# verify the required parameter 'body' is set
|
135
|
+
if @api_client.config.client_side_validation && body.nil?
|
136
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ArtifactsApi.delete_artifact"
|
137
|
+
end
|
138
|
+
# verify the required parameter 'system_id' is set
|
139
|
+
if @api_client.config.client_side_validation && system_id.nil?
|
140
|
+
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.delete_artifact"
|
141
|
+
end
|
142
|
+
# resource path
|
143
|
+
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
144
|
+
|
145
|
+
# query parameters
|
146
|
+
query_params = opts[:query_params] || {}
|
147
|
+
|
148
|
+
# header parameters
|
149
|
+
header_params = opts[:header_params] || {}
|
150
|
+
# HTTP header 'Accept' (if needed)
|
151
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
152
|
+
# HTTP header 'Content-Type'
|
153
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
154
|
+
|
155
|
+
# form parameters
|
156
|
+
form_params = opts[:form_params] || {}
|
157
|
+
|
158
|
+
# http body (model)
|
159
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
160
|
+
|
161
|
+
return_type = opts[:return_type] || 'ArtifactsResponseDel'
|
162
|
+
|
163
|
+
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
164
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
165
|
+
:header_params => header_params,
|
166
|
+
:query_params => query_params,
|
167
|
+
:form_params => form_params,
|
168
|
+
:body => post_body,
|
169
|
+
:auth_names => auth_names,
|
170
|
+
:return_type => return_type)
|
171
|
+
|
172
|
+
if @api_client.config.debugging
|
173
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#delete_artifact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
174
|
+
end
|
175
|
+
return data, status_code, headers
|
176
|
+
end
|
177
|
+
# Get one or many artifacts in a system
|
178
|
+
# Returns selected artifacts matching parameters to include the file name containing the artifacts.
|
179
|
+
# @param system_id **System Id**: The unique system record identifier.
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @option opts [String] :filename **File Name**: The file name (to include file-extension).
|
182
|
+
# @option opts [String] :control_acronyms **System Acronym**: Filter query by given system acronym (single or comma separated).
|
183
|
+
# @option opts [String] :ccis **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
|
184
|
+
# @option opts [BOOLEAN] :system_only **Systems Only**: Indicates that only system(s) information is retrieved. (default to true)
|
185
|
+
# @return [ArtifactsResponseGet]
|
186
|
+
def get_system_artifacts(system_id, opts = {})
|
187
|
+
data, _status_code, _headers = get_system_artifacts_with_http_info(system_id, opts)
|
188
|
+
data
|
189
|
+
end
|
190
|
+
|
191
|
+
# Get one or many artifacts in a system
|
192
|
+
# Returns selected artifacts matching parameters to include the file name containing the artifacts.
|
193
|
+
# @param system_id **System Id**: The unique system record identifier.
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @option opts [String] :filename **File Name**: The file name (to include file-extension).
|
196
|
+
# @option opts [String] :control_acronyms **System Acronym**: Filter query by given system acronym (single or comma separated).
|
197
|
+
# @option opts [String] :ccis **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
|
198
|
+
# @option opts [BOOLEAN] :system_only **Systems Only**: Indicates that only system(s) information is retrieved.
|
199
|
+
# @return [Array<(ArtifactsResponseGet, Integer, Hash)>] ArtifactsResponseGet data, response status code and response headers
|
200
|
+
def get_system_artifacts_with_http_info(system_id, opts = {})
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.get_system_artifacts ...'
|
203
|
+
end
|
204
|
+
# verify the required parameter 'system_id' is set
|
205
|
+
if @api_client.config.client_side_validation && system_id.nil?
|
206
|
+
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.get_system_artifacts"
|
207
|
+
end
|
208
|
+
# resource path
|
209
|
+
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
210
|
+
|
211
|
+
# query parameters
|
212
|
+
query_params = opts[:query_params] || {}
|
213
|
+
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
214
|
+
query_params[:'controlAcronyms'] = opts[:'control_acronyms'] if !opts[:'control_acronyms'].nil?
|
215
|
+
query_params[:'ccis'] = opts[:'ccis'] if !opts[:'ccis'].nil?
|
216
|
+
query_params[:'systemOnly'] = opts[:'system_only'] if !opts[:'system_only'].nil?
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = opts[:header_params] || {}
|
220
|
+
# HTTP header 'Accept' (if needed)
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
222
|
+
|
223
|
+
# form parameters
|
224
|
+
form_params = opts[:form_params] || {}
|
225
|
+
|
226
|
+
# http body (model)
|
227
|
+
post_body = opts[:body]
|
228
|
+
|
229
|
+
return_type = opts[:return_type] || 'ArtifactsResponseGet'
|
230
|
+
|
231
|
+
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
232
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
233
|
+
:header_params => header_params,
|
234
|
+
:query_params => query_params,
|
235
|
+
:form_params => form_params,
|
236
|
+
:body => post_body,
|
237
|
+
:auth_names => auth_names,
|
238
|
+
:return_type => return_type)
|
239
|
+
|
240
|
+
if @api_client.config.debugging
|
241
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#get_system_artifacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
242
|
+
end
|
243
|
+
return data, status_code, headers
|
244
|
+
end
|
245
|
+
# Update one or many artifacts in a system
|
246
|
+
# Updates an artifact for given `systemId` path parameter<br><br> **Request Body Required Fields** - `filename` - `isTemplate` - `type` - `category`
|
247
|
+
# @param body See `information` above for additional instructions
|
248
|
+
# @param system_id **System Id**: The unique system record identifier.
|
249
|
+
# @param [Hash] opts the optional parameters
|
250
|
+
# @return [ArtifactsResponsePutPost]
|
251
|
+
def update_artifact_by_system_id(body, system_id, opts = {})
|
252
|
+
data, _status_code, _headers = update_artifact_by_system_id_with_http_info(body, system_id, opts)
|
253
|
+
data
|
254
|
+
end
|
255
|
+
|
256
|
+
# Update one or many artifacts in a system
|
257
|
+
# Updates an artifact for given `systemId` path parameter<br><br> **Request Body Required Fields** - `filename` - `isTemplate` - `type` - `category`
|
258
|
+
# @param body See `information` above for additional instructions
|
259
|
+
# @param system_id **System Id**: The unique system record identifier.
|
260
|
+
# @param [Hash] opts the optional parameters
|
261
|
+
# @return [Array<(ArtifactsResponsePutPost, Integer, Hash)>] ArtifactsResponsePutPost data, response status code and response headers
|
262
|
+
def update_artifact_by_system_id_with_http_info(body, system_id, opts = {})
|
263
|
+
if @api_client.config.debugging
|
264
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.update_artifact_by_system_id ...'
|
265
|
+
end
|
266
|
+
# verify the required parameter 'body' is set
|
267
|
+
if @api_client.config.client_side_validation && body.nil?
|
268
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ArtifactsApi.update_artifact_by_system_id"
|
269
|
+
end
|
270
|
+
# verify the required parameter 'system_id' is set
|
271
|
+
if @api_client.config.client_side_validation && system_id.nil?
|
272
|
+
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.update_artifact_by_system_id"
|
273
|
+
end
|
274
|
+
# resource path
|
275
|
+
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
276
|
+
|
277
|
+
# query parameters
|
278
|
+
query_params = opts[:query_params] || {}
|
279
|
+
|
280
|
+
# header parameters
|
281
|
+
header_params = opts[:header_params] || {}
|
282
|
+
# HTTP header 'Accept' (if needed)
|
283
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
284
|
+
# HTTP header 'Content-Type'
|
285
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
286
|
+
|
287
|
+
# form parameters
|
288
|
+
form_params = opts[:form_params] || {}
|
289
|
+
|
290
|
+
# http body (model)
|
291
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
292
|
+
|
293
|
+
return_type = opts[:return_type] || 'ArtifactsResponsePutPost'
|
294
|
+
|
295
|
+
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
296
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
297
|
+
:header_params => header_params,
|
298
|
+
:query_params => query_params,
|
299
|
+
:form_params => form_params,
|
300
|
+
:body => post_body,
|
301
|
+
:auth_names => auth_names,
|
302
|
+
:return_type => return_type)
|
303
|
+
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#update_artifact_by_system_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
306
|
+
end
|
307
|
+
return data, status_code, headers
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
=begin
|
2
|
+
#Enterprise Mission Assurance Support Service (eMASS)
|
3
|
+
|
4
|
+
#The Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The `emasser` is a command-line interface (CLI) tool that implements all of the eMASS endpoints defined in the eMASS REST API v3.2, dated October 21, 2021.</br><br> <strong>Register CLI</strong></br> New users will need to register an API key with the eMASS development team prior to accessing the site for the first time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only) where {url}/api/register (POST) is used to register the client certificate.</br></br> Every call to the eMASS REST API will require the use of the agreed upon public key certificate and API key. The API key must be provided in the request header for all endpoint calls (api-key). If the service receives an untrusted certificate or API key, a 401 error response code will be returned along with an error message.</br></br> <strong>Available Request Headers:</strong></br> <table> <tr> <th align=left>key</th> <th align=left>Example Value</th> <th align=left>Description</th> </tr> <tr> <td>`api-key`</td> <td>api-key-provided-by-emass</td> <td>This API key must be provided in the request header for all endpoint calls</td> </tr> <tr> <td>`user-uid`</td> <td>USER.UID.KEY</td> <td>This User unique identifier key must be provided in the request header for all PUT, POST, and DELETE endpoint calls</td> </tr> <tr> <td></td><td></td> <td> Note: For DoD users this is the DoD ID Number (EIDIPI) on their DoD CAC </td> </tr> </table> </br><strong>Approve API Client for Actionable Requests</strong></br> Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions. Please note that leaving a field parameter blank (for PUT/POST requests) has the potential to clear information in the active eMASS records. To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC:
|
5
|
+
|
6
|
+
OpenAPI spec version: v3.2
|
7
|
+
Contact: disa.meade.id.mbx.emass-tier-iii-support@mail.mil
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.26
|
10
|
+
=end
|
11
|
+
|
12
|
+
module SwaggerClient
|
13
|
+
class ArtifactsExportApi
|
14
|
+
attr_accessor :api_client
|
15
|
+
|
16
|
+
def initialize(api_client = ApiClient.default)
|
17
|
+
@api_client = api_client
|
18
|
+
end
|
19
|
+
# Get the file of an artifact in a system
|
20
|
+
# <strong>Sample Responce</strong><br> Binary file associated with given filename.<br> If `compress` parameter is specified, zip archive of binary file associated with given filename.
|
21
|
+
# @param system_id **System Id**: The unique system record identifier.
|
22
|
+
# @param filename **File Name**: The file name (to include file-extension).
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [BOOLEAN] :compress **Compress File**: Determines if returned file is compressed. (default to true)
|
25
|
+
# @return [String]
|
26
|
+
def get_system_artifacts_export(system_id, filename, opts = {})
|
27
|
+
data, _status_code, _headers = get_system_artifacts_export_with_http_info(system_id, filename, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Get the file of an artifact in a system
|
32
|
+
# <strong>Sample Responce</strong><br> Binary file associated with given filename.<br> If `compress` parameter is specified, zip archive of binary file associated with given filename.
|
33
|
+
# @param system_id **System Id**: The unique system record identifier.
|
34
|
+
# @param filename **File Name**: The file name (to include file-extension).
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [BOOLEAN] :compress **Compress File**: Determines if returned file is compressed.
|
37
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
38
|
+
def get_system_artifacts_export_with_http_info(system_id, filename, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsExportApi.get_system_artifacts_export ...'
|
41
|
+
end
|
42
|
+
# verify the required parameter 'system_id' is set
|
43
|
+
if @api_client.config.client_side_validation && system_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsExportApi.get_system_artifacts_export"
|
45
|
+
end
|
46
|
+
# verify the required parameter 'filename' is set
|
47
|
+
if @api_client.config.client_side_validation && filename.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'filename' when calling ArtifactsExportApi.get_system_artifacts_export"
|
49
|
+
end
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/api/systems/{systemId}/artifacts-export'.sub('{' + 'systemId' + '}', system_id.to_s)
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = opts[:query_params] || {}
|
55
|
+
query_params[:'filename'] = filename
|
56
|
+
query_params[:'compress'] = opts[:'compress'] if !opts[:'compress'].nil?
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = opts[:header_params] || {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/octet-stream', 'application/json'])
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:body]
|
68
|
+
|
69
|
+
return_type = opts[:return_type] || 'String'
|
70
|
+
|
71
|
+
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type)
|
79
|
+
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ArtifactsExportApi#get_system_artifacts_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|