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,146 +0,0 @@
|
|
1
|
-
# SwaggerClient::WorkflowInstancesApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:4010*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**get_system_workflow_instances**](WorkflowInstancesApi.md#get_system_workflow_instances) | **GET** /api/systems/{systemId}/workflow-instances | Get workflow instances in a system
|
8
|
-
[**get_system_workflow_instances_by_workflow_instance_id**](WorkflowInstancesApi.md#get_system_workflow_instances_by_workflow_instance_id) | **GET** /api/systems/{systemId}/workflow-instances/{workflowInstanceId} | Get workflow instance by ID in a system
|
9
|
-
|
10
|
-
# **get_system_workflow_instances**
|
11
|
-
> WorkflowInstancesResponseGet get_system_workflow_instances(system_id, opts)
|
12
|
-
|
13
|
-
Get workflow instances in a system
|
14
|
-
|
15
|
-
View detailed information on all active and historical workflows for a system `systemId` and filtered by provided parameters.
|
16
|
-
|
17
|
-
### Example
|
18
|
-
```ruby
|
19
|
-
# load the gem
|
20
|
-
require 'swagger_client'
|
21
|
-
# setup authorization
|
22
|
-
SwaggerClient.configure do |config|
|
23
|
-
# Configure API key authorization: apikey
|
24
|
-
config.api_key['api-key'] = 'YOUR API KEY'
|
25
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
-
#config.api_key_prefix['api-key'] = 'Bearer'
|
27
|
-
|
28
|
-
# Configure API key authorization: mockType
|
29
|
-
config.api_key['Prefer'] = 'YOUR API KEY'
|
30
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
-
#config.api_key_prefix['Prefer'] = 'Bearer'
|
32
|
-
|
33
|
-
# Configure API key authorization: userid
|
34
|
-
config.api_key['user-uid'] = 'YOUR API KEY'
|
35
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
36
|
-
#config.api_key_prefix['user-uid'] = 'Bearer'
|
37
|
-
end
|
38
|
-
|
39
|
-
api_instance = SwaggerClient::WorkflowInstancesApi.new
|
40
|
-
system_id = 56 # Integer | **System Id**: The unique system record identifier.
|
41
|
-
opts = {
|
42
|
-
include_comments: true, # BOOLEAN | **Include Comments**: If no value is specified, the default returns true to not include transition comments. Note: Corresponds to the Comments textbox that is required at most workflow transitions. Does not include other text input fields such as Terms / Conditions for Authorization.
|
43
|
-
page_index: 0, # Integer | **Page Index**: If no value is specified, the default returns true to not include transition comments.
|
44
|
-
since_date: 'since_date_example', # String | **Date**: Filter on authorization/assessment date (Unix date format). Note: Filters off the lastEditedDate field. Note: The authorization/assessment decisions on completed workflows can be edited for up to 30 days after the initial decision is made.
|
45
|
-
status: 'all' # String | **Status**: Filter by status. If no value is specified, the default returns all to include both active and inactive workflows. Note: Any workflows at a current stage of Complete or Cancelled are inactive. Ongoing workflows currently at other stages are active.
|
46
|
-
}
|
47
|
-
|
48
|
-
begin
|
49
|
-
#Get workflow instances in a system
|
50
|
-
result = api_instance.get_system_workflow_instances(system_id, opts)
|
51
|
-
p result
|
52
|
-
rescue SwaggerClient::ApiError => e
|
53
|
-
puts "Exception when calling WorkflowInstancesApi->get_system_workflow_instances: #{e}"
|
54
|
-
end
|
55
|
-
```
|
56
|
-
|
57
|
-
### Parameters
|
58
|
-
|
59
|
-
Name | Type | Description | Notes
|
60
|
-
------------- | ------------- | ------------- | -------------
|
61
|
-
**system_id** | **Integer**| **System Id**: The unique system record identifier. |
|
62
|
-
**include_comments** | **BOOLEAN**| **Include Comments**: If no value is specified, the default returns true to not include transition comments. Note: Corresponds to the Comments textbox that is required at most workflow transitions. Does not include other text input fields such as Terms / Conditions for Authorization. | [optional] [default to true]
|
63
|
-
**page_index** | **Integer**| **Page Index**: If no value is specified, the default returns true to not include transition comments. | [optional] [default to 0]
|
64
|
-
**since_date** | **String**| **Date**: Filter on authorization/assessment date (Unix date format). Note: Filters off the lastEditedDate field. Note: The authorization/assessment decisions on completed workflows can be edited for up to 30 days after the initial decision is made. | [optional]
|
65
|
-
**status** | **String**| **Status**: Filter by status. If no value is specified, the default returns all to include both active and inactive workflows. Note: Any workflows at a current stage of Complete or Cancelled are inactive. Ongoing workflows currently at other stages are active. | [optional] [default to all]
|
66
|
-
|
67
|
-
### Return type
|
68
|
-
|
69
|
-
[**WorkflowInstancesResponseGet**](WorkflowInstancesResponseGet.md)
|
70
|
-
|
71
|
-
### Authorization
|
72
|
-
|
73
|
-
[apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid)
|
74
|
-
|
75
|
-
### HTTP request headers
|
76
|
-
|
77
|
-
- **Content-Type**: Not defined
|
78
|
-
- **Accept**: application/json
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
# **get_system_workflow_instances_by_workflow_instance_id**
|
83
|
-
> WorkflowInstancesResponseGet get_system_workflow_instances_by_workflow_instance_id(system_id, workflow_instance_id)
|
84
|
-
|
85
|
-
Get workflow instance by ID in a system
|
86
|
-
|
87
|
-
View detailed information on all active and historical workflows for a system `systemId` and `workflowInstanceId`.
|
88
|
-
|
89
|
-
### Example
|
90
|
-
```ruby
|
91
|
-
# load the gem
|
92
|
-
require 'swagger_client'
|
93
|
-
# setup authorization
|
94
|
-
SwaggerClient.configure do |config|
|
95
|
-
# Configure API key authorization: apikey
|
96
|
-
config.api_key['api-key'] = 'YOUR API KEY'
|
97
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
98
|
-
#config.api_key_prefix['api-key'] = 'Bearer'
|
99
|
-
|
100
|
-
# Configure API key authorization: mockType
|
101
|
-
config.api_key['Prefer'] = 'YOUR API KEY'
|
102
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
-
#config.api_key_prefix['Prefer'] = 'Bearer'
|
104
|
-
|
105
|
-
# Configure API key authorization: userid
|
106
|
-
config.api_key['user-uid'] = 'YOUR API KEY'
|
107
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
108
|
-
#config.api_key_prefix['user-uid'] = 'Bearer'
|
109
|
-
end
|
110
|
-
|
111
|
-
api_instance = SwaggerClient::WorkflowInstancesApi.new
|
112
|
-
system_id = 56 # Integer | **System Id**: The unique system record identifier.
|
113
|
-
workflow_instance_id = 56 # Integer | **Workflow Instance Id**: The unique milestone record identifier.
|
114
|
-
|
115
|
-
|
116
|
-
begin
|
117
|
-
#Get workflow instance by ID in a system
|
118
|
-
result = api_instance.get_system_workflow_instances_by_workflow_instance_id(system_id, workflow_instance_id)
|
119
|
-
p result
|
120
|
-
rescue SwaggerClient::ApiError => e
|
121
|
-
puts "Exception when calling WorkflowInstancesApi->get_system_workflow_instances_by_workflow_instance_id: #{e}"
|
122
|
-
end
|
123
|
-
```
|
124
|
-
|
125
|
-
### Parameters
|
126
|
-
|
127
|
-
Name | Type | Description | Notes
|
128
|
-
------------- | ------------- | ------------- | -------------
|
129
|
-
**system_id** | **Integer**| **System Id**: The unique system record identifier. |
|
130
|
-
**workflow_instance_id** | **Integer**| **Workflow Instance Id**: The unique milestone record identifier. |
|
131
|
-
|
132
|
-
### Return type
|
133
|
-
|
134
|
-
[**WorkflowInstancesResponseGet**](WorkflowInstancesResponseGet.md)
|
135
|
-
|
136
|
-
### Authorization
|
137
|
-
|
138
|
-
[apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid)
|
139
|
-
|
140
|
-
### HTTP request headers
|
141
|
-
|
142
|
-
- **Content-Type**: Not defined
|
143
|
-
- **Accept**: application/json
|
144
|
-
|
145
|
-
|
146
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# SwaggerClient::WorkflowInstancesGet
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**created_date** | **Integer** | [Read-Only] Date the workflow instance or the workflow transition was created. | [optional]
|
7
|
-
**current_stage** | **String** | [Read-Only] Name of the current stage. | [optional]
|
8
|
-
**last_edited_by** | **String** | [Read-Only] User that last acted on the workflow. | [optional]
|
9
|
-
**last_edited_date** | **Integer** | [Read-Only] Date the workflow was last acted on. | [optional]
|
10
|
-
**package_name** | **String** | [Read-Only] The package name. | [optional]
|
11
|
-
**system_name** | **String** | [Read-Only] The system name. | [optional]
|
12
|
-
**version** | **String** | [Read-Only] Version of the workflow definition. | [optional]
|
13
|
-
**workflow** | **String** | [Read-Only] The workflow type. | [optional]
|
14
|
-
**workflow_instance_id** | **Integer** | [Read-Only] Unique workflow instance identifier. | [optional]
|
15
|
-
**transitions** | [**Array<InstancesTransitions>**](InstancesTransitions.md) | | [optional]
|
16
|
-
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# SwaggerClient::WorkflowInstancesResponseGet
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**meta** | [**Model200**](Model200.md) | | [optional]
|
7
|
-
**data** | [**Array<WorkflowInstancesGet>**](WorkflowInstancesGet.md) | | [optional]
|
8
|
-
|
@@ -1,55 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
-
#
|
5
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
-
#
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
-
|
9
|
-
git_user_id=$1
|
10
|
-
git_repo_id=$2
|
11
|
-
release_note=$3
|
12
|
-
|
13
|
-
if [ "$git_user_id" = "" ]; then
|
14
|
-
git_user_id="GIT_USER_ID"
|
15
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
-
fi
|
17
|
-
|
18
|
-
if [ "$git_repo_id" = "" ]; then
|
19
|
-
git_repo_id="GIT_REPO_ID"
|
20
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
-
fi
|
22
|
-
|
23
|
-
if [ "$release_note" = "" ]; then
|
24
|
-
release_note="Minor update"
|
25
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
-
fi
|
27
|
-
|
28
|
-
# Initialize the local directory as a Git repository
|
29
|
-
git init
|
30
|
-
|
31
|
-
# Adds the files in the local repository and stages them for commit.
|
32
|
-
git add .
|
33
|
-
|
34
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
-
git commit -m "$release_note"
|
36
|
-
|
37
|
-
# Sets the new remote
|
38
|
-
git_remote=`git remote`
|
39
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
-
|
41
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
-
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
-
else
|
45
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
-
fi
|
47
|
-
|
48
|
-
fi
|
49
|
-
|
50
|
-
git pull origin master
|
51
|
-
|
52
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
-
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
-
git push origin master 2>&1 | grep -v 'To https'
|
55
|
-
|
@@ -1,310 +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 ArtifactsApi
|
14
|
-
attr_accessor :api_client
|
15
|
-
|
16
|
-
def initialize(api_client = ApiClient.default)
|
17
|
-
@api_client = api_client
|
18
|
-
end
|
19
|
-
# Add one or many artifacts in a system
|
20
|
-
# <strong>Information</strong><br> The request body of a POST request through the Artifact Endpoint accepts a single binary file with file extension \".zip\" only. This accepted .zip file should contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt. Filename uniqueness throughout eMASS will be enforced by the API.<br><br> Upon successful receipt of a file, if a file within the .zip is matched via filename to an artifact existing within the application, the file associated with the artifact will be updated. If no artifact is matched via filename to the application, a new artifact will be created with the following default values. Any values not specified below will be blank. <ul> <li>isTemplate: false</li> <li>type: other</li> <li>category: evidence</li> </ul> To update values other than the file itself, please submit a PUT request.<br> <strong>Zip file information</strong><br> Upload a zip file contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt.<br><br> <strong>Business Rules</strong><br> Artifact cannot be saved if the file does not have the following file extensions: .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mh,tml,.html,.htm,.pdf,.mdb,.accdb,.ppt, .pptx,.xls,.xlsx,.csv,.log,.jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif,.zip,.rar,.msg, .vsd,.vsw,.vdx,.z{#},.ckl,.avi,.vsdx Artifact version cannot be saved if an Artifact with the same file name already exist in the system. Artifact cannot be saved if the file size exceeds 30MB.
|
21
|
-
# @param is_template
|
22
|
-
# @param type
|
23
|
-
# @param category
|
24
|
-
# @param zipper
|
25
|
-
# @param system_id **System Id**: The unique system record identifier.
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [ArtifactsResponsePutPost]
|
28
|
-
def add_artifacts_by_system_id(is_template, type, category, zipper, system_id, opts = {})
|
29
|
-
data, _status_code, _headers = add_artifacts_by_system_id_with_http_info(is_template, type, category, zipper, system_id, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Add one or many artifacts in a system
|
34
|
-
# <strong>Information</strong><br> The request body of a POST request through the Artifact Endpoint accepts a single binary file with file extension \".zip\" only. This accepted .zip file should contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt. Filename uniqueness throughout eMASS will be enforced by the API.<br><br> Upon successful receipt of a file, if a file within the .zip is matched via filename to an artifact existing within the application, the file associated with the artifact will be updated. If no artifact is matched via filename to the application, a new artifact will be created with the following default values. Any values not specified below will be blank. <ul> <li>isTemplate: false</li> <li>type: other</li> <li>category: evidence</li> </ul> To update values other than the file itself, please submit a PUT request.<br> <strong>Zip file information</strong><br> Upload a zip file contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt.<br><br> <strong>Business Rules</strong><br> Artifact cannot be saved if the file does not have the following file extensions: .docx,.doc,.txt,.rtf,.xfdl,.xml,.mht,.mh,tml,.html,.htm,.pdf,.mdb,.accdb,.ppt, .pptx,.xls,.xlsx,.csv,.log,.jpeg,.jpg,.tiff,.bmp,.tif,.png,.gif,.zip,.rar,.msg, .vsd,.vsw,.vdx,.z{#},.ckl,.avi,.vsdx Artifact version cannot be saved if an Artifact with the same file name already exist in the system. Artifact cannot be saved if the file size exceeds 30MB.
|
35
|
-
# @param is_template
|
36
|
-
# @param type
|
37
|
-
# @param category
|
38
|
-
# @param zipper
|
39
|
-
# @param system_id **System Id**: The unique system record identifier.
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [Array<(ArtifactsResponsePutPost, Integer, Hash)>] ArtifactsResponsePutPost data, response status code and response headers
|
42
|
-
def add_artifacts_by_system_id_with_http_info(is_template, type, category, zipper, system_id, opts = {})
|
43
|
-
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.add_artifacts_by_system_id ...'
|
45
|
-
end
|
46
|
-
# verify the required parameter 'is_template' is set
|
47
|
-
if @api_client.config.client_side_validation && is_template.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'is_template' when calling ArtifactsApi.add_artifacts_by_system_id"
|
49
|
-
end
|
50
|
-
# verify the required parameter 'type' is set
|
51
|
-
if @api_client.config.client_side_validation && type.nil?
|
52
|
-
fail ArgumentError, "Missing the required parameter 'type' when calling ArtifactsApi.add_artifacts_by_system_id"
|
53
|
-
end
|
54
|
-
# verify enum value
|
55
|
-
if @api_client.config.client_side_validation && !['Procedure', 'Diagram', 'Policy', 'Labor', 'Document', 'Image', 'Other', 'Scan Result', 'Auditor Report'].include?(type)
|
56
|
-
fail ArgumentError, "invalid value for 'type', must be one of Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report"
|
57
|
-
end
|
58
|
-
# verify the required parameter 'category' is set
|
59
|
-
if @api_client.config.client_side_validation && category.nil?
|
60
|
-
fail ArgumentError, "Missing the required parameter 'category' when calling ArtifactsApi.add_artifacts_by_system_id"
|
61
|
-
end
|
62
|
-
# verify enum value
|
63
|
-
if @api_client.config.client_side_validation && !['Implementation Guidance', 'Evidence'].include?(category)
|
64
|
-
fail ArgumentError, "invalid value for 'category', must be one of Implementation Guidance, Evidence"
|
65
|
-
end
|
66
|
-
# verify the required parameter 'zipper' is set
|
67
|
-
if @api_client.config.client_side_validation && zipper.nil?
|
68
|
-
fail ArgumentError, "Missing the required parameter 'zipper' when calling ArtifactsApi.add_artifacts_by_system_id"
|
69
|
-
end
|
70
|
-
# verify the required parameter 'system_id' is set
|
71
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
72
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.add_artifacts_by_system_id"
|
73
|
-
end
|
74
|
-
# resource path
|
75
|
-
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
76
|
-
|
77
|
-
# query parameters
|
78
|
-
query_params = opts[:query_params] || {}
|
79
|
-
|
80
|
-
# header parameters
|
81
|
-
header_params = opts[:header_params] || {}
|
82
|
-
# HTTP header 'Accept' (if needed)
|
83
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
84
|
-
# HTTP header 'Content-Type'
|
85
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
86
|
-
|
87
|
-
# form parameters
|
88
|
-
form_params = opts[:form_params] || {}
|
89
|
-
form_params['isTemplate'] = is_template
|
90
|
-
form_params['type'] = type
|
91
|
-
form_params['category'] = category
|
92
|
-
form_params['Zipper'] = zipper
|
93
|
-
|
94
|
-
# http body (model)
|
95
|
-
post_body = opts[:body]
|
96
|
-
|
97
|
-
return_type = opts[:return_type] || 'ArtifactsResponsePutPost'
|
98
|
-
|
99
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
100
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
101
|
-
:header_params => header_params,
|
102
|
-
:query_params => query_params,
|
103
|
-
:form_params => form_params,
|
104
|
-
:body => post_body,
|
105
|
-
:auth_names => auth_names,
|
106
|
-
:return_type => return_type)
|
107
|
-
|
108
|
-
if @api_client.config.debugging
|
109
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#add_artifacts_by_system_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
110
|
-
end
|
111
|
-
return data, status_code, headers
|
112
|
-
end
|
113
|
-
# Remove one or many artifacts in a system
|
114
|
-
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br> <b>Note:</b> Multiple files can be deleted by providing multiple file names at the CL (comma delimited) Example: --files file1.txt, file2.txt
|
115
|
-
# @param body See notes above for additional information
|
116
|
-
# @param system_id **System Id**: The unique system record identifier.
|
117
|
-
# @param [Hash] opts the optional parameters
|
118
|
-
# @return [ArtifactsResponseDel]
|
119
|
-
def delete_artifact(body, system_id, opts = {})
|
120
|
-
data, _status_code, _headers = delete_artifact_with_http_info(body, system_id, opts)
|
121
|
-
data
|
122
|
-
end
|
123
|
-
|
124
|
-
# Remove one or many artifacts in a system
|
125
|
-
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br> <b>Note:</b> Multiple files can be deleted by providing multiple file names at the CL (comma delimited) Example: --files file1.txt, file2.txt
|
126
|
-
# @param body See notes above for additional information
|
127
|
-
# @param system_id **System Id**: The unique system record identifier.
|
128
|
-
# @param [Hash] opts the optional parameters
|
129
|
-
# @return [Array<(ArtifactsResponseDel, Integer, Hash)>] ArtifactsResponseDel data, response status code and response headers
|
130
|
-
def delete_artifact_with_http_info(body, system_id, opts = {})
|
131
|
-
if @api_client.config.debugging
|
132
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.delete_artifact ...'
|
133
|
-
end
|
134
|
-
# verify the required parameter 'body' is set
|
135
|
-
if @api_client.config.client_side_validation && body.nil?
|
136
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ArtifactsApi.delete_artifact"
|
137
|
-
end
|
138
|
-
# verify the required parameter 'system_id' is set
|
139
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
140
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.delete_artifact"
|
141
|
-
end
|
142
|
-
# resource path
|
143
|
-
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
144
|
-
|
145
|
-
# query parameters
|
146
|
-
query_params = opts[:query_params] || {}
|
147
|
-
|
148
|
-
# header parameters
|
149
|
-
header_params = opts[:header_params] || {}
|
150
|
-
# HTTP header 'Accept' (if needed)
|
151
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
152
|
-
# HTTP header 'Content-Type'
|
153
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
154
|
-
|
155
|
-
# form parameters
|
156
|
-
form_params = opts[:form_params] || {}
|
157
|
-
|
158
|
-
# http body (model)
|
159
|
-
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
160
|
-
|
161
|
-
return_type = opts[:return_type] || 'ArtifactsResponseDel'
|
162
|
-
|
163
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
164
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
165
|
-
:header_params => header_params,
|
166
|
-
:query_params => query_params,
|
167
|
-
:form_params => form_params,
|
168
|
-
:body => post_body,
|
169
|
-
:auth_names => auth_names,
|
170
|
-
:return_type => return_type)
|
171
|
-
|
172
|
-
if @api_client.config.debugging
|
173
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#delete_artifact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
174
|
-
end
|
175
|
-
return data, status_code, headers
|
176
|
-
end
|
177
|
-
# Get one or many artifacts in a system
|
178
|
-
# Returns selected artifacts matching parameters to include the file name containing the artifacts.
|
179
|
-
# @param system_id **System Id**: The unique system record identifier.
|
180
|
-
# @param [Hash] opts the optional parameters
|
181
|
-
# @option opts [String] :filename **File Name**: The file name (to include file-extension).
|
182
|
-
# @option opts [String] :control_acronyms **System Acronym**: Filter query by given system acronym (single or comma separated).
|
183
|
-
# @option opts [String] :ccis **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
|
184
|
-
# @option opts [BOOLEAN] :system_only **Systems Only**: Indicates that only system(s) information is retrieved. (default to true)
|
185
|
-
# @return [ArtifactsResponseGet]
|
186
|
-
def get_system_artifacts(system_id, opts = {})
|
187
|
-
data, _status_code, _headers = get_system_artifacts_with_http_info(system_id, opts)
|
188
|
-
data
|
189
|
-
end
|
190
|
-
|
191
|
-
# Get one or many artifacts in a system
|
192
|
-
# Returns selected artifacts matching parameters to include the file name containing the artifacts.
|
193
|
-
# @param system_id **System Id**: The unique system record identifier.
|
194
|
-
# @param [Hash] opts the optional parameters
|
195
|
-
# @option opts [String] :filename **File Name**: The file name (to include file-extension).
|
196
|
-
# @option opts [String] :control_acronyms **System Acronym**: Filter query by given system acronym (single or comma separated).
|
197
|
-
# @option opts [String] :ccis **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
|
198
|
-
# @option opts [BOOLEAN] :system_only **Systems Only**: Indicates that only system(s) information is retrieved.
|
199
|
-
# @return [Array<(ArtifactsResponseGet, Integer, Hash)>] ArtifactsResponseGet data, response status code and response headers
|
200
|
-
def get_system_artifacts_with_http_info(system_id, opts = {})
|
201
|
-
if @api_client.config.debugging
|
202
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.get_system_artifacts ...'
|
203
|
-
end
|
204
|
-
# verify the required parameter 'system_id' is set
|
205
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
206
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.get_system_artifacts"
|
207
|
-
end
|
208
|
-
# resource path
|
209
|
-
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
210
|
-
|
211
|
-
# query parameters
|
212
|
-
query_params = opts[:query_params] || {}
|
213
|
-
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
214
|
-
query_params[:'controlAcronyms'] = opts[:'control_acronyms'] if !opts[:'control_acronyms'].nil?
|
215
|
-
query_params[:'ccis'] = opts[:'ccis'] if !opts[:'ccis'].nil?
|
216
|
-
query_params[:'systemOnly'] = opts[:'system_only'] if !opts[:'system_only'].nil?
|
217
|
-
|
218
|
-
# header parameters
|
219
|
-
header_params = opts[:header_params] || {}
|
220
|
-
# HTTP header 'Accept' (if needed)
|
221
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
222
|
-
|
223
|
-
# form parameters
|
224
|
-
form_params = opts[:form_params] || {}
|
225
|
-
|
226
|
-
# http body (model)
|
227
|
-
post_body = opts[:body]
|
228
|
-
|
229
|
-
return_type = opts[:return_type] || 'ArtifactsResponseGet'
|
230
|
-
|
231
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
232
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
233
|
-
:header_params => header_params,
|
234
|
-
:query_params => query_params,
|
235
|
-
:form_params => form_params,
|
236
|
-
:body => post_body,
|
237
|
-
:auth_names => auth_names,
|
238
|
-
:return_type => return_type)
|
239
|
-
|
240
|
-
if @api_client.config.debugging
|
241
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#get_system_artifacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
242
|
-
end
|
243
|
-
return data, status_code, headers
|
244
|
-
end
|
245
|
-
# Update one or many artifacts in a system
|
246
|
-
# Updates an artifact for given `systemId` path parameter<br><br> **Request Body Required Fields** - `filename` - `isTemplate` - `type` - `category`
|
247
|
-
# @param body See `information` above for additional instructions
|
248
|
-
# @param system_id **System Id**: The unique system record identifier.
|
249
|
-
# @param [Hash] opts the optional parameters
|
250
|
-
# @return [ArtifactsResponsePutPost]
|
251
|
-
def update_artifact_by_system_id(body, system_id, opts = {})
|
252
|
-
data, _status_code, _headers = update_artifact_by_system_id_with_http_info(body, system_id, opts)
|
253
|
-
data
|
254
|
-
end
|
255
|
-
|
256
|
-
# Update one or many artifacts in a system
|
257
|
-
# Updates an artifact for given `systemId` path parameter<br><br> **Request Body Required Fields** - `filename` - `isTemplate` - `type` - `category`
|
258
|
-
# @param body See `information` above for additional instructions
|
259
|
-
# @param system_id **System Id**: The unique system record identifier.
|
260
|
-
# @param [Hash] opts the optional parameters
|
261
|
-
# @return [Array<(ArtifactsResponsePutPost, Integer, Hash)>] ArtifactsResponsePutPost data, response status code and response headers
|
262
|
-
def update_artifact_by_system_id_with_http_info(body, system_id, opts = {})
|
263
|
-
if @api_client.config.debugging
|
264
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.update_artifact_by_system_id ...'
|
265
|
-
end
|
266
|
-
# verify the required parameter 'body' is set
|
267
|
-
if @api_client.config.client_side_validation && body.nil?
|
268
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ArtifactsApi.update_artifact_by_system_id"
|
269
|
-
end
|
270
|
-
# verify the required parameter 'system_id' is set
|
271
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
272
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.update_artifact_by_system_id"
|
273
|
-
end
|
274
|
-
# resource path
|
275
|
-
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', system_id.to_s)
|
276
|
-
|
277
|
-
# query parameters
|
278
|
-
query_params = opts[:query_params] || {}
|
279
|
-
|
280
|
-
# header parameters
|
281
|
-
header_params = opts[:header_params] || {}
|
282
|
-
# HTTP header 'Accept' (if needed)
|
283
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
284
|
-
# HTTP header 'Content-Type'
|
285
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
286
|
-
|
287
|
-
# form parameters
|
288
|
-
form_params = opts[:form_params] || {}
|
289
|
-
|
290
|
-
# http body (model)
|
291
|
-
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
292
|
-
|
293
|
-
return_type = opts[:return_type] || 'ArtifactsResponsePutPost'
|
294
|
-
|
295
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
296
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
297
|
-
:header_params => header_params,
|
298
|
-
:query_params => query_params,
|
299
|
-
:form_params => form_params,
|
300
|
-
:body => post_body,
|
301
|
-
:auth_names => auth_names,
|
302
|
-
:return_type => return_type)
|
303
|
-
|
304
|
-
if @api_client.config.debugging
|
305
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#update_artifact_by_system_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
306
|
-
end
|
307
|
-
return data, status_code, headers
|
308
|
-
end
|
309
|
-
end
|
310
|
-
end
|
@@ -1,86 +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 ArtifactsExportApi
|
14
|
-
attr_accessor :api_client
|
15
|
-
|
16
|
-
def initialize(api_client = ApiClient.default)
|
17
|
-
@api_client = api_client
|
18
|
-
end
|
19
|
-
# Get the file of an artifact in a system
|
20
|
-
# <strong>Sample Responce</strong><br> Binary file associated with given filename.<br> If `compress` parameter is specified, zip archive of binary file associated with given filename.
|
21
|
-
# @param system_id **System Id**: The unique system record identifier.
|
22
|
-
# @param filename **File Name**: The file name (to include file-extension).
|
23
|
-
# @param [Hash] opts the optional parameters
|
24
|
-
# @option opts [BOOLEAN] :compress **Compress File**: Determines if returned file is compressed. (default to true)
|
25
|
-
# @return [String]
|
26
|
-
def get_system_artifacts_export(system_id, filename, opts = {})
|
27
|
-
data, _status_code, _headers = get_system_artifacts_export_with_http_info(system_id, filename, opts)
|
28
|
-
data
|
29
|
-
end
|
30
|
-
|
31
|
-
# Get the file of an artifact in a system
|
32
|
-
# <strong>Sample Responce</strong><br> Binary file associated with given filename.<br> If `compress` parameter is specified, zip archive of binary file associated with given filename.
|
33
|
-
# @param system_id **System Id**: The unique system record identifier.
|
34
|
-
# @param filename **File Name**: The file name (to include file-extension).
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [BOOLEAN] :compress **Compress File**: Determines if returned file is compressed.
|
37
|
-
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
38
|
-
def get_system_artifacts_export_with_http_info(system_id, filename, opts = {})
|
39
|
-
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsExportApi.get_system_artifacts_export ...'
|
41
|
-
end
|
42
|
-
# verify the required parameter 'system_id' is set
|
43
|
-
if @api_client.config.client_side_validation && system_id.nil?
|
44
|
-
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsExportApi.get_system_artifacts_export"
|
45
|
-
end
|
46
|
-
# verify the required parameter 'filename' is set
|
47
|
-
if @api_client.config.client_side_validation && filename.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'filename' when calling ArtifactsExportApi.get_system_artifacts_export"
|
49
|
-
end
|
50
|
-
# resource path
|
51
|
-
local_var_path = '/api/systems/{systemId}/artifacts-export'.sub('{' + 'systemId' + '}', system_id.to_s)
|
52
|
-
|
53
|
-
# query parameters
|
54
|
-
query_params = opts[:query_params] || {}
|
55
|
-
query_params[:'filename'] = filename
|
56
|
-
query_params[:'compress'] = opts[:'compress'] if !opts[:'compress'].nil?
|
57
|
-
|
58
|
-
# header parameters
|
59
|
-
header_params = opts[:header_params] || {}
|
60
|
-
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/octet-stream', 'application/json'])
|
62
|
-
|
63
|
-
# form parameters
|
64
|
-
form_params = opts[:form_params] || {}
|
65
|
-
|
66
|
-
# http body (model)
|
67
|
-
post_body = opts[:body]
|
68
|
-
|
69
|
-
return_type = opts[:return_type] || 'String'
|
70
|
-
|
71
|
-
auth_names = opts[:auth_names] || ['apikey', 'mockType', 'userid']
|
72
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
-
:header_params => header_params,
|
74
|
-
:query_params => query_params,
|
75
|
-
:form_params => form_params,
|
76
|
-
:body => post_body,
|
77
|
-
:auth_names => auth_names,
|
78
|
-
:return_type => return_type)
|
79
|
-
|
80
|
-
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: ArtifactsExportApi#get_system_artifacts_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
end
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|