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.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +174 -131
  3. data/lib/emass_client/api/artifacts_api.rb +47 -52
  4. data/lib/emass_client/api/artifacts_export_api.rb +5 -5
  5. data/lib/emass_client/api/cac_api.rb +12 -12
  6. data/lib/emass_client/api/cloud_resource_results_api.rb +83 -9
  7. data/lib/emass_client/api/cmmc_assessment_dashboards_api.rb +314 -0
  8. data/lib/emass_client/api/cmmc_assessments_api.rb +5 -5
  9. data/lib/emass_client/api/coast_guard_system_fisma_metrics_dashboard_api.rb +95 -0
  10. data/lib/emass_client/api/container_scan_results_api.rb +83 -9
  11. data/lib/emass_client/api/controls_api.rb +17 -17
  12. data/lib/emass_client/api/device_scan_results_api.rb +112 -0
  13. data/lib/emass_client/api/hardware_baseline_api.rb +313 -0
  14. data/lib/emass_client/api/milestones_api.rb +18 -18
  15. data/lib/emass_client/api/organization_migration_status_dashboard_api.rb +95 -0
  16. data/lib/emass_client/api/pac_api.rb +16 -16
  17. data/lib/emass_client/api/poam_api.rb +47 -44
  18. data/lib/emass_client/api/registration_api.rb +5 -5
  19. data/lib/emass_client/api/software_baseline_api.rb +313 -0
  20. data/lib/emass_client/api/static_code_scans_api.rb +9 -9
  21. data/lib/emass_client/api/system_application_findings_dashboards_api.rb +168 -0
  22. data/lib/emass_client/api/system_artifacts_dashboards_api.rb +168 -0
  23. data/lib/emass_client/api/system_associations_dashboard_api.rb +95 -0
  24. data/lib/emass_client/api/system_atciatc_dashboard_api.rb +95 -0
  25. data/lib/emass_client/api/system_conmon_integration_status_dashboard_api.rb +95 -0
  26. data/lib/emass_client/api/system_connectivity_ccsd_dashboards_api.rb +168 -0
  27. data/lib/emass_client/api/system_critical_assets_dashboard_api.rb +95 -0
  28. data/lib/emass_client/api/system_device_findings_dashboards_api.rb +168 -0
  29. data/lib/emass_client/api/system_fisma_metrics_dashboard_api.rb +95 -0
  30. data/lib/emass_client/api/system_hardware_dashboards_api.rb +168 -0
  31. data/lib/emass_client/api/system_migration_status_dashboard_api.rb +95 -0
  32. data/lib/emass_client/api/system_poam_dashboards_api.rb +168 -0
  33. data/lib/emass_client/api/system_ports_protocols_dashboards_api.rb +168 -0
  34. data/lib/emass_client/api/system_privacy_dashboard_api.rb +95 -0
  35. data/lib/emass_client/api/system_questionnaire_dashboards_api.rb +168 -0
  36. data/lib/emass_client/api/system_roles_api.rb +8 -16
  37. data/lib/emass_client/api/system_security_controls_dashboards_api.rb +241 -0
  38. data/lib/emass_client/api/system_sensor_hardware_dashboards_api.rb +168 -0
  39. data/lib/emass_client/api/system_sensor_software_dashboards_api.rb +241 -0
  40. data/lib/emass_client/api/system_software_dashboards_api.rb +168 -0
  41. data/lib/emass_client/api/system_status_dashboard_api.rb +95 -0
  42. data/lib/emass_client/api/system_terms_conditions_dashboards_api.rb +168 -0
  43. data/lib/emass_client/api/system_vulnerability_dashboard_api.rb +95 -0
  44. data/lib/emass_client/api/system_workflows_dashboards_api.rb +241 -0
  45. data/lib/emass_client/api/systems_api.rb +22 -28
  46. data/lib/emass_client/api/test_api.rb +5 -5
  47. data/lib/emass_client/api/test_results_api.rb +19 -16
  48. data/lib/emass_client/api/user_system_assignments_dashboard_api.rb +95 -0
  49. data/lib/emass_client/api/va_system_dashboards_api.rb +679 -0
  50. data/lib/emass_client/api/vaombfisma_dashboard_api.rb +95 -0
  51. data/lib/emass_client/api/workflow_definitions_api.rb +9 -9
  52. data/lib/emass_client/api/workflow_instances_api.rb +17 -14
  53. data/lib/emass_client/api_client.rb +46 -32
  54. data/lib/emass_client/api_error.rb +4 -4
  55. data/lib/emass_client/configuration.rb +42 -12
  56. data/lib/emass_client/models/{response201.rb → api_rule_failed.rb} +29 -28
  57. data/lib/emass_client/models/{response490_meta.rb → api_rule_failed_meta.rb} +34 -29
  58. data/lib/emass_client/models/artifacts_ids.rb +221 -0
  59. data/lib/emass_client/models/artifacts_optional_fields.rb +298 -0
  60. data/lib/emass_client/models/artifacts_read_only_fields.rb +255 -0
  61. data/lib/emass_client/models/artifacts_request_delete_body_inner.rb +26 -25
  62. data/lib/emass_client/models/artifacts_required_fields.rb +252 -0
  63. data/lib/emass_client/models/artifacts_response_del.rb +26 -25
  64. data/lib/emass_client/models/artifacts_response_del_data_inner.rb +26 -25
  65. data/lib/emass_client/models/artifacts_response_get.rb +27 -26
  66. data/lib/emass_client/models/{artifacts_get.rb → artifacts_response_get_data_inner.rb} +91 -70
  67. data/lib/emass_client/models/artifacts_response_put_post.rb +26 -25
  68. data/lib/emass_client/models/artifacts_response_put_post_data_inner.rb +40 -30
  69. data/lib/emass_client/models/{response403.rb → bad_request.rb} +29 -28
  70. data/lib/emass_client/models/{response400_meta.rb → bad_request_meta.rb} +34 -29
  71. data/lib/emass_client/models/cac_get.rb +26 -25
  72. data/lib/emass_client/models/cac_response_get.rb +26 -25
  73. data/lib/emass_client/models/cac_response_post.rb +26 -25
  74. data/lib/emass_client/models/cac_response_post_data_inner.rb +40 -30
  75. data/lib/emass_client/models/{poam_response_post.rb → cloud_resources_delete.rb} +29 -28
  76. data/lib/emass_client/models/cloud_resources_delete_body_inner.rb +221 -0
  77. data/lib/emass_client/models/{cloud_resources_post.rb → cloud_resources_post_delete.rb} +42 -32
  78. data/lib/emass_client/models/cloud_resources_response_post.rb +27 -26
  79. data/lib/emass_client/models/cmmc_get.rb +96 -140
  80. data/lib/emass_client/models/cmmc_response_get.rb +26 -25
  81. data/lib/emass_client/models/connectivity_ccsd.rb +26 -25
  82. data/lib/emass_client/models/container_resources_delete_body_inner.rb +221 -0
  83. data/lib/emass_client/models/{containers_resources_post.rb → containers_resources_post_delete.rb} +42 -32
  84. data/lib/emass_client/models/{poam_response_delete.rb → containers_response_delete.rb} +29 -28
  85. data/lib/emass_client/models/containers_response_post.rb +27 -26
  86. data/lib/emass_client/models/controls_conditional_fields.rb +357 -0
  87. data/lib/emass_client/models/controls_ids.rb +221 -0
  88. data/lib/emass_client/models/controls_optional_fields.rb +471 -0
  89. data/lib/emass_client/models/controls_put.rb +40 -30
  90. data/lib/emass_client/models/controls_read_only_fields.rb +277 -0
  91. data/lib/emass_client/models/controls_required_fields.rb +295 -0
  92. data/lib/emass_client/models/controls_response_get.rb +27 -26
  93. data/lib/emass_client/models/{controls_get.rb → controls_response_get_data_inner.rb} +210 -166
  94. data/lib/emass_client/models/controls_response_put.rb +26 -25
  95. data/lib/emass_client/models/{response400.rb → created.rb} +29 -28
  96. data/lib/emass_client/models/{response201_meta.rb → created_meta.rb} +34 -29
  97. data/lib/emass_client/models/definition_transitions.rb +26 -25
  98. data/lib/emass_client/models/{success200_response.rb → device_scan_results_response_post.rb} +29 -28
  99. data/lib/emass_client/models/{success200_response_data_inner.rb → device_scan_results_response_post_data_inner.rb} +72 -33
  100. data/lib/emass_client/models/{response401.rb → forbidden.rb} +29 -28
  101. data/lib/emass_client/models/{response403_meta.rb → forbidden_meta.rb} +34 -29
  102. data/lib/emass_client/models/get_system_status_details200_response.rb +240 -0
  103. data/lib/emass_client/models/hw_baseline_conditional_fields.rb +244 -0
  104. data/lib/emass_client/models/hw_baseline_ids.rb +221 -0
  105. data/lib/emass_client/models/hw_baseline_optional_fields.rb +354 -0
  106. data/lib/emass_client/models/hw_baseline_read_only_fields.rb +222 -0
  107. data/lib/emass_client/models/hw_baseline_request_delete_body_inner.rb +220 -0
  108. data/lib/emass_client/models/hw_baseline_required_fields.rb +221 -0
  109. data/lib/emass_client/models/hw_baseline_response_delete.rb +231 -0
  110. data/lib/emass_client/models/hw_baseline_response_delete_data_inner.rb +274 -0
  111. data/lib/emass_client/models/{dashboard_mock_response.rb → hw_baseline_response_get.rb} +30 -29
  112. data/lib/emass_client/models/hw_baseline_response_get_data_inner.rb +429 -0
  113. data/lib/emass_client/models/hw_baseline_response_post_put.rb +231 -0
  114. data/lib/emass_client/models/hw_baseline_response_post_put_data_inner.rb +274 -0
  115. data/lib/emass_client/models/{instances_transitions.rb → instance_transitions.rb} +28 -27
  116. data/lib/emass_client/models/internal_server_error.rb +220 -0
  117. data/lib/emass_client/models/{response500_meta.rb → internal_server_error_meta.rb} +34 -29
  118. data/lib/emass_client/models/length_required.rb +220 -0
  119. data/lib/emass_client/models/{response411_meta.rb → length_required_meta.rb} +34 -29
  120. data/lib/emass_client/models/method_not_allowed.rb +220 -0
  121. data/lib/emass_client/models/{response405_meta.rb → method_not_allowed_meta.rb} +34 -29
  122. data/lib/emass_client/models/milestone_response_delete.rb +231 -0
  123. data/lib/emass_client/models/milestone_response_get.rb +26 -25
  124. data/lib/emass_client/models/milestone_response_get_milestone.rb +26 -25
  125. data/lib/emass_client/models/milestone_response_post.rb +26 -25
  126. data/lib/emass_client/models/milestone_response_put.rb +26 -25
  127. data/lib/emass_client/models/milestones_fields.rb +222 -0
  128. data/lib/emass_client/models/milestones_get.rb +55 -32
  129. data/lib/emass_client/models/milestones_put_post_delete.rb +40 -30
  130. data/lib/emass_client/models/milestones_request_delete_body_inner.rb +26 -25
  131. data/lib/emass_client/models/milestones_required_post.rb +35 -53
  132. data/lib/emass_client/models/milestones_required_post_milestones_inner.rb +265 -0
  133. data/lib/emass_client/models/milestones_required_put.rb +35 -68
  134. data/lib/emass_client/models/{ssps.rb → milestones_required_put_milestones_inner.rb} +101 -52
  135. data/lib/emass_client/models/{response404.rb → not_found.rb} +34 -29
  136. data/lib/emass_client/models/pac_get.rb +29 -37
  137. data/lib/emass_client/models/pac_post.rb +40 -30
  138. data/lib/emass_client/models/pac_response_get.rb +26 -25
  139. data/lib/emass_client/models/pac_response_post.rb +26 -25
  140. data/lib/emass_client/models/{dashboard_mock_response_pagination.rb → pagination.rb} +47 -46
  141. data/lib/emass_client/models/poam_conditional_fields.rb +402 -0
  142. data/lib/emass_client/models/poam_ids.rb +241 -0
  143. data/lib/emass_client/models/poam_optional_fields.rb +409 -0
  144. data/lib/emass_client/models/poam_post_put_del.rb +40 -30
  145. data/lib/emass_client/models/poam_read_only_fields.rb +332 -0
  146. data/lib/emass_client/models/poam_request_delete_body_inner.rb +26 -25
  147. data/lib/emass_client/models/poam_required_fields.rb +305 -0
  148. data/lib/emass_client/models/poam_response_get_poams.rb +27 -26
  149. data/lib/emass_client/models/poam_response_get_poams_data.rb +824 -0
  150. data/lib/emass_client/models/poam_response_get_systems.rb +27 -26
  151. data/lib/emass_client/models/poam_response_get_systems_data_inner.rb +824 -0
  152. data/lib/emass_client/models/{poam_response_put.rb → poam_response_post_put_delete.rb} +28 -27
  153. data/lib/emass_client/models/register.rb +26 -25
  154. data/lib/emass_client/models/register_data.rb +26 -25
  155. data/lib/emass_client/models/register_user_request_post_body.rb +38 -25
  156. data/lib/emass_client/models/response200.rb +32 -27
  157. data/lib/emass_client/models/role_category.rb +26 -25
  158. data/lib/emass_client/models/roles.rb +26 -25
  159. data/lib/emass_client/models/stage.rb +26 -25
  160. data/lib/emass_client/models/{static_code_application.rb → static_code_application_post.rb} +28 -27
  161. data/lib/emass_client/models/static_code_post.rb +40 -30
  162. data/lib/emass_client/models/static_code_request_post_body.rb +27 -26
  163. data/lib/emass_client/models/static_code_request_post_body_application.rb +26 -25
  164. data/lib/emass_client/models/static_code_response_post.rb +26 -25
  165. data/lib/emass_client/models/sw_baseline_conditional_fields.rb +222 -0
  166. data/lib/emass_client/models/sw_baseline_ids.rb +221 -0
  167. data/lib/emass_client/models/sw_baseline_optional_fields.rb +563 -0
  168. data/lib/emass_client/models/sw_baseline_read_only_fields.rb +222 -0
  169. data/lib/emass_client/models/sw_baseline_request_delete_body_inner.rb +220 -0
  170. data/lib/emass_client/models/sw_baseline_required_fields.rb +241 -0
  171. data/lib/emass_client/models/sw_baseline_response_delete.rb +231 -0
  172. data/lib/emass_client/models/sw_baseline_response_delete_data_inner.rb +274 -0
  173. data/lib/emass_client/models/sw_baseline_response_get.rb +240 -0
  174. data/lib/emass_client/models/sw_baseline_response_get_data_inner.rb +624 -0
  175. data/lib/emass_client/models/sw_baseline_response_post_put.rb +231 -0
  176. data/lib/emass_client/models/sw_baseline_response_post_put_data_inner.rb +274 -0
  177. data/lib/emass_client/models/system_response.rb +26 -25
  178. data/lib/emass_client/models/system_roles_category_response.rb +26 -25
  179. data/lib/emass_client/models/system_roles_response.rb +26 -25
  180. data/lib/emass_client/models/system_roles_response_data_inner.rb +26 -25
  181. data/lib/emass_client/models/systems.rb +950 -113
  182. data/lib/emass_client/models/systems_response.rb +26 -25
  183. data/lib/emass_client/models/test.rb +26 -25
  184. data/lib/emass_client/models/test_data.rb +26 -25
  185. data/lib/emass_client/models/test_results_get.rb +37 -26
  186. data/lib/emass_client/models/test_results_post.rb +40 -30
  187. data/lib/emass_client/models/test_results_response_get.rb +26 -25
  188. data/lib/emass_client/models/test_results_response_post.rb +26 -25
  189. data/lib/emass_client/models/unauthorized.rb +220 -0
  190. data/lib/emass_client/models/{response401_meta.rb → unauthorized_meta.rb} +34 -29
  191. data/lib/emass_client/models/users.rb +26 -25
  192. data/lib/emass_client/models/workflow_definition_get.rb +26 -25
  193. data/lib/emass_client/models/workflow_definition_response_get.rb +26 -25
  194. data/lib/emass_client/models/workflow_instance_get.rb +40 -28
  195. data/lib/emass_client/models/workflow_instance_response_get.rb +26 -25
  196. data/lib/emass_client/models/workflow_instances_response_get.rb +27 -26
  197. data/lib/emass_client/models/workflow_instances_response_get_pagination.rb +26 -25
  198. data/lib/emass_client/version.rb +5 -5
  199. data/lib/emass_client.rb +112 -39
  200. metadata +116 -43
  201. data/lib/emass_client/api/dashboards_api.rb +0 -2139
  202. data/lib/emass_client/models/mock_object.rb +0 -343
  203. data/lib/emass_client/models/poam_get.rb +0 -683
  204. data/lib/emass_client/models/response405.rb +0 -219
  205. data/lib/emass_client/models/response411.rb +0 -219
  206. data/lib/emass_client/models/response490.rb +0 -219
  207. data/lib/emass_client/models/response500.rb +0 -219
  208. 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 Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. <strong>Register External Application (that use the eMASS API)</strong></br> New users will need to [register](https://nisp.emass.apps.mil/Content/Help/jobaids/eMASS_OT_NewUser_Job_Aid.pdf) an API key with the eMASS development team prior to accessing the site for the first time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only). Use the `Registration` endpoint to register the client certificate.</br></br> Every call to the eMASS REST API will require the use of the agreed upon public key certificate and API key. The API key must be provided in the request header for all endpoint calls (api-key). If the service receives an untrusted certificate or API key, a 401 error response code will be returned along with an error message. </br></br> <strong>Available Request Headers</strong></br> <table> <tr> <th align=left>key</th> <th align=left>Example Value</th> <th align=left>Description</th> </tr> <tr> <td>`api-key`</td> <td>api-key-provided-by-emass</td> <td>This API key must be provided in the request header for all endpoint calls</td> </tr> <tr> <td>`user-uid`</td> <td>USER.UID.KEY</td> <td>This User unique identifier key must be provided in the request header for all PUT, POST, and DELETE endpoint calls</td> </tr> <tr> <td></td><td></td> <td> Note: For DoD users this is the DoD ID Number (EIDIPI) on their DoD CAC </td> </tr> </table> </br><strong>Approve API Client for Actionable Requests</strong></br> Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions. Please note that leaving a field parameter blank (for PUT/POST requests) has the potential to clear information in the active eMASS records. To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC:
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.10
7
- Contact: disa.meade.id.mbx.emass-tier-iii-support@mail.mil
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
- OpenAPI Generator version: 7.0.0-SNAPSHOT
9
+ Generator version: 7.12.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -24,11 +24,17 @@ module EmassClient
24
24
  # [Read-Only] The Unique Entity Identifier assigned to the DIB Company.
25
25
  attr_accessor :uei
26
26
 
27
+ # [Read-Only] The name of the Organization Seeking Certification.
28
+ attr_accessor :osc_name
29
+
30
+ # [Read-Only] Identifies the highest-level CAGE Code associated with a given organization.
31
+ attr_accessor :highest_level_owner_cage_code
32
+
27
33
  # [Read-Only] The five position code(s) associated with the Organization Seeking Certification (OSC).
28
34
  attr_accessor :cage_codes_in_scope
29
35
 
30
- # [Read-Only] The name of the Organization Seeking Certification.
31
- attr_accessor :osc_name
36
+ # [Read-Only] The number of employees affiliated with the Organization Seeking Certification.
37
+ attr_accessor :number_of_employees
32
38
 
33
39
  # [Read-Only] The scope of the OSC assessment.
34
40
  attr_accessor :scope
@@ -36,43 +42,26 @@ module EmassClient
36
42
  # [Read-Only] Brief description of the scope of the OSC assessment
37
43
  attr_accessor :scope_description
38
44
 
39
- # [Read-Only] The CMMC award level.
40
- attr_accessor :awarded_cmmc_level
41
-
42
- # [Read-Only] Expiration date of the awarded CMMC certification.
43
- attr_accessor :expiration_date
45
+ # [Read-Only] Version of the CMMC Model used as part of the assessment.
46
+ attr_accessor :assessment_standard
44
47
 
45
48
  # [Read-Only] Unique identifier for the assessment/certificate.
46
49
  attr_accessor :assessment_id
47
50
 
48
- # [Read-Only] Version of the CMMC Model used as part of the assessment.
49
- attr_accessor :model_version
50
-
51
- # [Read-Only] Identifies the highest-level CAGE Code associated with a given organization.
52
- attr_accessor :highest_level_cage_code
53
-
54
51
  # [Read-Only] Identifies the unique ID that is associated with a given CMMC certification for an organization.
55
- attr_accessor :certification_unique_id
56
-
57
- # [Read-Only] Identifies whether any security requirements received a POA&M during the assessment.
58
- attr_accessor :poam
52
+ attr_accessor :cmmc_uid
59
53
 
60
54
  # [Read-Only] Identifies the overall calculated score for the assessment based on the assigned values to each applicable security requirement.
61
55
  attr_accessor :overall_score
62
56
 
63
- # [Read-Only] Last name of the company official contracting with the C3PAO for the assessment.
64
- attr_accessor :osc_assessment_official_last_name
57
+ # [Read-Only] The status of the CMMC certification.
58
+ attr_accessor :cmmc_status
65
59
 
66
- # [Read-Only] First name of the company official contracting with the C3PAO for the assessment.
67
- attr_accessor :osc_assessment_official_first_name
60
+ # [Read-Only] Date of the CMMC status.
61
+ attr_accessor :cmmc_status_date
68
62
 
69
- # [Read-Only] Email of the company official contracting with the C3PAO for the assessment.
70
- attr_accessor :osc_assessment_official_email
71
-
72
- # [Read-Only] Title of the company official contracting with the C3PAO for the assessment.
73
- attr_accessor :osc_assessment_official_title
74
-
75
- attr_accessor :ssps
63
+ # [Read-Only] Expiration date of the CMMC status.
64
+ attr_accessor :cmmc_status_expiration_date
76
65
 
77
66
  class EnumAttributeValidator
78
67
  attr_reader :datatype
@@ -102,29 +91,30 @@ module EmassClient
102
91
  :'operation' => :'operation',
103
92
  :'hq_organization_name' => :'hqOrganizationName',
104
93
  :'uei' => :'uei',
105
- :'cage_codes_in_scope' => :'cageCodesInScope',
106
94
  :'osc_name' => :'oscName',
95
+ :'highest_level_owner_cage_code' => :'highestLevelOwnerCageCode',
96
+ :'cage_codes_in_scope' => :'cageCodesInScope',
97
+ :'number_of_employees' => :'numberOfEmployees',
107
98
  :'scope' => :'scope',
108
99
  :'scope_description' => :'scopeDescription',
109
- :'awarded_cmmc_level' => :'awardedCMMCLevel',
110
- :'expiration_date' => :'expirationDate',
100
+ :'assessment_standard' => :'assessmentStandard',
111
101
  :'assessment_id' => :'assessmentId',
112
- :'model_version' => :'modelVersion',
113
- :'highest_level_cage_code' => :'highestLevelCageCode',
114
- :'certification_unique_id' => :'certificationUniqueId',
115
- :'poam' => :'poam',
102
+ :'cmmc_uid' => :'cmmcUid',
116
103
  :'overall_score' => :'overallScore',
117
- :'osc_assessment_official_last_name' => :'oscAssessmentOfficialLastName',
118
- :'osc_assessment_official_first_name' => :'oscAssessmentOfficialFirstName',
119
- :'osc_assessment_official_email' => :'oscAssessmentOfficialEmail',
120
- :'osc_assessment_official_title' => :'oscAssessmentOfficialTitle',
121
- :'ssps' => :'ssps'
104
+ :'cmmc_status' => :'cmmcStatus',
105
+ :'cmmc_status_date' => :'cmmcStatusDate',
106
+ :'cmmc_status_expiration_date' => :'cmmcStatusExpirationDate'
122
107
  }
123
108
  end
124
109
 
110
+ # Returns attribute mapping this model knows about
111
+ def self.acceptable_attribute_map
112
+ attribute_map
113
+ end
114
+
125
115
  # Returns all the JSON keys this model knows about
126
116
  def self.acceptable_attributes
127
- attribute_map.values
117
+ acceptable_attribute_map.values
128
118
  end
129
119
 
130
120
  # Attribute type mapping.
@@ -133,23 +123,19 @@ module EmassClient
133
123
  :'operation' => :'String',
134
124
  :'hq_organization_name' => :'String',
135
125
  :'uei' => :'String',
136
- :'cage_codes_in_scope' => :'String',
137
126
  :'osc_name' => :'String',
127
+ :'highest_level_owner_cage_code' => :'String',
128
+ :'cage_codes_in_scope' => :'String',
129
+ :'number_of_employees' => :'Integer',
138
130
  :'scope' => :'String',
139
131
  :'scope_description' => :'String',
140
- :'awarded_cmmc_level' => :'String',
141
- :'expiration_date' => :'Integer',
132
+ :'assessment_standard' => :'String',
142
133
  :'assessment_id' => :'String',
143
- :'model_version' => :'String',
144
- :'highest_level_cage_code' => :'String',
145
- :'certification_unique_id' => :'String',
146
- :'poam' => :'Boolean',
134
+ :'cmmc_uid' => :'String',
147
135
  :'overall_score' => :'Integer',
148
- :'osc_assessment_official_last_name' => :'String',
149
- :'osc_assessment_official_first_name' => :'String',
150
- :'osc_assessment_official_email' => :'String',
151
- :'osc_assessment_official_title' => :'String',
152
- :'ssps' => :'Array<Ssps>'
136
+ :'cmmc_status' => :'String',
137
+ :'cmmc_status_date' => :'Integer',
138
+ :'cmmc_status_expiration_date' => :'Integer'
153
139
  }
154
140
  end
155
141
 
@@ -159,22 +145,18 @@ module EmassClient
159
145
  :'operation',
160
146
  :'hq_organization_name',
161
147
  :'uei',
162
- :'cage_codes_in_scope',
163
148
  :'osc_name',
149
+ :'highest_level_owner_cage_code',
150
+ :'cage_codes_in_scope',
151
+ :'number_of_employees',
164
152
  :'scope',
165
153
  :'scope_description',
166
- :'awarded_cmmc_level',
167
- :'expiration_date',
154
+ :'assessment_standard',
168
155
  :'assessment_id',
169
- :'model_version',
170
- :'highest_level_cage_code',
171
- :'certification_unique_id',
172
- :'poam',
173
- :'osc_assessment_official_last_name',
174
- :'osc_assessment_official_first_name',
175
- :'osc_assessment_official_email',
176
- :'osc_assessment_official_title',
177
- :'ssps'
156
+ :'cmmc_uid',
157
+ :'cmmc_status',
158
+ :'cmmc_status_date',
159
+ :'cmmc_status_expiration_date'
178
160
  ])
179
161
  end
180
162
 
@@ -186,9 +168,10 @@ module EmassClient
186
168
  end
187
169
 
188
170
  # check to see if the attribute exists and convert string to symbol for hash key
171
+ acceptable_attribute_map = self.class.acceptable_attribute_map
189
172
  attributes = attributes.each_with_object({}) { |(k, v), h|
190
- if (!self.class.attribute_map.key?(k.to_sym))
191
- fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::CmmcGet`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
173
+ if (!acceptable_attribute_map.key?(k.to_sym))
174
+ fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::CmmcGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
192
175
  end
193
176
  h[k.to_sym] = v
194
177
  }
@@ -205,12 +188,20 @@ module EmassClient
205
188
  self.uei = attributes[:'uei']
206
189
  end
207
190
 
191
+ if attributes.key?(:'osc_name')
192
+ self.osc_name = attributes[:'osc_name']
193
+ end
194
+
195
+ if attributes.key?(:'highest_level_owner_cage_code')
196
+ self.highest_level_owner_cage_code = attributes[:'highest_level_owner_cage_code']
197
+ end
198
+
208
199
  if attributes.key?(:'cage_codes_in_scope')
209
200
  self.cage_codes_in_scope = attributes[:'cage_codes_in_scope']
210
201
  end
211
202
 
212
- if attributes.key?(:'osc_name')
213
- self.osc_name = attributes[:'osc_name']
203
+ if attributes.key?(:'number_of_employees')
204
+ self.number_of_employees = attributes[:'number_of_employees']
214
205
  end
215
206
 
216
207
  if attributes.key?(:'scope')
@@ -221,64 +212,39 @@ module EmassClient
221
212
  self.scope_description = attributes[:'scope_description']
222
213
  end
223
214
 
224
- if attributes.key?(:'awarded_cmmc_level')
225
- self.awarded_cmmc_level = attributes[:'awarded_cmmc_level']
226
- end
227
-
228
- if attributes.key?(:'expiration_date')
229
- self.expiration_date = attributes[:'expiration_date']
215
+ if attributes.key?(:'assessment_standard')
216
+ self.assessment_standard = attributes[:'assessment_standard']
230
217
  end
231
218
 
232
219
  if attributes.key?(:'assessment_id')
233
220
  self.assessment_id = attributes[:'assessment_id']
234
221
  end
235
222
 
236
- if attributes.key?(:'model_version')
237
- self.model_version = attributes[:'model_version']
238
- end
239
-
240
- if attributes.key?(:'highest_level_cage_code')
241
- self.highest_level_cage_code = attributes[:'highest_level_cage_code']
242
- end
243
-
244
- if attributes.key?(:'certification_unique_id')
245
- self.certification_unique_id = attributes[:'certification_unique_id']
246
- end
247
-
248
- if attributes.key?(:'poam')
249
- self.poam = attributes[:'poam']
223
+ if attributes.key?(:'cmmc_uid')
224
+ self.cmmc_uid = attributes[:'cmmc_uid']
250
225
  end
251
226
 
252
227
  if attributes.key?(:'overall_score')
253
228
  self.overall_score = attributes[:'overall_score']
254
229
  end
255
230
 
256
- if attributes.key?(:'osc_assessment_official_last_name')
257
- self.osc_assessment_official_last_name = attributes[:'osc_assessment_official_last_name']
231
+ if attributes.key?(:'cmmc_status')
232
+ self.cmmc_status = attributes[:'cmmc_status']
258
233
  end
259
234
 
260
- if attributes.key?(:'osc_assessment_official_first_name')
261
- self.osc_assessment_official_first_name = attributes[:'osc_assessment_official_first_name']
235
+ if attributes.key?(:'cmmc_status_date')
236
+ self.cmmc_status_date = attributes[:'cmmc_status_date']
262
237
  end
263
238
 
264
- if attributes.key?(:'osc_assessment_official_email')
265
- self.osc_assessment_official_email = attributes[:'osc_assessment_official_email']
266
- end
267
-
268
- if attributes.key?(:'osc_assessment_official_title')
269
- self.osc_assessment_official_title = attributes[:'osc_assessment_official_title']
270
- end
271
-
272
- if attributes.key?(:'ssps')
273
- if (value = attributes[:'ssps']).is_a?(Array)
274
- self.ssps = value
275
- end
239
+ if attributes.key?(:'cmmc_status_expiration_date')
240
+ self.cmmc_status_expiration_date = attributes[:'cmmc_status_expiration_date']
276
241
  end
277
242
  end
278
243
 
279
244
  # Show invalid properties with the reasons. Usually used together with valid?
280
245
  # @return Array for valid properties with the reasons
281
246
  def list_invalid_properties
247
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
282
248
  invalid_properties = Array.new
283
249
  invalid_properties
284
250
  end
@@ -286,6 +252,7 @@ module EmassClient
286
252
  # Check to see if the all the properties in the model are valid
287
253
  # @return true if the model is valid
288
254
  def valid?
255
+ warn '[DEPRECATED] the `valid?` method is obsolete'
289
256
  operation_validator = EnumAttributeValidator.new('String', ["ADDED", "UPDATED", "DELETED", "unknown_default_open_api"])
290
257
  return false unless operation_validator.valid?(@operation)
291
258
  true
@@ -309,23 +276,19 @@ module EmassClient
309
276
  operation == o.operation &&
310
277
  hq_organization_name == o.hq_organization_name &&
311
278
  uei == o.uei &&
312
- cage_codes_in_scope == o.cage_codes_in_scope &&
313
279
  osc_name == o.osc_name &&
280
+ highest_level_owner_cage_code == o.highest_level_owner_cage_code &&
281
+ cage_codes_in_scope == o.cage_codes_in_scope &&
282
+ number_of_employees == o.number_of_employees &&
314
283
  scope == o.scope &&
315
284
  scope_description == o.scope_description &&
316
- awarded_cmmc_level == o.awarded_cmmc_level &&
317
- expiration_date == o.expiration_date &&
285
+ assessment_standard == o.assessment_standard &&
318
286
  assessment_id == o.assessment_id &&
319
- model_version == o.model_version &&
320
- highest_level_cage_code == o.highest_level_cage_code &&
321
- certification_unique_id == o.certification_unique_id &&
322
- poam == o.poam &&
287
+ cmmc_uid == o.cmmc_uid &&
323
288
  overall_score == o.overall_score &&
324
- osc_assessment_official_last_name == o.osc_assessment_official_last_name &&
325
- osc_assessment_official_first_name == o.osc_assessment_official_first_name &&
326
- osc_assessment_official_email == o.osc_assessment_official_email &&
327
- osc_assessment_official_title == o.osc_assessment_official_title &&
328
- ssps == o.ssps
289
+ cmmc_status == o.cmmc_status &&
290
+ cmmc_status_date == o.cmmc_status_date &&
291
+ cmmc_status_expiration_date == o.cmmc_status_expiration_date
329
292
  end
330
293
 
331
294
  # @see the `==` method
@@ -337,44 +300,37 @@ module EmassClient
337
300
  # Calculates hash code according to all attributes.
338
301
  # @return [Integer] Hash code
339
302
  def hash
340
- [operation, hq_organization_name, uei, cage_codes_in_scope, osc_name, scope, scope_description, awarded_cmmc_level, expiration_date, assessment_id, model_version, highest_level_cage_code, certification_unique_id, poam, overall_score, osc_assessment_official_last_name, osc_assessment_official_first_name, osc_assessment_official_email, osc_assessment_official_title, ssps].hash
303
+ [operation, hq_organization_name, uei, osc_name, highest_level_owner_cage_code, cage_codes_in_scope, number_of_employees, scope, scope_description, assessment_standard, assessment_id, cmmc_uid, overall_score, cmmc_status, cmmc_status_date, cmmc_status_expiration_date].hash
341
304
  end
342
305
 
343
306
  # Builds the object from hash
344
307
  # @param [Hash] attributes Model attributes in the form of hash
345
308
  # @return [Object] Returns the model itself
346
309
  def self.build_from_hash(attributes)
347
- new.build_from_hash(attributes)
348
- end
349
-
350
- # Builds the object from hash
351
- # @param [Hash] attributes Model attributes in the form of hash
352
- # @return [Object] Returns the model itself
353
- def build_from_hash(attributes)
354
310
  return nil unless attributes.is_a?(Hash)
355
311
  attributes = attributes.transform_keys(&:to_sym)
356
- self.class.openapi_types.each_pair do |key, type|
357
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
358
- self.send("#{key}=", nil)
312
+ transformed_hash = {}
313
+ openapi_types.each_pair do |key, type|
314
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
315
+ transformed_hash["#{key}"] = nil
359
316
  elsif type =~ /\AArray<(.*)>/i
360
317
  # check to ensure the input is an array given that the attribute
361
318
  # is documented as an array but the input is not
362
- if attributes[self.class.attribute_map[key]].is_a?(Array)
363
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
319
+ if attributes[attribute_map[key]].is_a?(Array)
320
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
364
321
  end
365
- elsif !attributes[self.class.attribute_map[key]].nil?
366
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
322
+ elsif !attributes[attribute_map[key]].nil?
323
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
367
324
  end
368
325
  end
369
-
370
- self
326
+ new(transformed_hash)
371
327
  end
372
328
 
373
329
  # Deserializes the data based on type
374
330
  # @param string type Data type
375
331
  # @param string value Value to be deserialized
376
332
  # @return [Object] Deserialized data
377
- def _deserialize(type, value)
333
+ def self._deserialize(type, value)
378
334
  case type.to_sym
379
335
  when :Time
380
336
  Time.parse(value)
@@ -409,7 +365,7 @@ module EmassClient
409
365
  else # model
410
366
  # models (e.g. Pet) or oneOf
411
367
  klass = EmassClient.const_get(type)
412
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
368
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
413
369
  end
414
370
  end
415
371
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Enterprise Mission Assurance Support Service (eMASS)
3
3
 
4
- #The Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. <strong>Register External Application (that use the eMASS API)</strong></br> New users will need to [register](https://nisp.emass.apps.mil/Content/Help/jobaids/eMASS_OT_NewUser_Job_Aid.pdf) an API key with the eMASS development team prior to accessing the site for the first time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only). Use the `Registration` endpoint to register the client certificate.</br></br> Every call to the eMASS REST API will require the use of the agreed upon public key certificate and API key. The API key must be provided in the request header for all endpoint calls (api-key). If the service receives an untrusted certificate or API key, a 401 error response code will be returned along with an error message. </br></br> <strong>Available Request Headers</strong></br> <table> <tr> <th align=left>key</th> <th align=left>Example Value</th> <th align=left>Description</th> </tr> <tr> <td>`api-key`</td> <td>api-key-provided-by-emass</td> <td>This API key must be provided in the request header for all endpoint calls</td> </tr> <tr> <td>`user-uid`</td> <td>USER.UID.KEY</td> <td>This User unique identifier key must be provided in the request header for all PUT, POST, and DELETE endpoint calls</td> </tr> <tr> <td></td><td></td> <td> Note: For DoD users this is the DoD ID Number (EIDIPI) on their DoD CAC </td> </tr> </table> </br><strong>Approve API Client for Actionable Requests</strong></br> Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions. Please note that leaving a field parameter blank (for PUT/POST requests) has the potential to clear information in the active eMASS records. To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC:
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.10
7
- Contact: disa.meade.id.mbx.emass-tier-iii-support@mail.mil
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
- OpenAPI Generator version: 7.0.0-SNAPSHOT
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
- attribute_map.values
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 (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::CmmcResponseGet`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::CmmcResponseGet`. 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
  }
@@ -75,6 +81,7 @@ module EmassClient
75
81
  # Show invalid properties with the reasons. Usually used together with valid?
76
82
  # @return Array for valid properties with the reasons
77
83
  def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
85
  invalid_properties = Array.new
79
86
  invalid_properties
80
87
  end
@@ -82,6 +89,7 @@ module EmassClient
82
89
  # Check to see if the all the properties in the model are valid
83
90
  # @return true if the model is valid
84
91
  def valid?
92
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
93
  true
86
94
  end
87
95
 
@@ -110,37 +118,30 @@ module EmassClient
110
118
  # @param [Hash] attributes Model attributes in the form of hash
111
119
  # @return [Object] Returns the model itself
112
120
  def self.build_from_hash(attributes)
113
- new.build_from_hash(attributes)
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def build_from_hash(attributes)
120
121
  return nil unless attributes.is_a?(Hash)
121
122
  attributes = attributes.transform_keys(&:to_sym)
122
- self.class.openapi_types.each_pair do |key, type|
123
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
- self.send("#{key}=", nil)
123
+ transformed_hash = {}
124
+ openapi_types.each_pair do |key, type|
125
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = nil
125
127
  elsif type =~ /\AArray<(.*)>/i
126
128
  # check to ensure the input is an array given that the attribute
127
129
  # is documented as an array but the input is not
128
- if attributes[self.class.attribute_map[key]].is_a?(Array)
129
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ if attributes[attribute_map[key]].is_a?(Array)
131
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
132
  end
131
- elsif !attributes[self.class.attribute_map[key]].nil?
132
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ elsif !attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
135
  end
134
136
  end
135
-
136
- self
137
+ new(transformed_hash)
137
138
  end
138
139
 
139
140
  # Deserializes the data based on type
140
141
  # @param string type Data type
141
142
  # @param string value Value to be deserialized
142
143
  # @return [Object] Deserialized data
143
- def _deserialize(type, value)
144
+ def self._deserialize(type, value)
144
145
  case type.to_sym
145
146
  when :Time
146
147
  Time.parse(value)
@@ -175,7 +176,7 @@ module EmassClient
175
176
  else # model
176
177
  # models (e.g. Pet) or oneOf
177
178
  klass = EmassClient.const_get(type)
178
- 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)
179
180
  end
180
181
  end
181
182