emass_client 3.10.1 → 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 +174 -131
- data/lib/emass_client/api/artifacts_api.rb +47 -52
- data/lib/emass_client/api/artifacts_export_api.rb +5 -5
- data/lib/emass_client/api/cac_api.rb +12 -12
- data/lib/emass_client/api/cloud_resource_results_api.rb +83 -9
- 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 +83 -9
- 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 +18 -18
- data/lib/emass_client/api/organization_migration_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/pac_api.rb +16 -16
- data/lib/emass_client/api/poam_api.rb +47 -44
- 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/system_artifacts_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_associations_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_atciatc_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_conmon_integration_status_dashboard_api.rb +95 -0
- 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/system_hardware_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_migration_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_poam_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_ports_protocols_dashboards_api.rb +168 -0
- 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 -16
- data/lib/emass_client/api/system_security_controls_dashboards_api.rb +241 -0
- data/lib/emass_client/api/system_sensor_hardware_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_sensor_software_dashboards_api.rb +241 -0
- data/lib/emass_client/api/system_software_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_terms_conditions_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_vulnerability_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_workflows_dashboards_api.rb +241 -0
- data/lib/emass_client/api/systems_api.rb +22 -28
- data/lib/emass_client/api/test_api.rb +5 -5
- data/lib/emass_client/api/test_results_api.rb +19 -16
- data/lib/emass_client/api/user_system_assignments_dashboard_api.rb +95 -0
- 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 +17 -14
- data/lib/emass_client/api_client.rb +46 -32
- 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} +29 -28
- data/lib/emass_client/models/{response490_meta.rb → api_rule_failed_meta.rb} +34 -29
- 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 +26 -25
- data/lib/emass_client/models/artifacts_required_fields.rb +252 -0
- data/lib/emass_client/models/artifacts_response_del.rb +26 -25
- data/lib/emass_client/models/artifacts_response_del_data_inner.rb +26 -25
- data/lib/emass_client/models/artifacts_response_get.rb +27 -26
- data/lib/emass_client/models/{artifacts_get.rb → artifacts_response_get_data_inner.rb} +91 -70
- data/lib/emass_client/models/artifacts_response_put_post.rb +26 -25
- data/lib/emass_client/models/artifacts_response_put_post_data_inner.rb +40 -30
- data/lib/emass_client/models/{response403.rb → bad_request.rb} +29 -28
- data/lib/emass_client/models/{response400_meta.rb → bad_request_meta.rb} +34 -29
- data/lib/emass_client/models/cac_get.rb +26 -25
- data/lib/emass_client/models/cac_response_get.rb +26 -25
- data/lib/emass_client/models/cac_response_post.rb +26 -25
- data/lib/emass_client/models/cac_response_post_data_inner.rb +40 -30
- data/lib/emass_client/models/{poam_response_post.rb → cloud_resources_delete.rb} +29 -28
- data/lib/emass_client/models/cloud_resources_delete_body_inner.rb +221 -0
- data/lib/emass_client/models/{cloud_resources_post.rb → cloud_resources_post_delete.rb} +42 -32
- data/lib/emass_client/models/cloud_resources_response_post.rb +27 -26
- data/lib/emass_client/models/cmmc_get.rb +96 -140
- data/lib/emass_client/models/cmmc_response_get.rb +26 -25
- data/lib/emass_client/models/connectivity_ccsd.rb +26 -25
- data/lib/emass_client/models/container_resources_delete_body_inner.rb +221 -0
- data/lib/emass_client/models/{containers_resources_post.rb → containers_resources_post_delete.rb} +42 -32
- data/lib/emass_client/models/{poam_response_delete.rb → containers_response_delete.rb} +29 -28
- data/lib/emass_client/models/containers_response_post.rb +27 -26
- 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 +40 -30
- 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 +27 -26
- data/lib/emass_client/models/{controls_get.rb → controls_response_get_data_inner.rb} +210 -166
- data/lib/emass_client/models/controls_response_put.rb +26 -25
- data/lib/emass_client/models/{response400.rb → created.rb} +29 -28
- data/lib/emass_client/models/{response201_meta.rb → created_meta.rb} +34 -29
- data/lib/emass_client/models/definition_transitions.rb +26 -25
- data/lib/emass_client/models/{success200_response.rb → device_scan_results_response_post.rb} +29 -28
- data/lib/emass_client/models/{success200_response_data_inner.rb → device_scan_results_response_post_data_inner.rb} +72 -33
- data/lib/emass_client/models/{response401.rb → forbidden.rb} +29 -28
- data/lib/emass_client/models/{response403_meta.rb → forbidden_meta.rb} +34 -29
- 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/hw_baseline_response_delete.rb +231 -0
- 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} +30 -29
- data/lib/emass_client/models/hw_baseline_response_get_data_inner.rb +429 -0
- data/lib/emass_client/models/hw_baseline_response_post_put.rb +231 -0
- 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} +28 -27
- data/lib/emass_client/models/internal_server_error.rb +220 -0
- data/lib/emass_client/models/{response500_meta.rb → internal_server_error_meta.rb} +34 -29
- data/lib/emass_client/models/length_required.rb +220 -0
- data/lib/emass_client/models/{response411_meta.rb → length_required_meta.rb} +34 -29
- data/lib/emass_client/models/method_not_allowed.rb +220 -0
- data/lib/emass_client/models/{response405_meta.rb → method_not_allowed_meta.rb} +34 -29
- data/lib/emass_client/models/milestone_response_delete.rb +231 -0
- data/lib/emass_client/models/milestone_response_get.rb +26 -25
- data/lib/emass_client/models/milestone_response_get_milestone.rb +26 -25
- data/lib/emass_client/models/milestone_response_post.rb +26 -25
- data/lib/emass_client/models/milestone_response_put.rb +26 -25
- data/lib/emass_client/models/milestones_fields.rb +222 -0
- data/lib/emass_client/models/milestones_get.rb +55 -32
- data/lib/emass_client/models/milestones_put_post_delete.rb +40 -30
- data/lib/emass_client/models/milestones_request_delete_body_inner.rb +26 -25
- data/lib/emass_client/models/milestones_required_post.rb +35 -53
- data/lib/emass_client/models/milestones_required_post_milestones_inner.rb +265 -0
- data/lib/emass_client/models/milestones_required_put.rb +35 -68
- data/lib/emass_client/models/{ssps.rb → milestones_required_put_milestones_inner.rb} +101 -52
- data/lib/emass_client/models/{response404.rb → not_found.rb} +34 -29
- data/lib/emass_client/models/pac_get.rb +29 -37
- data/lib/emass_client/models/pac_post.rb +40 -30
- data/lib/emass_client/models/pac_response_get.rb +26 -25
- data/lib/emass_client/models/pac_response_post.rb +26 -25
- data/lib/emass_client/models/{dashboard_mock_response_pagination.rb → pagination.rb} +47 -46
- 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 +40 -30
- data/lib/emass_client/models/poam_read_only_fields.rb +332 -0
- data/lib/emass_client/models/poam_request_delete_body_inner.rb +26 -25
- data/lib/emass_client/models/poam_required_fields.rb +305 -0
- data/lib/emass_client/models/poam_response_get_poams.rb +27 -26
- data/lib/emass_client/models/poam_response_get_poams_data.rb +824 -0
- data/lib/emass_client/models/poam_response_get_systems.rb +27 -26
- data/lib/emass_client/models/poam_response_get_systems_data_inner.rb +824 -0
- data/lib/emass_client/models/{poam_response_put.rb → poam_response_post_put_delete.rb} +28 -27
- data/lib/emass_client/models/register.rb +26 -25
- data/lib/emass_client/models/register_data.rb +26 -25
- data/lib/emass_client/models/register_user_request_post_body.rb +38 -25
- data/lib/emass_client/models/response200.rb +32 -27
- data/lib/emass_client/models/role_category.rb +26 -25
- data/lib/emass_client/models/roles.rb +26 -25
- data/lib/emass_client/models/stage.rb +26 -25
- data/lib/emass_client/models/{static_code_application.rb → static_code_application_post.rb} +28 -27
- data/lib/emass_client/models/static_code_post.rb +40 -30
- data/lib/emass_client/models/static_code_request_post_body.rb +27 -26
- data/lib/emass_client/models/static_code_request_post_body_application.rb +26 -25
- data/lib/emass_client/models/static_code_response_post.rb +26 -25
- 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 +26 -25
- data/lib/emass_client/models/system_roles_category_response.rb +26 -25
- data/lib/emass_client/models/system_roles_response.rb +26 -25
- data/lib/emass_client/models/system_roles_response_data_inner.rb +26 -25
- data/lib/emass_client/models/systems.rb +950 -113
- data/lib/emass_client/models/systems_response.rb +26 -25
- data/lib/emass_client/models/test.rb +26 -25
- data/lib/emass_client/models/test_data.rb +26 -25
- data/lib/emass_client/models/test_results_get.rb +37 -26
- data/lib/emass_client/models/test_results_post.rb +40 -30
- data/lib/emass_client/models/test_results_response_get.rb +26 -25
- data/lib/emass_client/models/test_results_response_post.rb +26 -25
- data/lib/emass_client/models/unauthorized.rb +220 -0
- data/lib/emass_client/models/{response401_meta.rb → unauthorized_meta.rb} +34 -29
- data/lib/emass_client/models/users.rb +26 -25
- data/lib/emass_client/models/workflow_definition_get.rb +26 -25
- data/lib/emass_client/models/workflow_definition_response_get.rb +26 -25
- data/lib/emass_client/models/workflow_instance_get.rb +40 -28
- data/lib/emass_client/models/workflow_instance_response_get.rb +26 -25
- data/lib/emass_client/models/workflow_instances_response_get.rb +27 -26
- data/lib/emass_client/models/workflow_instances_response_get_pagination.rb +26 -25
- data/lib/emass_client/version.rb +5 -5
- data/lib/emass_client.rb +112 -39
- metadata +116 -43
- data/lib/emass_client/api/dashboards_api.rb +0 -2139
- data/lib/emass_client/models/mock_object.rb +0 -343
- data/lib/emass_client/models/poam_get.rb +0 -683
- data/lib/emass_client/models/response405.rb +0 -219
- data/lib/emass_client/models/response411.rb +0 -219
- data/lib/emass_client/models/response490.rb +0 -219
- data/lib/emass_client/models/response500.rb +0 -219
- data/lib/emass_client/models/workflow_instances_get.rb +0 -342
@@ -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
|
|
@@ -18,6 +18,9 @@ module EmassClient
|
|
18
18
|
# [Read-Only] Unique workflow definition identifier.
|
19
19
|
attr_accessor :workflow_uid
|
20
20
|
|
21
|
+
# [Read-only] Unique system record identifier.
|
22
|
+
attr_accessor :system_id
|
23
|
+
|
21
24
|
# [Read-Only] The system name.
|
22
25
|
attr_accessor :system_name
|
23
26
|
|
@@ -51,6 +54,7 @@ module EmassClient
|
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
53
56
|
:'workflow_uid' => :'workflowUid',
|
57
|
+
:'system_id' => :'systemId',
|
54
58
|
:'system_name' => :'systemName',
|
55
59
|
:'workflow_instance_id' => :'workflowInstanceId',
|
56
60
|
:'package_name' => :'packageName',
|
@@ -64,15 +68,21 @@ module EmassClient
|
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
71
|
+
# Returns attribute mapping this model knows about
|
72
|
+
def self.acceptable_attribute_map
|
73
|
+
attribute_map
|
74
|
+
end
|
75
|
+
|
67
76
|
# Returns all the JSON keys this model knows about
|
68
77
|
def self.acceptable_attributes
|
69
|
-
|
78
|
+
acceptable_attribute_map.values
|
70
79
|
end
|
71
80
|
|
72
81
|
# Attribute type mapping.
|
73
82
|
def self.openapi_types
|
74
83
|
{
|
75
84
|
:'workflow_uid' => :'String',
|
85
|
+
:'system_id' => :'Integer',
|
76
86
|
:'system_name' => :'String',
|
77
87
|
:'workflow_instance_id' => :'Integer',
|
78
88
|
:'package_name' => :'String',
|
@@ -80,9 +90,9 @@ module EmassClient
|
|
80
90
|
:'last_edited_date' => :'Integer',
|
81
91
|
:'last_edited_by' => :'String',
|
82
92
|
:'workflow' => :'String',
|
83
|
-
:'version' => :'
|
93
|
+
:'version' => :'Integer',
|
84
94
|
:'current_stage' => :'String',
|
85
|
-
:'transitions' => :'Array<
|
95
|
+
:'transitions' => :'Array<InstanceTransitions>'
|
86
96
|
}
|
87
97
|
end
|
88
98
|
|
@@ -90,6 +100,7 @@ module EmassClient
|
|
90
100
|
def self.openapi_nullable
|
91
101
|
Set.new([
|
92
102
|
:'workflow_uid',
|
103
|
+
:'system_id',
|
93
104
|
:'system_name',
|
94
105
|
:'workflow_instance_id',
|
95
106
|
:'package_name',
|
@@ -110,9 +121,10 @@ module EmassClient
|
|
110
121
|
end
|
111
122
|
|
112
123
|
# check to see if the attribute exists and convert string to symbol for hash key
|
124
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
113
125
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
114
|
-
if (!
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstanceGet`. Please check the name to make sure it's valid. List of attributes: " +
|
126
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
127
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstanceGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
116
128
|
end
|
117
129
|
h[k.to_sym] = v
|
118
130
|
}
|
@@ -121,6 +133,10 @@ module EmassClient
|
|
121
133
|
self.workflow_uid = attributes[:'workflow_uid']
|
122
134
|
end
|
123
135
|
|
136
|
+
if attributes.key?(:'system_id')
|
137
|
+
self.system_id = attributes[:'system_id']
|
138
|
+
end
|
139
|
+
|
124
140
|
if attributes.key?(:'system_name')
|
125
141
|
self.system_name = attributes[:'system_name']
|
126
142
|
end
|
@@ -167,6 +183,7 @@ module EmassClient
|
|
167
183
|
# Show invalid properties with the reasons. Usually used together with valid?
|
168
184
|
# @return Array for valid properties with the reasons
|
169
185
|
def list_invalid_properties
|
186
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
170
187
|
invalid_properties = Array.new
|
171
188
|
invalid_properties
|
172
189
|
end
|
@@ -174,6 +191,7 @@ module EmassClient
|
|
174
191
|
# Check to see if the all the properties in the model are valid
|
175
192
|
# @return true if the model is valid
|
176
193
|
def valid?
|
194
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
177
195
|
true
|
178
196
|
end
|
179
197
|
|
@@ -183,6 +201,7 @@ module EmassClient
|
|
183
201
|
return true if self.equal?(o)
|
184
202
|
self.class == o.class &&
|
185
203
|
workflow_uid == o.workflow_uid &&
|
204
|
+
system_id == o.system_id &&
|
186
205
|
system_name == o.system_name &&
|
187
206
|
workflow_instance_id == o.workflow_instance_id &&
|
188
207
|
package_name == o.package_name &&
|
@@ -204,44 +223,37 @@ module EmassClient
|
|
204
223
|
# Calculates hash code according to all attributes.
|
205
224
|
# @return [Integer] Hash code
|
206
225
|
def hash
|
207
|
-
[workflow_uid, system_name, workflow_instance_id, package_name, created_date, last_edited_date, last_edited_by, workflow, version, current_stage, transitions].hash
|
226
|
+
[workflow_uid, system_id, system_name, workflow_instance_id, package_name, created_date, last_edited_date, last_edited_by, workflow, version, current_stage, transitions].hash
|
208
227
|
end
|
209
228
|
|
210
229
|
# Builds the object from hash
|
211
230
|
# @param [Hash] attributes Model attributes in the form of hash
|
212
231
|
# @return [Object] Returns the model itself
|
213
232
|
def self.build_from_hash(attributes)
|
214
|
-
new.build_from_hash(attributes)
|
215
|
-
end
|
216
|
-
|
217
|
-
# Builds the object from hash
|
218
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
219
|
-
# @return [Object] Returns the model itself
|
220
|
-
def build_from_hash(attributes)
|
221
233
|
return nil unless attributes.is_a?(Hash)
|
222
234
|
attributes = attributes.transform_keys(&:to_sym)
|
223
|
-
|
224
|
-
|
225
|
-
|
235
|
+
transformed_hash = {}
|
236
|
+
openapi_types.each_pair do |key, type|
|
237
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
238
|
+
transformed_hash["#{key}"] = nil
|
226
239
|
elsif type =~ /\AArray<(.*)>/i
|
227
240
|
# check to ensure the input is an array given that the attribute
|
228
241
|
# is documented as an array but the input is not
|
229
|
-
if attributes[
|
230
|
-
|
242
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
243
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
231
244
|
end
|
232
|
-
elsif !attributes[
|
233
|
-
|
245
|
+
elsif !attributes[attribute_map[key]].nil?
|
246
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
234
247
|
end
|
235
248
|
end
|
236
|
-
|
237
|
-
self
|
249
|
+
new(transformed_hash)
|
238
250
|
end
|
239
251
|
|
240
252
|
# Deserializes the data based on type
|
241
253
|
# @param string type Data type
|
242
254
|
# @param string value Value to be deserialized
|
243
255
|
# @return [Object] Deserialized data
|
244
|
-
def _deserialize(type, value)
|
256
|
+
def self._deserialize(type, value)
|
245
257
|
case type.to_sym
|
246
258
|
when :Time
|
247
259
|
Time.parse(value)
|
@@ -276,7 +288,7 @@ module EmassClient
|
|
276
288
|
else # model
|
277
289
|
# models (e.g. Pet) or oneOf
|
278
290
|
klass = EmassClient.const_get(type)
|
279
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
291
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
280
292
|
end
|
281
293
|
end
|
282
294
|
|
@@ -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::WorkflowInstanceResponseGet`. 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::WorkflowInstanceResponseGet`. 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
|
}
|
@@ -73,6 +79,7 @@ module EmassClient
|
|
73
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
74
80
|
# @return Array for valid properties with the reasons
|
75
81
|
def list_invalid_properties
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
76
83
|
invalid_properties = Array.new
|
77
84
|
invalid_properties
|
78
85
|
end
|
@@ -80,6 +87,7 @@ module EmassClient
|
|
80
87
|
# Check to see if the all the properties in the model are valid
|
81
88
|
# @return true if the model is valid
|
82
89
|
def valid?
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
91
|
true
|
84
92
|
end
|
85
93
|
|
@@ -108,37 +116,30 @@ module EmassClient
|
|
108
116
|
# @param [Hash] attributes Model attributes in the form of hash
|
109
117
|
# @return [Object] Returns the model itself
|
110
118
|
def self.build_from_hash(attributes)
|
111
|
-
new.build_from_hash(attributes)
|
112
|
-
end
|
113
|
-
|
114
|
-
# Builds the object from hash
|
115
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
-
# @return [Object] Returns the model itself
|
117
|
-
def build_from_hash(attributes)
|
118
119
|
return nil unless attributes.is_a?(Hash)
|
119
120
|
attributes = attributes.transform_keys(&:to_sym)
|
120
|
-
|
121
|
-
|
122
|
-
|
121
|
+
transformed_hash = {}
|
122
|
+
openapi_types.each_pair do |key, type|
|
123
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
124
|
+
transformed_hash["#{key}"] = nil
|
123
125
|
elsif type =~ /\AArray<(.*)>/i
|
124
126
|
# check to ensure the input is an array given that the attribute
|
125
127
|
# is documented as an array but the input is not
|
126
|
-
if attributes[
|
127
|
-
|
128
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
129
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
128
130
|
end
|
129
|
-
elsif !attributes[
|
130
|
-
|
131
|
+
elsif !attributes[attribute_map[key]].nil?
|
132
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
131
133
|
end
|
132
134
|
end
|
133
|
-
|
134
|
-
self
|
135
|
+
new(transformed_hash)
|
135
136
|
end
|
136
137
|
|
137
138
|
# Deserializes the data based on type
|
138
139
|
# @param string type Data type
|
139
140
|
# @param string value Value to be deserialized
|
140
141
|
# @return [Object] Deserialized data
|
141
|
-
def _deserialize(type, value)
|
142
|
+
def self._deserialize(type, value)
|
142
143
|
case type.to_sym
|
143
144
|
when :Time
|
144
145
|
Time.parse(value)
|
@@ -173,7 +174,7 @@ module EmassClient
|
|
173
174
|
else # model
|
174
175
|
# models (e.g. Pet) or oneOf
|
175
176
|
klass = EmassClient.const_get(type)
|
176
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
178
|
end
|
178
179
|
end
|
179
180
|
|
@@ -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
|
|
@@ -30,16 +30,21 @@ module EmassClient
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
+
# Returns attribute mapping this model knows about
|
34
|
+
def self.acceptable_attribute_map
|
35
|
+
attribute_map
|
36
|
+
end
|
37
|
+
|
33
38
|
# Returns all the JSON keys this model knows about
|
34
39
|
def self.acceptable_attributes
|
35
|
-
|
40
|
+
acceptable_attribute_map.values
|
36
41
|
end
|
37
42
|
|
38
43
|
# Attribute type mapping.
|
39
44
|
def self.openapi_types
|
40
45
|
{
|
41
46
|
:'meta' => :'Response200',
|
42
|
-
:'data' => :'Array<
|
47
|
+
:'data' => :'Array<WorkflowInstanceGet>',
|
43
48
|
:'pagination' => :'WorkflowInstancesResponseGetPagination'
|
44
49
|
}
|
45
50
|
end
|
@@ -58,9 +63,10 @@ module EmassClient
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstancesResponseGet`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstancesResponseGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -83,6 +89,7 @@ module EmassClient
|
|
83
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
84
90
|
# @return Array for valid properties with the reasons
|
85
91
|
def list_invalid_properties
|
92
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
86
93
|
invalid_properties = Array.new
|
87
94
|
invalid_properties
|
88
95
|
end
|
@@ -90,6 +97,7 @@ module EmassClient
|
|
90
97
|
# Check to see if the all the properties in the model are valid
|
91
98
|
# @return true if the model is valid
|
92
99
|
def valid?
|
100
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
101
|
true
|
94
102
|
end
|
95
103
|
|
@@ -119,37 +127,30 @@ module EmassClient
|
|
119
127
|
# @param [Hash] attributes Model attributes in the form of hash
|
120
128
|
# @return [Object] Returns the model itself
|
121
129
|
def self.build_from_hash(attributes)
|
122
|
-
new.build_from_hash(attributes)
|
123
|
-
end
|
124
|
-
|
125
|
-
# Builds the object from hash
|
126
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
-
# @return [Object] Returns the model itself
|
128
|
-
def build_from_hash(attributes)
|
129
130
|
return nil unless attributes.is_a?(Hash)
|
130
131
|
attributes = attributes.transform_keys(&:to_sym)
|
131
|
-
|
132
|
-
|
133
|
-
|
132
|
+
transformed_hash = {}
|
133
|
+
openapi_types.each_pair do |key, type|
|
134
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
135
|
+
transformed_hash["#{key}"] = nil
|
134
136
|
elsif type =~ /\AArray<(.*)>/i
|
135
137
|
# check to ensure the input is an array given that the attribute
|
136
138
|
# is documented as an array but the input is not
|
137
|
-
if attributes[
|
138
|
-
|
139
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
140
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
139
141
|
end
|
140
|
-
elsif !attributes[
|
141
|
-
|
142
|
+
elsif !attributes[attribute_map[key]].nil?
|
143
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
142
144
|
end
|
143
145
|
end
|
144
|
-
|
145
|
-
self
|
146
|
+
new(transformed_hash)
|
146
147
|
end
|
147
148
|
|
148
149
|
# Deserializes the data based on type
|
149
150
|
# @param string type Data type
|
150
151
|
# @param string value Value to be deserialized
|
151
152
|
# @return [Object] Deserialized data
|
152
|
-
def _deserialize(type, value)
|
153
|
+
def self._deserialize(type, value)
|
153
154
|
case type.to_sym
|
154
155
|
when :Time
|
155
156
|
Time.parse(value)
|
@@ -184,7 +185,7 @@ module EmassClient
|
|
184
185
|
else # model
|
185
186
|
# models (e.g. Pet) or oneOf
|
186
187
|
klass = EmassClient.const_get(type)
|
187
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
188
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
188
189
|
end
|
189
190
|
end
|
190
191
|
|
@@ -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,9 +33,14 @@ module EmassClient
|
|
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.
|
@@ -62,9 +67,10 @@ module EmassClient
|
|
62
67
|
end
|
63
68
|
|
64
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
65
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
-
if (!
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstancesResponseGetPagination`. Please check the name to make sure it's valid. List of attributes: " +
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstancesResponseGetPagination`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
68
74
|
end
|
69
75
|
h[k.to_sym] = v
|
70
76
|
}
|
@@ -89,6 +95,7 @@ module EmassClient
|
|
89
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
90
96
|
# @return Array for valid properties with the reasons
|
91
97
|
def list_invalid_properties
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
92
99
|
invalid_properties = Array.new
|
93
100
|
invalid_properties
|
94
101
|
end
|
@@ -96,6 +103,7 @@ module EmassClient
|
|
96
103
|
# Check to see if the all the properties in the model are valid
|
97
104
|
# @return true if the model is valid
|
98
105
|
def valid?
|
106
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
99
107
|
true
|
100
108
|
end
|
101
109
|
|
@@ -126,37 +134,30 @@ module EmassClient
|
|
126
134
|
# @param [Hash] attributes Model attributes in the form of hash
|
127
135
|
# @return [Object] Returns the model itself
|
128
136
|
def self.build_from_hash(attributes)
|
129
|
-
new.build_from_hash(attributes)
|
130
|
-
end
|
131
|
-
|
132
|
-
# Builds the object from hash
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @return [Object] Returns the model itself
|
135
|
-
def build_from_hash(attributes)
|
136
137
|
return nil unless attributes.is_a?(Hash)
|
137
138
|
attributes = attributes.transform_keys(&:to_sym)
|
138
|
-
|
139
|
-
|
140
|
-
|
139
|
+
transformed_hash = {}
|
140
|
+
openapi_types.each_pair do |key, type|
|
141
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
142
|
+
transformed_hash["#{key}"] = nil
|
141
143
|
elsif type =~ /\AArray<(.*)>/i
|
142
144
|
# check to ensure the input is an array given that the attribute
|
143
145
|
# is documented as an array but the input is not
|
144
|
-
if attributes[
|
145
|
-
|
146
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
147
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
146
148
|
end
|
147
|
-
elsif !attributes[
|
148
|
-
|
149
|
+
elsif !attributes[attribute_map[key]].nil?
|
150
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
149
151
|
end
|
150
152
|
end
|
151
|
-
|
152
|
-
self
|
153
|
+
new(transformed_hash)
|
153
154
|
end
|
154
155
|
|
155
156
|
# Deserializes the data based on type
|
156
157
|
# @param string type Data type
|
157
158
|
# @param string value Value to be deserialized
|
158
159
|
# @return [Object] Deserialized data
|
159
|
-
def _deserialize(type, value)
|
160
|
+
def self._deserialize(type, value)
|
160
161
|
case type.to_sym
|
161
162
|
when :Time
|
162
163
|
Time.parse(value)
|
@@ -191,7 +192,7 @@ module EmassClient
|
|
191
192
|
else # model
|
192
193
|
# models (e.g. Pet) or oneOf
|
193
194
|
klass = EmassClient.const_get(type)
|
194
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
196
|
end
|
196
197
|
end
|
197
198
|
|
data/lib/emass_client/version.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
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
|
module EmassClient
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.22.0'
|
15
15
|
end
|