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