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,55 +1,55 @@
|
|
|
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
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module EmassClient
|
|
16
|
-
class
|
|
16
|
+
class SystemWorkflowsDashboardsApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# System
|
|
23
|
-
# Get
|
|
22
|
+
# System Workflows History Details
|
|
23
|
+
# Get systems workflow history details dashboard information.
|
|
24
24
|
# @param org_id [Integer] **Organization Id**: The unique organization identifier.
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
27
27
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
28
28
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
29
|
-
# @return [
|
|
30
|
-
def
|
|
31
|
-
data, _status_code, _headers =
|
|
29
|
+
# @return [GetSystemStatusDetails200Response]
|
|
30
|
+
def get_system_workflows_history_details(org_id, opts = {})
|
|
31
|
+
data, _status_code, _headers = get_system_workflows_history_details_with_http_info(org_id, opts)
|
|
32
32
|
data
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# System
|
|
36
|
-
# Get
|
|
35
|
+
# System Workflows History Details
|
|
36
|
+
# Get systems workflow history details dashboard information.
|
|
37
37
|
# @param org_id [Integer] **Organization Id**: The unique organization identifier.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
40
40
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
41
41
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
42
|
-
# @return [Array<(
|
|
43
|
-
def
|
|
42
|
+
# @return [Array<(GetSystemStatusDetails200Response, Integer, Hash)>] GetSystemStatusDetails200Response data, response status code and response headers
|
|
43
|
+
def get_system_workflows_history_details_with_http_info(org_id, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API:
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: SystemWorkflowsDashboardsApi.get_system_workflows_history_details ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'org_id' is set
|
|
48
48
|
if @api_client.config.client_side_validation && org_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'org_id' when calling
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'org_id' when calling SystemWorkflowsDashboardsApi.get_system_workflows_history_details"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
|
-
local_var_path = '/api/dashboards/system-
|
|
52
|
+
local_var_path = '/api/dashboards/system-workflows-history-details'
|
|
53
53
|
|
|
54
54
|
# query parameters
|
|
55
55
|
query_params = opts[:query_params] || {}
|
|
@@ -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/json'])
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
65
|
|
|
66
66
|
# form parameters
|
|
67
67
|
form_params = opts[:form_params] || {}
|
|
@@ -70,13 +70,13 @@ module EmassClient
|
|
|
70
70
|
post_body = opts[:debug_body]
|
|
71
71
|
|
|
72
72
|
# return_type
|
|
73
|
-
return_type = opts[:debug_return_type] || '
|
|
73
|
+
return_type = opts[:debug_return_type] || 'GetSystemStatusDetails200Response'
|
|
74
74
|
|
|
75
75
|
# auth_names
|
|
76
76
|
auth_names = opts[:debug_auth_names] || ['apiKey', 'mockType', 'userId']
|
|
77
77
|
|
|
78
78
|
new_options = opts.merge(
|
|
79
|
-
:operation => :"
|
|
79
|
+
:operation => :"SystemWorkflowsDashboardsApi.get_system_workflows_history_details",
|
|
80
80
|
:header_params => header_params,
|
|
81
81
|
:query_params => query_params,
|
|
82
82
|
:form_params => form_params,
|
|
@@ -87,42 +87,42 @@ module EmassClient
|
|
|
87
87
|
|
|
88
88
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
89
89
|
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "API called:
|
|
90
|
+
@api_client.config.logger.debug "API called: SystemWorkflowsDashboardsApi#get_system_workflows_history_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
91
|
end
|
|
92
92
|
return data, status_code, headers
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
# System
|
|
96
|
-
# Get
|
|
95
|
+
# System Workflows History Stage Details
|
|
96
|
+
# Get systems workflow history stage details dashboard information.
|
|
97
97
|
# @param org_id [Integer] **Organization Id**: The unique organization identifier.
|
|
98
98
|
# @param [Hash] opts the optional parameters
|
|
99
99
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
100
100
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
101
101
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
102
|
-
# @return [
|
|
103
|
-
def
|
|
104
|
-
data, _status_code, _headers =
|
|
102
|
+
# @return [GetSystemStatusDetails200Response]
|
|
103
|
+
def get_system_workflows_history_stage_details(org_id, opts = {})
|
|
104
|
+
data, _status_code, _headers = get_system_workflows_history_stage_details_with_http_info(org_id, opts)
|
|
105
105
|
data
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
# System
|
|
109
|
-
# Get
|
|
108
|
+
# System Workflows History Stage Details
|
|
109
|
+
# Get systems workflow history stage details dashboard information.
|
|
110
110
|
# @param org_id [Integer] **Organization Id**: The unique organization identifier.
|
|
111
111
|
# @param [Hash] opts the optional parameters
|
|
112
112
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
113
113
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
114
114
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
115
|
-
# @return [Array<(
|
|
116
|
-
def
|
|
115
|
+
# @return [Array<(GetSystemStatusDetails200Response, Integer, Hash)>] GetSystemStatusDetails200Response data, response status code and response headers
|
|
116
|
+
def get_system_workflows_history_stage_details_with_http_info(org_id, opts = {})
|
|
117
117
|
if @api_client.config.debugging
|
|
118
|
-
@api_client.config.logger.debug 'Calling API:
|
|
118
|
+
@api_client.config.logger.debug 'Calling API: SystemWorkflowsDashboardsApi.get_system_workflows_history_stage_details ...'
|
|
119
119
|
end
|
|
120
120
|
# verify the required parameter 'org_id' is set
|
|
121
121
|
if @api_client.config.client_side_validation && org_id.nil?
|
|
122
|
-
fail ArgumentError, "Missing the required parameter 'org_id' when calling
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'org_id' when calling SystemWorkflowsDashboardsApi.get_system_workflows_history_stage_details"
|
|
123
123
|
end
|
|
124
124
|
# resource path
|
|
125
|
-
local_var_path = '/api/dashboards/system-
|
|
125
|
+
local_var_path = '/api/dashboards/system-workflows-history-stage-details'
|
|
126
126
|
|
|
127
127
|
# query parameters
|
|
128
128
|
query_params = opts[:query_params] || {}
|
|
@@ -134,7 +134,7 @@ module EmassClient
|
|
|
134
134
|
# header parameters
|
|
135
135
|
header_params = opts[:header_params] || {}
|
|
136
136
|
# HTTP header 'Accept' (if needed)
|
|
137
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
138
138
|
|
|
139
139
|
# form parameters
|
|
140
140
|
form_params = opts[:form_params] || {}
|
|
@@ -143,13 +143,13 @@ module EmassClient
|
|
|
143
143
|
post_body = opts[:debug_body]
|
|
144
144
|
|
|
145
145
|
# return_type
|
|
146
|
-
return_type = opts[:debug_return_type] || '
|
|
146
|
+
return_type = opts[:debug_return_type] || 'GetSystemStatusDetails200Response'
|
|
147
147
|
|
|
148
148
|
# auth_names
|
|
149
149
|
auth_names = opts[:debug_auth_names] || ['apiKey', 'mockType', 'userId']
|
|
150
150
|
|
|
151
151
|
new_options = opts.merge(
|
|
152
|
-
:operation => :"
|
|
152
|
+
:operation => :"SystemWorkflowsDashboardsApi.get_system_workflows_history_stage_details",
|
|
153
153
|
:header_params => header_params,
|
|
154
154
|
:query_params => query_params,
|
|
155
155
|
:form_params => form_params,
|
|
@@ -160,42 +160,42 @@ module EmassClient
|
|
|
160
160
|
|
|
161
161
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
162
162
|
if @api_client.config.debugging
|
|
163
|
-
@api_client.config.logger.debug "API called:
|
|
163
|
+
@api_client.config.logger.debug "API called: SystemWorkflowsDashboardsApi#get_system_workflows_history_stage_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
164
164
|
end
|
|
165
165
|
return data, status_code, headers
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
# System
|
|
169
|
-
# Get
|
|
168
|
+
# System Workflows History Summary
|
|
169
|
+
# Get systems workflow history summary dashboard information.
|
|
170
170
|
# @param org_id [Integer] **Organization Id**: The unique organization identifier.
|
|
171
171
|
# @param [Hash] opts the optional parameters
|
|
172
172
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
173
173
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
174
174
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
175
|
-
# @return [
|
|
176
|
-
def
|
|
177
|
-
data, _status_code, _headers =
|
|
175
|
+
# @return [GetSystemStatusDetails200Response]
|
|
176
|
+
def get_system_workflows_history_summary(org_id, opts = {})
|
|
177
|
+
data, _status_code, _headers = get_system_workflows_history_summary_with_http_info(org_id, opts)
|
|
178
178
|
data
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
-
# System
|
|
182
|
-
# Get
|
|
181
|
+
# System Workflows History Summary
|
|
182
|
+
# Get systems workflow history summary dashboard information.
|
|
183
183
|
# @param org_id [Integer] **Organization Id**: The unique organization identifier.
|
|
184
184
|
# @param [Hash] opts the optional parameters
|
|
185
185
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
186
186
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
187
187
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
188
|
-
# @return [Array<(
|
|
189
|
-
def
|
|
188
|
+
# @return [Array<(GetSystemStatusDetails200Response, Integer, Hash)>] GetSystemStatusDetails200Response data, response status code and response headers
|
|
189
|
+
def get_system_workflows_history_summary_with_http_info(org_id, opts = {})
|
|
190
190
|
if @api_client.config.debugging
|
|
191
|
-
@api_client.config.logger.debug 'Calling API:
|
|
191
|
+
@api_client.config.logger.debug 'Calling API: SystemWorkflowsDashboardsApi.get_system_workflows_history_summary ...'
|
|
192
192
|
end
|
|
193
193
|
# verify the required parameter 'org_id' is set
|
|
194
194
|
if @api_client.config.client_side_validation && org_id.nil?
|
|
195
|
-
fail ArgumentError, "Missing the required parameter 'org_id' when calling
|
|
195
|
+
fail ArgumentError, "Missing the required parameter 'org_id' when calling SystemWorkflowsDashboardsApi.get_system_workflows_history_summary"
|
|
196
196
|
end
|
|
197
197
|
# resource path
|
|
198
|
-
local_var_path = '/api/dashboards/system-
|
|
198
|
+
local_var_path = '/api/dashboards/system-workflows-history-summary'
|
|
199
199
|
|
|
200
200
|
# query parameters
|
|
201
201
|
query_params = opts[:query_params] || {}
|
|
@@ -207,7 +207,7 @@ module EmassClient
|
|
|
207
207
|
# header parameters
|
|
208
208
|
header_params = opts[:header_params] || {}
|
|
209
209
|
# HTTP header 'Accept' (if needed)
|
|
210
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
211
211
|
|
|
212
212
|
# form parameters
|
|
213
213
|
form_params = opts[:form_params] || {}
|
|
@@ -216,13 +216,13 @@ module EmassClient
|
|
|
216
216
|
post_body = opts[:debug_body]
|
|
217
217
|
|
|
218
218
|
# return_type
|
|
219
|
-
return_type = opts[:debug_return_type] || '
|
|
219
|
+
return_type = opts[:debug_return_type] || 'GetSystemStatusDetails200Response'
|
|
220
220
|
|
|
221
221
|
# auth_names
|
|
222
222
|
auth_names = opts[:debug_auth_names] || ['apiKey', 'mockType', 'userId']
|
|
223
223
|
|
|
224
224
|
new_options = opts.merge(
|
|
225
|
-
:operation => :"
|
|
225
|
+
:operation => :"SystemWorkflowsDashboardsApi.get_system_workflows_history_summary",
|
|
226
226
|
:header_params => header_params,
|
|
227
227
|
:query_params => query_params,
|
|
228
228
|
:form_params => form_params,
|
|
@@ -233,7 +233,7 @@ module EmassClient
|
|
|
233
233
|
|
|
234
234
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
235
235
|
if @api_client.config.debugging
|
|
236
|
-
@api_client.config.logger.debug "API called:
|
|
236
|
+
@api_client.config.logger.debug "API called: SystemWorkflowsDashboardsApi#get_system_workflows_history_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
237
237
|
end
|
|
238
238
|
return data, status_code, headers
|
|
239
239
|
end
|
|
@@ -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
|
|
|
@@ -23,8 +23,7 @@ module EmassClient
|
|
|
23
23
|
# Returns the system matching provided parameters
|
|
24
24
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [
|
|
27
|
-
# @option opts [String] :policy **System Policy**: Filter query by system policy. If no value is specified, the default returns RMF policy information for dual-policy systems. (default to 'rmf')
|
|
26
|
+
# @option opts [String] :policy **System Policy**: Filter query by system policy. If no value is specified, the default returns RMF policy information for dual-policy systems. (default to 'rmf')
|
|
28
27
|
# @return [SystemResponse]
|
|
29
28
|
def get_system(system_id, opts = {})
|
|
30
29
|
data, _status_code, _headers = get_system_with_http_info(system_id, opts)
|
|
@@ -35,8 +34,7 @@ module EmassClient
|
|
|
35
34
|
# Returns the system matching provided parameters
|
|
36
35
|
# @param system_id [Integer] **System Id**: The unique system record identifier.
|
|
37
36
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @option opts [
|
|
39
|
-
# @option opts [String] :policy **System Policy**: Filter query by system policy. If no value is specified, the default returns RMF policy information for dual-policy systems. (default to 'rmf')
|
|
37
|
+
# @option opts [String] :policy **System Policy**: Filter query by system policy. If no value is specified, the default returns RMF policy information for dual-policy systems. (default to 'rmf')
|
|
40
38
|
# @return [Array<(SystemResponse, Integer, Hash)>] SystemResponse data, response status code and response headers
|
|
41
39
|
def get_system_with_http_info(system_id, opts = {})
|
|
42
40
|
if @api_client.config.debugging
|
|
@@ -55,13 +53,12 @@ module EmassClient
|
|
|
55
53
|
|
|
56
54
|
# query parameters
|
|
57
55
|
query_params = opts[:query_params] || {}
|
|
58
|
-
query_params[:'includePackage'] = opts[:'include_package'] if !opts[:'include_package'].nil?
|
|
59
56
|
query_params[:'policy'] = opts[:'policy'] if !opts[:'policy'].nil?
|
|
60
57
|
|
|
61
58
|
# header parameters
|
|
62
59
|
header_params = opts[:header_params] || {}
|
|
63
60
|
# HTTP header 'Accept' (if needed)
|
|
64
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
62
|
|
|
66
63
|
# form parameters
|
|
67
64
|
form_params = opts[:form_params] || {}
|
|
@@ -97,11 +94,10 @@ module EmassClient
|
|
|
97
94
|
# @param [Hash] opts the optional parameters
|
|
98
95
|
# @option opts [String] :coams_id **COAMS ID**: Filter query by Cyber Operational Attributes Management System (COAMS).
|
|
99
96
|
# @option opts [String] :ditpr_id **DITPR ID**: Filter query by DoD Information Technology (IT) Portfolio Repository (DITPR).
|
|
100
|
-
# @option opts [Boolean] :include_decommissioned **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved.
|
|
101
|
-
# @option opts [Boolean] :include_ditpr_metrics **Include DITPR**: Indicates if DITPR metrics are retrieved.
|
|
102
|
-
# @option opts [
|
|
103
|
-
# @option opts [String] :
|
|
104
|
-
# @option opts [String] :registration_type **Registration Type**: Filter record by selected registration type (single value or comma delimited values). *Available values:* assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider (default to 'regular')
|
|
97
|
+
# @option opts [Boolean] :include_decommissioned **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved. If no value is specified, the default returns true to include decommissioned systems. (default to true)
|
|
98
|
+
# @option opts [Boolean] :include_ditpr_metrics **Include DITPR**: Indicates if DITPR metrics are retrieved. This query string parameter cannot be used in conjunction with the following parameters: - ditprId - coamsId If no value is specified, the default returns false to not include DITPR Metrics. (default to false)
|
|
99
|
+
# @option opts [String] :policy **System Policy**: Filter query by system policy. If no value is specified, the default returns RMF policy information for dual-policy systems. (default to 'rmf')
|
|
100
|
+
# @option opts [String] :registration_type **Registration Type**: Filter record by selected registration type (single value or comma delimited values). **Valid Options Are:** assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider, authorizationToUse, reciprocityAcceptanc (default to 'regular')
|
|
105
101
|
# @option opts [Boolean] :reports_for_scorecard **DoD Cyber Hygiene Scorecard**: Used to filter results to only return systems that report to the DoD Cyber Hygiene Scorecard. (default to true)
|
|
106
102
|
# @return [SystemsResponse]
|
|
107
103
|
def get_systems(opts = {})
|
|
@@ -114,11 +110,10 @@ module EmassClient
|
|
|
114
110
|
# @param [Hash] opts the optional parameters
|
|
115
111
|
# @option opts [String] :coams_id **COAMS ID**: Filter query by Cyber Operational Attributes Management System (COAMS).
|
|
116
112
|
# @option opts [String] :ditpr_id **DITPR ID**: Filter query by DoD Information Technology (IT) Portfolio Repository (DITPR).
|
|
117
|
-
# @option opts [Boolean] :include_decommissioned **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved.
|
|
118
|
-
# @option opts [Boolean] :include_ditpr_metrics **Include DITPR**: Indicates if DITPR metrics are retrieved.
|
|
119
|
-
# @option opts [
|
|
120
|
-
# @option opts [String] :
|
|
121
|
-
# @option opts [String] :registration_type **Registration Type**: Filter record by selected registration type (single value or comma delimited values). *Available values:* assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider (default to 'regular')
|
|
113
|
+
# @option opts [Boolean] :include_decommissioned **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved. If no value is specified, the default returns true to include decommissioned systems. (default to true)
|
|
114
|
+
# @option opts [Boolean] :include_ditpr_metrics **Include DITPR**: Indicates if DITPR metrics are retrieved. This query string parameter cannot be used in conjunction with the following parameters: - ditprId - coamsId If no value is specified, the default returns false to not include DITPR Metrics. (default to false)
|
|
115
|
+
# @option opts [String] :policy **System Policy**: Filter query by system policy. If no value is specified, the default returns RMF policy information for dual-policy systems. (default to 'rmf')
|
|
116
|
+
# @option opts [String] :registration_type **Registration Type**: Filter record by selected registration type (single value or comma delimited values). **Valid Options Are:** assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider, authorizationToUse, reciprocityAcceptanc (default to 'regular')
|
|
122
117
|
# @option opts [Boolean] :reports_for_scorecard **DoD Cyber Hygiene Scorecard**: Used to filter results to only return systems that report to the DoD Cyber Hygiene Scorecard. (default to true)
|
|
123
118
|
# @return [Array<(SystemsResponse, Integer, Hash)>] SystemsResponse data, response status code and response headers
|
|
124
119
|
def get_systems_with_http_info(opts = {})
|
|
@@ -138,7 +133,6 @@ module EmassClient
|
|
|
138
133
|
query_params[:'ditprId'] = opts[:'ditpr_id'] if !opts[:'ditpr_id'].nil?
|
|
139
134
|
query_params[:'includeDecommissioned'] = opts[:'include_decommissioned'] if !opts[:'include_decommissioned'].nil?
|
|
140
135
|
query_params[:'includeDitprMetrics'] = opts[:'include_ditpr_metrics'] if !opts[:'include_ditpr_metrics'].nil?
|
|
141
|
-
query_params[:'includePackage'] = opts[:'include_package'] if !opts[:'include_package'].nil?
|
|
142
136
|
query_params[:'policy'] = opts[:'policy'] if !opts[:'policy'].nil?
|
|
143
137
|
query_params[:'registrationType'] = opts[:'registration_type'] if !opts[:'registration_type'].nil?
|
|
144
138
|
query_params[:'reportsForScorecard'] = opts[:'reports_for_scorecard'] if !opts[:'reports_for_scorecard'].nil?
|
|
@@ -146,7 +140,7 @@ module EmassClient
|
|
|
146
140
|
# header parameters
|
|
147
141
|
header_params = opts[:header_params] || {}
|
|
148
142
|
# HTTP header 'Accept' (if needed)
|
|
149
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
150
144
|
|
|
151
145
|
# form parameters
|
|
152
146
|
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
|
|
|
@@ -45,7 +45,7 @@ module EmassClient
|
|
|
45
45
|
# header parameters
|
|
46
46
|
header_params = opts[:header_params] || {}
|
|
47
47
|
# HTTP header 'Accept' (if needed)
|
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
49
49
|
|
|
50
50
|
# form parameters
|
|
51
51
|
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 test results in a system
|
|
23
|
-
# Adds test results for given `systemId` **Request Body Required Fields** - `testedBy` - `testDate` - `description` - `complianceStatus` - `assessmentProcedure`
|
|
23
|
+
# Adds test results for given `systemId` **Request Body Required Fields** - `testedBy` - `testDate` - `description` - `complianceStatus` - `assessmentProcedure`
|
|
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 to add test results to a system (systemId)
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [TestResultsResponsePost]
|
|
28
28
|
def add_test_results_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 test results in a system
|
|
34
|
-
# Adds test results for given `systemId` **Request Body Required Fields** - `testedBy` - `testDate` - `description` - `complianceStatus` - `assessmentProcedure`
|
|
34
|
+
# Adds test results for given `systemId` **Request Body Required Fields** - `testedBy` - `testDate` - `description` - `complianceStatus` - `assessmentProcedure`
|
|
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 to add test results to a system (systemId)
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @return [Array<(TestResultsResponsePost, Integer, Hash)>] TestResultsResponsePost data, response status code and response headers
|
|
39
39
|
def add_test_results_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?
|
|
@@ -137,7 +137,7 @@ module EmassClient
|
|
|
137
137
|
# header parameters
|
|
138
138
|
header_params = opts[:header_params] || {}
|
|
139
139
|
# HTTP header 'Accept' (if needed)
|
|
140
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
141
141
|
|
|
142
142
|
# form parameters
|
|
143
143
|
form_params = opts[:form_params] || {}
|
data/lib/emass_client/api/{users_dashboard_api.rb → user_system_assignments_dashboard_api.rb}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module EmassClient
|
|
16
|
-
class
|
|
16
|
+
class UserSystemAssignmentsDashboardApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
@@ -26,7 +26,7 @@ module EmassClient
|
|
|
26
26
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
27
27
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
28
28
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
29
|
-
# @return [
|
|
29
|
+
# @return [GetSystemStatusDetails200Response]
|
|
30
30
|
def get_user_system_assignments_details(org_id, opts = {})
|
|
31
31
|
data, _status_code, _headers = get_user_system_assignments_details_with_http_info(org_id, opts)
|
|
32
32
|
data
|
|
@@ -39,14 +39,14 @@ module EmassClient
|
|
|
39
39
|
# @option opts [Boolean] :excludeinherited **Exclude Inherited**: If no value is specified, the default returns false to include inherited data. (default to false)
|
|
40
40
|
# @option opts [Integer] :page_index **Page Index**: If no value is specified, the default returns results from the first page with an index of 0. (default to 0)
|
|
41
41
|
# @option opts [Integer] :page_size **Page Size**: If no value is specified, the default returns 20000 per page. (default to 20000)
|
|
42
|
-
# @return [Array<(
|
|
42
|
+
# @return [Array<(GetSystemStatusDetails200Response, Integer, Hash)>] GetSystemStatusDetails200Response data, response status code and response headers
|
|
43
43
|
def get_user_system_assignments_details_with_http_info(org_id, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API:
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: UserSystemAssignmentsDashboardApi.get_user_system_assignments_details ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'org_id' is set
|
|
48
48
|
if @api_client.config.client_side_validation && org_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'org_id' when calling
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'org_id' when calling UserSystemAssignmentsDashboardApi.get_user_system_assignments_details"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '/api/dashboards/user-system-assignments-details'
|
|
@@ -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/json'])
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
65
|
|
|
66
66
|
# form parameters
|
|
67
67
|
form_params = opts[:form_params] || {}
|
|
@@ -70,13 +70,13 @@ module EmassClient
|
|
|
70
70
|
post_body = opts[:debug_body]
|
|
71
71
|
|
|
72
72
|
# return_type
|
|
73
|
-
return_type = opts[:debug_return_type] || '
|
|
73
|
+
return_type = opts[:debug_return_type] || 'GetSystemStatusDetails200Response'
|
|
74
74
|
|
|
75
75
|
# auth_names
|
|
76
76
|
auth_names = opts[:debug_auth_names] || ['apiKey', 'mockType', 'userId']
|
|
77
77
|
|
|
78
78
|
new_options = opts.merge(
|
|
79
|
-
:operation => :"
|
|
79
|
+
:operation => :"UserSystemAssignmentsDashboardApi.get_user_system_assignments_details",
|
|
80
80
|
:header_params => header_params,
|
|
81
81
|
:query_params => query_params,
|
|
82
82
|
:form_params => form_params,
|
|
@@ -87,7 +87,7 @@ module EmassClient
|
|
|
87
87
|
|
|
88
88
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
89
89
|
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "API called:
|
|
90
|
+
@api_client.config.logger.debug "API called: UserSystemAssignmentsDashboardApi#get_user_system_assignments_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
91
|
end
|
|
92
92
|
return data, status_code, headers
|
|
93
93
|
end
|