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
|
|
@@ -31,9 +31,14 @@ module EmassClient
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
+
# Returns attribute mapping this model knows about
|
35
|
+
def self.acceptable_attribute_map
|
36
|
+
attribute_map
|
37
|
+
end
|
38
|
+
|
34
39
|
# Returns all the JSON keys this model knows about
|
35
40
|
def self.acceptable_attributes
|
36
|
-
|
41
|
+
acceptable_attribute_map.values
|
37
42
|
end
|
38
43
|
|
39
44
|
# Attribute type mapping.
|
@@ -59,9 +64,10 @@ module EmassClient
|
|
59
64
|
end
|
60
65
|
|
61
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
62
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
-
if (!
|
64
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponseDelDataInner`. Please check the name to make sure it's valid. List of attributes: " +
|
69
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponseDelDataInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
65
71
|
end
|
66
72
|
h[k.to_sym] = v
|
67
73
|
}
|
@@ -178,7 +184,7 @@ module EmassClient
|
|
178
184
|
else # model
|
179
185
|
# models (e.g. Pet) or oneOf
|
180
186
|
klass = EmassClient.const_get(type)
|
181
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
188
|
end
|
183
189
|
end
|
184
190
|
|
@@ -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
|
|
@@ -27,16 +27,21 @@ module EmassClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
36
41
|
def self.openapi_types
|
37
42
|
{
|
38
43
|
:'meta' => :'Response200',
|
39
|
-
:'data' => :'Array<
|
44
|
+
:'data' => :'Array<ArtifactsResponseGetDataInner>'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -54,9 +59,10 @@ module EmassClient
|
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponseGet`. Please check the name to make sure it's valid. List of attributes: " +
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponseGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -170,7 +176,7 @@ module EmassClient
|
|
170
176
|
else # model
|
171
177
|
# models (e.g. Pet) or oneOf
|
172
178
|
klass = EmassClient.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
180
|
end
|
175
181
|
end
|
176
182
|
|
@@ -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
|
|
@@ -14,16 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module EmassClient
|
17
|
-
class
|
17
|
+
class ArtifactsResponseGetDataInner
|
18
18
|
# [Required] Unique eMASS system identifier.
|
19
19
|
attr_accessor :system_id
|
20
20
|
|
21
21
|
# [Required] File name should match exactly one file within the provided zip file. 1000 Characters. or Application/zip file. Max 30MB per artifact.
|
22
22
|
attr_accessor :filename
|
23
23
|
|
24
|
-
# [Read-only] Indicates whether an artifact is inherited.
|
25
|
-
attr_accessor :is_inherited
|
26
|
-
|
27
24
|
# [Required] Indicates whether an artifact template.
|
28
25
|
attr_accessor :is_template
|
29
26
|
|
@@ -33,6 +30,18 @@ module EmassClient
|
|
33
30
|
# [Required] Artifact category options
|
34
31
|
attr_accessor :category
|
35
32
|
|
33
|
+
# [Read-only] Indicates whether an artifact is inherited.
|
34
|
+
attr_accessor :is_inherited
|
35
|
+
|
36
|
+
# [Read-Only] CCI mapping for Assessment Procedures associated with the artifact.
|
37
|
+
attr_accessor :ccis
|
38
|
+
|
39
|
+
# [Read-Only] Standard MIME content type derived from file extension.
|
40
|
+
attr_accessor :mime_content_type
|
41
|
+
|
42
|
+
# [Read-Only] File size of attached artifact.
|
43
|
+
attr_accessor :file_size
|
44
|
+
|
36
45
|
# [Optional] Artifact name. Character Limit = 100.
|
37
46
|
attr_accessor :name
|
38
47
|
|
@@ -42,20 +51,11 @@ module EmassClient
|
|
42
51
|
# [Optional] Artifact reference page number. 50 Characters.
|
43
52
|
attr_accessor :reference_page_number
|
44
53
|
|
45
|
-
# [Read-Only] CCI mapping for Assessment Procedures associated with the artifact.
|
46
|
-
attr_accessor :ccis
|
47
|
-
|
48
|
-
# [Optional] Control acronym associated with the artifact. NIST SP 800-53 Revision 4 defined.
|
49
|
-
attr_accessor :controls
|
50
|
-
|
51
54
|
# [Optional] The Security Control Assessment Procedure being associated with the artifact.
|
52
55
|
attr_accessor :assessment_procedures
|
53
56
|
|
54
|
-
# [
|
55
|
-
attr_accessor :
|
56
|
-
|
57
|
-
# [Read-Only] File size of attached artifact.
|
58
|
-
attr_accessor :file_size
|
57
|
+
# [Optional] Control acronym associated with the artifact. NIST SP 800-53 Revision 4 defined.
|
58
|
+
attr_accessor :controls
|
59
59
|
|
60
60
|
# [Optional] Date Artifact expires and requires review. In Unix Date format.
|
61
61
|
attr_accessor :expiration_date
|
@@ -71,27 +71,32 @@ module EmassClient
|
|
71
71
|
{
|
72
72
|
:'system_id' => :'systemId',
|
73
73
|
:'filename' => :'filename',
|
74
|
-
:'is_inherited' => :'isInherited',
|
75
74
|
:'is_template' => :'isTemplate',
|
76
75
|
:'type' => :'type',
|
77
76
|
:'category' => :'category',
|
77
|
+
:'is_inherited' => :'isInherited',
|
78
|
+
:'ccis' => :'ccis',
|
79
|
+
:'mime_content_type' => :'mimeContentType',
|
80
|
+
:'file_size' => :'fileSize',
|
78
81
|
:'name' => :'name',
|
79
82
|
:'description' => :'description',
|
80
83
|
:'reference_page_number' => :'referencePageNumber',
|
81
|
-
:'ccis' => :'ccis',
|
82
|
-
:'controls' => :'controls',
|
83
84
|
:'assessment_procedures' => :'assessmentProcedures',
|
84
|
-
:'
|
85
|
-
:'file_size' => :'fileSize',
|
85
|
+
:'controls' => :'controls',
|
86
86
|
:'expiration_date' => :'expirationDate',
|
87
87
|
:'last_reviewed_date' => :'lastReviewedDate',
|
88
88
|
:'signed_date' => :'signedDate'
|
89
89
|
}
|
90
90
|
end
|
91
91
|
|
92
|
+
# Returns attribute mapping this model knows about
|
93
|
+
def self.acceptable_attribute_map
|
94
|
+
attribute_map
|
95
|
+
end
|
96
|
+
|
92
97
|
# Returns all the JSON keys this model knows about
|
93
98
|
def self.acceptable_attributes
|
94
|
-
|
99
|
+
acceptable_attribute_map.values
|
95
100
|
end
|
96
101
|
|
97
102
|
# Attribute type mapping.
|
@@ -99,18 +104,18 @@ module EmassClient
|
|
99
104
|
{
|
100
105
|
:'system_id' => :'Integer',
|
101
106
|
:'filename' => :'String',
|
102
|
-
:'is_inherited' => :'Boolean',
|
103
107
|
:'is_template' => :'Boolean',
|
104
108
|
:'type' => :'String',
|
105
109
|
:'category' => :'String',
|
110
|
+
:'is_inherited' => :'Boolean',
|
111
|
+
:'ccis' => :'String',
|
112
|
+
:'mime_content_type' => :'String',
|
113
|
+
:'file_size' => :'String',
|
106
114
|
:'name' => :'String',
|
107
115
|
:'description' => :'String',
|
108
116
|
:'reference_page_number' => :'String',
|
109
|
-
:'ccis' => :'String',
|
110
|
-
:'controls' => :'String',
|
111
117
|
:'assessment_procedures' => :'String',
|
112
|
-
:'
|
113
|
-
:'file_size' => :'String',
|
118
|
+
:'controls' => :'String',
|
114
119
|
:'expiration_date' => :'Integer',
|
115
120
|
:'last_reviewed_date' => :'Integer',
|
116
121
|
:'signed_date' => :'Integer'
|
@@ -120,32 +125,43 @@ module EmassClient
|
|
120
125
|
# List of attributes with nullable: true
|
121
126
|
def self.openapi_nullable
|
122
127
|
Set.new([
|
123
|
-
:'is_inherited',
|
124
128
|
:'is_template',
|
129
|
+
:'is_inherited',
|
130
|
+
:'ccis',
|
131
|
+
:'mime_content_type',
|
132
|
+
:'file_size',
|
125
133
|
:'name',
|
126
134
|
:'description',
|
127
135
|
:'reference_page_number',
|
128
|
-
:'ccis',
|
129
136
|
:'controls',
|
130
|
-
:'mime_content_type',
|
131
|
-
:'file_size',
|
132
137
|
:'expiration_date',
|
133
138
|
:'last_reviewed_date',
|
134
139
|
:'signed_date'
|
135
140
|
])
|
136
141
|
end
|
137
142
|
|
143
|
+
# List of class defined in allOf (OpenAPI v3)
|
144
|
+
def self.openapi_all_of
|
145
|
+
[
|
146
|
+
:'ArtifactsIds',
|
147
|
+
:'ArtifactsOptionalFields',
|
148
|
+
:'ArtifactsReadOnlyFields',
|
149
|
+
:'ArtifactsRequiredFields'
|
150
|
+
]
|
151
|
+
end
|
152
|
+
|
138
153
|
# Initializes the object
|
139
154
|
# @param [Hash] attributes Model attributes in the form of hash
|
140
155
|
def initialize(attributes = {})
|
141
156
|
if (!attributes.is_a?(Hash))
|
142
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::
|
157
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::ArtifactsResponseGetDataInner` initialize method"
|
143
158
|
end
|
144
159
|
|
145
160
|
# check to see if the attribute exists and convert string to symbol for hash key
|
161
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
146
162
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
147
|
-
if (!
|
148
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::
|
163
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
164
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponseGetDataInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
149
165
|
end
|
150
166
|
h[k.to_sym] = v
|
151
167
|
}
|
@@ -158,10 +174,6 @@ module EmassClient
|
|
158
174
|
self.filename = attributes[:'filename']
|
159
175
|
end
|
160
176
|
|
161
|
-
if attributes.key?(:'is_inherited')
|
162
|
-
self.is_inherited = attributes[:'is_inherited']
|
163
|
-
end
|
164
|
-
|
165
177
|
if attributes.key?(:'is_template')
|
166
178
|
self.is_template = attributes[:'is_template']
|
167
179
|
end
|
@@ -174,6 +186,22 @@ module EmassClient
|
|
174
186
|
self.category = attributes[:'category']
|
175
187
|
end
|
176
188
|
|
189
|
+
if attributes.key?(:'is_inherited')
|
190
|
+
self.is_inherited = attributes[:'is_inherited']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'ccis')
|
194
|
+
self.ccis = attributes[:'ccis']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.key?(:'mime_content_type')
|
198
|
+
self.mime_content_type = attributes[:'mime_content_type']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'file_size')
|
202
|
+
self.file_size = attributes[:'file_size']
|
203
|
+
end
|
204
|
+
|
177
205
|
if attributes.key?(:'name')
|
178
206
|
self.name = attributes[:'name']
|
179
207
|
end
|
@@ -186,24 +214,12 @@ module EmassClient
|
|
186
214
|
self.reference_page_number = attributes[:'reference_page_number']
|
187
215
|
end
|
188
216
|
|
189
|
-
if attributes.key?(:'ccis')
|
190
|
-
self.ccis = attributes[:'ccis']
|
191
|
-
end
|
192
|
-
|
193
|
-
if attributes.key?(:'controls')
|
194
|
-
self.controls = attributes[:'controls']
|
195
|
-
end
|
196
|
-
|
197
217
|
if attributes.key?(:'assessment_procedures')
|
198
218
|
self.assessment_procedures = attributes[:'assessment_procedures']
|
199
219
|
end
|
200
220
|
|
201
|
-
if attributes.key?(:'
|
202
|
-
self.
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.key?(:'file_size')
|
206
|
-
self.file_size = attributes[:'file_size']
|
221
|
+
if attributes.key?(:'controls')
|
222
|
+
self.controls = attributes[:'controls']
|
207
223
|
end
|
208
224
|
|
209
225
|
if attributes.key?(:'expiration_date')
|
@@ -241,18 +257,18 @@ module EmassClient
|
|
241
257
|
self.class == o.class &&
|
242
258
|
system_id == o.system_id &&
|
243
259
|
filename == o.filename &&
|
244
|
-
is_inherited == o.is_inherited &&
|
245
260
|
is_template == o.is_template &&
|
246
261
|
type == o.type &&
|
247
262
|
category == o.category &&
|
263
|
+
is_inherited == o.is_inherited &&
|
264
|
+
ccis == o.ccis &&
|
265
|
+
mime_content_type == o.mime_content_type &&
|
266
|
+
file_size == o.file_size &&
|
248
267
|
name == o.name &&
|
249
268
|
description == o.description &&
|
250
269
|
reference_page_number == o.reference_page_number &&
|
251
|
-
ccis == o.ccis &&
|
252
|
-
controls == o.controls &&
|
253
270
|
assessment_procedures == o.assessment_procedures &&
|
254
|
-
|
255
|
-
file_size == o.file_size &&
|
271
|
+
controls == o.controls &&
|
256
272
|
expiration_date == o.expiration_date &&
|
257
273
|
last_reviewed_date == o.last_reviewed_date &&
|
258
274
|
signed_date == o.signed_date
|
@@ -267,7 +283,7 @@ module EmassClient
|
|
267
283
|
# Calculates hash code according to all attributes.
|
268
284
|
# @return [Integer] Hash code
|
269
285
|
def hash
|
270
|
-
[system_id, filename,
|
286
|
+
[system_id, filename, is_template, type, category, is_inherited, ccis, mime_content_type, file_size, name, description, reference_page_number, assessment_procedures, controls, expiration_date, last_reviewed_date, signed_date].hash
|
271
287
|
end
|
272
288
|
|
273
289
|
# Builds the object from hash
|
@@ -332,7 +348,7 @@ module EmassClient
|
|
332
348
|
else # model
|
333
349
|
# models (e.g. Pet) or oneOf
|
334
350
|
klass = EmassClient.const_get(type)
|
335
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
351
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
336
352
|
end
|
337
353
|
end
|
338
354
|
|
@@ -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
|
|
@@ -27,9 +27,14 @@ module EmassClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
@@ -54,9 +59,10 @@ module EmassClient
|
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponsePutPost`. Please check the name to make sure it's valid. List of attributes: " +
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponsePutPost`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -170,7 +176,7 @@ module EmassClient
|
|
170
176
|
else # model
|
171
177
|
# models (e.g. Pet) or oneOf
|
172
178
|
klass = EmassClient.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
180
|
end
|
175
181
|
end
|
176
182
|
|
@@ -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
|
|
@@ -34,9 +34,14 @@ module EmassClient
|
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
37
|
+
# Returns attribute mapping this model knows about
|
38
|
+
def self.acceptable_attribute_map
|
39
|
+
attribute_map
|
40
|
+
end
|
41
|
+
|
37
42
|
# Returns all the JSON keys this model knows about
|
38
43
|
def self.acceptable_attributes
|
39
|
-
|
44
|
+
acceptable_attribute_map.values
|
40
45
|
end
|
41
46
|
|
42
47
|
# Attribute type mapping.
|
@@ -64,9 +69,10 @@ module EmassClient
|
|
64
69
|
end
|
65
70
|
|
66
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
67
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
-
if (!
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponsePutPostDataInner`. Please check the name to make sure it's valid. List of attributes: " +
|
74
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsResponsePutPostDataInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
70
76
|
end
|
71
77
|
h[k.to_sym] = v
|
72
78
|
}
|
@@ -95,8 +101,8 @@ module EmassClient
|
|
95
101
|
def list_invalid_properties
|
96
102
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
97
103
|
invalid_properties = Array.new
|
98
|
-
if !@errors.nil? && @errors.length >
|
99
|
-
invalid_properties.push('invalid value for "errors", number of items must be less than or equal to
|
104
|
+
if !@errors.nil? && @errors.length > 25
|
105
|
+
invalid_properties.push('invalid value for "errors", number of items must be less than or equal to 25.')
|
100
106
|
end
|
101
107
|
|
102
108
|
if !@errors.nil? && @errors.length < 1
|
@@ -110,7 +116,7 @@ module EmassClient
|
|
110
116
|
# @return true if the model is valid
|
111
117
|
def valid?
|
112
118
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
113
|
-
return false if !@errors.nil? && @errors.length >
|
119
|
+
return false if !@errors.nil? && @errors.length > 25
|
114
120
|
return false if !@errors.nil? && @errors.length < 1
|
115
121
|
true
|
116
122
|
end
|
@@ -118,8 +124,8 @@ module EmassClient
|
|
118
124
|
# Custom attribute writer method with validation
|
119
125
|
# @param [Object] errors Value to be assigned
|
120
126
|
def errors=(errors)
|
121
|
-
if !errors.nil? && errors.length >
|
122
|
-
fail ArgumentError, 'invalid value for "errors", number of items must be less than or equal to
|
127
|
+
if !errors.nil? && errors.length > 25
|
128
|
+
fail ArgumentError, 'invalid value for "errors", number of items must be less than or equal to 25.'
|
123
129
|
end
|
124
130
|
|
125
131
|
if !errors.nil? && errors.length < 1
|
@@ -214,7 +220,7 @@ module EmassClient
|
|
214
220
|
else # model
|
215
221
|
# models (e.g. Pet) or oneOf
|
216
222
|
klass = EmassClient.const_get(type)
|
217
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
223
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
224
|
end
|
219
225
|
end
|
220
226
|
|