emass_client 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +152 -1124
  3. data/Rakefile +2 -0
  4. data/lib/emass_client/api/artifacts_api.rb +124 -97
  5. data/lib/emass_client/api/artifacts_export_api.rb +28 -19
  6. data/lib/emass_client/api/cac_api.rb +50 -31
  7. data/lib/emass_client/api/cloud_resources_api.rb +96 -0
  8. data/lib/emass_client/api/cmmc_assessments_api.rb +20 -11
  9. data/lib/emass_client/api/containers_api.rb +96 -0
  10. data/lib/emass_client/api/controls_api.rb +53 -34
  11. data/lib/emass_client/api/milestones_api.rb +138 -92
  12. data/lib/emass_client/api/pac_api.rb +50 -31
  13. data/lib/emass_client/api/poam_api.rb +132 -86
  14. data/lib/emass_client/api/registration_api.rb +30 -18
  15. data/lib/emass_client/api/static_code_scans_api.rb +38 -26
  16. data/lib/emass_client/api/system_roles_api.rb +48 -29
  17. data/lib/emass_client/api/systems_api.rb +57 -39
  18. data/lib/emass_client/api/test_api.rb +18 -9
  19. data/lib/emass_client/api/test_results_api.rb +53 -34
  20. data/lib/emass_client/api/workflow_definitions_api.rb +23 -14
  21. data/lib/emass_client/api/workflow_instances_api.rb +58 -53
  22. data/lib/emass_client/api_client.rb +59 -57
  23. data/lib/emass_client/api_error.rb +5 -5
  24. data/lib/emass_client/configuration.rb +93 -16
  25. data/lib/emass_client/models/artifacts_get.rb +54 -31
  26. data/lib/emass_client/models/{artifacts_delete_inner.rb → artifacts_request_delete_body_inner.rb} +29 -16
  27. data/lib/emass_client/models/artifacts_response_del.rb +27 -14
  28. data/lib/emass_client/models/{artifacts_response_del_data.rb → artifacts_response_del_data_inner.rb} +31 -18
  29. data/lib/emass_client/models/artifacts_response_get.rb +27 -14
  30. data/lib/emass_client/models/artifacts_response_put_post.rb +27 -14
  31. data/lib/emass_client/models/artifacts_response_put_post_data_inner.rb +265 -0
  32. data/lib/emass_client/models/cac_get.rb +82 -50
  33. data/lib/emass_client/models/cac_response_get.rb +27 -14
  34. data/lib/emass_client/models/cac_response_post.rb +27 -14
  35. data/lib/emass_client/models/{cac_response_post_data.rb → cac_response_post_data_inner.rb} +61 -21
  36. data/lib/emass_client/models/{pac_request_post_body.rb → cloud_resources_post.rb} +73 -69
  37. data/lib/emass_client/models/cloud_resources_response_post.rb +230 -0
  38. data/lib/emass_client/models/cmmc_get.rb +53 -63
  39. data/lib/emass_client/models/cmmc_response_get.rb +27 -14
  40. data/lib/emass_client/models/connectivity_ccsd.rb +29 -14
  41. data/lib/emass_client/models/containers_resources_post.rb +265 -0
  42. data/lib/emass_client/models/containers_response_post.rb +230 -0
  43. data/lib/emass_client/models/controls_get.rb +103 -66
  44. data/lib/emass_client/models/controls_put.rb +58 -18
  45. data/lib/emass_client/models/controls_response_get.rb +28 -14
  46. data/lib/emass_client/models/controls_response_put.rb +27 -14
  47. data/lib/emass_client/models/definition_transitions.rb +32 -62
  48. data/lib/emass_client/models/instances_transitions.rb +37 -88
  49. data/lib/emass_client/models/milestone_response_get.rb +27 -14
  50. data/lib/emass_client/models/milestone_response_get_milestone.rb +228 -0
  51. data/lib/emass_client/models/milestone_response_post.rb +27 -14
  52. data/lib/emass_client/models/milestone_response_put.rb +27 -14
  53. data/lib/emass_client/models/milestones_get.rb +33 -20
  54. data/lib/emass_client/models/milestones_put_post_delete.rb +60 -20
  55. data/lib/emass_client/models/{delete_milestone.rb → milestones_request_delete_body_inner.rb} +29 -21
  56. data/lib/emass_client/models/milestones_required_post.rb +27 -14
  57. data/lib/emass_client/models/milestones_required_put.rb +28 -15
  58. data/lib/emass_client/models/pac_get.rb +39 -22
  59. data/lib/emass_client/models/pac_post.rb +60 -20
  60. data/lib/emass_client/models/pac_response_get.rb +28 -14
  61. data/lib/emass_client/models/pac_response_post.rb +27 -14
  62. data/lib/emass_client/models/poam_get.rb +114 -77
  63. data/lib/emass_client/models/poam_post_put_del.rb +59 -19
  64. data/lib/emass_client/models/{delete_poam.rb → poam_request_delete_body_inner.rb} +29 -21
  65. data/lib/emass_client/models/poam_response_delete.rb +27 -14
  66. data/lib/emass_client/models/poam_response_get_poams.rb +228 -0
  67. data/lib/emass_client/models/{static_code_required_post.rb → poam_response_get_systems.rb} +42 -29
  68. data/lib/emass_client/models/poam_response_post.rb +27 -14
  69. data/lib/emass_client/models/poam_response_put.rb +27 -14
  70. data/lib/emass_client/models/register.rb +27 -14
  71. data/lib/emass_client/models/register_data.rb +26 -13
  72. data/lib/emass_client/models/register_user_request_post_body.rb +26 -13
  73. data/lib/emass_client/models/{model_200.rb → response200.rb} +53 -16
  74. data/lib/emass_client/models/{model_400.rb → response201.rb} +29 -16
  75. data/lib/emass_client/models/{model_201_meta.rb → response201_meta.rb} +54 -17
  76. data/lib/emass_client/models/{model_400_response.rb → response400.rb} +29 -16
  77. data/lib/emass_client/models/{model_400_meta.rb → response400_meta.rb} +54 -17
  78. data/lib/emass_client/models/{model_401.rb → response401.rb} +29 -16
  79. data/lib/emass_client/models/{model_401_meta.rb → response401_meta.rb} +54 -17
  80. data/lib/emass_client/models/{model_201.rb → response403.rb} +29 -16
  81. data/lib/emass_client/models/{model_403_meta.rb → response403_meta.rb} +54 -17
  82. data/lib/emass_client/models/{model_404.rb → response404.rb} +54 -17
  83. data/lib/emass_client/models/response405.rb +219 -0
  84. data/lib/emass_client/models/{model_405_meta.rb → response405_meta.rb} +54 -17
  85. data/lib/emass_client/models/response411.rb +219 -0
  86. data/lib/emass_client/models/{model_411_meta.rb → response411_meta.rb} +54 -17
  87. data/lib/emass_client/models/response490.rb +219 -0
  88. data/lib/emass_client/models/{model_490_meta.rb → response490_meta.rb} +54 -17
  89. data/lib/emass_client/models/response500.rb +219 -0
  90. data/lib/emass_client/models/{model_500_meta.rb → response500_meta.rb} +54 -17
  91. data/lib/emass_client/models/role_category.rb +32 -50
  92. data/lib/emass_client/models/roles.rb +29 -61
  93. data/lib/emass_client/models/ssps.rb +32 -16
  94. data/lib/emass_client/models/stage.rb +30 -49
  95. data/lib/emass_client/models/static_code_application.rb +34 -33
  96. data/lib/emass_client/models/static_code_post.rb +275 -0
  97. data/lib/emass_client/models/static_code_request_post_body.rb +47 -14
  98. data/lib/emass_client/models/{static_code_required_post_application.rb → static_code_request_post_body_application.rb} +30 -17
  99. data/lib/emass_client/models/static_code_response_post.rb +230 -0
  100. data/lib/emass_client/models/success200_response.rb +27 -14
  101. data/lib/emass_client/models/{error.rb → success200_response_data_inner.rb} +57 -36
  102. data/lib/emass_client/models/system_response.rb +28 -17
  103. data/lib/emass_client/models/system_roles_category_response.rb +28 -14
  104. data/lib/emass_client/models/system_roles_response.rb +27 -14
  105. data/lib/emass_client/models/{system_roles_response_data.rb → system_roles_response_data_inner.rb} +30 -17
  106. data/lib/emass_client/models/systems.rb +218 -191
  107. data/lib/emass_client/models/{poam_response_get.rb → systems_response.rb} +30 -17
  108. data/lib/emass_client/models/test.rb +27 -14
  109. data/lib/emass_client/models/test_data.rb +26 -13
  110. data/lib/emass_client/models/test_results_get.rb +39 -35
  111. data/lib/emass_client/models/test_results_post.rb +58 -18
  112. data/lib/emass_client/models/test_results_response_get.rb +27 -14
  113. data/lib/emass_client/models/test_results_response_post.rb +27 -14
  114. data/lib/emass_client/models/users.rb +28 -15
  115. data/lib/emass_client/models/workflow_definition_get.rb +63 -68
  116. data/lib/emass_client/models/workflow_definition_response_get.rb +27 -14
  117. data/lib/emass_client/models/workflow_instance_get.rb +331 -0
  118. data/lib/emass_client/models/workflow_instance_response_get.rb +230 -0
  119. data/lib/emass_client/models/workflow_instances_get.rb +107 -133
  120. data/lib/emass_client/models/workflow_instances_response_get.rb +39 -17
  121. data/lib/emass_client/models/workflow_instances_response_get_pagination.rb +246 -0
  122. data/lib/emass_client/version.rb +6 -5
  123. data/lib/emass_client.rb +47 -54
  124. metadata +60 -89
  125. data/lib/emass_client/models/artifacts_delete.rb +0 -201
  126. data/lib/emass_client/models/artifacts_request_put_body.rb +0 -363
  127. data/lib/emass_client/models/cac_request_post_body.rb +0 -217
  128. data/lib/emass_client/models/controls_request_put_body.rb +0 -606
  129. data/lib/emass_client/models/empty200_response.rb +0 -197
  130. data/lib/emass_client/models/milestones_delete.rb +0 -197
  131. data/lib/emass_client/models/milestones_post.rb +0 -197
  132. data/lib/emass_client/models/milestones_put.rb +0 -197
  133. data/lib/emass_client/models/milestones_request_post_body.rb +0 -242
  134. data/lib/emass_client/models/milestones_request_put_body.rb +0 -242
  135. data/lib/emass_client/models/model_403.rb +0 -206
  136. data/lib/emass_client/models/model_404_response.rb +0 -206
  137. data/lib/emass_client/models/model_405.rb +0 -206
  138. data/lib/emass_client/models/model_411.rb +0 -206
  139. data/lib/emass_client/models/model_490.rb +0 -206
  140. data/lib/emass_client/models/model_500.rb +0 -206
  141. data/lib/emass_client/models/poam_delete.rb +0 -197
  142. data/lib/emass_client/models/poam_post.rb +0 -197
  143. data/lib/emass_client/models/poam_put.rb +0 -197
  144. data/lib/emass_client/models/poam_request_post_body.rb +0 -197
  145. data/lib/emass_client/models/poam_request_put_body.rb +0 -197
  146. data/lib/emass_client/models/poam_required_post.rb +0 -564
  147. data/lib/emass_client/models/poam_required_put.rb +0 -594
  148. data/lib/emass_client/models/system_id_artifacts_body.rb +0 -284
  149. data/lib/emass_client/models/test_results_request_post_body.rb +0 -306
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emass_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
- - Swagger-Codegen
7
+ - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
- - !ruby/object:Gem::Dependency
34
- name: json
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 2.1.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 2.1.0
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: rspec
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -72,18 +52,17 @@ dependencies:
72
52
  version: 3.6.0
73
53
  description: 'The Enterprise Mission Assurance Support Service (eMASS) Representational
74
54
  State Transfer (REST) Application Programming Interface (API) enables users to perform
75
- assessments and complete actions associated with system records. The `emasser`
76
- is a command-line interface (CLI) tool that implements all of the eMASS endpoints
77
- defined in the eMASS REST API v3.2, dated October 21, 2021.</br><br> <strong>Register
78
- CLI</strong></br> New users will need to register an API key with the eMASS development
79
- team prior to accessing the site for the first time. The eMASS REST API requires
80
- a client certificate (SSL/TLS, DoD PKI only) where {url}/api/register (POST) is
81
- used to register the client certificate.</br></br> Every call to the eMASS REST
82
- API will require the use of the agreed upon public key certificate and API key.
83
- The API key must be provided in the request header for all endpoint calls (api-key).
84
- If the service receives an untrusted certificate or API key, a 401 error response
85
- code will be returned along with an error message.</br></br> <strong>Available
86
- Request Headers:</strong></br> <table> <tr> <th align=left>key</th> <th
55
+ assessments and complete actions associated with system records. <strong>Register
56
+ External Application (that use the eMASS API)</strong></br> New users will need
57
+ to [register](https://nisp.emass.apps.mil/Content/Help/jobaids/eMASS_OT_NewUser_Job_Aid.pdf)
58
+ an API key with the eMASS development team prior to accessing the site for the first
59
+ time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only).
60
+ Use the `Registration` endpoint to register the client certificate.</br></br> Every
61
+ call to the eMASS REST API will require the use of the agreed upon public key certificate
62
+ and API key. The API key must be provided in the request header for all endpoint
63
+ calls (api-key). If the service receives an untrusted certificate or API key, a
64
+ 401 error response code will be returned along with an error message.</br></br> <strong>Available
65
+ Request Headers</strong></br> <table> <tr> <th align=left>key</th> <th
87
66
  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
88
67
  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
89
68
  User unique identifier key must be provided in the request header for all PUT, POST,
@@ -109,7 +88,9 @@ files:
109
88
  - lib/emass_client/api/artifacts_api.rb
110
89
  - lib/emass_client/api/artifacts_export_api.rb
111
90
  - lib/emass_client/api/cac_api.rb
91
+ - lib/emass_client/api/cloud_resources_api.rb
112
92
  - lib/emass_client/api/cmmc_assessments_api.rb
93
+ - lib/emass_client/api/containers_api.rb
113
94
  - lib/emass_client/api/controls_api.rb
114
95
  - lib/emass_client/api/milestones_api.rb
115
96
  - lib/emass_client/api/pac_api.rb
@@ -125,117 +106,107 @@ files:
125
106
  - lib/emass_client/api_client.rb
126
107
  - lib/emass_client/api_error.rb
127
108
  - lib/emass_client/configuration.rb
128
- - lib/emass_client/models/artifacts_delete.rb
129
- - lib/emass_client/models/artifacts_delete_inner.rb
130
109
  - lib/emass_client/models/artifacts_get.rb
131
- - lib/emass_client/models/artifacts_request_put_body.rb
110
+ - lib/emass_client/models/artifacts_request_delete_body_inner.rb
132
111
  - lib/emass_client/models/artifacts_response_del.rb
133
- - lib/emass_client/models/artifacts_response_del_data.rb
112
+ - lib/emass_client/models/artifacts_response_del_data_inner.rb
134
113
  - lib/emass_client/models/artifacts_response_get.rb
135
114
  - lib/emass_client/models/artifacts_response_put_post.rb
115
+ - lib/emass_client/models/artifacts_response_put_post_data_inner.rb
136
116
  - lib/emass_client/models/cac_get.rb
137
- - lib/emass_client/models/cac_request_post_body.rb
138
117
  - lib/emass_client/models/cac_response_get.rb
139
118
  - lib/emass_client/models/cac_response_post.rb
140
- - lib/emass_client/models/cac_response_post_data.rb
119
+ - lib/emass_client/models/cac_response_post_data_inner.rb
120
+ - lib/emass_client/models/cloud_resources_post.rb
121
+ - lib/emass_client/models/cloud_resources_response_post.rb
141
122
  - lib/emass_client/models/cmmc_get.rb
142
123
  - lib/emass_client/models/cmmc_response_get.rb
143
124
  - lib/emass_client/models/connectivity_ccsd.rb
125
+ - lib/emass_client/models/containers_resources_post.rb
126
+ - lib/emass_client/models/containers_response_post.rb
144
127
  - lib/emass_client/models/controls_get.rb
145
128
  - lib/emass_client/models/controls_put.rb
146
- - lib/emass_client/models/controls_request_put_body.rb
147
129
  - lib/emass_client/models/controls_response_get.rb
148
130
  - lib/emass_client/models/controls_response_put.rb
149
131
  - lib/emass_client/models/definition_transitions.rb
150
- - lib/emass_client/models/delete_milestone.rb
151
- - lib/emass_client/models/delete_poam.rb
152
- - lib/emass_client/models/empty200_response.rb
153
- - lib/emass_client/models/error.rb
154
132
  - lib/emass_client/models/instances_transitions.rb
155
133
  - lib/emass_client/models/milestone_response_get.rb
134
+ - lib/emass_client/models/milestone_response_get_milestone.rb
156
135
  - lib/emass_client/models/milestone_response_post.rb
157
136
  - lib/emass_client/models/milestone_response_put.rb
158
- - lib/emass_client/models/milestones_delete.rb
159
137
  - lib/emass_client/models/milestones_get.rb
160
- - lib/emass_client/models/milestones_post.rb
161
- - lib/emass_client/models/milestones_put.rb
162
138
  - lib/emass_client/models/milestones_put_post_delete.rb
163
- - lib/emass_client/models/milestones_request_post_body.rb
164
- - lib/emass_client/models/milestones_request_put_body.rb
139
+ - lib/emass_client/models/milestones_request_delete_body_inner.rb
165
140
  - lib/emass_client/models/milestones_required_post.rb
166
141
  - lib/emass_client/models/milestones_required_put.rb
167
- - lib/emass_client/models/model_200.rb
168
- - lib/emass_client/models/model_201.rb
169
- - lib/emass_client/models/model_201_meta.rb
170
- - lib/emass_client/models/model_400.rb
171
- - lib/emass_client/models/model_400_meta.rb
172
- - lib/emass_client/models/model_400_response.rb
173
- - lib/emass_client/models/model_401.rb
174
- - lib/emass_client/models/model_401_meta.rb
175
- - lib/emass_client/models/model_403.rb
176
- - lib/emass_client/models/model_403_meta.rb
177
- - lib/emass_client/models/model_404.rb
178
- - lib/emass_client/models/model_404_response.rb
179
- - lib/emass_client/models/model_405.rb
180
- - lib/emass_client/models/model_405_meta.rb
181
- - lib/emass_client/models/model_411.rb
182
- - lib/emass_client/models/model_411_meta.rb
183
- - lib/emass_client/models/model_490.rb
184
- - lib/emass_client/models/model_490_meta.rb
185
- - lib/emass_client/models/model_500.rb
186
- - lib/emass_client/models/model_500_meta.rb
187
142
  - lib/emass_client/models/pac_get.rb
188
143
  - lib/emass_client/models/pac_post.rb
189
- - lib/emass_client/models/pac_request_post_body.rb
190
144
  - lib/emass_client/models/pac_response_get.rb
191
145
  - lib/emass_client/models/pac_response_post.rb
192
- - lib/emass_client/models/poam_delete.rb
193
146
  - lib/emass_client/models/poam_get.rb
194
- - lib/emass_client/models/poam_post.rb
195
147
  - lib/emass_client/models/poam_post_put_del.rb
196
- - lib/emass_client/models/poam_put.rb
197
- - lib/emass_client/models/poam_request_post_body.rb
198
- - lib/emass_client/models/poam_request_put_body.rb
199
- - lib/emass_client/models/poam_required_post.rb
200
- - lib/emass_client/models/poam_required_put.rb
148
+ - lib/emass_client/models/poam_request_delete_body_inner.rb
201
149
  - lib/emass_client/models/poam_response_delete.rb
202
- - lib/emass_client/models/poam_response_get.rb
150
+ - lib/emass_client/models/poam_response_get_poams.rb
151
+ - lib/emass_client/models/poam_response_get_systems.rb
203
152
  - lib/emass_client/models/poam_response_post.rb
204
153
  - lib/emass_client/models/poam_response_put.rb
205
154
  - lib/emass_client/models/register.rb
206
155
  - lib/emass_client/models/register_data.rb
207
156
  - lib/emass_client/models/register_user_request_post_body.rb
157
+ - lib/emass_client/models/response200.rb
158
+ - lib/emass_client/models/response201.rb
159
+ - lib/emass_client/models/response201_meta.rb
160
+ - lib/emass_client/models/response400.rb
161
+ - lib/emass_client/models/response400_meta.rb
162
+ - lib/emass_client/models/response401.rb
163
+ - lib/emass_client/models/response401_meta.rb
164
+ - lib/emass_client/models/response403.rb
165
+ - lib/emass_client/models/response403_meta.rb
166
+ - lib/emass_client/models/response404.rb
167
+ - lib/emass_client/models/response405.rb
168
+ - lib/emass_client/models/response405_meta.rb
169
+ - lib/emass_client/models/response411.rb
170
+ - lib/emass_client/models/response411_meta.rb
171
+ - lib/emass_client/models/response490.rb
172
+ - lib/emass_client/models/response490_meta.rb
173
+ - lib/emass_client/models/response500.rb
174
+ - lib/emass_client/models/response500_meta.rb
208
175
  - lib/emass_client/models/role_category.rb
209
176
  - lib/emass_client/models/roles.rb
210
177
  - lib/emass_client/models/ssps.rb
211
178
  - lib/emass_client/models/stage.rb
212
179
  - lib/emass_client/models/static_code_application.rb
180
+ - lib/emass_client/models/static_code_post.rb
213
181
  - lib/emass_client/models/static_code_request_post_body.rb
214
- - lib/emass_client/models/static_code_required_post.rb
215
- - lib/emass_client/models/static_code_required_post_application.rb
182
+ - lib/emass_client/models/static_code_request_post_body_application.rb
183
+ - lib/emass_client/models/static_code_response_post.rb
216
184
  - lib/emass_client/models/success200_response.rb
217
- - lib/emass_client/models/system_id_artifacts_body.rb
185
+ - lib/emass_client/models/success200_response_data_inner.rb
218
186
  - lib/emass_client/models/system_response.rb
219
187
  - lib/emass_client/models/system_roles_category_response.rb
220
188
  - lib/emass_client/models/system_roles_response.rb
221
- - lib/emass_client/models/system_roles_response_data.rb
189
+ - lib/emass_client/models/system_roles_response_data_inner.rb
222
190
  - lib/emass_client/models/systems.rb
191
+ - lib/emass_client/models/systems_response.rb
223
192
  - lib/emass_client/models/test.rb
224
193
  - lib/emass_client/models/test_data.rb
225
194
  - lib/emass_client/models/test_results_get.rb
226
195
  - lib/emass_client/models/test_results_post.rb
227
- - lib/emass_client/models/test_results_request_post_body.rb
228
196
  - lib/emass_client/models/test_results_response_get.rb
229
197
  - lib/emass_client/models/test_results_response_post.rb
230
198
  - lib/emass_client/models/users.rb
231
199
  - lib/emass_client/models/workflow_definition_get.rb
232
200
  - lib/emass_client/models/workflow_definition_response_get.rb
201
+ - lib/emass_client/models/workflow_instance_get.rb
202
+ - lib/emass_client/models/workflow_instance_response_get.rb
233
203
  - lib/emass_client/models/workflow_instances_get.rb
234
204
  - lib/emass_client/models/workflow_instances_response_get.rb
205
+ - lib/emass_client/models/workflow_instances_response_get_pagination.rb
235
206
  - lib/emass_client/version.rb
236
- homepage: https://github.com/swagger-api/swagger-codegen
207
+ homepage: https://openapi-generator.tech
237
208
  licenses:
238
- - Unlicense
209
+ - Apache-2.0
239
210
  metadata: {}
240
211
  post_install_message:
241
212
  rdoc_options: []
@@ -245,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
216
  requirements:
246
217
  - - ">="
247
218
  - !ruby/object:Gem::Version
248
- version: '1.9'
219
+ version: '2.4'
249
220
  required_rubygems_version: !ruby/object:Gem::Requirement
250
221
  requirements:
251
222
  - - ">="
252
223
  - !ruby/object:Gem::Version
253
224
  version: '0'
254
225
  requirements: []
255
- rubygems_version: 3.2.32
226
+ rubygems_version: 3.3.7
256
227
  signing_key:
257
228
  specification_version: 4
258
229
  summary: Enterprise Mission Assurance Support Service (eMASS) Ruby Gem
@@ -1,201 +0,0 @@
1
- =begin
2
- #Enterprise Mission Assurance Support Service (eMASS)
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. The `emasser` is a command-line interface (CLI) tool that implements all of the eMASS endpoints defined in the eMASS REST API v3.2, dated October 21, 2021.</br><br> <strong>Register CLI</strong></br> New users will need to register 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) where {url}/api/register (POST) is used 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:
5
-
6
- OpenAPI spec version: v3.2
7
- Contact: disa.meade.id.mbx.emass-tier-iii-support@mail.mil
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.26
10
- =end
11
-
12
- require 'date'
13
-
14
- module EmassClient
15
- class ArtifactsDelete
16
- # Attribute mapping from ruby-style variable name to JSON key.
17
- def self.attribute_map
18
- {
19
- }
20
- end
21
-
22
- # Attribute type mapping.
23
- def self.openapi_types
24
- {
25
- }
26
- end
27
-
28
- # List of attributes with nullable: true
29
- def self.openapi_nullable
30
- Set.new([
31
- ])
32
- end
33
-
34
- # Initializes the object
35
- # @param [Hash] attributes Model attributes in the form of hash
36
- def initialize(attributes = {})
37
- if (!attributes.is_a?(Hash))
38
- fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::ArtifactsDelete` initialize method"
39
- end
40
-
41
- # check to see if the attribute exists and convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}) { |(k, v), h|
43
- if (!self.class.attribute_map.key?(k.to_sym))
44
- fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::ArtifactsDelete`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
45
- end
46
- h[k.to_sym] = v
47
- }
48
-
49
- # call parent's initialize
50
- super(attributes)
51
- end
52
-
53
- # Show invalid properties with the reasons. Usually used together with valid?
54
- # @return Array for valid properties with the reasons
55
- def list_invalid_properties
56
- invalid_properties = super
57
- invalid_properties
58
- end
59
-
60
- # Check to see if the all the properties in the model are valid
61
- # @return true if the model is valid
62
- def valid?
63
- true
64
- end
65
-
66
- # Checks equality by comparing each attribute.
67
- # @param [Object] Object to be compared
68
- def ==(o)
69
- return true if self.equal?(o)
70
- self.class == o.class && super(o)
71
- end
72
-
73
- # @see the `==` method
74
- # @param [Object] Object to be compared
75
- def eql?(o)
76
- self == o
77
- end
78
-
79
- # Calculates hash code according to all attributes.
80
- # @return [Integer] Hash code
81
- def hash
82
- [].hash
83
- end
84
-
85
- # Builds the object from hash
86
- # @param [Hash] attributes Model attributes in the form of hash
87
- # @return [Object] Returns the model itself
88
- def self.build_from_hash(attributes)
89
- new.build_from_hash(attributes)
90
- end
91
-
92
- # Builds the object from hash
93
- # @param [Hash] attributes Model attributes in the form of hash
94
- # @return [Object] Returns the model itself
95
- def build_from_hash(attributes)
96
- return nil unless attributes.is_a?(Hash)
97
- super(attributes)
98
- self.class.openapi_types.each_pair do |key, type|
99
- if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the attribute
101
- # is documented as an array but the input is not
102
- if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
- end
105
- elsif !attributes[self.class.attribute_map[key]].nil?
106
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
- elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
108
- self.send("#{key}=", nil)
109
- end
110
- end
111
-
112
- self
113
- end
114
-
115
- # Deserializes the data based on type
116
- # @param string type Data type
117
- # @param string value Value to be deserialized
118
- # @return [Object] Deserialized data
119
- def _deserialize(type, value)
120
- case type.to_sym
121
- when :DateTime
122
- DateTime.parse(value)
123
- when :Date
124
- Date.parse(value)
125
- when :String
126
- value.to_s
127
- when :Integer
128
- value.to_i
129
- when :Float
130
- value.to_f
131
- when :Boolean
132
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
133
- true
134
- else
135
- false
136
- end
137
- when :Object
138
- # generic object (usually a Hash), return directly
139
- value
140
- when /\AArray<(?<inner_type>.+)>\z/
141
- inner_type = Regexp.last_match[:inner_type]
142
- value.map { |v| _deserialize(inner_type, v) }
143
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
144
- k_type = Regexp.last_match[:k_type]
145
- v_type = Regexp.last_match[:v_type]
146
- {}.tap do |hash|
147
- value.each do |k, v|
148
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
149
- end
150
- end
151
- else # model
152
- EmassClient.const_get(type).build_from_hash(value)
153
- end
154
- end
155
-
156
- # Returns the string representation of the object
157
- # @return [String] String presentation of the object
158
- def to_s
159
- to_hash.to_s
160
- end
161
-
162
- # to_body is an alias to to_hash (backward compatibility)
163
- # @return [Hash] Returns the object in the form of hash
164
- def to_body
165
- to_hash
166
- end
167
-
168
- # Returns the object in the form of hash
169
- # @return [Hash] Returns the object in the form of hash
170
- def to_hash
171
- hash = super
172
- self.class.attribute_map.each_pair do |attr, param|
173
- value = self.send(attr)
174
- if value.nil?
175
- is_nullable = self.class.openapi_nullable.include?(attr)
176
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
177
- end
178
-
179
- hash[param] = _to_hash(value)
180
- end
181
- hash
182
- end
183
-
184
- # Outputs non-array value in the form of hash
185
- # For object, use to_hash. Otherwise, just return the value
186
- # @param [Object] value Any valid value
187
- # @return [Hash] Returns the value in the form of hash
188
- def _to_hash(value)
189
- if value.is_a?(Array)
190
- value.compact.map { |v| _to_hash(v) }
191
- elsif value.is_a?(Hash)
192
- {}.tap do |hash|
193
- value.each { |k, v| hash[k] = _to_hash(v) }
194
- end
195
- elsif value.respond_to? :to_hash
196
- value.to_hash
197
- else
198
- value
199
- end
200
- end end
201
- end