emass_client 3.12.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +159 -129
- data/lib/emass_client/api/artifacts_api.rb +40 -48
- data/lib/emass_client/api/artifacts_export_api.rb +5 -5
- data/lib/emass_client/api/cac_api.rb +10 -10
- data/lib/emass_client/api/cloud_resource_results_api.rb +10 -10
- data/lib/emass_client/api/cmmc_assessment_dashboards_api.rb +314 -0
- data/lib/emass_client/api/cmmc_assessments_api.rb +5 -5
- data/lib/emass_client/api/coast_guard_system_fisma_metrics_dashboard_api.rb +95 -0
- data/lib/emass_client/api/container_scan_results_api.rb +10 -10
- data/lib/emass_client/api/controls_api.rb +17 -17
- data/lib/emass_client/api/device_scan_results_api.rb +112 -0
- data/lib/emass_client/api/hardware_baseline_api.rb +313 -0
- data/lib/emass_client/api/milestones_api.rb +15 -15
- data/lib/emass_client/api/organization_migration_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/pac_api.rb +10 -10
- data/lib/emass_client/api/poam_api.rb +40 -40
- data/lib/emass_client/api/registration_api.rb +5 -5
- data/lib/emass_client/api/software_baseline_api.rb +313 -0
- data/lib/emass_client/api/static_code_scans_api.rb +9 -9
- data/lib/emass_client/api/system_application_findings_dashboards_api.rb +168 -0
- data/lib/emass_client/api/{enterprise_artifacts_dashboards_api.rb → system_artifacts_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_associations_dashboard_api.rb +8 -8
- data/lib/emass_client/api/system_atciatc_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_conmon_integration_status_dashboard_api.rb +8 -8
- data/lib/emass_client/api/system_connectivity_ccsd_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_critical_assets_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_device_findings_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_fisma_metrics_dashboard_api.rb +95 -0
- data/lib/emass_client/api/{hardware_baseline_dashboards_api.rb → system_hardware_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_migration_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/{enterprise_poam_dashboards_api.rb → system_poam_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/{ports_and_protocols_dashboards_api.rb → system_ports_protocols_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_privacy_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_questionnaire_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_roles_api.rb +8 -8
- data/lib/emass_client/api/{enterprise_security_controls_dashboards_api.rb → system_security_controls_dashboards_api.rb} +31 -31
- data/lib/emass_client/api/{enterprise_sensor_based_hardware_resources_dashboards_api.rb → system_sensor_hardware_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/{enterprise_sensor_based_software_resources_dashboards_api.rb → system_sensor_software_dashboards_api.rb} +29 -29
- data/lib/emass_client/api/{software_baseline_dashboards_api.rb → system_software_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_status_dashboard_api.rb +8 -8
- data/lib/emass_client/api/{enterprise_terms_conditions_dashboards_api.rb → system_terms_conditions_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_vulnerability_dashboard_api.rb +95 -0
- data/lib/emass_client/api/{enterprise_vulnerability_dashboards_api.rb → system_workflows_dashboards_api.rb} +53 -53
- data/lib/emass_client/api/systems_api.rb +16 -22
- data/lib/emass_client/api/test_api.rb +5 -5
- data/lib/emass_client/api/test_results_api.rb +10 -10
- data/lib/emass_client/api/{users_dashboard_api.rb → user_system_assignments_dashboard_api.rb} +13 -13
- data/lib/emass_client/api/va_system_dashboards_api.rb +679 -0
- data/lib/emass_client/api/vaombfisma_dashboard_api.rb +95 -0
- data/lib/emass_client/api/workflow_definitions_api.rb +9 -9
- data/lib/emass_client/api/workflow_instances_api.rb +14 -14
- data/lib/emass_client/api_client.rb +44 -31
- data/lib/emass_client/api_error.rb +4 -4
- data/lib/emass_client/configuration.rb +42 -12
- data/lib/emass_client/models/{response201.rb → api_rule_failed.rb} +17 -11
- data/lib/emass_client/models/{response490_meta.rb → api_rule_failed_meta.rb} +16 -10
- data/lib/emass_client/models/artifacts_ids.rb +221 -0
- data/lib/emass_client/models/artifacts_optional_fields.rb +298 -0
- data/lib/emass_client/models/artifacts_read_only_fields.rb +255 -0
- data/lib/emass_client/models/artifacts_request_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/artifacts_required_fields.rb +252 -0
- data/lib/emass_client/models/artifacts_response_del.rb +14 -8
- data/lib/emass_client/models/artifacts_response_del_data_inner.rb +14 -8
- data/lib/emass_client/models/artifacts_response_get.rb +15 -9
- data/lib/emass_client/models/{artifacts_get.rb → artifacts_response_get_data_inner.rb} +78 -62
- data/lib/emass_client/models/artifacts_response_put_post.rb +14 -8
- data/lib/emass_client/models/artifacts_response_put_post_data_inner.rb +19 -13
- data/lib/emass_client/models/{response400.rb → bad_request.rb} +17 -11
- data/lib/emass_client/models/{response400_meta.rb → bad_request_meta.rb} +16 -10
- data/lib/emass_client/models/cac_get.rb +14 -8
- data/lib/emass_client/models/cac_response_get.rb +14 -8
- data/lib/emass_client/models/cac_response_post.rb +14 -8
- data/lib/emass_client/models/cac_response_post_data_inner.rb +19 -13
- data/lib/emass_client/models/cloud_resources_delete.rb +14 -8
- data/lib/emass_client/models/cloud_resources_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/cloud_resources_post_delete.rb +19 -13
- data/lib/emass_client/models/cloud_resources_response_post.rb +14 -8
- data/lib/emass_client/models/cmmc_get.rb +84 -123
- data/lib/emass_client/models/cmmc_response_get.rb +14 -8
- data/lib/emass_client/models/connectivity_ccsd.rb +14 -8
- data/lib/emass_client/models/container_resources_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/containers_resources_post_delete.rb +19 -13
- data/lib/emass_client/models/containers_response_delete.rb +14 -8
- data/lib/emass_client/models/containers_response_post.rb +14 -8
- data/lib/emass_client/models/controls_conditional_fields.rb +357 -0
- data/lib/emass_client/models/controls_ids.rb +221 -0
- data/lib/emass_client/models/controls_optional_fields.rb +471 -0
- data/lib/emass_client/models/controls_put.rb +19 -13
- data/lib/emass_client/models/controls_read_only_fields.rb +277 -0
- data/lib/emass_client/models/controls_required_fields.rb +295 -0
- data/lib/emass_client/models/controls_response_get.rb +15 -9
- data/lib/emass_client/models/{controls_get.rb → controls_response_get_data_inner.rb} +155 -138
- data/lib/emass_client/models/controls_response_put.rb +14 -8
- data/lib/emass_client/models/{response403.rb → created.rb} +17 -11
- data/lib/emass_client/models/{response201_meta.rb → created_meta.rb} +16 -10
- data/lib/emass_client/models/definition_transitions.rb +14 -8
- data/lib/emass_client/models/{poam_response_post.rb → device_scan_results_response_post.rb} +17 -11
- data/lib/emass_client/models/{success200_response_data_inner.rb → device_scan_results_response_post_data_inner.rb} +51 -16
- data/lib/emass_client/models/{response401.rb → forbidden.rb} +17 -11
- data/lib/emass_client/models/{response403_meta.rb → forbidden_meta.rb} +16 -10
- data/lib/emass_client/models/get_system_status_details200_response.rb +240 -0
- data/lib/emass_client/models/hw_baseline_conditional_fields.rb +244 -0
- data/lib/emass_client/models/hw_baseline_ids.rb +221 -0
- data/lib/emass_client/models/hw_baseline_optional_fields.rb +354 -0
- data/lib/emass_client/models/hw_baseline_read_only_fields.rb +222 -0
- data/lib/emass_client/models/hw_baseline_request_delete_body_inner.rb +220 -0
- data/lib/emass_client/models/hw_baseline_required_fields.rb +221 -0
- data/lib/emass_client/models/{poam_response_delete.rb → hw_baseline_response_delete.rb} +17 -11
- data/lib/emass_client/models/hw_baseline_response_delete_data_inner.rb +274 -0
- data/lib/emass_client/models/{dashboard_mock_response.rb → hw_baseline_response_get.rb} +18 -12
- data/lib/emass_client/models/hw_baseline_response_get_data_inner.rb +429 -0
- data/lib/emass_client/models/{success200_response.rb → hw_baseline_response_post_put.rb} +17 -11
- data/lib/emass_client/models/hw_baseline_response_post_put_data_inner.rb +274 -0
- data/lib/emass_client/models/{instances_transitions.rb → instance_transitions.rb} +16 -10
- data/lib/emass_client/models/internal_server_error.rb +220 -0
- data/lib/emass_client/models/{response500_meta.rb → internal_server_error_meta.rb} +16 -10
- data/lib/emass_client/models/length_required.rb +220 -0
- data/lib/emass_client/models/{response411_meta.rb → length_required_meta.rb} +16 -10
- data/lib/emass_client/models/method_not_allowed.rb +220 -0
- data/lib/emass_client/models/{response405_meta.rb → method_not_allowed_meta.rb} +16 -10
- data/lib/emass_client/models/milestone_response_delete.rb +14 -8
- data/lib/emass_client/models/milestone_response_get.rb +14 -8
- data/lib/emass_client/models/milestone_response_get_milestone.rb +14 -8
- data/lib/emass_client/models/milestone_response_post.rb +14 -8
- data/lib/emass_client/models/milestone_response_put.rb +14 -8
- data/lib/emass_client/models/milestones_fields.rb +222 -0
- data/lib/emass_client/models/milestones_get.rb +43 -15
- data/lib/emass_client/models/milestones_put_post_delete.rb +19 -13
- data/lib/emass_client/models/milestones_request_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/milestones_required_post.rb +23 -40
- data/lib/emass_client/models/milestones_required_post_milestones_inner.rb +265 -0
- data/lib/emass_client/models/milestones_required_put.rb +23 -57
- data/lib/emass_client/models/{ssps.rb → milestones_required_put_milestones_inner.rb} +89 -35
- data/lib/emass_client/models/{response404.rb → not_found.rb} +16 -10
- data/lib/emass_client/models/pac_get.rb +30 -13
- data/lib/emass_client/models/pac_post.rb +19 -13
- data/lib/emass_client/models/pac_response_get.rb +14 -8
- data/lib/emass_client/models/pac_response_post.rb +14 -8
- data/lib/emass_client/models/{dashboard_mock_response_pagination.rb → pagination.rb} +35 -29
- data/lib/emass_client/models/poam_conditional_fields.rb +402 -0
- data/lib/emass_client/models/poam_ids.rb +241 -0
- data/lib/emass_client/models/poam_optional_fields.rb +409 -0
- data/lib/emass_client/models/poam_post_put_del.rb +19 -13
- data/lib/emass_client/models/poam_read_only_fields.rb +332 -0
- data/lib/emass_client/models/poam_request_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/poam_required_fields.rb +305 -0
- data/lib/emass_client/models/poam_response_get_poams.rb +15 -9
- data/lib/emass_client/models/poam_response_get_poams_data.rb +824 -0
- data/lib/emass_client/models/poam_response_get_systems.rb +15 -9
- data/lib/emass_client/models/{poam_get.rb → poam_response_get_systems_data_inner.rb} +325 -365
- data/lib/emass_client/models/{poam_response_put.rb → poam_response_post_put_delete.rb} +16 -10
- data/lib/emass_client/models/register.rb +14 -8
- data/lib/emass_client/models/register_data.rb +14 -8
- data/lib/emass_client/models/register_user_request_post_body.rb +24 -8
- data/lib/emass_client/models/response200.rb +14 -8
- data/lib/emass_client/models/role_category.rb +14 -8
- data/lib/emass_client/models/roles.rb +14 -8
- data/lib/emass_client/models/stage.rb +14 -8
- data/lib/emass_client/models/static_code_application_post.rb +14 -8
- data/lib/emass_client/models/static_code_post.rb +19 -13
- data/lib/emass_client/models/static_code_request_post_body.rb +14 -8
- data/lib/emass_client/models/static_code_request_post_body_application.rb +14 -8
- data/lib/emass_client/models/static_code_response_post.rb +14 -8
- data/lib/emass_client/models/sw_baseline_conditional_fields.rb +222 -0
- data/lib/emass_client/models/sw_baseline_ids.rb +221 -0
- data/lib/emass_client/models/sw_baseline_optional_fields.rb +563 -0
- data/lib/emass_client/models/sw_baseline_read_only_fields.rb +222 -0
- data/lib/emass_client/models/sw_baseline_request_delete_body_inner.rb +220 -0
- data/lib/emass_client/models/sw_baseline_required_fields.rb +241 -0
- data/lib/emass_client/models/sw_baseline_response_delete.rb +231 -0
- data/lib/emass_client/models/sw_baseline_response_delete_data_inner.rb +274 -0
- data/lib/emass_client/models/sw_baseline_response_get.rb +240 -0
- data/lib/emass_client/models/sw_baseline_response_get_data_inner.rb +624 -0
- data/lib/emass_client/models/sw_baseline_response_post_put.rb +231 -0
- data/lib/emass_client/models/sw_baseline_response_post_put_data_inner.rb +274 -0
- data/lib/emass_client/models/system_response.rb +14 -8
- data/lib/emass_client/models/system_roles_category_response.rb +14 -8
- data/lib/emass_client/models/system_roles_response.rb +14 -8
- data/lib/emass_client/models/system_roles_response_data_inner.rb +14 -8
- data/lib/emass_client/models/systems.rb +708 -86
- data/lib/emass_client/models/systems_response.rb +14 -8
- data/lib/emass_client/models/test.rb +14 -8
- data/lib/emass_client/models/test_data.rb +14 -8
- data/lib/emass_client/models/test_results_get.rb +14 -8
- data/lib/emass_client/models/test_results_post.rb +19 -13
- data/lib/emass_client/models/test_results_response_get.rb +14 -8
- data/lib/emass_client/models/test_results_response_post.rb +14 -8
- data/lib/emass_client/models/unauthorized.rb +220 -0
- data/lib/emass_client/models/{response401_meta.rb → unauthorized_meta.rb} +16 -10
- data/lib/emass_client/models/users.rb +14 -8
- data/lib/emass_client/models/workflow_definition_get.rb +14 -8
- data/lib/emass_client/models/workflow_definition_response_get.rb +14 -8
- data/lib/emass_client/models/workflow_instance_get.rb +28 -11
- data/lib/emass_client/models/workflow_instance_response_get.rb +14 -8
- data/lib/emass_client/models/workflow_instances_response_get.rb +15 -9
- data/lib/emass_client/models/workflow_instances_response_get_pagination.rb +14 -8
- data/lib/emass_client/version.rb +5 -5
- data/lib/emass_client.rb +101 -52
- metadata +105 -56
- data/lib/emass_client/api/fisma_inventory_summary_dashboards_api.rb +0 -168
- data/lib/emass_client/api/privacy_compliance_dashboards_api.rb +0 -168
- data/lib/emass_client/api/system_a20_summary_dashboard_api.rb +0 -95
- data/lib/emass_client/api/system_aa_summary_dashboard_api.rb +0 -95
- data/lib/emass_client/api/system_pl109_reporting_summary_dashboard_api.rb +0 -95
- data/lib/emass_client/api/threat_risks_dashboards_api.rb +0 -241
- data/lib/emass_client/models/mock_object.rb +0 -338
- data/lib/emass_client/models/response405.rb +0 -214
- data/lib/emass_client/models/response411.rb +0 -214
- data/lib/emass_client/models/response490.rb +0 -214
- data/lib/emass_client/models/response500.rb +0 -214
- data/lib/emass_client/models/workflow_instances_get.rb +0 -337
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,31 +20,31 @@ module EmassClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Add one or many artifacts in a system
|
23
|
-
# <strong>Information</strong><br>
|
23
|
+
# <strong>Information About Adding Artifacts</strong><br> The body of a request through the Artifacts POST endpoint accepts a single binary file. Two Artifact POST methods are currently accepted: individual and bulk. Filename uniqueness within an eMASS system will be enforced by the API for both methods. <br><br> For POST requests that should result in a single artifact, the request should include the file. <br><br> For POST requests that should result in the creation of many artifacts, the request should include a single file with the extension \".zip\" only and the parameter isBulk should be set to true. This .zip file should contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt. <br><br> Upon successful receipt of one or many artifacts, if a file 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 null <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>Business Rules</strong><br> Artifact cannot be saved if the fields below exceed the following character limits: <ul> <li>Filename - 1,000 characters</li> <li>Name - 100 characters</li> <li>Description - 10,000 characters</li> <li>Reference Page Number - 50 characters</li> </ul> Artifact version cannot be saved if an Artifact with the same file name (filename) already exist in the system. Artifact cannot be saved if the file size exceeds 30MB. Artifact cannot be saved if the following fields are missing data: <ul> <li>Filename (filename)</li> <li>Type (type)</li> <li>Category (category)</li> </ul> Artifact cannot be saved if the Last Review Date (`lastReviewedDate`) is set in the future.
|
24
24
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
25
|
-
# @param
|
25
|
+
# @param filename [File] The file to upload. Must be a .zip file if isBulk is set to true, otherwise any acceptable artifact file. Max 30MB per artifact.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [Boolean] :is_bulk **Is Bulk**: If no value is specified, the default is false, and an individual artifact file is expected.
|
28
|
-
# @option opts [Boolean] :is_template
|
29
|
-
# @option opts [String] :type
|
30
|
-
# @option opts [String] :category
|
27
|
+
# @option opts [Boolean] :is_bulk **Is Bulk**: If no value is specified, the default is false, and an individual artifact file is expected. When set to true, a .zip file is expected which can contain multiple artifact files. (default to false)
|
28
|
+
# @option opts [Boolean] :is_template Is the artifact a template? Indicates whether an artifact is a template
|
29
|
+
# @option opts [String] :type The type of artifact. Possible values are: Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report. May also accept custom artifact type values set by system administrators.
|
30
|
+
# @option opts [String] :category The category of artifact. Possible values are: Implementation Guidance, Evidence. May also accept custom artifact category values set by system administrators.
|
31
31
|
# @return [ArtifactsResponsePutPost]
|
32
|
-
def add_artifacts_by_system_id(system_id,
|
33
|
-
data, _status_code, _headers = add_artifacts_by_system_id_with_http_info(system_id,
|
32
|
+
def add_artifacts_by_system_id(system_id, filename, opts = {})
|
33
|
+
data, _status_code, _headers = add_artifacts_by_system_id_with_http_info(system_id, filename, opts)
|
34
34
|
data
|
35
35
|
end
|
36
36
|
|
37
37
|
# Add one or many artifacts in a system
|
38
|
-
# <strong>Information</strong><br>
|
38
|
+
# <strong>Information About Adding Artifacts</strong><br> The body of a request through the Artifacts POST endpoint accepts a single binary file. Two Artifact POST methods are currently accepted: individual and bulk. Filename uniqueness within an eMASS system will be enforced by the API for both methods. <br><br> For POST requests that should result in a single artifact, the request should include the file. <br><br> For POST requests that should result in the creation of many artifacts, the request should include a single file with the extension \".zip\" only and the parameter isBulk should be set to true. This .zip file should contain one or more files corresponding to existing artifacts or new artifacts that will be created upon successful receipt. <br><br> Upon successful receipt of one or many artifacts, if a file 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 null <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>Business Rules</strong><br> Artifact cannot be saved if the fields below exceed the following character limits: <ul> <li>Filename - 1,000 characters</li> <li>Name - 100 characters</li> <li>Description - 10,000 characters</li> <li>Reference Page Number - 50 characters</li> </ul> Artifact version cannot be saved if an Artifact with the same file name (filename) already exist in the system. Artifact cannot be saved if the file size exceeds 30MB. Artifact cannot be saved if the following fields are missing data: <ul> <li>Filename (filename)</li> <li>Type (type)</li> <li>Category (category)</li> </ul> Artifact cannot be saved if the Last Review Date (`lastReviewedDate`) is set in the future.
|
39
39
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
40
|
-
# @param
|
40
|
+
# @param filename [File] The file to upload. Must be a .zip file if isBulk is set to true, otherwise any acceptable artifact file. Max 30MB per artifact.
|
41
41
|
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [Boolean] :is_bulk **Is Bulk**: If no value is specified, the default is false, and an individual artifact file is expected.
|
43
|
-
# @option opts [Boolean] :is_template
|
44
|
-
# @option opts [String] :type
|
45
|
-
# @option opts [String] :category
|
42
|
+
# @option opts [Boolean] :is_bulk **Is Bulk**: If no value is specified, the default is false, and an individual artifact file is expected. When set to true, a .zip file is expected which can contain multiple artifact files. (default to false)
|
43
|
+
# @option opts [Boolean] :is_template Is the artifact a template? Indicates whether an artifact is a template
|
44
|
+
# @option opts [String] :type The type of artifact. Possible values are: Procedure, Diagram, Policy, Labor, Document, Image, Other, Scan Result, Auditor Report. May also accept custom artifact type values set by system administrators.
|
45
|
+
# @option opts [String] :category The category of artifact. Possible values are: Implementation Guidance, Evidence. May also accept custom artifact category values set by system administrators.
|
46
46
|
# @return [Array<(ArtifactsResponsePutPost, Integer, Hash)>] ArtifactsResponsePutPost data, response status code and response headers
|
47
|
-
def add_artifacts_by_system_id_with_http_info(system_id,
|
47
|
+
def add_artifacts_by_system_id_with_http_info(system_id, filename, opts = {})
|
48
48
|
if @api_client.config.debugging
|
49
49
|
@api_client.config.logger.debug 'Calling API: ArtifactsApi.add_artifacts_by_system_id ...'
|
50
50
|
end
|
@@ -52,17 +52,9 @@ module EmassClient
|
|
52
52
|
if @api_client.config.client_side_validation && system_id.nil?
|
53
53
|
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.add_artifacts_by_system_id"
|
54
54
|
end
|
55
|
-
# verify the required parameter '
|
56
|
-
if @api_client.config.client_side_validation &&
|
57
|
-
fail ArgumentError, "Missing the required parameter '
|
58
|
-
end
|
59
|
-
allowable_values = ["Procedure", "Diagram", "Policy", "Labor", "Document", "Image", "Other", "Scan Result", "Auditor Report", "unknown_default_open_api"]
|
60
|
-
if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
|
61
|
-
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
62
|
-
end
|
63
|
-
allowable_values = ["Implementation Guidance", "Evidence", "unknown_default_open_api"]
|
64
|
-
if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
|
65
|
-
fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
|
55
|
+
# verify the required parameter 'filename' is set
|
56
|
+
if @api_client.config.client_side_validation && filename.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'filename' when calling ArtifactsApi.add_artifacts_by_system_id"
|
66
58
|
end
|
67
59
|
# resource path
|
68
60
|
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', CGI.escape(system_id.to_s))
|
@@ -74,7 +66,7 @@ module EmassClient
|
|
74
66
|
# header parameters
|
75
67
|
header_params = opts[:header_params] || {}
|
76
68
|
# HTTP header 'Accept' (if needed)
|
77
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
78
70
|
# HTTP header 'Content-Type'
|
79
71
|
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
80
72
|
if !content_type.nil?
|
@@ -83,7 +75,7 @@ module EmassClient
|
|
83
75
|
|
84
76
|
# form parameters
|
85
77
|
form_params = opts[:form_params] || {}
|
86
|
-
form_params['
|
78
|
+
form_params['filename'] = filename
|
87
79
|
form_params['isTemplate'] = opts[:'is_template'] if !opts[:'is_template'].nil?
|
88
80
|
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
89
81
|
form_params['category'] = opts[:'category'] if !opts[:'category'].nil?
|
@@ -115,7 +107,7 @@ module EmassClient
|
|
115
107
|
end
|
116
108
|
|
117
109
|
# Remove one or many artifacts in a system
|
118
|
-
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br>
|
110
|
+
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br>
|
119
111
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
120
112
|
# @param artifacts_request_delete_body_inner [Array<ArtifactsRequestDeleteBodyInner>] Delete artifact files for the given System Id
|
121
113
|
# @param [Hash] opts the optional parameters
|
@@ -126,7 +118,7 @@ module EmassClient
|
|
126
118
|
end
|
127
119
|
|
128
120
|
# Remove one or many artifacts in a system
|
129
|
-
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br>
|
121
|
+
# Remove the Artifact(s) matching `systemId` path parameter and request body artifact(s) file name<br><br>
|
130
122
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
131
123
|
# @param artifacts_request_delete_body_inner [Array<ArtifactsRequestDeleteBodyInner>] Delete artifact files for the given System Id
|
132
124
|
# @param [Hash] opts the optional parameters
|
@@ -152,7 +144,7 @@ module EmassClient
|
|
152
144
|
# header parameters
|
153
145
|
header_params = opts[:header_params] || {}
|
154
146
|
# HTTP header 'Accept' (if needed)
|
155
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
147
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
156
148
|
# HTTP header 'Content-Type'
|
157
149
|
content_type = @api_client.select_header_content_type(['application/json'])
|
158
150
|
if !content_type.nil?
|
@@ -235,7 +227,7 @@ module EmassClient
|
|
235
227
|
# header parameters
|
236
228
|
header_params = opts[:header_params] || {}
|
237
229
|
# HTTP header 'Accept' (if needed)
|
238
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
230
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
239
231
|
|
240
232
|
# form parameters
|
241
233
|
form_params = opts[:form_params] || {}
|
@@ -267,23 +259,23 @@ module EmassClient
|
|
267
259
|
end
|
268
260
|
|
269
261
|
# Update one or many artifacts in a system
|
270
|
-
# Updates an artifact for given `systemId` path parameter<br><br>
|
262
|
+
# Updates an artifact for given `systemId` path parameter<br><br> **Request Body Required Fields** - `filename` - `isTemplate` - `type` - `category` The example request provides all optional fields <strong>Information About Updating Artifacts</strong><br> The PUT request will replace all existing data with the field/value combinations included in the request body. If any fields are not included, the absent fields will become null. The fields `name` and `isTemplate` are non-nullable fields. If not specified in the PUT command they will default to the following: - `name=filename` - `isTemplate=false` Also, note that one-to-many fields (`controls` and `ccis`) will also be replaced with the values specified in the PUT. If existing `control or cci` mappings exist in eMASS, the values in the PUT will not append, but rather replace all existing control and cci mappings with the values in the request body.
|
271
263
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
272
|
-
# @param
|
264
|
+
# @param artifacts_required_fields [Array<ArtifactsRequiredFields>] See `information` above for additional instructions
|
273
265
|
# @param [Hash] opts the optional parameters
|
274
266
|
# @return [ArtifactsResponsePutPost]
|
275
|
-
def update_artifact_by_system_id(system_id,
|
276
|
-
data, _status_code, _headers = update_artifact_by_system_id_with_http_info(system_id,
|
267
|
+
def update_artifact_by_system_id(system_id, artifacts_required_fields, opts = {})
|
268
|
+
data, _status_code, _headers = update_artifact_by_system_id_with_http_info(system_id, artifacts_required_fields, opts)
|
277
269
|
data
|
278
270
|
end
|
279
271
|
|
280
272
|
# Update one or many artifacts in a system
|
281
|
-
# Updates an artifact for given `systemId` path parameter<br><br>
|
273
|
+
# Updates an artifact for given `systemId` path parameter<br><br> **Request Body Required Fields** - `filename` - `isTemplate` - `type` - `category` The example request provides all optional fields <strong>Information About Updating Artifacts</strong><br> The PUT request will replace all existing data with the field/value combinations included in the request body. If any fields are not included, the absent fields will become null. The fields `name` and `isTemplate` are non-nullable fields. If not specified in the PUT command they will default to the following: - `name=filename` - `isTemplate=false` Also, note that one-to-many fields (`controls` and `ccis`) will also be replaced with the values specified in the PUT. If existing `control or cci` mappings exist in eMASS, the values in the PUT will not append, but rather replace all existing control and cci mappings with the values in the request body.
|
282
274
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
283
|
-
# @param
|
275
|
+
# @param artifacts_required_fields [Array<ArtifactsRequiredFields>] See `information` above for additional instructions
|
284
276
|
# @param [Hash] opts the optional parameters
|
285
277
|
# @return [Array<(ArtifactsResponsePutPost, Integer, Hash)>] ArtifactsResponsePutPost data, response status code and response headers
|
286
|
-
def update_artifact_by_system_id_with_http_info(system_id,
|
278
|
+
def update_artifact_by_system_id_with_http_info(system_id, artifacts_required_fields, opts = {})
|
287
279
|
if @api_client.config.debugging
|
288
280
|
@api_client.config.logger.debug 'Calling API: ArtifactsApi.update_artifact_by_system_id ...'
|
289
281
|
end
|
@@ -291,9 +283,9 @@ module EmassClient
|
|
291
283
|
if @api_client.config.client_side_validation && system_id.nil?
|
292
284
|
fail ArgumentError, "Missing the required parameter 'system_id' when calling ArtifactsApi.update_artifact_by_system_id"
|
293
285
|
end
|
294
|
-
# verify the required parameter '
|
295
|
-
if @api_client.config.client_side_validation &&
|
296
|
-
fail ArgumentError, "Missing the required parameter '
|
286
|
+
# verify the required parameter 'artifacts_required_fields' is set
|
287
|
+
if @api_client.config.client_side_validation && artifacts_required_fields.nil?
|
288
|
+
fail ArgumentError, "Missing the required parameter 'artifacts_required_fields' when calling ArtifactsApi.update_artifact_by_system_id"
|
297
289
|
end
|
298
290
|
# resource path
|
299
291
|
local_var_path = '/api/systems/{systemId}/artifacts'.sub('{' + 'systemId' + '}', CGI.escape(system_id.to_s))
|
@@ -304,7 +296,7 @@ module EmassClient
|
|
304
296
|
# header parameters
|
305
297
|
header_params = opts[:header_params] || {}
|
306
298
|
# HTTP header 'Accept' (if needed)
|
307
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
308
300
|
# HTTP header 'Content-Type'
|
309
301
|
content_type = @api_client.select_header_content_type(['application/json'])
|
310
302
|
if !content_type.nil?
|
@@ -315,7 +307,7 @@ module EmassClient
|
|
315
307
|
form_params = opts[:form_params] || {}
|
316
308
|
|
317
309
|
# http body (model)
|
318
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
310
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(artifacts_required_fields)
|
319
311
|
|
320
312
|
# return_type
|
321
313
|
return_type = opts[:debug_return_type] || 'ArtifactsResponsePutPost'
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -61,7 +61,7 @@ module EmassClient
|
|
61
61
|
# header parameters
|
62
62
|
header_params = opts[:header_params] || {}
|
63
63
|
# HTTP header 'Accept' (if needed)
|
64
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json'])
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json']) unless header_params['Accept']
|
65
65
|
|
66
66
|
# form parameters
|
67
67
|
form_params = opts[:form_params] || {}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,9 +20,9 @@ module EmassClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Submit control to second role of CAC
|
23
|
-
#
|
23
|
+
# **Request Body Required Fields** - `controlAcronym` - `comments` **NOTES:** - Comments `comments` are not required at the first role of the CAC but are required at the second role of the CAC. Comments cannot exceed 10,000 characters. - POST requests will only yield successful results if the control is currently sitting at the first role of the CAC. If the control is not currently sitting at the first role, then an error will be returned.
|
24
24
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
25
|
-
# @param request_body [Array<Object>]
|
25
|
+
# @param request_body [Array<Object>] Example request body for adding control(s) to second role of CAC
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [CacResponsePost]
|
28
28
|
def add_system_cac(system_id, request_body, opts = {})
|
@@ -31,9 +31,9 @@ module EmassClient
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Submit control to second role of CAC
|
34
|
-
#
|
34
|
+
# **Request Body Required Fields** - `controlAcronym` - `comments` **NOTES:** - Comments `comments` are not required at the first role of the CAC but are required at the second role of the CAC. Comments cannot exceed 10,000 characters. - POST requests will only yield successful results if the control is currently sitting at the first role of the CAC. If the control is not currently sitting at the first role, then an error will be returned.
|
35
35
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
36
|
-
# @param request_body [Array<Object>]
|
36
|
+
# @param request_body [Array<Object>] Example request body for adding control(s) to second role of CAC
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(CacResponsePost, Integer, Hash)>] CacResponsePost data, response status code and response headers
|
39
39
|
def add_system_cac_with_http_info(system_id, request_body, opts = {})
|
@@ -57,7 +57,7 @@ module EmassClient
|
|
57
57
|
# header parameters
|
58
58
|
header_params = opts[:header_params] || {}
|
59
59
|
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
61
61
|
# HTTP header 'Content-Type'
|
62
62
|
content_type = @api_client.select_header_content_type(['application/json'])
|
63
63
|
if !content_type.nil?
|
@@ -128,7 +128,7 @@ module EmassClient
|
|
128
128
|
# header parameters
|
129
129
|
header_params = opts[:header_params] || {}
|
130
130
|
# HTTP header 'Accept' (if needed)
|
131
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
132
132
|
|
133
133
|
# form parameters
|
134
134
|
form_params = opts[:form_params] || {}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,9 +20,9 @@ module EmassClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Add one or many cloud resources and their scan results
|
23
|
-
# Add cloud resources and their scan results in the assets module for a system `systemId` **Request Body Required Fields** - `provider` - `resourceId` - `resourceName` - `resourceType` -
|
23
|
+
# Add cloud resources and their scan results in the assets module for a system `systemId` **Request Body Required Fields** - `provider` - `resourceId` - `resourceName` - `resourceType` - `complianceResults` (Object Array) - `cspPolicyDefinitionId` - `isCompliant` - `policyDefinitionTitle` **Example Request Body Required Fields** ``` [ { \"provider\": \"provide name\", \"resourceId\": \"resource identification\", \"resourceName\": \"resource name\", \"resourceType\": \"resource type\", \"complianceResults\": [ { \"cspPolicyDefinitionId\": \"CSP policy definition identification\", \"policyDefinitionTitle\": \"policy definition title\", \"isCompliant\": [true or false] } ] } ] ```
|
24
24
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
25
|
-
# @param request_body [Array<Object>]
|
25
|
+
# @param request_body [Array<Object>] Example request body for adding cloud resources and their scan results
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [CloudResourcesResponsePost]
|
28
28
|
def add_cloud_resources_by_system_id(system_id, request_body, opts = {})
|
@@ -31,9 +31,9 @@ module EmassClient
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Add one or many cloud resources and their scan results
|
34
|
-
# Add cloud resources and their scan results in the assets module for a system `systemId` **Request Body Required Fields** - `provider` - `resourceId` - `resourceName` - `resourceType` -
|
34
|
+
# Add cloud resources and their scan results in the assets module for a system `systemId` **Request Body Required Fields** - `provider` - `resourceId` - `resourceName` - `resourceType` - `complianceResults` (Object Array) - `cspPolicyDefinitionId` - `isCompliant` - `policyDefinitionTitle` **Example Request Body Required Fields** ``` [ { \"provider\": \"provide name\", \"resourceId\": \"resource identification\", \"resourceName\": \"resource name\", \"resourceType\": \"resource type\", \"complianceResults\": [ { \"cspPolicyDefinitionId\": \"CSP policy definition identification\", \"policyDefinitionTitle\": \"policy definition title\", \"isCompliant\": [true or false] } ] } ] ```
|
35
35
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
36
|
-
# @param request_body [Array<Object>]
|
36
|
+
# @param request_body [Array<Object>] Example request body for adding cloud resources and their scan results
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(CloudResourcesResponsePost, Integer, Hash)>] CloudResourcesResponsePost data, response status code and response headers
|
39
39
|
def add_cloud_resources_by_system_id_with_http_info(system_id, request_body, opts = {})
|
@@ -57,7 +57,7 @@ module EmassClient
|
|
57
57
|
# header parameters
|
58
58
|
header_params = opts[:header_params] || {}
|
59
59
|
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
61
61
|
# HTTP header 'Content-Type'
|
62
62
|
content_type = @api_client.select_header_content_type(['application/json'])
|
63
63
|
if !content_type.nil?
|
@@ -131,7 +131,7 @@ module EmassClient
|
|
131
131
|
# header parameters
|
132
132
|
header_params = opts[:header_params] || {}
|
133
133
|
# HTTP header 'Accept' (if needed)
|
134
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
135
135
|
# HTTP header 'Content-Type'
|
136
136
|
content_type = @api_client.select_header_content_type(['application/json'])
|
137
137
|
if !content_type.nil?
|