emasser 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +6 -2
- data/.github/workflows/test-cli.yml +4 -5
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +26 -24
- data/README.md +4 -4
- data/emasser.gemspec +4 -3
- data/exe/emasser +0 -0
- data/lib/emasser/configuration.rb +1 -1
- data/lib/emasser/delete.rb +8 -8
- data/lib/emasser/get.rb +43 -43
- data/lib/emasser/post.rb +29 -29
- data/lib/emasser/put.rb +14 -14
- data/lib/emasser/version.rb +1 -1
- data/lib/emasser.rb +1 -1
- metadata +20 -400
- data/TAGS +0 -2393
- data/emass_client/eMASSRestOpenApi.yaml +0 -5698
- data/emass_client/ruby_client/.gitignore +0 -39
- data/emass_client/ruby_client/.rspec +0 -2
- data/emass_client/ruby_client/.rubocop.yml +0 -154
- data/emass_client/ruby_client/.swagger-codegen/VERSION +0 -1
- data/emass_client/ruby_client/.swagger-codegen-ignore +0 -23
- data/emass_client/ruby_client/Gemfile +0 -9
- data/emass_client/ruby_client/README.md +0 -1284
- data/emass_client/ruby_client/Rakefile +0 -8
- data/emass_client/ruby_client/docs/ArtifactsApi.md +0 -284
- data/emass_client/ruby_client/docs/ArtifactsDelete.md +0 -6
- data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +0 -7
- data/emass_client/ruby_client/docs/ArtifactsExportApi.md +0 -76
- data/emass_client/ruby_client/docs/ArtifactsGet.md +0 -20
- data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +0 -16
- data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +0 -8
- data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +0 -9
- data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +0 -8
- data/emass_client/ruby_client/docs/CACApi.md +0 -140
- data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +0 -71
- data/emass_client/ruby_client/docs/CacGet.md +0 -13
- data/emass_client/ruby_client/docs/CacRequestPostBody.md +0 -8
- data/emass_client/ruby_client/docs/CacResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/CacResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/CacResponsePostData.md +0 -9
- data/emass_client/ruby_client/docs/CmmcGet.md +0 -19
- data/emass_client/ruby_client/docs/CmmcResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ConnectivityCcsd.md +0 -8
- data/emass_client/ruby_client/docs/ControlsApi.md +0 -140
- data/emass_client/ruby_client/docs/ControlsGet.md +0 -36
- data/emass_client/ruby_client/docs/ControlsPut.md +0 -9
- data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +0 -29
- data/emass_client/ruby_client/docs/ControlsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ControlsResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/DefinitionTransitions.md +0 -9
- data/emass_client/ruby_client/docs/DeleteMilestone.md +0 -7
- data/emass_client/ruby_client/docs/DeletePoam.md +0 -7
- data/emass_client/ruby_client/docs/Empty200Response.md +0 -6
- data/emass_client/ruby_client/docs/Error.md +0 -8
- data/emass_client/ruby_client/docs/InstancesTransitions.md +0 -12
- data/emass_client/ruby_client/docs/MilestoneResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/MilestoneResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/MilestoneResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/MilestonesApi.md +0 -350
- data/emass_client/ruby_client/docs/MilestonesDelete.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesGet.md +0 -12
- data/emass_client/ruby_client/docs/MilestonesPost.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesPut.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +0 -11
- data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +0 -9
- data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +0 -9
- data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +0 -8
- data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +0 -9
- data/emass_client/ruby_client/docs/Model200.md +0 -7
- data/emass_client/ruby_client/docs/Model201.md +0 -7
- data/emass_client/ruby_client/docs/Model201Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model400.md +0 -7
- data/emass_client/ruby_client/docs/Model400Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model400Response.md +0 -7
- data/emass_client/ruby_client/docs/Model401.md +0 -7
- data/emass_client/ruby_client/docs/Model401Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model403.md +0 -7
- data/emass_client/ruby_client/docs/Model403Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model404.md +0 -8
- data/emass_client/ruby_client/docs/Model404Response.md +0 -7
- data/emass_client/ruby_client/docs/Model405.md +0 -7
- data/emass_client/ruby_client/docs/Model405Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model411.md +0 -7
- data/emass_client/ruby_client/docs/Model411Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model490.md +0 -7
- data/emass_client/ruby_client/docs/Model490Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model500.md +0 -7
- data/emass_client/ruby_client/docs/Model500Meta.md +0 -8
- data/emass_client/ruby_client/docs/PACApi.md +0 -137
- data/emass_client/ruby_client/docs/POAMApi.md +0 -346
- data/emass_client/ruby_client/docs/PacGet.md +0 -14
- data/emass_client/ruby_client/docs/PacPost.md +0 -9
- data/emass_client/ruby_client/docs/PacRequestPostBody.md +0 -9
- data/emass_client/ruby_client/docs/PacResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/PacResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/PoamDelete.md +0 -6
- data/emass_client/ruby_client/docs/PoamGet.md +0 -39
- data/emass_client/ruby_client/docs/PoamPost.md +0 -6
- data/emass_client/ruby_client/docs/PoamPostPutDel.md +0 -10
- data/emass_client/ruby_client/docs/PoamPut.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequestPostBody.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequestPutBody.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequiredPost.md +0 -32
- data/emass_client/ruby_client/docs/PoamRequiredPut.md +0 -35
- data/emass_client/ruby_client/docs/PoamResponseDelete.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/Register.md +0 -8
- data/emass_client/ruby_client/docs/RegisterData.md +0 -7
- data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +0 -7
- data/emass_client/ruby_client/docs/RegistrationApi.md +0 -71
- data/emass_client/ruby_client/docs/RoleCategory.md +0 -10
- data/emass_client/ruby_client/docs/Roles.md +0 -9
- data/emass_client/ruby_client/docs/Ssps.md +0 -9
- data/emass_client/ruby_client/docs/Stage.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeApplication.md +0 -12
- data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +0 -6
- data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeScansApi.md +0 -73
- data/emass_client/ruby_client/docs/Success200Response.md +0 -8
- data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +0 -10
- data/emass_client/ruby_client/docs/SystemResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesApi.md +0 -137
- data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesResponseData.md +0 -8
- data/emass_client/ruby_client/docs/Systems.md +0 -70
- data/emass_client/ruby_client/docs/SystemsApi.md +0 -155
- data/emass_client/ruby_client/docs/Test.md +0 -8
- data/emass_client/ruby_client/docs/TestApi.md +0 -66
- data/emass_client/ruby_client/docs/TestData.md +0 -7
- data/emass_client/ruby_client/docs/TestResultsApi.md +0 -144
- data/emass_client/ruby_client/docs/TestResultsGet.md +0 -15
- data/emass_client/ruby_client/docs/TestResultsPost.md +0 -9
- data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +0 -11
- data/emass_client/ruby_client/docs/TestResultsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/TestResultsResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/Users.md +0 -9
- data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +0 -11
- data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +0 -74
- data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +0 -146
- data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +0 -16
- data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +0 -8
- data/emass_client/ruby_client/git_push.sh +0 -55
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +0 -310
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +0 -86
- data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +0 -143
- data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +0 -77
- data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +0 -143
- data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +0 -366
- data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +0 -140
- data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +0 -345
- data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +0 -78
- data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +0 -84
- data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +0 -150
- data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +0 -162
- data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +0 -70
- data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +0 -149
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +0 -76
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +0 -153
- data/emass_client/ruby_client/lib/swagger_client/api_client.rb +0 -389
- data/emass_client/ruby_client/lib/swagger_client/api_error.rb +0 -57
- data/emass_client/ruby_client/lib/swagger_client/configuration.rb +0 -224
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +0 -201
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +0 -207
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +0 -383
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +0 -363
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +0 -301
- data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +0 -398
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +0 -663
- data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +0 -606
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +0 -274
- data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +0 -212
- data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +0 -212
- data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/error.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +0 -327
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +0 -291
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +0 -247
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +0 -208
- data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +0 -311
- data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +0 -259
- data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +0 -261
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +0 -646
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +0 -237
- data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +0 -564
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +0 -594
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/register.rb +0 -215
- data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +0 -211
- data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +0 -272
- data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +0 -274
- data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +0 -252
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +0 -303
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +0 -284
- data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +0 -1137
- data/emass_client/ruby_client/lib/swagger_client/models/test.rb +0 -215
- data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +0 -333
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +0 -306
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/users.rb +0 -224
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +0 -282
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +0 -368
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/version.rb +0 -14
- data/emass_client/ruby_client/lib/swagger_client.rb +0 -161
- data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +0 -92
- data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +0 -48
- data/emass_client/ruby_client/spec/api/cac_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +0 -46
- data/emass_client/ruby_client/spec/api/controls_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +0 -105
- data/emass_client/ruby_client/spec/api/pac_api_spec.rb +0 -59
- data/emass_client/ruby_client/spec/api/poam_api_spec.rb +0 -103
- data/emass_client/ruby_client/spec/api/registration_api_spec.rb +0 -46
- data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +0 -47
- data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/systems_api_spec.rb +0 -67
- data/emass_client/ruby_client/spec/api/test_api_spec.rb +0 -45
- data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +0 -62
- data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +0 -47
- data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +0 -63
- data/emass_client/ruby_client/spec/api_client_spec.rb +0 -225
- data/emass_client/ruby_client/spec/base_object_spec.rb +0 -109
- data/emass_client/ruby_client/spec/configuration_spec.rb +0 -41
- data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +0 -126
- data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +0 -102
- data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_get_spec.rb +0 -80
- data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +0 -128
- data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/controls_get_spec.rb +0 -262
- data/emass_client/ruby_client/spec/models/controls_put_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +0 -216
- data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +0 -64
- data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/error_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +0 -86
- data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +0 -74
- data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +0 -64
- data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/model_200_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_201_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_400_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_401_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_403_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_404_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_405_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_411_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_490_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_500_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/pac_get_spec.rb +0 -86
- data/emass_client/ruby_client/spec/models/pac_post_spec.rb +0 -56
- data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +0 -56
- data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_get_spec.rb +0 -264
- data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +0 -58
- data/emass_client/ruby_client/spec/models/poam_post_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_put_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +0 -218
- data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +0 -236
- data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/register_data_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/register_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/role_category_spec.rb +0 -62
- data/emass_client/ruby_client/spec/models/roles_spec.rb +0 -60
- data/emass_client/ruby_client/spec/models/ssps_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/stage_spec.rb +0 -50
- data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +0 -78
- data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/success200_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +0 -66
- data/emass_client/ruby_client/spec/models/system_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/systems_spec.rb +0 -510
- data/emass_client/ruby_client/spec/models/test_data_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +0 -96
- data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +0 -68
- data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/test_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/users_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +0 -68
- data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +0 -110
- data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/spec_helper.rb +0 -110
- data/emass_client/ruby_client/swagger_client.gemspec +0 -38
- data/emass_client/swagger-codegen/ruby_template/api_client.mustache +0 -384
- data/emass_client/swagger-codegen/ruby_template/api_info.mustache +0 -12
- data/emass_client/swagger-codegen/ruby_template/configuration.mustache +0 -234
- data/emass_client/swagger-codegen/ruby_template/gemspec.mustache +0 -37
@@ -1,153 +0,0 @@
|
|
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 WorkflowInstancesApi
|
14
|
-
attr_accessor :api_client
|
15
|
-
|
16
|
-
def initialize(api_client = ApiClient.default)
|
17
|
-
@api_client = api_client
|
18
|
-
end
|
19
|
-
# Get workflow instances in a system
|
20
|
-
# View detailed information on all active and historical workflows for a system `systemId` and filtered by provided parameters.
|
21
|
-
# @param system_id **System Id**: The unique system record identifier.
|
22
|
-
# @param [Hash] opts the optional parameters
|
23
|
-
# @option opts [BOOLEAN] :include_comments **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. (default to true)
|
24
|
-
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns true to not include transition comments. (default to 0)
|
25
|
-
# @option opts [String] :since_date **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.
|
26
|
-
# @option opts [String] :status **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. (default to all)
|
27
|
-
# @return [WorkflowInstancesResponseGet]
|
28
|
-
def get_system_workflow_instances(system_id, opts = {})
|
29
|
-
data, _status_code, _headers = get_system_workflow_instances_with_http_info(system_id, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Get workflow instances in a system
|
34
|
-
# View detailed information on all active and historical workflows for a system `systemId` and filtered by provided parameters.
|
35
|
-
# @param system_id **System Id**: The unique system record identifier.
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [BOOLEAN] :include_comments **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.
|
38
|
-
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns true to not include transition comments.
|
39
|
-
# @option opts [String] :since_date **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.
|
40
|
-
# @option opts [String] :status **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.
|
41
|
-
# @return [Array<(WorkflowInstancesResponseGet, Integer, Hash)>] WorkflowInstancesResponseGet data, response status code and response headers
|
42
|
-
def get_system_workflow_instances_with_http_info(system_id, opts = {})
|
43
|
-
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug 'Calling API: WorkflowInstancesApi.get_system_workflow_instances ...'
|
45
|
-
end
|
46
|
-
# verify the required parameter 'system_id' is set
|
47
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling WorkflowInstancesApi.get_system_workflow_instances"
|
49
|
-
end
|
50
|
-
if @api_client.config.client_side_validation && opts[:'status'] && !['active', 'inactive', 'all'].include?(opts[:'status'])
|
51
|
-
fail ArgumentError, 'invalid value for "status", must be one of active, inactive, all'
|
52
|
-
end
|
53
|
-
# resource path
|
54
|
-
local_var_path = '/api/systems/{systemId}/workflow-instances'.sub('{' + 'systemId' + '}', system_id.to_s)
|
55
|
-
|
56
|
-
# query parameters
|
57
|
-
query_params = opts[:query_params] || {}
|
58
|
-
query_params[:'includeComments'] = opts[:'include_comments'] if !opts[:'include_comments'].nil?
|
59
|
-
query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
|
60
|
-
query_params[:'sinceDate'] = opts[:'since_date'] if !opts[:'since_date'].nil?
|
61
|
-
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
62
|
-
|
63
|
-
# header parameters
|
64
|
-
header_params = opts[:header_params] || {}
|
65
|
-
# HTTP header 'Accept' (if needed)
|
66
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
67
|
-
|
68
|
-
# form parameters
|
69
|
-
form_params = opts[:form_params] || {}
|
70
|
-
|
71
|
-
# http body (model)
|
72
|
-
post_body = opts[:body]
|
73
|
-
|
74
|
-
return_type = opts[:return_type] || 'WorkflowInstancesResponseGet'
|
75
|
-
|
76
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
77
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
78
|
-
:header_params => header_params,
|
79
|
-
:query_params => query_params,
|
80
|
-
:form_params => form_params,
|
81
|
-
:body => post_body,
|
82
|
-
:auth_names => auth_names,
|
83
|
-
:return_type => return_type)
|
84
|
-
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: WorkflowInstancesApi#get_system_workflow_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
# Get workflow instance by ID in a system
|
91
|
-
# View detailed information on all active and historical workflows for a system `systemId` and `workflowInstanceId`.
|
92
|
-
# @param system_id **System Id**: The unique system record identifier.
|
93
|
-
# @param workflow_instance_id **Workflow Instance Id**: The unique milestone record identifier.
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [WorkflowInstancesResponseGet]
|
96
|
-
def get_system_workflow_instances_by_workflow_instance_id(system_id, workflow_instance_id, opts = {})
|
97
|
-
data, _status_code, _headers = get_system_workflow_instances_by_workflow_instance_id_with_http_info(system_id, workflow_instance_id, opts)
|
98
|
-
data
|
99
|
-
end
|
100
|
-
|
101
|
-
# Get workflow instance by ID in a system
|
102
|
-
# View detailed information on all active and historical workflows for a system `systemId` and `workflowInstanceId`.
|
103
|
-
# @param system_id **System Id**: The unique system record identifier.
|
104
|
-
# @param workflow_instance_id **Workflow Instance Id**: The unique milestone record identifier.
|
105
|
-
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [Array<(WorkflowInstancesResponseGet, Integer, Hash)>] WorkflowInstancesResponseGet data, response status code and response headers
|
107
|
-
def get_system_workflow_instances_by_workflow_instance_id_with_http_info(system_id, workflow_instance_id, opts = {})
|
108
|
-
if @api_client.config.debugging
|
109
|
-
@api_client.config.logger.debug 'Calling API: WorkflowInstancesApi.get_system_workflow_instances_by_workflow_instance_id ...'
|
110
|
-
end
|
111
|
-
# verify the required parameter 'system_id' is set
|
112
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
113
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling WorkflowInstancesApi.get_system_workflow_instances_by_workflow_instance_id"
|
114
|
-
end
|
115
|
-
# verify the required parameter 'workflow_instance_id' is set
|
116
|
-
if @api_client.config.client_side_validation && workflow_instance_id.nil?
|
117
|
-
fail ArgumentError, "Missing the required parameter 'workflow_instance_id' when calling WorkflowInstancesApi.get_system_workflow_instances_by_workflow_instance_id"
|
118
|
-
end
|
119
|
-
# resource path
|
120
|
-
local_var_path = '/api/systems/{systemId}/workflow-instances/{workflowInstanceId}'.sub('{' + 'systemId' + '}', system_id.to_s).sub('{' + 'workflowInstanceId' + '}', workflow_instance_id.to_s)
|
121
|
-
|
122
|
-
# query parameters
|
123
|
-
query_params = opts[:query_params] || {}
|
124
|
-
|
125
|
-
# header parameters
|
126
|
-
header_params = opts[:header_params] || {}
|
127
|
-
# HTTP header 'Accept' (if needed)
|
128
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
-
|
130
|
-
# form parameters
|
131
|
-
form_params = opts[:form_params] || {}
|
132
|
-
|
133
|
-
# http body (model)
|
134
|
-
post_body = opts[:body]
|
135
|
-
|
136
|
-
return_type = opts[:return_type] || 'WorkflowInstancesResponseGet'
|
137
|
-
|
138
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
139
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
140
|
-
:header_params => header_params,
|
141
|
-
:query_params => query_params,
|
142
|
-
:form_params => form_params,
|
143
|
-
:body => post_body,
|
144
|
-
:auth_names => auth_names,
|
145
|
-
:return_type => return_type)
|
146
|
-
|
147
|
-
if @api_client.config.debugging
|
148
|
-
@api_client.config.logger.debug "API called: WorkflowInstancesApi#get_system_workflow_instances_by_workflow_instance_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
|
-
end
|
150
|
-
return data, status_code, headers
|
151
|
-
end
|
152
|
-
end
|
153
|
-
end
|
@@ -1,389 +0,0 @@
|
|
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
|
-
require 'date'
|
13
|
-
require 'json'
|
14
|
-
require 'logger'
|
15
|
-
require 'tempfile'
|
16
|
-
require 'typhoeus'
|
17
|
-
require 'uri'
|
18
|
-
|
19
|
-
module SwaggerClient
|
20
|
-
class ApiClient
|
21
|
-
# The Configuration object holding settings to be used in the API client.
|
22
|
-
attr_accessor :config
|
23
|
-
|
24
|
-
# Defines the headers to be used in HTTP requests of all API calls by default.
|
25
|
-
#
|
26
|
-
# @return [Hash]
|
27
|
-
attr_accessor :default_headers
|
28
|
-
|
29
|
-
# Initializes the ApiClient
|
30
|
-
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
31
|
-
def initialize(config = Configuration.default)
|
32
|
-
@config = config
|
33
|
-
@user_agent = "Swagger-Codegen/#{VERSION}/ruby"
|
34
|
-
@default_headers = {
|
35
|
-
'Content-Type' => 'application/json',
|
36
|
-
'User-Agent' => @user_agent
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
def self.default
|
41
|
-
@@default ||= ApiClient.new
|
42
|
-
end
|
43
|
-
|
44
|
-
# Call an API with given options.
|
45
|
-
#
|
46
|
-
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
47
|
-
# the data deserialized from response body (could be nil), response status code and response headers.
|
48
|
-
def call_api(http_method, path, opts = {})
|
49
|
-
request = build_request(http_method, path, opts)
|
50
|
-
response = request.run
|
51
|
-
|
52
|
-
if @config.debugging
|
53
|
-
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
54
|
-
end
|
55
|
-
|
56
|
-
unless response.success?
|
57
|
-
if response.timed_out?
|
58
|
-
fail ApiError.new('Connection timed out')
|
59
|
-
elsif response.code == 0
|
60
|
-
# Errors from libcurl will be made visible here
|
61
|
-
fail ApiError.new(:code => 0,
|
62
|
-
:message => response.return_message)
|
63
|
-
else
|
64
|
-
fail ApiError.new(:code => response.code,
|
65
|
-
:response_headers => response.headers,
|
66
|
-
:response_body => response.body),
|
67
|
-
response.status_message
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
if opts[:return_type]
|
72
|
-
data = deserialize(response, opts[:return_type])
|
73
|
-
else
|
74
|
-
data = nil
|
75
|
-
end
|
76
|
-
return data, response.code, response.headers
|
77
|
-
end
|
78
|
-
|
79
|
-
# Builds the HTTP request
|
80
|
-
#
|
81
|
-
# @param [String] http_method HTTP method/verb (e.g. POST)
|
82
|
-
# @param [String] path URL path (e.g. /account/new)
|
83
|
-
# @option opts [Hash] :header_params Header parameters
|
84
|
-
# @option opts [Hash] :query_params Query parameters
|
85
|
-
# @option opts [Hash] :form_params Query parameters
|
86
|
-
# @option opts [Object] :body HTTP body (JSON/XML)
|
87
|
-
# @return [Typhoeus::Request] A Typhoeus Request
|
88
|
-
def build_request(http_method, path, opts = {})
|
89
|
-
url = build_request_url(path)
|
90
|
-
http_method = http_method.to_sym.downcase
|
91
|
-
|
92
|
-
header_params = @default_headers.merge(opts[:header_params] || {})
|
93
|
-
query_params = opts[:query_params] || {}
|
94
|
-
form_params = opts[:form_params] || {}
|
95
|
-
|
96
|
-
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
97
|
-
|
98
|
-
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
99
|
-
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|
100
|
-
|
101
|
-
req_opts = {
|
102
|
-
:method => http_method,
|
103
|
-
:headers => header_params,
|
104
|
-
:params => query_params,
|
105
|
-
:params_encoding => @config.params_encoding,
|
106
|
-
:timeout => @config.timeout,
|
107
|
-
:ssl_verifypeer => @config.verify_ssl,
|
108
|
-
:ssl_verifyhost => _verify_ssl_host,
|
109
|
-
:sslcert => @config.cert_file,
|
110
|
-
:sslkey => @config.key_file,
|
111
|
-
:verbose => @config.debugging,
|
112
|
-
:keypasswd => @config.key_password
|
113
|
-
}
|
114
|
-
|
115
|
-
# set custom cert, if provided
|
116
|
-
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
|
117
|
-
|
118
|
-
if [:post, :patch, :put, :delete].include?(http_method)
|
119
|
-
req_body = build_request_body(header_params, form_params, opts[:body])
|
120
|
-
req_opts.update :body => req_body
|
121
|
-
if @config.debugging
|
122
|
-
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
request = Typhoeus::Request.new(url, req_opts)
|
127
|
-
download_file(request) if opts[:return_type] == 'File'
|
128
|
-
request
|
129
|
-
end
|
130
|
-
|
131
|
-
# Builds the HTTP request body
|
132
|
-
#
|
133
|
-
# @param [Hash] header_params Header parameters
|
134
|
-
# @param [Hash] form_params Query parameters
|
135
|
-
# @param [Object] body HTTP body (JSON/XML)
|
136
|
-
# @return [String] HTTP body data in the form of string
|
137
|
-
def build_request_body(header_params, form_params, body)
|
138
|
-
# http form
|
139
|
-
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
140
|
-
header_params['Content-Type'] == 'multipart/form-data'
|
141
|
-
data = {}
|
142
|
-
form_params.each do |key, value|
|
143
|
-
case value
|
144
|
-
when ::File, ::Array, nil
|
145
|
-
# let typhoeus handle File, Array and nil parameters
|
146
|
-
data[key] = value
|
147
|
-
else
|
148
|
-
data[key] = value.to_s
|
149
|
-
end
|
150
|
-
end
|
151
|
-
elsif body
|
152
|
-
data = body.is_a?(String) ? body : body.to_json
|
153
|
-
else
|
154
|
-
data = nil
|
155
|
-
end
|
156
|
-
data
|
157
|
-
end
|
158
|
-
|
159
|
-
# Check if the given MIME is a JSON MIME.
|
160
|
-
# JSON MIME examples:
|
161
|
-
# application/json
|
162
|
-
# application/json; charset=UTF8
|
163
|
-
# APPLICATION/JSON
|
164
|
-
# */*
|
165
|
-
# @param [String] mime MIME
|
166
|
-
# @return [Boolean] True if the MIME is application/json
|
167
|
-
def json_mime?(mime)
|
168
|
-
(mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
169
|
-
end
|
170
|
-
|
171
|
-
# Deserialize the response to the given return type.
|
172
|
-
#
|
173
|
-
# @param [Response] response HTTP response
|
174
|
-
# @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
|
175
|
-
def deserialize(response, return_type)
|
176
|
-
body = response.body
|
177
|
-
|
178
|
-
# handle file downloading - return the File instance processed in request callbacks
|
179
|
-
# note that response body is empty when the file is written in chunks in request on_body callback
|
180
|
-
return @tempfile if return_type == 'File'
|
181
|
-
|
182
|
-
return nil if body.nil? || body.empty?
|
183
|
-
|
184
|
-
# return response body directly for String return type
|
185
|
-
return body if return_type == 'String'
|
186
|
-
|
187
|
-
# ensuring a default content type
|
188
|
-
content_type = response.headers['Content-Type'] || 'application/json'
|
189
|
-
|
190
|
-
fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
|
191
|
-
|
192
|
-
begin
|
193
|
-
data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
|
194
|
-
rescue JSON::ParserError => e
|
195
|
-
if %w(String Date DateTime).include?(return_type)
|
196
|
-
data = body
|
197
|
-
else
|
198
|
-
raise e
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
convert_to_type data, return_type
|
203
|
-
end
|
204
|
-
|
205
|
-
# Convert data to the given return type.
|
206
|
-
# @param [Object] data Data to be converted
|
207
|
-
# @param [String] return_type Return type
|
208
|
-
# @return [Mixed] Data in a particular type
|
209
|
-
def convert_to_type(data, return_type)
|
210
|
-
return nil if data.nil?
|
211
|
-
case return_type
|
212
|
-
when 'String'
|
213
|
-
data.to_s
|
214
|
-
when 'Integer'
|
215
|
-
data.to_i
|
216
|
-
when 'Float'
|
217
|
-
data.to_f
|
218
|
-
when 'Boolean'
|
219
|
-
data == true
|
220
|
-
when 'DateTime'
|
221
|
-
# parse date time (expecting ISO 8601 format)
|
222
|
-
DateTime.parse data
|
223
|
-
when 'Date'
|
224
|
-
# parse date time (expecting ISO 8601 format)
|
225
|
-
Date.parse data
|
226
|
-
when 'Object'
|
227
|
-
# generic object (usually a Hash), return directly
|
228
|
-
data
|
229
|
-
when /\AArray<(.+)>\z/
|
230
|
-
# e.g. Array<Pet>
|
231
|
-
sub_type = $1
|
232
|
-
data.map { |item| convert_to_type(item, sub_type) }
|
233
|
-
when /\AHash\<String, (.+)\>\z/
|
234
|
-
# e.g. Hash<String, Integer>
|
235
|
-
sub_type = $1
|
236
|
-
{}.tap do |hash|
|
237
|
-
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
238
|
-
end
|
239
|
-
else
|
240
|
-
# models, e.g. Pet
|
241
|
-
SwaggerClient.const_get(return_type).build_from_hash(data)
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
|
-
# Save response body into a file in (the defined) temporary folder, using the filename
|
246
|
-
# from the "Content-Disposition" header if provided, otherwise a random filename.
|
247
|
-
# The response body is written to the file in chunks in order to handle files which
|
248
|
-
# size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
|
249
|
-
# process can use.
|
250
|
-
#
|
251
|
-
# @see Configuration#temp_folder_path
|
252
|
-
def download_file(request)
|
253
|
-
tempfile = nil
|
254
|
-
encoding = nil
|
255
|
-
request.on_headers do |response|
|
256
|
-
content_disposition = response.headers['Content-Disposition']
|
257
|
-
if content_disposition && content_disposition =~ /filename=/i
|
258
|
-
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
259
|
-
prefix = sanitize_filename(filename)
|
260
|
-
else
|
261
|
-
prefix = 'download-'
|
262
|
-
end
|
263
|
-
prefix = prefix + '-' unless prefix.end_with?('-')
|
264
|
-
encoding = response.body.encoding
|
265
|
-
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
266
|
-
@tempfile = tempfile
|
267
|
-
end
|
268
|
-
request.on_body do |chunk|
|
269
|
-
chunk.force_encoding(encoding)
|
270
|
-
tempfile.write(chunk)
|
271
|
-
end
|
272
|
-
request.on_complete do |response|
|
273
|
-
if tempfile
|
274
|
-
tempfile.close
|
275
|
-
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
276
|
-
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
277
|
-
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
278
|
-
"explicitly with `tempfile.delete`"
|
279
|
-
end
|
280
|
-
end
|
281
|
-
end
|
282
|
-
|
283
|
-
# Sanitize filename by removing path.
|
284
|
-
# e.g. ../../sun.gif becomes sun.gif
|
285
|
-
#
|
286
|
-
# @param [String] filename the filename to be sanitized
|
287
|
-
# @return [String] the sanitized filename
|
288
|
-
def sanitize_filename(filename)
|
289
|
-
filename.gsub(/.*[\/\\]/, '')
|
290
|
-
end
|
291
|
-
|
292
|
-
def build_request_url(path)
|
293
|
-
# Add leading and trailing slashes to path
|
294
|
-
path = "/#{path}".gsub(/\/+/, '/')
|
295
|
-
@config.base_url + path
|
296
|
-
end
|
297
|
-
|
298
|
-
# Update hearder and query params based on authentication settings.
|
299
|
-
#
|
300
|
-
# @param [Hash] header_params Header parameters
|
301
|
-
# @param [Hash] query_params Query parameters
|
302
|
-
# @param [String] auth_names Authentication scheme name
|
303
|
-
def update_params_for_auth!(header_params, query_params, auth_names)
|
304
|
-
Array(auth_names).each do |auth_name|
|
305
|
-
auth_setting = @config.auth_settings[auth_name]
|
306
|
-
next unless auth_setting
|
307
|
-
case auth_setting[:in]
|
308
|
-
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
309
|
-
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
310
|
-
else fail ArgumentError, 'Authentication token must be in `query` of `header`'
|
311
|
-
end
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
# Sets user agent in HTTP header
|
316
|
-
#
|
317
|
-
# @param [String] user_agent User agent (e.g. swagger-codegen/ruby/1.0.0)
|
318
|
-
def user_agent=(user_agent)
|
319
|
-
@user_agent = user_agent
|
320
|
-
@default_headers['User-Agent'] = @user_agent
|
321
|
-
end
|
322
|
-
|
323
|
-
# Return Accept header based on an array of accepts provided.
|
324
|
-
# @param [Array] accepts array for Accept
|
325
|
-
# @return [String] the Accept header (e.g. application/json)
|
326
|
-
def select_header_accept(accepts)
|
327
|
-
return nil if accepts.nil? || accepts.empty?
|
328
|
-
# use JSON when present, otherwise use all of the provided
|
329
|
-
json_accept = accepts.find { |s| json_mime?(s) }
|
330
|
-
json_accept || accepts.join(',')
|
331
|
-
end
|
332
|
-
|
333
|
-
# Return Content-Type header based on an array of content types provided.
|
334
|
-
# @param [Array] content_types array for Content-Type
|
335
|
-
# @return [String] the Content-Type header (e.g. application/json)
|
336
|
-
def select_header_content_type(content_types)
|
337
|
-
# use application/json by default
|
338
|
-
return 'application/json' if content_types.nil? || content_types.empty?
|
339
|
-
# use JSON when present, otherwise use the first one
|
340
|
-
json_content_type = content_types.find { |s| json_mime?(s) }
|
341
|
-
json_content_type || content_types.first
|
342
|
-
end
|
343
|
-
|
344
|
-
# Convert object (array, hash, object, etc) to JSON string.
|
345
|
-
# @param [Object] model object to be converted into JSON string
|
346
|
-
# @return [String] JSON string representation of the object
|
347
|
-
def object_to_http_body(model)
|
348
|
-
return model if model.nil? || model.is_a?(String)
|
349
|
-
local_body = nil
|
350
|
-
if model.is_a?(Array)
|
351
|
-
local_body = model.map { |m| object_to_hash(m) }
|
352
|
-
else
|
353
|
-
local_body = object_to_hash(model)
|
354
|
-
end
|
355
|
-
local_body.to_json
|
356
|
-
end
|
357
|
-
|
358
|
-
# Convert object(non-array) to hash.
|
359
|
-
# @param [Object] obj object to be converted into JSON string
|
360
|
-
# @return [String] JSON string representation of the object
|
361
|
-
def object_to_hash(obj)
|
362
|
-
if obj.respond_to?(:to_hash)
|
363
|
-
obj.to_hash
|
364
|
-
else
|
365
|
-
obj
|
366
|
-
end
|
367
|
-
end
|
368
|
-
|
369
|
-
# Build parameter value according to the given collection format.
|
370
|
-
# @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
|
371
|
-
def build_collection_param(param, collection_format)
|
372
|
-
case collection_format
|
373
|
-
when :csv
|
374
|
-
param.join(',')
|
375
|
-
when :ssv
|
376
|
-
param.join(' ')
|
377
|
-
when :tsv
|
378
|
-
param.join("\t")
|
379
|
-
when :pipes
|
380
|
-
param.join('|')
|
381
|
-
when :multi
|
382
|
-
# return the array directly as typhoeus will handle it as expected
|
383
|
-
param
|
384
|
-
else
|
385
|
-
fail "unknown collection format: #{collection_format.inspect}"
|
386
|
-
end
|
387
|
-
end
|
388
|
-
end
|
389
|
-
end
|
@@ -1,57 +0,0 @@
|
|
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 ApiError < StandardError
|
14
|
-
attr_reader :code, :response_headers, :response_body
|
15
|
-
|
16
|
-
# Usage examples:
|
17
|
-
# ApiError.new
|
18
|
-
# ApiError.new("message")
|
19
|
-
# ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
|
20
|
-
# ApiError.new(:code => 404, :message => "Not Found")
|
21
|
-
def initialize(arg = nil)
|
22
|
-
if arg.is_a? Hash
|
23
|
-
if arg.key?(:message) || arg.key?('message')
|
24
|
-
super(arg[:message] || arg['message'])
|
25
|
-
else
|
26
|
-
super arg
|
27
|
-
end
|
28
|
-
|
29
|
-
arg.each do |k, v|
|
30
|
-
instance_variable_set "@#{k}", v
|
31
|
-
end
|
32
|
-
else
|
33
|
-
super arg
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Override to_s to display a friendly error message
|
38
|
-
def to_s
|
39
|
-
message
|
40
|
-
end
|
41
|
-
|
42
|
-
def message
|
43
|
-
if @message.nil?
|
44
|
-
msg = "Error message: the server returns an error"
|
45
|
-
else
|
46
|
-
msg = @message
|
47
|
-
end
|
48
|
-
|
49
|
-
msg += "\nHTTP status code: #{code}" if code
|
50
|
-
msg += "\nResponse headers: #{response_headers}" if response_headers
|
51
|
-
msg += "\nResponse body: #{response_body}" if response_body
|
52
|
-
|
53
|
-
msg
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
57
|
-
end
|