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
data/lib/emasser/post.rb
CHANGED
@@ -61,7 +61,7 @@ module Emasser
|
|
61
61
|
option :complianceStatus, type: :string, required: true, enum: ['Compliant', 'Non-Compliant', 'Not Applicable']
|
62
62
|
|
63
63
|
def add
|
64
|
-
body =
|
64
|
+
body = EmassClient::TestResultsRequestPostBody.new
|
65
65
|
body.cci = options[:cci]
|
66
66
|
body.tested_by = options[:testedBy]
|
67
67
|
body.test_date = options[:testDate]
|
@@ -71,10 +71,10 @@ module Emasser
|
|
71
71
|
body_array = Array.new(1, body)
|
72
72
|
|
73
73
|
begin
|
74
|
-
result =
|
74
|
+
result = EmassClient::TestResultsApi
|
75
75
|
.new.add_test_results_by_system_id(body_array, options[:systemId])
|
76
76
|
puts to_output_hash(result).green
|
77
|
-
rescue
|
77
|
+
rescue EmassClient::ApiError => e
|
78
78
|
puts 'Exception when calling TestResultsApi->add_test_results_by_system_id'.red
|
79
79
|
puts to_output_hash(e)
|
80
80
|
end
|
@@ -153,7 +153,7 @@ module Emasser
|
|
153
153
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
154
154
|
def add
|
155
155
|
# Required fields
|
156
|
-
body =
|
156
|
+
body = EmassClient::PoamRequiredPost.new
|
157
157
|
body.status = options[:status]
|
158
158
|
body.vulnerability_description = options[:vulnerabilityDescription]
|
159
159
|
body.source_ident_vuln = options[:sourceIdentVuln]
|
@@ -186,9 +186,9 @@ module Emasser
|
|
186
186
|
body_array = Array.new(1, body)
|
187
187
|
|
188
188
|
begin
|
189
|
-
result =
|
189
|
+
result = EmassClient::POAMApi.new.add_poam_by_system_id(body_array, options[:systemId])
|
190
190
|
puts to_output_hash(result).green
|
191
|
-
rescue
|
191
|
+
rescue EmassClient::ApiError => e
|
192
192
|
puts 'Exception when calling POAMApi->add_poam_by_system_id'.red
|
193
193
|
puts to_output_hash(e)
|
194
194
|
end
|
@@ -230,7 +230,7 @@ module Emasser
|
|
230
230
|
else
|
231
231
|
body.scheduled_completion_date = options[:scheduledCompletionDate]
|
232
232
|
|
233
|
-
milestone =
|
233
|
+
milestone = EmassClient::MilestonesRequiredPost.new
|
234
234
|
milestone.description = options[:milestone]["description"]
|
235
235
|
milestone.scheduled_completion_date = options[:milestone]["scheduledCompletionDate"]
|
236
236
|
milestone_array = Array.new(1, milestone)
|
@@ -249,7 +249,7 @@ module Emasser
|
|
249
249
|
body.comments = options[:comments]
|
250
250
|
body.completion_date = options[:completionDate]
|
251
251
|
|
252
|
-
milestone =
|
252
|
+
milestone = EmassClient::MilestonesRequiredPost.new
|
253
253
|
milestone.description = options[:milestone]["description"]
|
254
254
|
milestone.scheduled_completion_date = options[:milestone]["scheduledCompletionDate"]
|
255
255
|
milestone_array = Array.new(1, milestone)
|
@@ -319,17 +319,17 @@ module Emasser
|
|
319
319
|
type: :numeric, required: false, desc: 'The scheduled completion date - Unix time format'
|
320
320
|
|
321
321
|
def add
|
322
|
-
body =
|
322
|
+
body = EmassClient::MilestonesRequestPostBody.new
|
323
323
|
body.poam_id = options[:poamId]
|
324
324
|
body.description = options[:description]
|
325
325
|
body.scheduled_completion_date = options[:scheduledCompletionDate]
|
326
326
|
body_array = Array.new(1, body)
|
327
327
|
|
328
328
|
begin
|
329
|
-
result =
|
329
|
+
result = EmassClient::MilestonesApi
|
330
330
|
.new.add_milestone_by_system_id_and_poam_id(body_array, options[:systemId], options[:poamId])
|
331
331
|
puts to_output_hash(result).green
|
332
|
-
rescue
|
332
|
+
rescue EmassClient::ApiError => e
|
333
333
|
puts 'Exception when calling MilestonesApi->add_milestone_by_system_id_and_poam_id'.red
|
334
334
|
puts to_output_hash(e)
|
335
335
|
end
|
@@ -393,12 +393,12 @@ module Emasser
|
|
393
393
|
end
|
394
394
|
|
395
395
|
begin
|
396
|
-
result =
|
396
|
+
result = EmassClient::ArtifactsApi
|
397
397
|
.new
|
398
398
|
.add_artifacts_by_system_id(options[:isTemplate], options[:type],
|
399
399
|
options[:category], tempfile, options[:systemId], opts)
|
400
400
|
puts to_output_hash(result).green
|
401
|
-
rescue
|
401
|
+
rescue EmassClient::ApiError => e
|
402
402
|
puts 'Exception when calling ArtifactsApi->add_artifacts_by_system_id'.red
|
403
403
|
puts to_output_hash(e)
|
404
404
|
ensure
|
@@ -431,7 +431,7 @@ module Emasser
|
|
431
431
|
option :comments, type: :string, required: false, desc: 'The control approval chain comments'
|
432
432
|
|
433
433
|
def add
|
434
|
-
body =
|
434
|
+
body = EmassClient::CacRequestPostBody.new
|
435
435
|
body.control_acronym = options[:controlAcronym]
|
436
436
|
body.comments = options[:comments]
|
437
437
|
|
@@ -439,9 +439,9 @@ module Emasser
|
|
439
439
|
|
440
440
|
begin
|
441
441
|
# Get location of one or many controls in CAC
|
442
|
-
result =
|
442
|
+
result = EmassClient::CacApi.new.add_s_ystem_c_ac(body_array, options[:systemId])
|
443
443
|
puts to_output_hash(result).green
|
444
|
-
rescue
|
444
|
+
rescue EmassClient::ApiError => e
|
445
445
|
puts 'Exception when calling ApprovalChainApi->add_s_ystem_c_ac'.red
|
446
446
|
puts to_output_hash(e)
|
447
447
|
end
|
@@ -470,16 +470,16 @@ module Emasser
|
|
470
470
|
desc: 'Comments submitted upon initiation of the indicated workflow'
|
471
471
|
|
472
472
|
def add
|
473
|
-
body =
|
473
|
+
body = EmassClient::PacRequestBodyPost.new
|
474
474
|
body.name = options[:name]
|
475
475
|
body.type = options[:type]
|
476
476
|
body.comments = options[:comments]
|
477
477
|
|
478
478
|
body_array = Array.new(1, body)
|
479
479
|
|
480
|
-
result =
|
480
|
+
result = EmassClient::PacApi.new.add_s_ystem_p_ac(body_array, options[:systemId])
|
481
481
|
puts to_output_hash(result).green
|
482
|
-
rescue
|
482
|
+
rescue EmassClient::ApiError => e
|
483
483
|
puts 'Exception when calling ApprovalChainApi->add_s_ystem_c_ac'.red
|
484
484
|
puts to_output_hash(e)
|
485
485
|
end
|
@@ -513,11 +513,11 @@ module Emasser
|
|
513
513
|
option :count, type: :numeric, required: false, desc: 'Number of instances observed for a specified finding'
|
514
514
|
|
515
515
|
def add
|
516
|
-
application =
|
516
|
+
application = EmassClient::StaticCodeRequiredPostApplication.new
|
517
517
|
application.application_name = options[:applicationName]
|
518
518
|
application.version = options[:version]
|
519
519
|
|
520
|
-
application_findings =
|
520
|
+
application_findings = EmassClient::StaticCodeApplication.new
|
521
521
|
application_findings.code_check_name = options[:codeCheckName]
|
522
522
|
application_findings.scan_date = options[:scanDate]
|
523
523
|
application_findings.cwe_id = options[:cweId]
|
@@ -525,17 +525,17 @@ module Emasser
|
|
525
525
|
application_findings.raw_severity = options[:rawSeverity] if options[:rawSeverity]
|
526
526
|
application_findings.count = options[:count] if options[:count]
|
527
527
|
|
528
|
-
body =
|
528
|
+
body = EmassClient::StaticCodeRequiredPost.new
|
529
529
|
body.application = application
|
530
530
|
body.application_findings = application_findings
|
531
531
|
|
532
532
|
body_array = Array.new(1, body)
|
533
533
|
|
534
534
|
begin
|
535
|
-
result =
|
535
|
+
result = EmassClient::StaticCodeScansApi
|
536
536
|
.new.add_static_code_scans_by_system_id(body_array, options[:systemId])
|
537
537
|
puts to_output_hash(result).green
|
538
|
-
rescue
|
538
|
+
rescue EmassClient::ApiError => e
|
539
539
|
puts 'Exception when calling StaticCodeScansApi->add_static_code_scans_by_system_id'.red
|
540
540
|
puts to_output_hash(e)
|
541
541
|
end
|
@@ -560,24 +560,24 @@ module Emasser
|
|
560
560
|
exit
|
561
561
|
end
|
562
562
|
|
563
|
-
application =
|
563
|
+
application = EmassClient::StaticCodeRequiredPostApplication.new
|
564
564
|
application.application_name = options[:applicationName]
|
565
565
|
application.version = options[:version]
|
566
566
|
|
567
|
-
application_findings =
|
567
|
+
application_findings = EmassClient::StaticCodeApplication.new
|
568
568
|
application_findings.clear_findings = options[:clearFindings]
|
569
569
|
|
570
|
-
body =
|
570
|
+
body = EmassClient::StaticCodeRequiredPost.new
|
571
571
|
body.application = application
|
572
572
|
body.application_findings = application_findings
|
573
573
|
|
574
574
|
body_array = Array.new(1, body)
|
575
575
|
|
576
576
|
begin
|
577
|
-
result =
|
577
|
+
result = EmassClient::StaticCodeScansApi
|
578
578
|
.new.add_static_code_scans_by_system_id(body_array, options[:systemId])
|
579
579
|
puts to_output_hash(result).green
|
580
|
-
rescue
|
580
|
+
rescue EmassClient::ApiError => e
|
581
581
|
puts 'Exception when calling StaticCodeScansApi->add_static_code_scans_by_system_id'.red
|
582
582
|
puts to_output_hash(e)
|
583
583
|
end
|
data/lib/emasser/put.rb
CHANGED
@@ -129,7 +129,7 @@ module Emasser
|
|
129
129
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
130
130
|
def update
|
131
131
|
# Required fields
|
132
|
-
body =
|
132
|
+
body = EmassClient::ControlsRequestPutBody.new
|
133
133
|
body.acronym = options[:acronym]
|
134
134
|
body.responsible_entities = options[:responsibleEntities]
|
135
135
|
body.control_designation = options[:controlDesignation]
|
@@ -151,9 +151,9 @@ module Emasser
|
|
151
151
|
body_array = Array.new(1, body)
|
152
152
|
|
153
153
|
begin
|
154
|
-
result =
|
154
|
+
result = EmassClient::ControlsApi.new.update_control_by_system_id(body_array, options[:systemId])
|
155
155
|
puts to_output_hash(result).green
|
156
|
-
rescue
|
156
|
+
rescue EmassClient::ApiError => e
|
157
157
|
puts 'Exception when calling ControlsApi->update_control_by_system_id'.red
|
158
158
|
puts to_output_hash(e)
|
159
159
|
end
|
@@ -312,7 +312,7 @@ module Emasser
|
|
312
312
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
313
313
|
def update
|
314
314
|
# Required fields
|
315
|
-
body =
|
315
|
+
body = EmassClient::PoamRequiredPut.new
|
316
316
|
body.poam_id = options[:poamId]
|
317
317
|
body.status = options[:status]
|
318
318
|
body.vulnerability_description = options[:vulnerabilityDescription]
|
@@ -345,9 +345,9 @@ module Emasser
|
|
345
345
|
body_array = Array.new(1, body)
|
346
346
|
|
347
347
|
begin
|
348
|
-
result =
|
348
|
+
result = EmassClient::POAMApi.new.update_poam_by_system_id(body_array, options[:systemId])
|
349
349
|
puts to_output_hash(result).green
|
350
|
-
rescue
|
350
|
+
rescue EmassClient::ApiError => e
|
351
351
|
puts 'Exception when calling POAMApi->update_poam_by_system_id'.red
|
352
352
|
puts to_output_hash(e)
|
353
353
|
end
|
@@ -389,7 +389,7 @@ module Emasser
|
|
389
389
|
else
|
390
390
|
body.scheduled_completion_date = options[:scheduledCompletionDate]
|
391
391
|
|
392
|
-
milestone =
|
392
|
+
milestone = EmassClient::MilestonesRequiredPut.new
|
393
393
|
milestone.milestone_id = options[:milestone]["milestoneId"] if options[:milestone]["milestoneId"]
|
394
394
|
milestone.description = options[:milestone]["description"]
|
395
395
|
milestone.scheduled_completion_date = options[:milestone]["scheduledCompletionDate"]
|
@@ -409,7 +409,7 @@ module Emasser
|
|
409
409
|
body.comments = options[:comments]
|
410
410
|
body.completion_date = options[:completionDate]
|
411
411
|
|
412
|
-
milestone =
|
412
|
+
milestone = EmassClient::MilestonesRequiredPut.new
|
413
413
|
milestone.milestone_id = options[:milestone]["milestoneId"] if options[:milestone]["milestoneId"]
|
414
414
|
milestone.description = options[:milestone]["description"]
|
415
415
|
milestone.scheduled_completion_date = options[:milestone]["scheduledCompletionDate"]
|
@@ -482,7 +482,7 @@ module Emasser
|
|
482
482
|
type: :numeric, required: false, desc: 'The scheduled completion date - Unix time format'
|
483
483
|
|
484
484
|
def update
|
485
|
-
body =
|
485
|
+
body = EmassClient::MilestonesRequestPutBody.new
|
486
486
|
body.milestone_id = options[:milestoneId]
|
487
487
|
body.description = options[:description]
|
488
488
|
body.scheduled_completion_date = options[:scheduledCompletionDate]
|
@@ -490,11 +490,11 @@ module Emasser
|
|
490
490
|
|
491
491
|
begin
|
492
492
|
# Get milestones in one or many poa&m items in a system
|
493
|
-
result =
|
493
|
+
result = EmassClient::POAMApi
|
494
494
|
.new
|
495
495
|
.update_milestone_by_system_id_and_poam_id(body_array, options[:systemId], options[:poamId])
|
496
496
|
puts to_output_hash(result).green
|
497
|
-
rescue
|
497
|
+
rescue EmassClient::ApiError => e
|
498
498
|
puts 'Exception when calling POAMApi->update_milestone_by_system_id_and_poam_id'.red
|
499
499
|
puts to_output_hash(e)
|
500
500
|
end
|
@@ -539,7 +539,7 @@ module Emasser
|
|
539
539
|
|
540
540
|
# rubocop:disable Metrics/CyclomaticComplexity
|
541
541
|
def update
|
542
|
-
body =
|
542
|
+
body = EmassClient::ArtifactsRequestPutBody.new
|
543
543
|
body.filename = options[:filename]
|
544
544
|
body.type = options[:type]
|
545
545
|
body.category = options[:category]
|
@@ -555,9 +555,9 @@ module Emasser
|
|
555
555
|
body_array = Array.new(1, body)
|
556
556
|
|
557
557
|
begin
|
558
|
-
result =
|
558
|
+
result = EmassClient::ArtifactsApi.new.update_artifact_by_system_id(body_array, options[:systemId])
|
559
559
|
puts to_output_hash(result).green
|
560
|
-
rescue
|
560
|
+
rescue EmassClient::ApiError => e
|
561
561
|
puts 'Exception when calling ArtifactsApi->update_artifact_by_system_id'.red
|
562
562
|
puts to_output_hash(e)
|
563
563
|
end
|
data/lib/emasser/version.rb
CHANGED