emasser 1.0.0 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +5 -8
  3. data/.env-example +3 -1
  4. data/.github/release-drafter.yml +2 -2
  5. data/.github/workflows/gh-pages.yml +4 -5
  6. data/.github/workflows/push-to-docker-mail.yml +28 -0
  7. data/.github/workflows/push-to-docker.yml +35 -0
  8. data/.github/workflows/release.yml +7 -3
  9. data/.github/workflows/test-cli.yml +4 -5
  10. data/.gitignore +3 -1
  11. data/Dockerfile +37 -3
  12. data/Gemfile +1 -1
  13. data/Gemfile.lock +37 -43
  14. data/README.md +131 -61
  15. data/docs/features.md +345 -207
  16. data/docs/images/emasser_architecture.jpg +0 -0
  17. data/emasser.gemspec +16 -12
  18. data/exe/emasser +0 -0
  19. data/images/emasser_architecture.jpg +0 -0
  20. data/images/emasser_diagram-Page-3.jpg +0 -0
  21. data/lib/emasser/cli.rb +12 -0
  22. data/lib/emasser/configuration.rb +22 -7
  23. data/lib/emasser/constants.rb +11 -3
  24. data/lib/emasser/delete.rb +14 -12
  25. data/lib/emasser/get.rb +83 -88
  26. data/lib/emasser/help/cloudresource_post_mapper.md +62 -0
  27. data/lib/emasser/help/container_post_mapper.md +44 -0
  28. data/lib/emasser/output_converters.rb +101 -4
  29. data/lib/emasser/post.rb +248 -55
  30. data/lib/emasser/put.rb +29 -22
  31. data/lib/emasser/version.rb +1 -1
  32. data/lib/emasser.rb +1 -1
  33. metadata +64 -447
  34. data/.github/workflows/generate_docs.yml +0 -33
  35. data/TAGS +0 -2393
  36. data/docs/developers.md +0 -115
  37. data/docs/swagger/dist/favicon-16x16.png +0 -0
  38. data/docs/swagger/dist/favicon-32x32.png +0 -0
  39. data/docs/swagger/dist/oauth2-redirect.html +0 -75
  40. data/docs/swagger/dist/swagger-ui-bundle.js +0 -3
  41. data/docs/swagger/dist/swagger-ui-bundle.js.map +0 -1
  42. data/docs/swagger/dist/swagger-ui-es-bundle-core.js +0 -3
  43. data/docs/swagger/dist/swagger-ui-es-bundle-core.js.map +0 -1
  44. data/docs/swagger/dist/swagger-ui-es-bundle.js +0 -3
  45. data/docs/swagger/dist/swagger-ui-es-bundle.js.map +0 -1
  46. data/docs/swagger/dist/swagger-ui-standalone-preset.js +0 -3
  47. data/docs/swagger/dist/swagger-ui-standalone-preset.js.map +0 -1
  48. data/docs/swagger/dist/swagger-ui.css +0 -4
  49. data/docs/swagger/dist/swagger-ui.css.map +0 -1
  50. data/docs/swagger/dist/swagger-ui.js +0 -3
  51. data/docs/swagger/dist/swagger-ui.js.map +0 -1
  52. data/docs/swagger/index.html +0 -60
  53. data/emass_client/eMASSRestOpenApi.yaml +0 -5698
  54. data/emass_client/ruby_client/.gitignore +0 -39
  55. data/emass_client/ruby_client/.rspec +0 -2
  56. data/emass_client/ruby_client/.rubocop.yml +0 -154
  57. data/emass_client/ruby_client/.swagger-codegen/VERSION +0 -1
  58. data/emass_client/ruby_client/.swagger-codegen-ignore +0 -23
  59. data/emass_client/ruby_client/Gemfile +0 -9
  60. data/emass_client/ruby_client/README.md +0 -1284
  61. data/emass_client/ruby_client/Rakefile +0 -8
  62. data/emass_client/ruby_client/docs/ArtifactsApi.md +0 -284
  63. data/emass_client/ruby_client/docs/ArtifactsDelete.md +0 -6
  64. data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +0 -7
  65. data/emass_client/ruby_client/docs/ArtifactsExportApi.md +0 -76
  66. data/emass_client/ruby_client/docs/ArtifactsGet.md +0 -20
  67. data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +0 -16
  68. data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +0 -8
  69. data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +0 -9
  70. data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +0 -8
  71. data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +0 -8
  72. data/emass_client/ruby_client/docs/CACApi.md +0 -140
  73. data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +0 -71
  74. data/emass_client/ruby_client/docs/CacGet.md +0 -13
  75. data/emass_client/ruby_client/docs/CacRequestPostBody.md +0 -8
  76. data/emass_client/ruby_client/docs/CacResponseGet.md +0 -8
  77. data/emass_client/ruby_client/docs/CacResponsePost.md +0 -8
  78. data/emass_client/ruby_client/docs/CacResponsePostData.md +0 -9
  79. data/emass_client/ruby_client/docs/CmmcGet.md +0 -19
  80. data/emass_client/ruby_client/docs/CmmcResponseGet.md +0 -8
  81. data/emass_client/ruby_client/docs/ConnectivityCcsd.md +0 -8
  82. data/emass_client/ruby_client/docs/ControlsApi.md +0 -140
  83. data/emass_client/ruby_client/docs/ControlsGet.md +0 -36
  84. data/emass_client/ruby_client/docs/ControlsPut.md +0 -9
  85. data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +0 -29
  86. data/emass_client/ruby_client/docs/ControlsResponseGet.md +0 -8
  87. data/emass_client/ruby_client/docs/ControlsResponsePut.md +0 -8
  88. data/emass_client/ruby_client/docs/DefinitionTransitions.md +0 -9
  89. data/emass_client/ruby_client/docs/DeleteMilestone.md +0 -7
  90. data/emass_client/ruby_client/docs/DeletePoam.md +0 -7
  91. data/emass_client/ruby_client/docs/Empty200Response.md +0 -6
  92. data/emass_client/ruby_client/docs/Error.md +0 -8
  93. data/emass_client/ruby_client/docs/InstancesTransitions.md +0 -12
  94. data/emass_client/ruby_client/docs/MilestoneResponseGet.md +0 -8
  95. data/emass_client/ruby_client/docs/MilestoneResponsePost.md +0 -8
  96. data/emass_client/ruby_client/docs/MilestoneResponsePut.md +0 -8
  97. data/emass_client/ruby_client/docs/MilestonesApi.md +0 -350
  98. data/emass_client/ruby_client/docs/MilestonesDelete.md +0 -6
  99. data/emass_client/ruby_client/docs/MilestonesGet.md +0 -12
  100. data/emass_client/ruby_client/docs/MilestonesPost.md +0 -6
  101. data/emass_client/ruby_client/docs/MilestonesPut.md +0 -6
  102. data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +0 -11
  103. data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +0 -9
  104. data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +0 -9
  105. data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +0 -8
  106. data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +0 -9
  107. data/emass_client/ruby_client/docs/Model200.md +0 -7
  108. data/emass_client/ruby_client/docs/Model201.md +0 -7
  109. data/emass_client/ruby_client/docs/Model201Meta.md +0 -8
  110. data/emass_client/ruby_client/docs/Model400.md +0 -7
  111. data/emass_client/ruby_client/docs/Model400Meta.md +0 -8
  112. data/emass_client/ruby_client/docs/Model400Response.md +0 -7
  113. data/emass_client/ruby_client/docs/Model401.md +0 -7
  114. data/emass_client/ruby_client/docs/Model401Meta.md +0 -8
  115. data/emass_client/ruby_client/docs/Model403.md +0 -7
  116. data/emass_client/ruby_client/docs/Model403Meta.md +0 -8
  117. data/emass_client/ruby_client/docs/Model404.md +0 -8
  118. data/emass_client/ruby_client/docs/Model404Response.md +0 -7
  119. data/emass_client/ruby_client/docs/Model405.md +0 -7
  120. data/emass_client/ruby_client/docs/Model405Meta.md +0 -8
  121. data/emass_client/ruby_client/docs/Model411.md +0 -7
  122. data/emass_client/ruby_client/docs/Model411Meta.md +0 -8
  123. data/emass_client/ruby_client/docs/Model490.md +0 -7
  124. data/emass_client/ruby_client/docs/Model490Meta.md +0 -8
  125. data/emass_client/ruby_client/docs/Model500.md +0 -7
  126. data/emass_client/ruby_client/docs/Model500Meta.md +0 -8
  127. data/emass_client/ruby_client/docs/PACApi.md +0 -137
  128. data/emass_client/ruby_client/docs/POAMApi.md +0 -346
  129. data/emass_client/ruby_client/docs/PacGet.md +0 -14
  130. data/emass_client/ruby_client/docs/PacPost.md +0 -9
  131. data/emass_client/ruby_client/docs/PacRequestPostBody.md +0 -9
  132. data/emass_client/ruby_client/docs/PacResponseGet.md +0 -8
  133. data/emass_client/ruby_client/docs/PacResponsePost.md +0 -8
  134. data/emass_client/ruby_client/docs/PoamDelete.md +0 -6
  135. data/emass_client/ruby_client/docs/PoamGet.md +0 -39
  136. data/emass_client/ruby_client/docs/PoamPost.md +0 -6
  137. data/emass_client/ruby_client/docs/PoamPostPutDel.md +0 -10
  138. data/emass_client/ruby_client/docs/PoamPut.md +0 -6
  139. data/emass_client/ruby_client/docs/PoamRequestPostBody.md +0 -6
  140. data/emass_client/ruby_client/docs/PoamRequestPutBody.md +0 -6
  141. data/emass_client/ruby_client/docs/PoamRequiredPost.md +0 -32
  142. data/emass_client/ruby_client/docs/PoamRequiredPut.md +0 -35
  143. data/emass_client/ruby_client/docs/PoamResponseDelete.md +0 -8
  144. data/emass_client/ruby_client/docs/PoamResponseGet.md +0 -8
  145. data/emass_client/ruby_client/docs/PoamResponsePost.md +0 -8
  146. data/emass_client/ruby_client/docs/PoamResponsePut.md +0 -8
  147. data/emass_client/ruby_client/docs/Register.md +0 -8
  148. data/emass_client/ruby_client/docs/RegisterData.md +0 -7
  149. data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +0 -7
  150. data/emass_client/ruby_client/docs/RegistrationApi.md +0 -71
  151. data/emass_client/ruby_client/docs/RoleCategory.md +0 -10
  152. data/emass_client/ruby_client/docs/Roles.md +0 -9
  153. data/emass_client/ruby_client/docs/Ssps.md +0 -9
  154. data/emass_client/ruby_client/docs/Stage.md +0 -8
  155. data/emass_client/ruby_client/docs/StaticCodeApplication.md +0 -12
  156. data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +0 -6
  157. data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +0 -8
  158. data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +0 -8
  159. data/emass_client/ruby_client/docs/StaticCodeScansApi.md +0 -73
  160. data/emass_client/ruby_client/docs/Success200Response.md +0 -8
  161. data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +0 -10
  162. data/emass_client/ruby_client/docs/SystemResponse.md +0 -8
  163. data/emass_client/ruby_client/docs/SystemRolesApi.md +0 -137
  164. data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +0 -8
  165. data/emass_client/ruby_client/docs/SystemRolesResponse.md +0 -8
  166. data/emass_client/ruby_client/docs/SystemRolesResponseData.md +0 -8
  167. data/emass_client/ruby_client/docs/Systems.md +0 -70
  168. data/emass_client/ruby_client/docs/SystemsApi.md +0 -155
  169. data/emass_client/ruby_client/docs/Test.md +0 -8
  170. data/emass_client/ruby_client/docs/TestApi.md +0 -66
  171. data/emass_client/ruby_client/docs/TestData.md +0 -7
  172. data/emass_client/ruby_client/docs/TestResultsApi.md +0 -144
  173. data/emass_client/ruby_client/docs/TestResultsGet.md +0 -15
  174. data/emass_client/ruby_client/docs/TestResultsPost.md +0 -9
  175. data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +0 -11
  176. data/emass_client/ruby_client/docs/TestResultsResponseGet.md +0 -8
  177. data/emass_client/ruby_client/docs/TestResultsResponsePost.md +0 -8
  178. data/emass_client/ruby_client/docs/Users.md +0 -9
  179. data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +0 -11
  180. data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +0 -8
  181. data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +0 -74
  182. data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +0 -146
  183. data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +0 -16
  184. data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +0 -8
  185. data/emass_client/ruby_client/git_push.sh +0 -55
  186. data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +0 -310
  187. data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +0 -86
  188. data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +0 -143
  189. data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +0 -77
  190. data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +0 -143
  191. data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +0 -366
  192. data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +0 -140
  193. data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +0 -345
  194. data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +0 -78
  195. data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +0 -84
  196. data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +0 -150
  197. data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +0 -162
  198. data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +0 -70
  199. data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +0 -149
  200. data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +0 -76
  201. data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +0 -153
  202. data/emass_client/ruby_client/lib/swagger_client/api_client.rb +0 -389
  203. data/emass_client/ruby_client/lib/swagger_client/api_error.rb +0 -57
  204. data/emass_client/ruby_client/lib/swagger_client/configuration.rb +0 -224
  205. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +0 -201
  206. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +0 -207
  207. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +0 -383
  208. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +0 -363
  209. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +0 -217
  210. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +0 -225
  211. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +0 -217
  212. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +0 -217
  213. data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +0 -301
  214. data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +0 -217
  215. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +0 -217
  216. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +0 -217
  217. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +0 -225
  218. data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +0 -398
  219. data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +0 -217
  220. data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +0 -217
  221. data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +0 -663
  222. data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +0 -227
  223. data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +0 -606
  224. data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +0 -217
  225. data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +0 -217
  226. data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +0 -274
  227. data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +0 -212
  228. data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +0 -212
  229. data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +0 -197
  230. data/emass_client/ruby_client/lib/swagger_client/models/error.rb +0 -225
  231. data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +0 -327
  232. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +0 -217
  233. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +0 -217
  234. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +0 -217
  235. data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +0 -197
  236. data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +0 -291
  237. data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +0 -197
  238. data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +0 -197
  239. data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +0 -247
  240. data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +0 -242
  241. data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +0 -242
  242. data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +0 -227
  243. data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +0 -242
  244. data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +0 -208
  245. data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +0 -206
  246. data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +0 -219
  247. data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +0 -206
  248. data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +0 -219
  249. data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +0 -206
  250. data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +0 -206
  251. data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +0 -219
  252. data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +0 -206
  253. data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +0 -219
  254. data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +0 -219
  255. data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +0 -206
  256. data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +0 -206
  257. data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +0 -219
  258. data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +0 -206
  259. data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +0 -219
  260. data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +0 -206
  261. data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +0 -219
  262. data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +0 -206
  263. data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +0 -219
  264. data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +0 -311
  265. data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +0 -259
  266. data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +0 -261
  267. data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +0 -217
  268. data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +0 -217
  269. data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +0 -197
  270. data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +0 -646
  271. data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +0 -197
  272. data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +0 -237
  273. data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +0 -197
  274. data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +0 -197
  275. data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +0 -197
  276. data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +0 -564
  277. data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +0 -594
  278. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +0 -217
  279. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +0 -217
  280. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +0 -217
  281. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +0 -217
  282. data/emass_client/ruby_client/lib/swagger_client/models/register.rb +0 -215
  283. data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +0 -206
  284. data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +0 -211
  285. data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +0 -272
  286. data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +0 -274
  287. data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +0 -227
  288. data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +0 -252
  289. data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +0 -303
  290. data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +0 -197
  291. data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +0 -217
  292. data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +0 -217
  293. data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +0 -217
  294. data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +0 -284
  295. data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +0 -217
  296. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +0 -217
  297. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +0 -217
  298. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +0 -219
  299. data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +0 -1137
  300. data/emass_client/ruby_client/lib/swagger_client/models/test.rb +0 -215
  301. data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +0 -206
  302. data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +0 -333
  303. data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +0 -227
  304. data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +0 -306
  305. data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +0 -217
  306. data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +0 -217
  307. data/emass_client/ruby_client/lib/swagger_client/models/users.rb +0 -224
  308. data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +0 -282
  309. data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +0 -217
  310. data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +0 -368
  311. data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +0 -217
  312. data/emass_client/ruby_client/lib/swagger_client/version.rb +0 -14
  313. data/emass_client/ruby_client/lib/swagger_client.rb +0 -161
  314. data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +0 -92
  315. data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +0 -48
  316. data/emass_client/ruby_client/spec/api/cac_api_spec.rb +0 -60
  317. data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +0 -46
  318. data/emass_client/ruby_client/spec/api/controls_api_spec.rb +0 -60
  319. data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +0 -105
  320. data/emass_client/ruby_client/spec/api/pac_api_spec.rb +0 -59
  321. data/emass_client/ruby_client/spec/api/poam_api_spec.rb +0 -103
  322. data/emass_client/ruby_client/spec/api/registration_api_spec.rb +0 -46
  323. data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +0 -47
  324. data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +0 -60
  325. data/emass_client/ruby_client/spec/api/systems_api_spec.rb +0 -67
  326. data/emass_client/ruby_client/spec/api/test_api_spec.rb +0 -45
  327. data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +0 -62
  328. data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +0 -47
  329. data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +0 -63
  330. data/emass_client/ruby_client/spec/api_client_spec.rb +0 -225
  331. data/emass_client/ruby_client/spec/base_object_spec.rb +0 -109
  332. data/emass_client/ruby_client/spec/configuration_spec.rb +0 -41
  333. data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +0 -40
  334. data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +0 -34
  335. data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +0 -126
  336. data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +0 -102
  337. data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +0 -52
  338. data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +0 -46
  339. data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +0 -46
  340. data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +0 -46
  341. data/emass_client/ruby_client/spec/models/cac_get_spec.rb +0 -80
  342. data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +0 -46
  343. data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +0 -46
  344. data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +0 -52
  345. data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +0 -46
  346. data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +0 -128
  347. data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +0 -46
  348. data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +0 -46
  349. data/emass_client/ruby_client/spec/models/controls_get_spec.rb +0 -262
  350. data/emass_client/ruby_client/spec/models/controls_put_spec.rb +0 -52
  351. data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +0 -216
  352. data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +0 -46
  353. data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +0 -46
  354. data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +0 -64
  355. data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +0 -40
  356. data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +0 -40
  357. data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +0 -34
  358. data/emass_client/ruby_client/spec/models/error_spec.rb +0 -46
  359. data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +0 -86
  360. data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +0 -46
  361. data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +0 -46
  362. data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +0 -46
  363. data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +0 -34
  364. data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +0 -74
  365. data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +0 -34
  366. data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +0 -64
  367. data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +0 -34
  368. data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +0 -52
  369. data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +0 -52
  370. data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +0 -46
  371. data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +0 -52
  372. data/emass_client/ruby_client/spec/models/model_200_spec.rb +0 -40
  373. data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +0 -46
  374. data/emass_client/ruby_client/spec/models/model_201_spec.rb +0 -40
  375. data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +0 -46
  376. data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +0 -40
  377. data/emass_client/ruby_client/spec/models/model_400_spec.rb +0 -40
  378. data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +0 -46
  379. data/emass_client/ruby_client/spec/models/model_401_spec.rb +0 -40
  380. data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +0 -46
  381. data/emass_client/ruby_client/spec/models/model_403_spec.rb +0 -40
  382. data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +0 -40
  383. data/emass_client/ruby_client/spec/models/model_404_spec.rb +0 -46
  384. data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +0 -46
  385. data/emass_client/ruby_client/spec/models/model_405_spec.rb +0 -40
  386. data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +0 -46
  387. data/emass_client/ruby_client/spec/models/model_411_spec.rb +0 -40
  388. data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +0 -46
  389. data/emass_client/ruby_client/spec/models/model_490_spec.rb +0 -40
  390. data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +0 -46
  391. data/emass_client/ruby_client/spec/models/model_500_spec.rb +0 -40
  392. data/emass_client/ruby_client/spec/models/pac_get_spec.rb +0 -86
  393. data/emass_client/ruby_client/spec/models/pac_post_spec.rb +0 -56
  394. data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +0 -56
  395. data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +0 -46
  396. data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +0 -46
  397. data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +0 -34
  398. data/emass_client/ruby_client/spec/models/poam_get_spec.rb +0 -264
  399. data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +0 -58
  400. data/emass_client/ruby_client/spec/models/poam_post_spec.rb +0 -34
  401. data/emass_client/ruby_client/spec/models/poam_put_spec.rb +0 -34
  402. data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +0 -34
  403. data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +0 -34
  404. data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +0 -218
  405. data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +0 -236
  406. data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +0 -46
  407. data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +0 -46
  408. data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +0 -46
  409. data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +0 -46
  410. data/emass_client/ruby_client/spec/models/register_data_spec.rb +0 -40
  411. data/emass_client/ruby_client/spec/models/register_spec.rb +0 -46
  412. data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +0 -40
  413. data/emass_client/ruby_client/spec/models/role_category_spec.rb +0 -62
  414. data/emass_client/ruby_client/spec/models/roles_spec.rb +0 -60
  415. data/emass_client/ruby_client/spec/models/ssps_spec.rb +0 -52
  416. data/emass_client/ruby_client/spec/models/stage_spec.rb +0 -50
  417. data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +0 -78
  418. data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +0 -34
  419. data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +0 -46
  420. data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +0 -46
  421. data/emass_client/ruby_client/spec/models/success200_response_spec.rb +0 -46
  422. data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +0 -66
  423. data/emass_client/ruby_client/spec/models/system_response_spec.rb +0 -46
  424. data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +0 -46
  425. data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +0 -46
  426. data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +0 -46
  427. data/emass_client/ruby_client/spec/models/systems_spec.rb +0 -510
  428. data/emass_client/ruby_client/spec/models/test_data_spec.rb +0 -40
  429. data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +0 -96
  430. data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +0 -52
  431. data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +0 -68
  432. data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +0 -46
  433. data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +0 -46
  434. data/emass_client/ruby_client/spec/models/test_spec.rb +0 -46
  435. data/emass_client/ruby_client/spec/models/users_spec.rb +0 -52
  436. data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +0 -68
  437. data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +0 -46
  438. data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +0 -110
  439. data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +0 -46
  440. data/emass_client/ruby_client/spec/spec_helper.rb +0 -110
  441. data/emass_client/ruby_client/swagger_client.gemspec +0 -38
  442. data/emass_client/swagger-codegen/ruby_template/api_client.mustache +0 -384
  443. data/emass_client/swagger-codegen/ruby_template/api_info.mustache +0 -12
  444. data/emass_client/swagger-codegen/ruby_template/configuration.mustache +0 -234
  445. data/emass_client/swagger-codegen/ruby_template/gemspec.mustache +0 -37
@@ -1,1284 +0,0 @@
1
- # swagger_client
2
-
3
- SwaggerClient - the Ruby gem for the Enterprise Mission Assurance Support Service (eMASS)
4
-
5
- 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:
6
-
7
- This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
-
9
- - API version: v3.2
10
- - Package version: 1.0.0
11
- - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
12
- For more information, please visit [https://www.dcsa.mil/is/emass/](https://www.dcsa.mil/is/emass/)
13
-
14
- ## Installation
15
-
16
- ### Build a gem
17
-
18
- To build the Ruby code into a gem:
19
-
20
- ```shell
21
- gem build swagger_client.gemspec
22
- ```
23
-
24
- Then either install the gem locally:
25
-
26
- ```shell
27
- gem install ./swagger_client-1.0.0.gem
28
- ```
29
- (for development, run `gem install --dev ./swagger_client-1.0.0.gem` to install the development dependencies)
30
-
31
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
-
33
- Finally add this to the Gemfile:
34
-
35
- gem 'swagger_client', '~> 1.0.0'
36
-
37
- ### Install from Git
38
-
39
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
-
41
- gem 'swagger_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
-
43
- ### Include the Ruby code directly
44
-
45
- Include the Ruby code directly using `-I` as follows:
46
-
47
- ```shell
48
- ruby -Ilib script.rb
49
- ```
50
-
51
- ## Getting Started
52
-
53
- Please follow the [installation](#installation) procedure and then run the following code:
54
- ```ruby
55
- # Load the gem
56
- require 'swagger_client'
57
- # Setup authorization
58
- SwaggerClient.configure do |config|
59
- # Configure API key authorization: apikey
60
- config.api_key['api-key'] = 'YOUR API KEY'
61
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
62
- #config.api_key_prefix['api-key'] = 'Bearer'
63
-
64
- # Configure API key authorization: mockType
65
- config.api_key['Prefer'] = 'YOUR API KEY'
66
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
67
- #config.api_key_prefix['Prefer'] = 'Bearer'
68
-
69
- # Configure API key authorization: userid
70
- config.api_key['user-uid'] = 'YOUR API KEY'
71
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
72
- #config.api_key_prefix['user-uid'] = 'Bearer'
73
- end
74
-
75
- api_instance = SwaggerClient::ArtifactsApi.new
76
- is_template = true # BOOLEAN |
77
- type = 'type_example' # String |
78
- category = 'category_example' # String |
79
- zipper = 'zipper_example' # String |
80
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
81
-
82
-
83
- begin
84
- #Add one or many artifacts in a system
85
- result = api_instance.add_artifacts_by_system_id(is_template, type, category, zipper, system_id)
86
- p result
87
- rescue SwaggerClient::ApiError => e
88
- puts "Exception when calling ArtifactsApi->add_artifacts_by_system_id: #{e}"
89
- end
90
- # Setup authorization
91
- SwaggerClient.configure do |config|
92
- # Configure API key authorization: apikey
93
- config.api_key['api-key'] = 'YOUR API KEY'
94
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
95
- #config.api_key_prefix['api-key'] = 'Bearer'
96
-
97
- # Configure API key authorization: mockType
98
- config.api_key['Prefer'] = 'YOUR API KEY'
99
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
100
- #config.api_key_prefix['Prefer'] = 'Bearer'
101
-
102
- # Configure API key authorization: userid
103
- config.api_key['user-uid'] = 'YOUR API KEY'
104
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
- #config.api_key_prefix['user-uid'] = 'Bearer'
106
- end
107
-
108
- api_instance = SwaggerClient::ArtifactsApi.new
109
- body = [SwaggerClient::ArtifactsDeleteInner.new] # Array<ArtifactsDeleteInner> | See notes above for additional information
110
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
111
-
112
-
113
- begin
114
- #Remove one or many artifacts in a system
115
- result = api_instance.delete_artifact(body, system_id)
116
- p result
117
- rescue SwaggerClient::ApiError => e
118
- puts "Exception when calling ArtifactsApi->delete_artifact: #{e}"
119
- end
120
- # Setup authorization
121
- SwaggerClient.configure do |config|
122
- # Configure API key authorization: apikey
123
- config.api_key['api-key'] = 'YOUR API KEY'
124
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
125
- #config.api_key_prefix['api-key'] = 'Bearer'
126
-
127
- # Configure API key authorization: mockType
128
- config.api_key['Prefer'] = 'YOUR API KEY'
129
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
130
- #config.api_key_prefix['Prefer'] = 'Bearer'
131
-
132
- # Configure API key authorization: userid
133
- config.api_key['user-uid'] = 'YOUR API KEY'
134
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
135
- #config.api_key_prefix['user-uid'] = 'Bearer'
136
- end
137
-
138
- api_instance = SwaggerClient::ArtifactsApi.new
139
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
140
- opts = {
141
- filename: 'filename_example', # String | **File Name**: The file name (to include file-extension).
142
- control_acronyms: 'control_acronyms_example', # String | **System Acronym**: Filter query by given system acronym (single or comma separated).
143
- ccis: 'ccis_example', # String | **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
144
- system_only: true # BOOLEAN | **Systems Only**: Indicates that only system(s) information is retrieved.
145
- }
146
-
147
- begin
148
- #Get one or many artifacts in a system
149
- result = api_instance.get_system_artifacts(system_id, opts)
150
- p result
151
- rescue SwaggerClient::ApiError => e
152
- puts "Exception when calling ArtifactsApi->get_system_artifacts: #{e}"
153
- end
154
- # Setup authorization
155
- SwaggerClient.configure do |config|
156
- # Configure API key authorization: apikey
157
- config.api_key['api-key'] = 'YOUR API KEY'
158
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
159
- #config.api_key_prefix['api-key'] = 'Bearer'
160
-
161
- # Configure API key authorization: mockType
162
- config.api_key['Prefer'] = 'YOUR API KEY'
163
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
164
- #config.api_key_prefix['Prefer'] = 'Bearer'
165
-
166
- # Configure API key authorization: userid
167
- config.api_key['user-uid'] = 'YOUR API KEY'
168
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
169
- #config.api_key_prefix['user-uid'] = 'Bearer'
170
- end
171
-
172
- api_instance = SwaggerClient::ArtifactsApi.new
173
- body = SwaggerClient::ArtifactsRequestPutBody.new # ArtifactsRequestPutBody | See `information` above for additional instructions
174
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
175
-
176
-
177
- begin
178
- #Update one or many artifacts in a system
179
- result = api_instance.update_artifact_by_system_id(body, system_id)
180
- p result
181
- rescue SwaggerClient::ApiError => e
182
- puts "Exception when calling ArtifactsApi->update_artifact_by_system_id: #{e}"
183
- end
184
- # Setup authorization
185
- SwaggerClient.configure do |config|
186
- # Configure API key authorization: apikey
187
- config.api_key['api-key'] = 'YOUR API KEY'
188
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
189
- #config.api_key_prefix['api-key'] = 'Bearer'
190
-
191
- # Configure API key authorization: mockType
192
- config.api_key['Prefer'] = 'YOUR API KEY'
193
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
194
- #config.api_key_prefix['Prefer'] = 'Bearer'
195
-
196
- # Configure API key authorization: userid
197
- config.api_key['user-uid'] = 'YOUR API KEY'
198
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
199
- #config.api_key_prefix['user-uid'] = 'Bearer'
200
- end
201
-
202
- api_instance = SwaggerClient::ArtifactsExportApi.new
203
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
204
- filename = 'filename_example' # String | **File Name**: The file name (to include file-extension).
205
- opts = {
206
- compress: true # BOOLEAN | **Compress File**: Determines if returned file is compressed.
207
- }
208
-
209
- begin
210
- #Get the file of an artifact in a system
211
- result = api_instance.get_system_artifacts_export(system_id, filename, opts)
212
- p result
213
- rescue SwaggerClient::ApiError => e
214
- puts "Exception when calling ArtifactsExportApi->get_system_artifacts_export: #{e}"
215
- end
216
- # Setup authorization
217
- SwaggerClient.configure do |config|
218
- # Configure API key authorization: apikey
219
- config.api_key['api-key'] = 'YOUR API KEY'
220
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
221
- #config.api_key_prefix['api-key'] = 'Bearer'
222
-
223
- # Configure API key authorization: mockType
224
- config.api_key['Prefer'] = 'YOUR API KEY'
225
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
226
- #config.api_key_prefix['Prefer'] = 'Bearer'
227
-
228
- # Configure API key authorization: userid
229
- config.api_key['user-uid'] = 'YOUR API KEY'
230
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
231
- #config.api_key_prefix['user-uid'] = 'Bearer'
232
- end
233
-
234
- api_instance = SwaggerClient::CACApi.new
235
- body = SwaggerClient::CacRequestPostBody.new # CacRequestPostBody | Update an existing Artifact by Id
236
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
237
-
238
-
239
- begin
240
- #Submit control to second role of CAC
241
- result = api_instance.add_system_cac(body, system_id)
242
- p result
243
- rescue SwaggerClient::ApiError => e
244
- puts "Exception when calling CACApi->add_system_cac: #{e}"
245
- end
246
- # Setup authorization
247
- SwaggerClient.configure do |config|
248
- # Configure API key authorization: apikey
249
- config.api_key['api-key'] = 'YOUR API KEY'
250
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
251
- #config.api_key_prefix['api-key'] = 'Bearer'
252
-
253
- # Configure API key authorization: mockType
254
- config.api_key['Prefer'] = 'YOUR API KEY'
255
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
256
- #config.api_key_prefix['Prefer'] = 'Bearer'
257
-
258
- # Configure API key authorization: userid
259
- config.api_key['user-uid'] = 'YOUR API KEY'
260
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
261
- #config.api_key_prefix['user-uid'] = 'Bearer'
262
- end
263
-
264
- api_instance = SwaggerClient::CACApi.new
265
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
266
- opts = {
267
- control_acronyms: 'control_acronyms_example' # String | **System Acronym**: Filter query by given system acronym (single or comma separated).
268
- }
269
-
270
- begin
271
- #Get location of one or many controls in CAC
272
- result = api_instance.get_system_cac(system_id, opts)
273
- p result
274
- rescue SwaggerClient::ApiError => e
275
- puts "Exception when calling CACApi->get_system_cac: #{e}"
276
- end
277
- # Setup authorization
278
- SwaggerClient.configure do |config|
279
- # Configure API key authorization: apikey
280
- config.api_key['api-key'] = 'YOUR API KEY'
281
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
282
- #config.api_key_prefix['api-key'] = 'Bearer'
283
-
284
- # Configure API key authorization: mockType
285
- config.api_key['Prefer'] = 'YOUR API KEY'
286
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
287
- #config.api_key_prefix['Prefer'] = 'Bearer'
288
-
289
- # Configure API key authorization: userid
290
- config.api_key['user-uid'] = 'YOUR API KEY'
291
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
292
- #config.api_key_prefix['user-uid'] = 'Bearer'
293
- end
294
-
295
- api_instance = SwaggerClient::CMMCAssessmentsApi.new
296
- since_date = 'since_date_example' # String | **Date** CMMC date (Unix date format)
297
-
298
-
299
- begin
300
- #Get CMMC assessment information
301
- result = api_instance.get_cmmc_assessments(since_date)
302
- p result
303
- rescue SwaggerClient::ApiError => e
304
- puts "Exception when calling CMMCAssessmentsApi->get_cmmc_assessments: #{e}"
305
- end
306
- # Setup authorization
307
- SwaggerClient.configure do |config|
308
- # Configure API key authorization: apikey
309
- config.api_key['api-key'] = 'YOUR API KEY'
310
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
311
- #config.api_key_prefix['api-key'] = 'Bearer'
312
-
313
- # Configure API key authorization: mockType
314
- config.api_key['Prefer'] = 'YOUR API KEY'
315
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
316
- #config.api_key_prefix['Prefer'] = 'Bearer'
317
-
318
- # Configure API key authorization: userid
319
- config.api_key['user-uid'] = 'YOUR API KEY'
320
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
321
- #config.api_key_prefix['user-uid'] = 'Bearer'
322
- end
323
-
324
- api_instance = SwaggerClient::ControlsApi.new
325
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
326
- opts = {
327
- acronyms: 'PM-6' # String | **Acronym**: The system acronym(s) being queried (single value or comma delimited values).
328
- }
329
-
330
- begin
331
- #Get control information in a system for one or many controls
332
- result = api_instance.get_system_controls(system_id, opts)
333
- p result
334
- rescue SwaggerClient::ApiError => e
335
- puts "Exception when calling ControlsApi->get_system_controls: #{e}"
336
- end
337
- # Setup authorization
338
- SwaggerClient.configure do |config|
339
- # Configure API key authorization: apikey
340
- config.api_key['api-key'] = 'YOUR API KEY'
341
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
342
- #config.api_key_prefix['api-key'] = 'Bearer'
343
-
344
- # Configure API key authorization: mockType
345
- config.api_key['Prefer'] = 'YOUR API KEY'
346
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
347
- #config.api_key_prefix['Prefer'] = 'Bearer'
348
-
349
- # Configure API key authorization: userid
350
- config.api_key['user-uid'] = 'YOUR API KEY'
351
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
352
- #config.api_key_prefix['user-uid'] = 'Bearer'
353
- end
354
-
355
- api_instance = SwaggerClient::ControlsApi.new
356
- body = SwaggerClient::ControlsRequestPutBody.new # ControlsRequestPutBody | Update an existing control by Id
357
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
358
-
359
-
360
- begin
361
- #Update control information in a system for one or many controls
362
- result = api_instance.update_control_by_system_id(body, system_id)
363
- p result
364
- rescue SwaggerClient::ApiError => e
365
- puts "Exception when calling ControlsApi->update_control_by_system_id: #{e}"
366
- end
367
- # Setup authorization
368
- SwaggerClient.configure do |config|
369
- # Configure API key authorization: apikey
370
- config.api_key['api-key'] = 'YOUR API KEY'
371
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
372
- #config.api_key_prefix['api-key'] = 'Bearer'
373
-
374
- # Configure API key authorization: mockType
375
- config.api_key['Prefer'] = 'YOUR API KEY'
376
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
377
- #config.api_key_prefix['Prefer'] = 'Bearer'
378
-
379
- # Configure API key authorization: userid
380
- config.api_key['user-uid'] = 'YOUR API KEY'
381
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
382
- #config.api_key_prefix['user-uid'] = 'Bearer'
383
- end
384
-
385
- api_instance = SwaggerClient::MilestonesApi.new
386
- body = SwaggerClient::MilestonesRequestPostBody.new # MilestonesRequestPostBody | Update an existing milestone
387
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
388
- poam_id = 56 # Integer | **POA&M Id**: The unique POA&M record identifier.
389
-
390
-
391
- begin
392
- #Add milestones to one or many POA&M items in a system
393
- result = api_instance.add_milestone_by_system_id_and_poam_id(body, system_id, poam_id)
394
- p result
395
- rescue SwaggerClient::ApiError => e
396
- puts "Exception when calling MilestonesApi->add_milestone_by_system_id_and_poam_id: #{e}"
397
- end
398
- # Setup authorization
399
- SwaggerClient.configure do |config|
400
- # Configure API key authorization: apikey
401
- config.api_key['api-key'] = 'YOUR API KEY'
402
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
403
- #config.api_key_prefix['api-key'] = 'Bearer'
404
-
405
- # Configure API key authorization: mockType
406
- config.api_key['Prefer'] = 'YOUR API KEY'
407
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
408
- #config.api_key_prefix['Prefer'] = 'Bearer'
409
-
410
- # Configure API key authorization: userid
411
- config.api_key['user-uid'] = 'YOUR API KEY'
412
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
413
- #config.api_key_prefix['user-uid'] = 'Bearer'
414
- end
415
-
416
- api_instance = SwaggerClient::MilestonesApi.new
417
- body = SwaggerClient::DeleteMilestone.new # DeleteMilestone | Delete the given Milestone Id
418
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
419
- poam_id = 56 # Integer | **POA&M Id**: The unique POA&M record identifier.
420
-
421
-
422
- begin
423
- #Remove milestones in a system for one or many POA&M items
424
- result = api_instance.delete_milestone(body, system_id, poam_id)
425
- p result
426
- rescue SwaggerClient::ApiError => e
427
- puts "Exception when calling MilestonesApi->delete_milestone: #{e}"
428
- end
429
- # Setup authorization
430
- SwaggerClient.configure do |config|
431
- # Configure API key authorization: apikey
432
- config.api_key['api-key'] = 'YOUR API KEY'
433
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
434
- #config.api_key_prefix['api-key'] = 'Bearer'
435
-
436
- # Configure API key authorization: mockType
437
- config.api_key['Prefer'] = 'YOUR API KEY'
438
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
439
- #config.api_key_prefix['Prefer'] = 'Bearer'
440
-
441
- # Configure API key authorization: userid
442
- config.api_key['user-uid'] = 'YOUR API KEY'
443
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
444
- #config.api_key_prefix['user-uid'] = 'Bearer'
445
- end
446
-
447
- api_instance = SwaggerClient::MilestonesApi.new
448
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
449
- poam_id = 56 # Integer | **POA&M Id**: The unique POA&M record identifier.
450
- opts = {
451
- scheduled_completion_date_start: 'scheduled_completion_date_start_example', # String | **Date Started**: Filter query by the scheduled completion start date (Unix date format).
452
- scheduled_completion_date_end: 'scheduled_completion_date_end_example' # String | **Date Ended**: Filter query by the scheduled completion start date (Unix date format).
453
- }
454
-
455
- begin
456
- #Get milestones in one or many POA&M items in a system
457
- result = api_instance.get_system_milestones_by_poam_id(system_id, poam_id, opts)
458
- p result
459
- rescue SwaggerClient::ApiError => e
460
- puts "Exception when calling MilestonesApi->get_system_milestones_by_poam_id: #{e}"
461
- end
462
- # Setup authorization
463
- SwaggerClient.configure do |config|
464
- # Configure API key authorization: apikey
465
- config.api_key['api-key'] = 'YOUR API KEY'
466
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
467
- #config.api_key_prefix['api-key'] = 'Bearer'
468
-
469
- # Configure API key authorization: mockType
470
- config.api_key['Prefer'] = 'YOUR API KEY'
471
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
472
- #config.api_key_prefix['Prefer'] = 'Bearer'
473
-
474
- # Configure API key authorization: userid
475
- config.api_key['user-uid'] = 'YOUR API KEY'
476
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
477
- #config.api_key_prefix['user-uid'] = 'Bearer'
478
- end
479
-
480
- api_instance = SwaggerClient::MilestonesApi.new
481
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
482
- poam_id = 56 # Integer | **POA&M Id**: The unique POA&M record identifier.
483
- milestone_id = 56 # Integer | **Milestone Id**: The unique milestone record identifier.
484
-
485
-
486
- begin
487
- #Get milestone by ID in POA&M item in a system
488
- result = api_instance.get_system_milestones_by_poam_id_and_milestone_id(system_id, poam_id, milestone_id)
489
- p result
490
- rescue SwaggerClient::ApiError => e
491
- puts "Exception when calling MilestonesApi->get_system_milestones_by_poam_id_and_milestone_id: #{e}"
492
- end
493
- # Setup authorization
494
- SwaggerClient.configure do |config|
495
- # Configure API key authorization: apikey
496
- config.api_key['api-key'] = 'YOUR API KEY'
497
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
498
- #config.api_key_prefix['api-key'] = 'Bearer'
499
-
500
- # Configure API key authorization: mockType
501
- config.api_key['Prefer'] = 'YOUR API KEY'
502
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
503
- #config.api_key_prefix['Prefer'] = 'Bearer'
504
-
505
- # Configure API key authorization: userid
506
- config.api_key['user-uid'] = 'YOUR API KEY'
507
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
508
- #config.api_key_prefix['user-uid'] = 'Bearer'
509
- end
510
-
511
- api_instance = SwaggerClient::MilestonesApi.new
512
- body = SwaggerClient::MilestonesRequestPutBody.new # MilestonesRequestPutBody | Update an existing control by Id
513
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
514
- poam_id = 56 # Integer | **POA&M Id**: The unique POA&M record identifier.
515
-
516
-
517
- begin
518
- #Update one or many POA&M items in a system
519
- result = api_instance.update_milestone_by_system_id_and_poam_id(body, system_id, poam_id)
520
- p result
521
- rescue SwaggerClient::ApiError => e
522
- puts "Exception when calling MilestonesApi->update_milestone_by_system_id_and_poam_id: #{e}"
523
- end
524
- # Setup authorization
525
- SwaggerClient.configure do |config|
526
- # Configure API key authorization: apikey
527
- config.api_key['api-key'] = 'YOUR API KEY'
528
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
529
- #config.api_key_prefix['api-key'] = 'Bearer'
530
-
531
- # Configure API key authorization: mockType
532
- config.api_key['Prefer'] = 'YOUR API KEY'
533
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
534
- #config.api_key_prefix['Prefer'] = 'Bearer'
535
-
536
- # Configure API key authorization: userid
537
- config.api_key['user-uid'] = 'YOUR API KEY'
538
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
539
- #config.api_key_prefix['user-uid'] = 'Bearer'
540
- end
541
-
542
- api_instance = SwaggerClient::PACApi.new
543
- body = SwaggerClient::PacRequestPostBody.new # PacRequestPostBody | Update an existing Artifact by Id
544
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
545
-
546
-
547
- begin
548
- #Submit system package for review
549
- result = api_instance.add_system_pac(body, system_id)
550
- p result
551
- rescue SwaggerClient::ApiError => e
552
- puts "Exception when calling PACApi->add_system_pac: #{e}"
553
- end
554
- # Setup authorization
555
- SwaggerClient.configure do |config|
556
- # Configure API key authorization: apikey
557
- config.api_key['api-key'] = 'YOUR API KEY'
558
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
559
- #config.api_key_prefix['api-key'] = 'Bearer'
560
-
561
- # Configure API key authorization: mockType
562
- config.api_key['Prefer'] = 'YOUR API KEY'
563
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
564
- #config.api_key_prefix['Prefer'] = 'Bearer'
565
-
566
- # Configure API key authorization: userid
567
- config.api_key['user-uid'] = 'YOUR API KEY'
568
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
569
- #config.api_key_prefix['user-uid'] = 'Bearer'
570
- end
571
-
572
- api_instance = SwaggerClient::PACApi.new
573
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
574
-
575
-
576
- begin
577
- #Get location of system package in PAC
578
- result = api_instance.get_system_pac(system_id)
579
- p result
580
- rescue SwaggerClient::ApiError => e
581
- puts "Exception when calling PACApi->get_system_pac: #{e}"
582
- end
583
- # Setup authorization
584
- SwaggerClient.configure do |config|
585
- # Configure API key authorization: apikey
586
- config.api_key['api-key'] = 'YOUR API KEY'
587
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
588
- #config.api_key_prefix['api-key'] = 'Bearer'
589
-
590
- # Configure API key authorization: mockType
591
- config.api_key['Prefer'] = 'YOUR API KEY'
592
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
593
- #config.api_key_prefix['Prefer'] = 'Bearer'
594
-
595
- # Configure API key authorization: userid
596
- config.api_key['user-uid'] = 'YOUR API KEY'
597
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
598
- #config.api_key_prefix['user-uid'] = 'Bearer'
599
- end
600
-
601
- api_instance = SwaggerClient::POAMApi.new
602
- body = SwaggerClient::PoamRequiredPost.new # PoamRequiredPost | Update an existing control by Id
603
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
604
-
605
-
606
- begin
607
- #Add one or many POA&M items in a system
608
- result = api_instance.add_poam_by_system_id(body, system_id)
609
- p result
610
- rescue SwaggerClient::ApiError => e
611
- puts "Exception when calling POAMApi->add_poam_by_system_id: #{e}"
612
- end
613
- # Setup authorization
614
- SwaggerClient.configure do |config|
615
- # Configure API key authorization: apikey
616
- config.api_key['api-key'] = 'YOUR API KEY'
617
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
618
- #config.api_key_prefix['api-key'] = 'Bearer'
619
-
620
- # Configure API key authorization: mockType
621
- config.api_key['Prefer'] = 'YOUR API KEY'
622
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
623
- #config.api_key_prefix['Prefer'] = 'Bearer'
624
-
625
- # Configure API key authorization: userid
626
- config.api_key['user-uid'] = 'YOUR API KEY'
627
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
628
- #config.api_key_prefix['user-uid'] = 'Bearer'
629
- end
630
-
631
- api_instance = SwaggerClient::POAMApi.new
632
- body = SwaggerClient::DeletePoam.new # DeletePoam | Delete the given POA&M Id
633
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
634
-
635
-
636
- begin
637
- #Remove one or many POA&M items in a system
638
- result = api_instance.delete_poam(body, system_id)
639
- p result
640
- rescue SwaggerClient::ApiError => e
641
- puts "Exception when calling POAMApi->delete_poam: #{e}"
642
- end
643
- # Setup authorization
644
- SwaggerClient.configure do |config|
645
- # Configure API key authorization: apikey
646
- config.api_key['api-key'] = 'YOUR API KEY'
647
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
648
- #config.api_key_prefix['api-key'] = 'Bearer'
649
-
650
- # Configure API key authorization: mockType
651
- config.api_key['Prefer'] = 'YOUR API KEY'
652
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
653
- #config.api_key_prefix['Prefer'] = 'Bearer'
654
-
655
- # Configure API key authorization: userid
656
- config.api_key['user-uid'] = 'YOUR API KEY'
657
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
658
- #config.api_key_prefix['user-uid'] = 'Bearer'
659
- end
660
-
661
- api_instance = SwaggerClient::POAMApi.new
662
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
663
- opts = {
664
- scheduled_completion_date_start: 'scheduled_completion_date_start_example', # String | **Date Started**: Filter query by the scheduled completion start date (Unix date format).
665
- scheduled_completion_date_end: 'scheduled_completion_date_end_example', # String | **Date Ended**: Filter query by the scheduled completion start date (Unix date format).
666
- control_acronyms: 'control_acronyms_example', # String | **System Acronym**: Filter query by given system acronym (single or comma separated).
667
- ccis: 'ccis_example', # String | **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
668
- system_only: true # BOOLEAN | **Systems Only**: Indicates that only system(s) information is retrieved.
669
- }
670
-
671
- begin
672
- #Get one or many POA&M items in a system
673
- result = api_instance.get_system_poams(system_id, opts)
674
- p result
675
- rescue SwaggerClient::ApiError => e
676
- puts "Exception when calling POAMApi->get_system_poams: #{e}"
677
- end
678
- # Setup authorization
679
- SwaggerClient.configure do |config|
680
- # Configure API key authorization: apikey
681
- config.api_key['api-key'] = 'YOUR API KEY'
682
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
683
- #config.api_key_prefix['api-key'] = 'Bearer'
684
-
685
- # Configure API key authorization: mockType
686
- config.api_key['Prefer'] = 'YOUR API KEY'
687
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
688
- #config.api_key_prefix['Prefer'] = 'Bearer'
689
-
690
- # Configure API key authorization: userid
691
- config.api_key['user-uid'] = 'YOUR API KEY'
692
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
693
- #config.api_key_prefix['user-uid'] = 'Bearer'
694
- end
695
-
696
- api_instance = SwaggerClient::POAMApi.new
697
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
698
- poam_id = 56 # Integer | **POA&M Id**: The unique POA&M record identifier.
699
-
700
-
701
- begin
702
- #Get POA&M item by ID in a system
703
- result = api_instance.get_system_poams_by_poam_id(system_id, poam_id)
704
- p result
705
- rescue SwaggerClient::ApiError => e
706
- puts "Exception when calling POAMApi->get_system_poams_by_poam_id: #{e}"
707
- end
708
- # Setup authorization
709
- SwaggerClient.configure do |config|
710
- # Configure API key authorization: apikey
711
- config.api_key['api-key'] = 'YOUR API KEY'
712
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
713
- #config.api_key_prefix['api-key'] = 'Bearer'
714
-
715
- # Configure API key authorization: mockType
716
- config.api_key['Prefer'] = 'YOUR API KEY'
717
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
718
- #config.api_key_prefix['Prefer'] = 'Bearer'
719
-
720
- # Configure API key authorization: userid
721
- config.api_key['user-uid'] = 'YOUR API KEY'
722
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
723
- #config.api_key_prefix['user-uid'] = 'Bearer'
724
- end
725
-
726
- api_instance = SwaggerClient::POAMApi.new
727
- body = SwaggerClient::PoamRequiredPut.new # PoamRequiredPut | Update an existing control by Id
728
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
729
-
730
-
731
- begin
732
- #Update one or many POA&M items in a system
733
- result = api_instance.update_poam_by_system_id(body, system_id)
734
- p result
735
- rescue SwaggerClient::ApiError => e
736
- puts "Exception when calling POAMApi->update_poam_by_system_id: #{e}"
737
- end
738
- # Setup authorization
739
- SwaggerClient.configure do |config|
740
- # Configure API key authorization: apikey
741
- config.api_key['api-key'] = 'YOUR API KEY'
742
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
743
- #config.api_key_prefix['api-key'] = 'Bearer'
744
-
745
- # Configure API key authorization: mockType
746
- config.api_key['Prefer'] = 'YOUR API KEY'
747
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
748
- #config.api_key_prefix['Prefer'] = 'Bearer'
749
-
750
- # Configure API key authorization: userid
751
- config.api_key['user-uid'] = 'YOUR API KEY'
752
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
753
- #config.api_key_prefix['user-uid'] = 'Bearer'
754
- end
755
-
756
- api_instance = SwaggerClient::RegistrationApi.new
757
- body = SwaggerClient::RegisterUserRequestPostBody.new # RegisterUserRequestPostBody | User certificate previously provided by eMASS.
758
-
759
-
760
- begin
761
- #Register user certificate and obtain an API key
762
- result = api_instance.register_user(body)
763
- p result
764
- rescue SwaggerClient::ApiError => e
765
- puts "Exception when calling RegistrationApi->register_user: #{e}"
766
- end
767
- # Setup authorization
768
- SwaggerClient.configure do |config|
769
- # Configure API key authorization: apikey
770
- config.api_key['api-key'] = 'YOUR API KEY'
771
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
772
- #config.api_key_prefix['api-key'] = 'Bearer'
773
-
774
- # Configure API key authorization: mockType
775
- config.api_key['Prefer'] = 'YOUR API KEY'
776
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
777
- #config.api_key_prefix['Prefer'] = 'Bearer'
778
-
779
- # Configure API key authorization: userid
780
- config.api_key['user-uid'] = 'YOUR API KEY'
781
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
782
- #config.api_key_prefix['user-uid'] = 'Bearer'
783
- end
784
-
785
- api_instance = SwaggerClient::StaticCodeScansApi.new
786
- body = SwaggerClient::StaticCodeRequiredPost.new # StaticCodeRequiredPost | Update an existing Artifact by Id
787
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
788
-
789
-
790
- begin
791
- #Upload static code scans or Clear static code scans
792
- result = api_instance.add_static_code_scans_by_system_id(body, system_id)
793
- p result
794
- rescue SwaggerClient::ApiError => e
795
- puts "Exception when calling StaticCodeScansApi->add_static_code_scans_by_system_id: #{e}"
796
- end
797
- # Setup authorization
798
- SwaggerClient.configure do |config|
799
- # Configure API key authorization: apikey
800
- config.api_key['api-key'] = 'YOUR API KEY'
801
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
802
- #config.api_key_prefix['api-key'] = 'Bearer'
803
-
804
- # Configure API key authorization: mockType
805
- config.api_key['Prefer'] = 'YOUR API KEY'
806
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
807
- #config.api_key_prefix['Prefer'] = 'Bearer'
808
-
809
- # Configure API key authorization: userid
810
- config.api_key['user-uid'] = 'YOUR API KEY'
811
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
812
- #config.api_key_prefix['user-uid'] = 'Bearer'
813
- end
814
-
815
- api_instance = SwaggerClient::SystemRolesApi.new
816
-
817
- begin
818
- #Get available roles
819
- result = api_instance.get_system_roles
820
- p result
821
- rescue SwaggerClient::ApiError => e
822
- puts "Exception when calling SystemRolesApi->get_system_roles: #{e}"
823
- end
824
- # Setup authorization
825
- SwaggerClient.configure do |config|
826
- # Configure API key authorization: apikey
827
- config.api_key['api-key'] = 'YOUR API KEY'
828
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
829
- #config.api_key_prefix['api-key'] = 'Bearer'
830
-
831
- # Configure API key authorization: mockType
832
- config.api_key['Prefer'] = 'YOUR API KEY'
833
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
834
- #config.api_key_prefix['Prefer'] = 'Bearer'
835
-
836
- # Configure API key authorization: userid
837
- config.api_key['user-uid'] = 'YOUR API KEY'
838
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
839
- #config.api_key_prefix['user-uid'] = 'Bearer'
840
- end
841
-
842
- api_instance = SwaggerClient::SystemRolesApi.new
843
- role_category = 'role_category_example' # String | **Role Category**: The system role category been queried
844
- role = 'IAO' # String | **Role**: Accepts single value from options available at base system-roles endpoint e.g., SCA.
845
- opts = {
846
- policy: 'rmf', # String | **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information.
847
- include_decommissioned: true # BOOLEAN | **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved. If no value is specified, the default returns true to include decommissioned systems.
848
- }
849
-
850
- begin
851
- #Get system roles
852
- result = api_instance.get_system_roles_by_category_id(role_category, role, opts)
853
- p result
854
- rescue SwaggerClient::ApiError => e
855
- puts "Exception when calling SystemRolesApi->get_system_roles_by_category_id: #{e}"
856
- end
857
- # Setup authorization
858
- SwaggerClient.configure do |config|
859
- # Configure API key authorization: apikey
860
- config.api_key['api-key'] = 'YOUR API KEY'
861
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
862
- #config.api_key_prefix['api-key'] = 'Bearer'
863
-
864
- # Configure API key authorization: mockType
865
- config.api_key['Prefer'] = 'YOUR API KEY'
866
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
867
- #config.api_key_prefix['Prefer'] = 'Bearer'
868
-
869
- # Configure API key authorization: userid
870
- config.api_key['user-uid'] = 'YOUR API KEY'
871
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
872
- #config.api_key_prefix['user-uid'] = 'Bearer'
873
- end
874
-
875
- api_instance = SwaggerClient::SystemsApi.new
876
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
877
- opts = {
878
- include_package: true, # BOOLEAN | **Include Package**: Indicates if additional packages information is retrieved for queried system.
879
- policy: 'rmf' # String | **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information.
880
- }
881
-
882
- begin
883
- #Get system information for a specific system
884
- result = api_instance.get_system(system_id, opts)
885
- p result
886
- rescue SwaggerClient::ApiError => e
887
- puts "Exception when calling SystemsApi->get_system: #{e}"
888
- end
889
- # Setup authorization
890
- SwaggerClient.configure do |config|
891
- # Configure API key authorization: apikey
892
- config.api_key['api-key'] = 'YOUR API KEY'
893
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
894
- #config.api_key_prefix['api-key'] = 'Bearer'
895
-
896
- # Configure API key authorization: mockType
897
- config.api_key['Prefer'] = 'YOUR API KEY'
898
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
899
- #config.api_key_prefix['Prefer'] = 'Bearer'
900
-
901
- # Configure API key authorization: userid
902
- config.api_key['user-uid'] = 'YOUR API KEY'
903
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
904
- #config.api_key_prefix['user-uid'] = 'Bearer'
905
- end
906
-
907
- api_instance = SwaggerClient::SystemsApi.new
908
- opts = {
909
- include_package: true, # BOOLEAN | **Include Package**: Indicates if additional packages information is retrieved for queried system.
910
- registration_type: 'regular', # String | **Registration Type**: Filter record by selected registration type (single value or comma delimited values). *Available values:* assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider
911
- ditpr_id: 'ditpr_id_example', # String | **DITPR ID**: Filter query by DoD Information Technology (IT) Portfolio Repository (DITPR).
912
- coams_id: 'coams_id_example', # String | **COAMS ID**: Filter query by Cyber Operational Attributes Management System (COAMS).
913
- policy: 'rmf', # String | **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information.
914
- include_ditpr_metrics: false, # BOOLEAN | **Include DITPR**: Indicates if DITPR metrics are retrieved. This query string parameter can only be used in conjunction with the following parameters:<br> <ul> <li>registrationType</li> <li>policy</li> </ul>
915
- include_decommissioned: true, # BOOLEAN | **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved. If no value is specified, the default returns true to include decommissioned systems.
916
- reports_for_scorecard: true # BOOLEAN | **DoD Cyber Hygiene Scorecard**: Indicates if the system reports to the DoD Cyber Hygiene Scorecard.
917
- }
918
-
919
- begin
920
- #Get system information
921
- result = api_instance.get_systems(opts)
922
- p result
923
- rescue SwaggerClient::ApiError => e
924
- puts "Exception when calling SystemsApi->get_systems: #{e}"
925
- end
926
- # Setup authorization
927
- SwaggerClient.configure do |config|
928
- # Configure API key authorization: apikey
929
- config.api_key['api-key'] = 'YOUR API KEY'
930
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
931
- #config.api_key_prefix['api-key'] = 'Bearer'
932
-
933
- # Configure API key authorization: mockType
934
- config.api_key['Prefer'] = 'YOUR API KEY'
935
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
936
- #config.api_key_prefix['Prefer'] = 'Bearer'
937
-
938
- # Configure API key authorization: userid
939
- config.api_key['user-uid'] = 'YOUR API KEY'
940
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
941
- #config.api_key_prefix['user-uid'] = 'Bearer'
942
- end
943
-
944
- api_instance = SwaggerClient::TestApi.new
945
-
946
- begin
947
- #Test connection to the API
948
- result = api_instance.test_connection
949
- p result
950
- rescue SwaggerClient::ApiError => e
951
- puts "Exception when calling TestApi->test_connection: #{e}"
952
- end
953
- # Setup authorization
954
- SwaggerClient.configure do |config|
955
- # Configure API key authorization: apikey
956
- config.api_key['api-key'] = 'YOUR API KEY'
957
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
958
- #config.api_key_prefix['api-key'] = 'Bearer'
959
-
960
- # Configure API key authorization: mockType
961
- config.api_key['Prefer'] = 'YOUR API KEY'
962
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
963
- #config.api_key_prefix['Prefer'] = 'Bearer'
964
-
965
- # Configure API key authorization: userid
966
- config.api_key['user-uid'] = 'YOUR API KEY'
967
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
968
- #config.api_key_prefix['user-uid'] = 'Bearer'
969
- end
970
-
971
- api_instance = SwaggerClient::TestResultsApi.new
972
- body = SwaggerClient::TestResultsRequestPostBody.new # TestResultsRequestPostBody | Update an existing control by Id
973
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
974
-
975
-
976
- begin
977
- #Add one or many test results in a system
978
- result = api_instance.add_test_results_by_system_id(body, system_id)
979
- p result
980
- rescue SwaggerClient::ApiError => e
981
- puts "Exception when calling TestResultsApi->add_test_results_by_system_id: #{e}"
982
- end
983
- # Setup authorization
984
- SwaggerClient.configure do |config|
985
- # Configure API key authorization: apikey
986
- config.api_key['api-key'] = 'YOUR API KEY'
987
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
988
- #config.api_key_prefix['api-key'] = 'Bearer'
989
-
990
- # Configure API key authorization: mockType
991
- config.api_key['Prefer'] = 'YOUR API KEY'
992
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
993
- #config.api_key_prefix['Prefer'] = 'Bearer'
994
-
995
- # Configure API key authorization: userid
996
- config.api_key['user-uid'] = 'YOUR API KEY'
997
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
998
- #config.api_key_prefix['user-uid'] = 'Bearer'
999
- end
1000
-
1001
- api_instance = SwaggerClient::TestResultsApi.new
1002
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
1003
- opts = {
1004
- control_acronyms: 'control_acronyms_example', # String | **System Acronym**: Filter query by given system acronym (single or comma separated).
1005
- ccis: 'ccis_example', # String | **CCI System**: Filter query by Control Correlation Identifiers (CCIs).
1006
- latest_only: true # BOOLEAN | **Latest Results Only**: Indicates that only the latest test resultes are retrieved (single or comma separated).
1007
- }
1008
-
1009
- begin
1010
- #Get one or many test results in a system
1011
- result = api_instance.get_system_test_results(system_id, opts)
1012
- p result
1013
- rescue SwaggerClient::ApiError => e
1014
- puts "Exception when calling TestResultsApi->get_system_test_results: #{e}"
1015
- end
1016
- # Setup authorization
1017
- SwaggerClient.configure do |config|
1018
- # Configure API key authorization: apikey
1019
- config.api_key['api-key'] = 'YOUR API KEY'
1020
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1021
- #config.api_key_prefix['api-key'] = 'Bearer'
1022
-
1023
- # Configure API key authorization: mockType
1024
- config.api_key['Prefer'] = 'YOUR API KEY'
1025
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1026
- #config.api_key_prefix['Prefer'] = 'Bearer'
1027
-
1028
- # Configure API key authorization: userid
1029
- config.api_key['user-uid'] = 'YOUR API KEY'
1030
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1031
- #config.api_key_prefix['user-uid'] = 'Bearer'
1032
- end
1033
-
1034
- api_instance = SwaggerClient::WorkflowDefinitionsApi.new
1035
- opts = {
1036
- include_inactive: true, # BOOLEAN | **Include Inactive**: If no value is specified, the default returns false to not include outdated workflow definitions.
1037
- registration_type: 'regular' # String | **Registration Type**: Filter record by selected registration type (single value or comma delimited values). *Available values:* assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider
1038
- }
1039
-
1040
- begin
1041
- #Get workflow definitions in a site
1042
- result = api_instance.get_workflow_definitions(opts)
1043
- p result
1044
- rescue SwaggerClient::ApiError => e
1045
- puts "Exception when calling WorkflowDefinitionsApi->get_workflow_definitions: #{e}"
1046
- end
1047
- # Setup authorization
1048
- SwaggerClient.configure do |config|
1049
- # Configure API key authorization: apikey
1050
- config.api_key['api-key'] = 'YOUR API KEY'
1051
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1052
- #config.api_key_prefix['api-key'] = 'Bearer'
1053
-
1054
- # Configure API key authorization: mockType
1055
- config.api_key['Prefer'] = 'YOUR API KEY'
1056
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1057
- #config.api_key_prefix['Prefer'] = 'Bearer'
1058
-
1059
- # Configure API key authorization: userid
1060
- config.api_key['user-uid'] = 'YOUR API KEY'
1061
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1062
- #config.api_key_prefix['user-uid'] = 'Bearer'
1063
- end
1064
-
1065
- api_instance = SwaggerClient::WorkflowInstancesApi.new
1066
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
1067
- opts = {
1068
- include_comments: true, # BOOLEAN | **Include Comments**: If no value is specified, the default returns true to not include transition comments. Note: Corresponds to the Comments textbox that is required at most workflow transitions. Does not include other text input fields such as Terms / Conditions for Authorization.
1069
- page_index: 0, # Integer | **Page Index**: If no value is specified, the default returns true to not include transition comments.
1070
- since_date: 'since_date_example', # String | **Date**: Filter on authorization/assessment date (Unix date format). Note: Filters off the lastEditedDate field. Note: The authorization/assessment decisions on completed workflows can be edited for up to 30 days after the initial decision is made.
1071
- status: 'all' # String | **Status**: Filter by status. If no value is specified, the default returns all to include both active and inactive workflows. Note: Any workflows at a current stage of Complete or Cancelled are inactive. Ongoing workflows currently at other stages are active.
1072
- }
1073
-
1074
- begin
1075
- #Get workflow instances in a system
1076
- result = api_instance.get_system_workflow_instances(system_id, opts)
1077
- p result
1078
- rescue SwaggerClient::ApiError => e
1079
- puts "Exception when calling WorkflowInstancesApi->get_system_workflow_instances: #{e}"
1080
- end
1081
- # Setup authorization
1082
- SwaggerClient.configure do |config|
1083
- # Configure API key authorization: apikey
1084
- config.api_key['api-key'] = 'YOUR API KEY'
1085
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1086
- #config.api_key_prefix['api-key'] = 'Bearer'
1087
-
1088
- # Configure API key authorization: mockType
1089
- config.api_key['Prefer'] = 'YOUR API KEY'
1090
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1091
- #config.api_key_prefix['Prefer'] = 'Bearer'
1092
-
1093
- # Configure API key authorization: userid
1094
- config.api_key['user-uid'] = 'YOUR API KEY'
1095
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1096
- #config.api_key_prefix['user-uid'] = 'Bearer'
1097
- end
1098
-
1099
- api_instance = SwaggerClient::WorkflowInstancesApi.new
1100
- system_id = 56 # Integer | **System Id**: The unique system record identifier.
1101
- workflow_instance_id = 56 # Integer | **Workflow Instance Id**: The unique milestone record identifier.
1102
-
1103
-
1104
- begin
1105
- #Get workflow instance by ID in a system
1106
- result = api_instance.get_system_workflow_instances_by_workflow_instance_id(system_id, workflow_instance_id)
1107
- p result
1108
- rescue SwaggerClient::ApiError => e
1109
- puts "Exception when calling WorkflowInstancesApi->get_system_workflow_instances_by_workflow_instance_id: #{e}"
1110
- end
1111
- ```
1112
-
1113
- ## Documentation for API Endpoints
1114
-
1115
- All URIs are relative to *http://localhost:4010*
1116
-
1117
- Class | Method | HTTP request | Description
1118
- ------------ | ------------- | ------------- | -------------
1119
- *SwaggerClient::ArtifactsApi* | [**add_artifacts_by_system_id**](docs/ArtifactsApi.md#add_artifacts_by_system_id) | **POST** /api/systems/{systemId}/artifacts | Add one or many artifacts in a system
1120
- *SwaggerClient::ArtifactsApi* | [**delete_artifact**](docs/ArtifactsApi.md#delete_artifact) | **DELETE** /api/systems/{systemId}/artifacts | Remove one or many artifacts in a system
1121
- *SwaggerClient::ArtifactsApi* | [**get_system_artifacts**](docs/ArtifactsApi.md#get_system_artifacts) | **GET** /api/systems/{systemId}/artifacts | Get one or many artifacts in a system
1122
- *SwaggerClient::ArtifactsApi* | [**update_artifact_by_system_id**](docs/ArtifactsApi.md#update_artifact_by_system_id) | **PUT** /api/systems/{systemId}/artifacts | Update one or many artifacts in a system
1123
- *SwaggerClient::ArtifactsExportApi* | [**get_system_artifacts_export**](docs/ArtifactsExportApi.md#get_system_artifacts_export) | **GET** /api/systems/{systemId}/artifacts-export | Get the file of an artifact in a system
1124
- *SwaggerClient::CACApi* | [**add_system_cac**](docs/CACApi.md#add_system_cac) | **POST** /api/systems/{systemId}/approval/cac | Submit control to second role of CAC
1125
- *SwaggerClient::CACApi* | [**get_system_cac**](docs/CACApi.md#get_system_cac) | **GET** /api/systems/{systemId}/approval/cac | Get location of one or many controls in CAC
1126
- *SwaggerClient::CMMCAssessmentsApi* | [**get_cmmc_assessments**](docs/CMMCAssessmentsApi.md#get_cmmc_assessments) | **GET** /api/cmmc-assessments | Get CMMC assessment information
1127
- *SwaggerClient::ControlsApi* | [**get_system_controls**](docs/ControlsApi.md#get_system_controls) | **GET** /api/systems/{systemId}/controls | Get control information in a system for one or many controls
1128
- *SwaggerClient::ControlsApi* | [**update_control_by_system_id**](docs/ControlsApi.md#update_control_by_system_id) | **PUT** /api/systems/{systemId}/controls | Update control information in a system for one or many controls
1129
- *SwaggerClient::MilestonesApi* | [**add_milestone_by_system_id_and_poam_id**](docs/MilestonesApi.md#add_milestone_by_system_id_and_poam_id) | **POST** /api/systems/{systemId}/poams/{poamId}/milestones | Add milestones to one or many POA&M items in a system
1130
- *SwaggerClient::MilestonesApi* | [**delete_milestone**](docs/MilestonesApi.md#delete_milestone) | **DELETE** /api/systems/{systemId}/poams/{poamId}/milestones | Remove milestones in a system for one or many POA&M items
1131
- *SwaggerClient::MilestonesApi* | [**get_system_milestones_by_poam_id**](docs/MilestonesApi.md#get_system_milestones_by_poam_id) | **GET** /api/systems/{systemId}/poams/{poamId}/milestones | Get milestones in one or many POA&M items in a system
1132
- *SwaggerClient::MilestonesApi* | [**get_system_milestones_by_poam_id_and_milestone_id**](docs/MilestonesApi.md#get_system_milestones_by_poam_id_and_milestone_id) | **GET** /api/systems/{systemId}/poams/{poamId}/milestones/{milestoneId} | Get milestone by ID in POA&M item in a system
1133
- *SwaggerClient::MilestonesApi* | [**update_milestone_by_system_id_and_poam_id**](docs/MilestonesApi.md#update_milestone_by_system_id_and_poam_id) | **PUT** /api/systems/{systemId}/poams/{poamId}/milestones | Update one or many POA&M items in a system
1134
- *SwaggerClient::PACApi* | [**add_system_pac**](docs/PACApi.md#add_system_pac) | **POST** /api/systems/{systemId}/approval/pac | Submit system package for review
1135
- *SwaggerClient::PACApi* | [**get_system_pac**](docs/PACApi.md#get_system_pac) | **GET** /api/systems/{systemId}/approval/pac | Get location of system package in PAC
1136
- *SwaggerClient::POAMApi* | [**add_poam_by_system_id**](docs/POAMApi.md#add_poam_by_system_id) | **POST** /api/systems/{systemId}/poams | Add one or many POA&M items in a system
1137
- *SwaggerClient::POAMApi* | [**delete_poam**](docs/POAMApi.md#delete_poam) | **DELETE** /api/systems/{systemId}/poams | Remove one or many POA&M items in a system
1138
- *SwaggerClient::POAMApi* | [**get_system_poams**](docs/POAMApi.md#get_system_poams) | **GET** /api/systems/{systemId}/poams | Get one or many POA&M items in a system
1139
- *SwaggerClient::POAMApi* | [**get_system_poams_by_poam_id**](docs/POAMApi.md#get_system_poams_by_poam_id) | **GET** /api/systems/{systemId}/poams/{poamId} | Get POA&M item by ID in a system
1140
- *SwaggerClient::POAMApi* | [**update_poam_by_system_id**](docs/POAMApi.md#update_poam_by_system_id) | **PUT** /api/systems/{systemId}/poams | Update one or many POA&M items in a system
1141
- *SwaggerClient::RegistrationApi* | [**register_user**](docs/RegistrationApi.md#register_user) | **POST** /api/api-key | Register user certificate and obtain an API key
1142
- *SwaggerClient::StaticCodeScansApi* | [**add_static_code_scans_by_system_id**](docs/StaticCodeScansApi.md#add_static_code_scans_by_system_id) | **POST** /api/systems/{systemId}/static-code-scans | Upload static code scans or Clear static code scans
1143
- *SwaggerClient::SystemRolesApi* | [**get_system_roles**](docs/SystemRolesApi.md#get_system_roles) | **GET** /api/system-roles | Get available roles
1144
- *SwaggerClient::SystemRolesApi* | [**get_system_roles_by_category_id**](docs/SystemRolesApi.md#get_system_roles_by_category_id) | **GET** /api/system-roles/{roleCategory} | Get system roles
1145
- *SwaggerClient::SystemsApi* | [**get_system**](docs/SystemsApi.md#get_system) | **GET** /api/systems/{systemId} | Get system information for a specific system
1146
- *SwaggerClient::SystemsApi* | [**get_systems**](docs/SystemsApi.md#get_systems) | **GET** /api/systems | Get system information
1147
- *SwaggerClient::TestApi* | [**test_connection**](docs/TestApi.md#test_connection) | **GET** /api | Test connection to the API
1148
- *SwaggerClient::TestResultsApi* | [**add_test_results_by_system_id**](docs/TestResultsApi.md#add_test_results_by_system_id) | **POST** /api/systems/{systemId}/test-results | Add one or many test results in a system
1149
- *SwaggerClient::TestResultsApi* | [**get_system_test_results**](docs/TestResultsApi.md#get_system_test_results) | **GET** /api/systems/{systemId}/test-results | Get one or many test results in a system
1150
- *SwaggerClient::WorkflowDefinitionsApi* | [**get_workflow_definitions**](docs/WorkflowDefinitionsApi.md#get_workflow_definitions) | **GET** /api/workflow-definitions | Get workflow definitions in a site
1151
- *SwaggerClient::WorkflowInstancesApi* | [**get_system_workflow_instances**](docs/WorkflowInstancesApi.md#get_system_workflow_instances) | **GET** /api/systems/{systemId}/workflow-instances | Get workflow instances in a system
1152
- *SwaggerClient::WorkflowInstancesApi* | [**get_system_workflow_instances_by_workflow_instance_id**](docs/WorkflowInstancesApi.md#get_system_workflow_instances_by_workflow_instance_id) | **GET** /api/systems/{systemId}/workflow-instances/{workflowInstanceId} | Get workflow instance by ID in a system
1153
-
1154
- ## Documentation for Models
1155
-
1156
- - [SwaggerClient::ArtifactsDelete](docs/ArtifactsDelete.md)
1157
- - [SwaggerClient::ArtifactsDeleteInner](docs/ArtifactsDeleteInner.md)
1158
- - [SwaggerClient::ArtifactsGet](docs/ArtifactsGet.md)
1159
- - [SwaggerClient::ArtifactsRequestPutBody](docs/ArtifactsRequestPutBody.md)
1160
- - [SwaggerClient::ArtifactsResponseDel](docs/ArtifactsResponseDel.md)
1161
- - [SwaggerClient::ArtifactsResponseDelData](docs/ArtifactsResponseDelData.md)
1162
- - [SwaggerClient::ArtifactsResponseGet](docs/ArtifactsResponseGet.md)
1163
- - [SwaggerClient::ArtifactsResponsePutPost](docs/ArtifactsResponsePutPost.md)
1164
- - [SwaggerClient::CacGet](docs/CacGet.md)
1165
- - [SwaggerClient::CacRequestPostBody](docs/CacRequestPostBody.md)
1166
- - [SwaggerClient::CacResponseGet](docs/CacResponseGet.md)
1167
- - [SwaggerClient::CacResponsePost](docs/CacResponsePost.md)
1168
- - [SwaggerClient::CacResponsePostData](docs/CacResponsePostData.md)
1169
- - [SwaggerClient::CmmcGet](docs/CmmcGet.md)
1170
- - [SwaggerClient::CmmcResponseGet](docs/CmmcResponseGet.md)
1171
- - [SwaggerClient::ConnectivityCcsd](docs/ConnectivityCcsd.md)
1172
- - [SwaggerClient::ControlsGet](docs/ControlsGet.md)
1173
- - [SwaggerClient::ControlsPut](docs/ControlsPut.md)
1174
- - [SwaggerClient::ControlsRequestPutBody](docs/ControlsRequestPutBody.md)
1175
- - [SwaggerClient::ControlsResponseGet](docs/ControlsResponseGet.md)
1176
- - [SwaggerClient::ControlsResponsePut](docs/ControlsResponsePut.md)
1177
- - [SwaggerClient::DefinitionTransitions](docs/DefinitionTransitions.md)
1178
- - [SwaggerClient::DeleteMilestone](docs/DeleteMilestone.md)
1179
- - [SwaggerClient::DeletePoam](docs/DeletePoam.md)
1180
- - [SwaggerClient::Empty200Response](docs/Empty200Response.md)
1181
- - [SwaggerClient::Error](docs/Error.md)
1182
- - [SwaggerClient::InstancesTransitions](docs/InstancesTransitions.md)
1183
- - [SwaggerClient::MilestoneResponseGet](docs/MilestoneResponseGet.md)
1184
- - [SwaggerClient::MilestoneResponsePost](docs/MilestoneResponsePost.md)
1185
- - [SwaggerClient::MilestoneResponsePut](docs/MilestoneResponsePut.md)
1186
- - [SwaggerClient::MilestonesDelete](docs/MilestonesDelete.md)
1187
- - [SwaggerClient::MilestonesGet](docs/MilestonesGet.md)
1188
- - [SwaggerClient::MilestonesPost](docs/MilestonesPost.md)
1189
- - [SwaggerClient::MilestonesPut](docs/MilestonesPut.md)
1190
- - [SwaggerClient::MilestonesPutPostDelete](docs/MilestonesPutPostDelete.md)
1191
- - [SwaggerClient::MilestonesRequestPostBody](docs/MilestonesRequestPostBody.md)
1192
- - [SwaggerClient::MilestonesRequestPutBody](docs/MilestonesRequestPutBody.md)
1193
- - [SwaggerClient::MilestonesRequiredPost](docs/MilestonesRequiredPost.md)
1194
- - [SwaggerClient::MilestonesRequiredPut](docs/MilestonesRequiredPut.md)
1195
- - [SwaggerClient::Model200](docs/Model200.md)
1196
- - [SwaggerClient::Model201](docs/Model201.md)
1197
- - [SwaggerClient::Model201Meta](docs/Model201Meta.md)
1198
- - [SwaggerClient::Model400](docs/Model400.md)
1199
- - [SwaggerClient::Model400Meta](docs/Model400Meta.md)
1200
- - [SwaggerClient::Model400Response](docs/Model400Response.md)
1201
- - [SwaggerClient::Model401](docs/Model401.md)
1202
- - [SwaggerClient::Model401Meta](docs/Model401Meta.md)
1203
- - [SwaggerClient::Model403](docs/Model403.md)
1204
- - [SwaggerClient::Model403Meta](docs/Model403Meta.md)
1205
- - [SwaggerClient::Model404](docs/Model404.md)
1206
- - [SwaggerClient::Model404Response](docs/Model404Response.md)
1207
- - [SwaggerClient::Model405](docs/Model405.md)
1208
- - [SwaggerClient::Model405Meta](docs/Model405Meta.md)
1209
- - [SwaggerClient::Model411](docs/Model411.md)
1210
- - [SwaggerClient::Model411Meta](docs/Model411Meta.md)
1211
- - [SwaggerClient::Model490](docs/Model490.md)
1212
- - [SwaggerClient::Model490Meta](docs/Model490Meta.md)
1213
- - [SwaggerClient::Model500](docs/Model500.md)
1214
- - [SwaggerClient::Model500Meta](docs/Model500Meta.md)
1215
- - [SwaggerClient::PacGet](docs/PacGet.md)
1216
- - [SwaggerClient::PacPost](docs/PacPost.md)
1217
- - [SwaggerClient::PacRequestPostBody](docs/PacRequestPostBody.md)
1218
- - [SwaggerClient::PacResponseGet](docs/PacResponseGet.md)
1219
- - [SwaggerClient::PacResponsePost](docs/PacResponsePost.md)
1220
- - [SwaggerClient::PoamDelete](docs/PoamDelete.md)
1221
- - [SwaggerClient::PoamGet](docs/PoamGet.md)
1222
- - [SwaggerClient::PoamPost](docs/PoamPost.md)
1223
- - [SwaggerClient::PoamPostPutDel](docs/PoamPostPutDel.md)
1224
- - [SwaggerClient::PoamPut](docs/PoamPut.md)
1225
- - [SwaggerClient::PoamRequestPostBody](docs/PoamRequestPostBody.md)
1226
- - [SwaggerClient::PoamRequestPutBody](docs/PoamRequestPutBody.md)
1227
- - [SwaggerClient::PoamRequiredPost](docs/PoamRequiredPost.md)
1228
- - [SwaggerClient::PoamRequiredPut](docs/PoamRequiredPut.md)
1229
- - [SwaggerClient::PoamResponseDelete](docs/PoamResponseDelete.md)
1230
- - [SwaggerClient::PoamResponseGet](docs/PoamResponseGet.md)
1231
- - [SwaggerClient::PoamResponsePost](docs/PoamResponsePost.md)
1232
- - [SwaggerClient::PoamResponsePut](docs/PoamResponsePut.md)
1233
- - [SwaggerClient::Register](docs/Register.md)
1234
- - [SwaggerClient::RegisterData](docs/RegisterData.md)
1235
- - [SwaggerClient::RegisterUserRequestPostBody](docs/RegisterUserRequestPostBody.md)
1236
- - [SwaggerClient::RoleCategory](docs/RoleCategory.md)
1237
- - [SwaggerClient::Roles](docs/Roles.md)
1238
- - [SwaggerClient::Ssps](docs/Ssps.md)
1239
- - [SwaggerClient::Stage](docs/Stage.md)
1240
- - [SwaggerClient::StaticCodeApplication](docs/StaticCodeApplication.md)
1241
- - [SwaggerClient::StaticCodeRequestPostBody](docs/StaticCodeRequestPostBody.md)
1242
- - [SwaggerClient::StaticCodeRequiredPost](docs/StaticCodeRequiredPost.md)
1243
- - [SwaggerClient::StaticCodeRequiredPostApplication](docs/StaticCodeRequiredPostApplication.md)
1244
- - [SwaggerClient::Success200Response](docs/Success200Response.md)
1245
- - [SwaggerClient::SystemIdArtifactsBody](docs/SystemIdArtifactsBody.md)
1246
- - [SwaggerClient::SystemResponse](docs/SystemResponse.md)
1247
- - [SwaggerClient::SystemRolesCategoryResponse](docs/SystemRolesCategoryResponse.md)
1248
- - [SwaggerClient::SystemRolesResponse](docs/SystemRolesResponse.md)
1249
- - [SwaggerClient::SystemRolesResponseData](docs/SystemRolesResponseData.md)
1250
- - [SwaggerClient::Systems](docs/Systems.md)
1251
- - [SwaggerClient::Test](docs/Test.md)
1252
- - [SwaggerClient::TestData](docs/TestData.md)
1253
- - [SwaggerClient::TestResultsGet](docs/TestResultsGet.md)
1254
- - [SwaggerClient::TestResultsPost](docs/TestResultsPost.md)
1255
- - [SwaggerClient::TestResultsRequestPostBody](docs/TestResultsRequestPostBody.md)
1256
- - [SwaggerClient::TestResultsResponseGet](docs/TestResultsResponseGet.md)
1257
- - [SwaggerClient::TestResultsResponsePost](docs/TestResultsResponsePost.md)
1258
- - [SwaggerClient::Users](docs/Users.md)
1259
- - [SwaggerClient::WorkflowDefinitionGet](docs/WorkflowDefinitionGet.md)
1260
- - [SwaggerClient::WorkflowDefinitionResponseGet](docs/WorkflowDefinitionResponseGet.md)
1261
- - [SwaggerClient::WorkflowInstancesGet](docs/WorkflowInstancesGet.md)
1262
- - [SwaggerClient::WorkflowInstancesResponseGet](docs/WorkflowInstancesResponseGet.md)
1263
-
1264
- ## Documentation for Authorization
1265
-
1266
-
1267
- ### apikey
1268
-
1269
- - **Type**: API key
1270
- - **API key parameter name**: api-key
1271
- - **Location**: HTTP header
1272
-
1273
- ### mockType
1274
-
1275
- - **Type**: API key
1276
- - **API key parameter name**: Prefer
1277
- - **Location**: HTTP header
1278
-
1279
- ### userid
1280
-
1281
- - **Type**: API key
1282
- - **API key parameter name**: user-uid
1283
- - **Location**: HTTP header
1284
-