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
|
|
@@ -15,35 +15,29 @@ require 'time'
|
|
15
15
|
|
16
16
|
module EmassClient
|
17
17
|
class MilestonesRequiredPut
|
18
|
-
|
19
|
-
attr_accessor :milestone_id
|
20
|
-
|
21
|
-
# [Required] Include milestone description.
|
22
|
-
attr_accessor :description
|
23
|
-
|
24
|
-
# [Required] Shecdule completion date. Unix time format.
|
25
|
-
attr_accessor :scheduled_completion_date
|
18
|
+
attr_accessor :milestones
|
26
19
|
|
27
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
21
|
def self.attribute_map
|
29
22
|
{
|
30
|
-
:'
|
31
|
-
:'description' => :'description',
|
32
|
-
:'scheduled_completion_date' => :'scheduledCompletionDate'
|
23
|
+
:'milestones' => :'milestones'
|
33
24
|
}
|
34
25
|
end
|
35
26
|
|
27
|
+
# Returns attribute mapping this model knows about
|
28
|
+
def self.acceptable_attribute_map
|
29
|
+
attribute_map
|
30
|
+
end
|
31
|
+
|
36
32
|
# Returns all the JSON keys this model knows about
|
37
33
|
def self.acceptable_attributes
|
38
|
-
|
34
|
+
acceptable_attribute_map.values
|
39
35
|
end
|
40
36
|
|
41
37
|
# Attribute type mapping.
|
42
38
|
def self.openapi_types
|
43
39
|
{
|
44
|
-
:'
|
45
|
-
:'description' => :'String',
|
46
|
-
:'scheduled_completion_date' => :'Integer'
|
40
|
+
:'milestones' => :'Array<MilestonesRequiredPutMilestonesInner>'
|
47
41
|
}
|
48
42
|
end
|
49
43
|
|
@@ -61,29 +55,18 @@ module EmassClient
|
|
61
55
|
end
|
62
56
|
|
63
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
64
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
-
if (!
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::MilestonesRequiredPut`. Please check the name to make sure it's valid. List of attributes: " +
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::MilestonesRequiredPut`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
67
62
|
end
|
68
63
|
h[k.to_sym] = v
|
69
64
|
}
|
70
65
|
|
71
|
-
if attributes.key?(:'
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.key?(:'description')
|
78
|
-
self.description = attributes[:'description']
|
79
|
-
else
|
80
|
-
self.description = nil
|
81
|
-
end
|
82
|
-
|
83
|
-
if attributes.key?(:'scheduled_completion_date')
|
84
|
-
self.scheduled_completion_date = attributes[:'scheduled_completion_date']
|
85
|
-
else
|
86
|
-
self.scheduled_completion_date = nil
|
66
|
+
if attributes.key?(:'milestones')
|
67
|
+
if (value = attributes[:'milestones']).is_a?(Array)
|
68
|
+
self.milestones = value
|
69
|
+
end
|
87
70
|
end
|
88
71
|
end
|
89
72
|
|
@@ -92,18 +75,6 @@ module EmassClient
|
|
92
75
|
def list_invalid_properties
|
93
76
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
94
77
|
invalid_properties = Array.new
|
95
|
-
if @milestone_id.nil?
|
96
|
-
invalid_properties.push('invalid value for "milestone_id", milestone_id cannot be nil.')
|
97
|
-
end
|
98
|
-
|
99
|
-
if @description.nil?
|
100
|
-
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
|
-
if @scheduled_completion_date.nil?
|
104
|
-
invalid_properties.push('invalid value for "scheduled_completion_date", scheduled_completion_date cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
78
|
invalid_properties
|
108
79
|
end
|
109
80
|
|
@@ -111,9 +82,6 @@ module EmassClient
|
|
111
82
|
# @return true if the model is valid
|
112
83
|
def valid?
|
113
84
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
114
|
-
return false if @milestone_id.nil?
|
115
|
-
return false if @description.nil?
|
116
|
-
return false if @scheduled_completion_date.nil?
|
117
85
|
true
|
118
86
|
end
|
119
87
|
|
@@ -122,9 +90,7 @@ module EmassClient
|
|
122
90
|
def ==(o)
|
123
91
|
return true if self.equal?(o)
|
124
92
|
self.class == o.class &&
|
125
|
-
|
126
|
-
description == o.description &&
|
127
|
-
scheduled_completion_date == o.scheduled_completion_date
|
93
|
+
milestones == o.milestones
|
128
94
|
end
|
129
95
|
|
130
96
|
# @see the `==` method
|
@@ -136,7 +102,7 @@ module EmassClient
|
|
136
102
|
# Calculates hash code according to all attributes.
|
137
103
|
# @return [Integer] Hash code
|
138
104
|
def hash
|
139
|
-
[
|
105
|
+
[milestones].hash
|
140
106
|
end
|
141
107
|
|
142
108
|
# Builds the object from hash
|
@@ -201,7 +167,7 @@ module EmassClient
|
|
201
167
|
else # model
|
202
168
|
# models (e.g. Pet) or oneOf
|
203
169
|
klass = EmassClient.const_get(type)
|
204
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
171
|
end
|
206
172
|
end
|
207
173
|
|
@@ -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,45 +14,47 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module EmassClient
|
17
|
-
class
|
18
|
-
# [
|
19
|
-
attr_accessor :
|
17
|
+
class MilestonesRequiredPutMilestonesInner
|
18
|
+
# [Required] Include milestone description.
|
19
|
+
attr_accessor :description
|
20
20
|
|
21
|
-
# [
|
22
|
-
attr_accessor :
|
21
|
+
# [Required] Required for ongoing and completed POA&M items. Unix time format.
|
22
|
+
attr_accessor :scheduled_completion_date
|
23
23
|
|
24
|
-
# [
|
25
|
-
attr_accessor :
|
24
|
+
# [Conditional] Optionally used in PUT to delete milestones when updating a POA&M.
|
25
|
+
attr_accessor :is_active
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'
|
31
|
-
:'
|
32
|
-
:'
|
30
|
+
:'description' => :'description',
|
31
|
+
:'scheduled_completion_date' => :'scheduledCompletionDate',
|
32
|
+
:'is_active' => :'isActive'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
|
+
# Returns attribute mapping this model knows about
|
37
|
+
def self.acceptable_attribute_map
|
38
|
+
attribute_map
|
39
|
+
end
|
40
|
+
|
36
41
|
# Returns all the JSON keys this model knows about
|
37
42
|
def self.acceptable_attributes
|
38
|
-
|
43
|
+
acceptable_attribute_map.values
|
39
44
|
end
|
40
45
|
|
41
46
|
# Attribute type mapping.
|
42
47
|
def self.openapi_types
|
43
48
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'
|
49
|
+
:'description' => :'String',
|
50
|
+
:'scheduled_completion_date' => :'Integer',
|
51
|
+
:'is_active' => :'Boolean'
|
47
52
|
}
|
48
53
|
end
|
49
54
|
|
50
55
|
# List of attributes with nullable: true
|
51
56
|
def self.openapi_nullable
|
52
57
|
Set.new([
|
53
|
-
:'ssp_name',
|
54
|
-
:'ssp_version',
|
55
|
-
:'ssp_date'
|
56
58
|
])
|
57
59
|
end
|
58
60
|
|
@@ -60,27 +62,34 @@ module EmassClient
|
|
60
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
63
|
def initialize(attributes = {})
|
62
64
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::MilestonesRequiredPutMilestonesInner` initialize method"
|
64
66
|
end
|
65
67
|
|
66
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
67
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
-
if (!
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::MilestonesRequiredPutMilestonesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
70
73
|
end
|
71
74
|
h[k.to_sym] = v
|
72
75
|
}
|
73
76
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
77
|
+
if attributes.key?(:'description')
|
78
|
+
self.description = attributes[:'description']
|
79
|
+
else
|
80
|
+
self.description = nil
|
76
81
|
end
|
77
82
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
83
|
+
if attributes.key?(:'scheduled_completion_date')
|
84
|
+
self.scheduled_completion_date = attributes[:'scheduled_completion_date']
|
85
|
+
else
|
86
|
+
self.scheduled_completion_date = nil
|
80
87
|
end
|
81
88
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
89
|
+
if attributes.key?(:'is_active')
|
90
|
+
self.is_active = attributes[:'is_active']
|
91
|
+
else
|
92
|
+
self.is_active = nil
|
84
93
|
end
|
85
94
|
end
|
86
95
|
|
@@ -89,6 +98,18 @@ module EmassClient
|
|
89
98
|
def list_invalid_properties
|
90
99
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
91
100
|
invalid_properties = Array.new
|
101
|
+
if @description.nil?
|
102
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if @scheduled_completion_date.nil?
|
106
|
+
invalid_properties.push('invalid value for "scheduled_completion_date", scheduled_completion_date cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if @is_active.nil?
|
110
|
+
invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
|
111
|
+
end
|
112
|
+
|
92
113
|
invalid_properties
|
93
114
|
end
|
94
115
|
|
@@ -96,17 +117,50 @@ module EmassClient
|
|
96
117
|
# @return true if the model is valid
|
97
118
|
def valid?
|
98
119
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
120
|
+
return false if @description.nil?
|
121
|
+
return false if @scheduled_completion_date.nil?
|
122
|
+
return false if @is_active.nil?
|
99
123
|
true
|
100
124
|
end
|
101
125
|
|
126
|
+
# Custom attribute writer method with validation
|
127
|
+
# @param [Object] description Value to be assigned
|
128
|
+
def description=(description)
|
129
|
+
if description.nil?
|
130
|
+
fail ArgumentError, 'description cannot be nil'
|
131
|
+
end
|
132
|
+
|
133
|
+
@description = description
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method with validation
|
137
|
+
# @param [Object] scheduled_completion_date Value to be assigned
|
138
|
+
def scheduled_completion_date=(scheduled_completion_date)
|
139
|
+
if scheduled_completion_date.nil?
|
140
|
+
fail ArgumentError, 'scheduled_completion_date cannot be nil'
|
141
|
+
end
|
142
|
+
|
143
|
+
@scheduled_completion_date = scheduled_completion_date
|
144
|
+
end
|
145
|
+
|
146
|
+
# Custom attribute writer method with validation
|
147
|
+
# @param [Object] is_active Value to be assigned
|
148
|
+
def is_active=(is_active)
|
149
|
+
if is_active.nil?
|
150
|
+
fail ArgumentError, 'is_active cannot be nil'
|
151
|
+
end
|
152
|
+
|
153
|
+
@is_active = is_active
|
154
|
+
end
|
155
|
+
|
102
156
|
# Checks equality by comparing each attribute.
|
103
157
|
# @param [Object] Object to be compared
|
104
158
|
def ==(o)
|
105
159
|
return true if self.equal?(o)
|
106
160
|
self.class == o.class &&
|
107
|
-
|
108
|
-
|
109
|
-
|
161
|
+
description == o.description &&
|
162
|
+
scheduled_completion_date == o.scheduled_completion_date &&
|
163
|
+
is_active == o.is_active
|
110
164
|
end
|
111
165
|
|
112
166
|
# @see the `==` method
|
@@ -118,7 +172,7 @@ module EmassClient
|
|
118
172
|
# Calculates hash code according to all attributes.
|
119
173
|
# @return [Integer] Hash code
|
120
174
|
def hash
|
121
|
-
[
|
175
|
+
[description, scheduled_completion_date, is_active].hash
|
122
176
|
end
|
123
177
|
|
124
178
|
# Builds the object from hash
|
@@ -183,7 +237,7 @@ module EmassClient
|
|
183
237
|
else # model
|
184
238
|
# models (e.g. Pet) or oneOf
|
185
239
|
klass = EmassClient.const_get(type)
|
186
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
240
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
241
|
end
|
188
242
|
end
|
189
243
|
|
@@ -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,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module EmassClient
|
17
|
-
class
|
17
|
+
class NotFound
|
18
18
|
attr_accessor :code
|
19
19
|
|
20
20
|
attr_accessor :error_message
|
@@ -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.
|
@@ -50,13 +55,14 @@ module EmassClient
|
|
50
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
56
|
def initialize(attributes = {})
|
52
57
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::NotFound` initialize method"
|
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::
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::NotFound`. 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
|
}
|
@@ -200,7 +206,7 @@ module EmassClient
|
|
200
206
|
else # model
|
201
207
|
# models (e.g. Pet) or oneOf
|
202
208
|
klass = EmassClient.const_get(type)
|
203
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
209
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
204
210
|
end
|
205
211
|
end
|
206
212
|
|
@@ -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
|
|
@@ -33,6 +33,9 @@ module EmassClient
|
|
33
33
|
# [Read-Only] Indicates the number of days at current workflow stage.
|
34
34
|
attr_accessor :days_at_current_stage
|
35
35
|
|
36
|
+
# [Required]] Comments submitted upon initiation of the indicated workflow. Character Limit = 4,000.
|
37
|
+
attr_accessor :comments
|
38
|
+
|
36
39
|
class EnumAttributeValidator
|
37
40
|
attr_reader :datatype
|
38
41
|
attr_reader :allowable_values
|
@@ -63,13 +66,19 @@ module EmassClient
|
|
63
66
|
:'current_stage_name' => :'currentStageName',
|
64
67
|
:'current_stage' => :'currentStage',
|
65
68
|
:'total_stages' => :'totalStages',
|
66
|
-
:'days_at_current_stage' => :'daysAtCurrentStage'
|
69
|
+
:'days_at_current_stage' => :'daysAtCurrentStage',
|
70
|
+
:'comments' => :'comments'
|
67
71
|
}
|
68
72
|
end
|
69
73
|
|
74
|
+
# Returns attribute mapping this model knows about
|
75
|
+
def self.acceptable_attribute_map
|
76
|
+
attribute_map
|
77
|
+
end
|
78
|
+
|
70
79
|
# Returns all the JSON keys this model knows about
|
71
80
|
def self.acceptable_attributes
|
72
|
-
|
81
|
+
acceptable_attribute_map.values
|
73
82
|
end
|
74
83
|
|
75
84
|
# Attribute type mapping.
|
@@ -80,7 +89,8 @@ module EmassClient
|
|
80
89
|
:'current_stage_name' => :'String',
|
81
90
|
:'current_stage' => :'Integer',
|
82
91
|
:'total_stages' => :'Integer',
|
83
|
-
:'days_at_current_stage' => :'Integer'
|
92
|
+
:'days_at_current_stage' => :'Integer',
|
93
|
+
:'comments' => :'String'
|
84
94
|
}
|
85
95
|
end
|
86
96
|
|
@@ -90,7 +100,8 @@ module EmassClient
|
|
90
100
|
:'current_stage_name',
|
91
101
|
:'current_stage',
|
92
102
|
:'total_stages',
|
93
|
-
:'days_at_current_stage'
|
103
|
+
:'days_at_current_stage',
|
104
|
+
:'comments'
|
94
105
|
])
|
95
106
|
end
|
96
107
|
|
@@ -102,9 +113,10 @@ module EmassClient
|
|
102
113
|
end
|
103
114
|
|
104
115
|
# check to see if the attribute exists and convert string to symbol for hash key
|
116
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
105
117
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
106
|
-
if (!
|
107
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::PacGet`. Please check the name to make sure it's valid. List of attributes: " +
|
118
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
119
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::PacGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
108
120
|
end
|
109
121
|
h[k.to_sym] = v
|
110
122
|
}
|
@@ -132,6 +144,10 @@ module EmassClient
|
|
132
144
|
if attributes.key?(:'days_at_current_stage')
|
133
145
|
self.days_at_current_stage = attributes[:'days_at_current_stage']
|
134
146
|
end
|
147
|
+
|
148
|
+
if attributes.key?(:'comments')
|
149
|
+
self.comments = attributes[:'comments']
|
150
|
+
end
|
135
151
|
end
|
136
152
|
|
137
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -171,7 +187,8 @@ module EmassClient
|
|
171
187
|
current_stage_name == o.current_stage_name &&
|
172
188
|
current_stage == o.current_stage &&
|
173
189
|
total_stages == o.total_stages &&
|
174
|
-
days_at_current_stage == o.days_at_current_stage
|
190
|
+
days_at_current_stage == o.days_at_current_stage &&
|
191
|
+
comments == o.comments
|
175
192
|
end
|
176
193
|
|
177
194
|
# @see the `==` method
|
@@ -183,7 +200,7 @@ module EmassClient
|
|
183
200
|
# Calculates hash code according to all attributes.
|
184
201
|
# @return [Integer] Hash code
|
185
202
|
def hash
|
186
|
-
[workflow, name, current_stage_name, current_stage, total_stages, days_at_current_stage].hash
|
203
|
+
[workflow, name, current_stage_name, current_stage, total_stages, days_at_current_stage, comments].hash
|
187
204
|
end
|
188
205
|
|
189
206
|
# Builds the object from hash
|
@@ -248,7 +265,7 @@ module EmassClient
|
|
248
265
|
else # model
|
249
266
|
# models (e.g. Pet) or oneOf
|
250
267
|
klass = EmassClient.const_get(type)
|
251
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
268
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
252
269
|
end
|
253
270
|
end
|
254
271
|
|