nodeum_sdk 1.85.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +472 -0
  5. data/Rakefile +10 -0
  6. data/docs/ActiveJobStatus.md +23 -0
  7. data/docs/ApiKey.md +21 -0
  8. data/docs/ApiKeyCollection.md +19 -0
  9. data/docs/ApiKeyFull.md +17 -0
  10. data/docs/ApiKeyFullAllOf.md +17 -0
  11. data/docs/ApiKeyScope.md +19 -0
  12. data/docs/AttributeError.md +17 -0
  13. data/docs/Blank.md +16 -0
  14. data/docs/ByDateFacet.md +35 -0
  15. data/docs/ByDateFacetBucket.md +17 -0
  16. data/docs/ByDateFacetBucketAllOf.md +17 -0
  17. data/docs/ByDateFacetBuckets.md +17 -0
  18. data/docs/ByFileExtensionFacet.md +17 -0
  19. data/docs/ByFileExtensionFacetAllOf.md +17 -0
  20. data/docs/ByGroupOwnerFacet.md +17 -0
  21. data/docs/ByGroupOwnerFacetAllOf.md +17 -0
  22. data/docs/ByPrimaryFacet.md +17 -0
  23. data/docs/ByPrimaryFacetAllOf.md +17 -0
  24. data/docs/BySecondaryBucket.md +17 -0
  25. data/docs/BySecondaryBucketAllOf.md +17 -0
  26. data/docs/BySecondaryBuckets.md +17 -0
  27. data/docs/BySecondaryFacet.md +29 -0
  28. data/docs/BySecondaryTypeFacet.md +17 -0
  29. data/docs/BySecondaryTypeFacetAllOf.md +17 -0
  30. data/docs/BySizeFacet.md +35 -0
  31. data/docs/ByUserOwnerFacet.md +17 -0
  32. data/docs/ByUserOwnerFacetAllOf.md +17 -0
  33. data/docs/CloudBucket.md +31 -0
  34. data/docs/CloudBucketCollection.md +19 -0
  35. data/docs/CloudBucketSimpleCollection.md +17 -0
  36. data/docs/CloudBucketsApi.md +908 -0
  37. data/docs/CloudConnector.md +31 -0
  38. data/docs/CloudConnectorCollection.md +19 -0
  39. data/docs/CloudConnectorsApi.md +442 -0
  40. data/docs/Container.md +35 -0
  41. data/docs/ContainerCollection.md +19 -0
  42. data/docs/ContainerPrivilege.md +23 -0
  43. data/docs/ContainerPrivilegeCollection.md +19 -0
  44. data/docs/ContainersApi.md +650 -0
  45. data/docs/DateToFileFacets.md +31 -0
  46. data/docs/Error.md +19 -0
  47. data/docs/FileFacet.md +19 -0
  48. data/docs/FilesApi.md +2090 -0
  49. data/docs/Frozen.md +16 -0
  50. data/docs/GreaterThan.md +19 -0
  51. data/docs/GreaterThanAllOf.md +19 -0
  52. data/docs/GreaterThanOrEqualTo.md +19 -0
  53. data/docs/ImportFile.md +39 -0
  54. data/docs/ImportFileCollection.md +19 -0
  55. data/docs/ImportFileWithPath.md +41 -0
  56. data/docs/Invalid.md +17 -0
  57. data/docs/LessThan.md +19 -0
  58. data/docs/LessThanAllOf.md +19 -0
  59. data/docs/LessThanOrEqualTo.md +19 -0
  60. data/docs/MountCollection.md +17 -0
  61. data/docs/MountInfo.md +57 -0
  62. data/docs/MountNotification.md +19 -0
  63. data/docs/MountStatus.md +21 -0
  64. data/docs/MountsApi.md +63 -0
  65. data/docs/Nas.md +27 -0
  66. data/docs/NasApi.md +322 -0
  67. data/docs/NasCollection.md +19 -0
  68. data/docs/NasShare.md +35 -0
  69. data/docs/NasShareCollection.md +19 -0
  70. data/docs/NasSharesApi.md +1155 -0
  71. data/docs/NodeumFile.md +39 -0
  72. data/docs/NodeumFileCollection.md +19 -0
  73. data/docs/NodeumFileWithPath.md +17 -0
  74. data/docs/NodeumFileWithPathAllOf.md +17 -0
  75. data/docs/OccurrenceLessThan.md +19 -0
  76. data/docs/OccurrenceLessThanAllOf.md +19 -0
  77. data/docs/OccurrenceLessThanOrEqualTo.md +19 -0
  78. data/docs/OnTapesFile.md +25 -0
  79. data/docs/OnTapesFileCollection.md +19 -0
  80. data/docs/Pool.md +27 -0
  81. data/docs/PoolCollection.md +19 -0
  82. data/docs/PoolUp.md +21 -0
  83. data/docs/PoolUpAllOf.md +21 -0
  84. data/docs/PoolsApi.md +798 -0
  85. data/docs/PrimaryScan.md +25 -0
  86. data/docs/QuotaOnCache.md +16 -0
  87. data/docs/Reset.md +17 -0
  88. data/docs/ResetSections.md +21 -0
  89. data/docs/SizeToDateFacets.md +31 -0
  90. data/docs/StatisticsApi.md +386 -0
  91. data/docs/SystemGroup.md +21 -0
  92. data/docs/SystemGroupCollection.md +19 -0
  93. data/docs/SystemUser.md +23 -0
  94. data/docs/SystemUserCollection.md +19 -0
  95. data/docs/SystemsApi.md +183 -0
  96. data/docs/Taken.md +17 -0
  97. data/docs/TakenAllOf.md +17 -0
  98. data/docs/Tape.md +65 -0
  99. data/docs/TapeCollection.md +19 -0
  100. data/docs/TapeDrive.md +55 -0
  101. data/docs/TapeDriveAllOf.md +55 -0
  102. data/docs/TapeDriveCollection.md +19 -0
  103. data/docs/TapeDriveDevice.md +29 -0
  104. data/docs/TapeDriveDeviceCollection.md +17 -0
  105. data/docs/TapeDrivesApi.md +730 -0
  106. data/docs/TapeLibrariesApi.md +403 -0
  107. data/docs/TapeLibrary.md +27 -0
  108. data/docs/TapeLibraryAllOf.md +27 -0
  109. data/docs/TapeLibraryCollection.md +19 -0
  110. data/docs/TapeLibraryDevice.md +37 -0
  111. data/docs/TapeLibraryDeviceCollection.md +17 -0
  112. data/docs/TapeStat.md +115 -0
  113. data/docs/TapeStatCollection.md +19 -0
  114. data/docs/TapesApi.md +959 -0
  115. data/docs/Task.md +55 -0
  116. data/docs/TaskCallback.md +21 -0
  117. data/docs/TaskCallbackCollection.md +19 -0
  118. data/docs/TaskCallbacksApi.md +326 -0
  119. data/docs/TaskCollection.md +19 -0
  120. data/docs/TaskDestinationCollection.md +19 -0
  121. data/docs/TaskDestinationDown.md +25 -0
  122. data/docs/TaskDestinationUp.md +27 -0
  123. data/docs/TaskDestinationsApi.md +328 -0
  124. data/docs/TaskExecution.md +51 -0
  125. data/docs/TaskExecutionCollection.md +19 -0
  126. data/docs/TaskExecutionsApi.md +336 -0
  127. data/docs/TaskMetadataApi.md +326 -0
  128. data/docs/TaskMetadatum.md +21 -0
  129. data/docs/TaskMetadatumCollection.md +19 -0
  130. data/docs/TaskOption.md +21 -0
  131. data/docs/TaskOptionCollection.md +19 -0
  132. data/docs/TaskOptionsApi.md +326 -0
  133. data/docs/TaskSchedule.md +34 -0
  134. data/docs/TaskScheduleCollection.md +19 -0
  135. data/docs/TaskSchedulesApi.md +322 -0
  136. data/docs/TaskSourceCollection.md +19 -0
  137. data/docs/TaskSourceDown.md +29 -0
  138. data/docs/TaskSourceUp.md +33 -0
  139. data/docs/TaskSourcesApi.md +330 -0
  140. data/docs/TasksApi.md +846 -0
  141. data/docs/TooLong.md +17 -0
  142. data/docs/TooLongAllOf.md +17 -0
  143. data/docs/TooShort.md +17 -0
  144. data/docs/TooShortAllOf.md +17 -0
  145. data/docs/TypeToSecondaryFacets.md +25 -0
  146. data/docs/UsersApi.md +418 -0
  147. data/git_push.sh +58 -0
  148. data/lib/nodeum_sdk.rb +180 -0
  149. data/lib/nodeum_sdk/api/cloud_buckets_api.rb +1026 -0
  150. data/lib/nodeum_sdk/api/cloud_connectors_api.rb +491 -0
  151. data/lib/nodeum_sdk/api/containers_api.rb +736 -0
  152. data/lib/nodeum_sdk/api/files_api.rb +2418 -0
  153. data/lib/nodeum_sdk/api/mounts_api.rb +78 -0
  154. data/lib/nodeum_sdk/api/nas_api.rb +361 -0
  155. data/lib/nodeum_sdk/api/nas_shares_api.rb +1305 -0
  156. data/lib/nodeum_sdk/api/pools_api.rb +876 -0
  157. data/lib/nodeum_sdk/api/statistics_api.rb +418 -0
  158. data/lib/nodeum_sdk/api/systems_api.rb +215 -0
  159. data/lib/nodeum_sdk/api/tape_drives_api.rb +858 -0
  160. data/lib/nodeum_sdk/api/tape_libraries_api.rb +457 -0
  161. data/lib/nodeum_sdk/api/tapes_api.rb +1104 -0
  162. data/lib/nodeum_sdk/api/task_callbacks_api.rb +382 -0
  163. data/lib/nodeum_sdk/api/task_destinations_api.rb +385 -0
  164. data/lib/nodeum_sdk/api/task_executions_api.rb +399 -0
  165. data/lib/nodeum_sdk/api/task_metadata_api.rb +382 -0
  166. data/lib/nodeum_sdk/api/task_options_api.rb +382 -0
  167. data/lib/nodeum_sdk/api/task_schedules_api.rb +364 -0
  168. data/lib/nodeum_sdk/api/task_sources_api.rb +388 -0
  169. data/lib/nodeum_sdk/api/tasks_api.rb +951 -0
  170. data/lib/nodeum_sdk/api/users_api.rb +452 -0
  171. data/lib/nodeum_sdk/api_client.rb +386 -0
  172. data/lib/nodeum_sdk/api_error.rb +57 -0
  173. data/lib/nodeum_sdk/configuration.rb +255 -0
  174. data/lib/nodeum_sdk/models/active_job_status.rb +267 -0
  175. data/lib/nodeum_sdk/models/api_key.rb +224 -0
  176. data/lib/nodeum_sdk/models/api_key_collection.rb +217 -0
  177. data/lib/nodeum_sdk/models/api_key_full.rb +220 -0
  178. data/lib/nodeum_sdk/models/api_key_full_all_of.rb +208 -0
  179. data/lib/nodeum_sdk/models/api_key_scope.rb +215 -0
  180. data/lib/nodeum_sdk/models/attribute_error.rb +216 -0
  181. data/lib/nodeum_sdk/models/blank.rb +209 -0
  182. data/lib/nodeum_sdk/models/by_date_facet.rb +295 -0
  183. data/lib/nodeum_sdk/models/by_date_facet_bucket.rb +218 -0
  184. data/lib/nodeum_sdk/models/by_date_facet_bucket_all_of.rb +206 -0
  185. data/lib/nodeum_sdk/models/by_date_facet_buckets.rb +208 -0
  186. data/lib/nodeum_sdk/models/by_file_extension_facet.rb +218 -0
  187. data/lib/nodeum_sdk/models/by_file_extension_facet_all_of.rb +206 -0
  188. data/lib/nodeum_sdk/models/by_group_owner_facet.rb +218 -0
  189. data/lib/nodeum_sdk/models/by_group_owner_facet_all_of.rb +206 -0
  190. data/lib/nodeum_sdk/models/by_primary_facet.rb +218 -0
  191. data/lib/nodeum_sdk/models/by_primary_facet_all_of.rb +206 -0
  192. data/lib/nodeum_sdk/models/by_secondary_bucket.rb +218 -0
  193. data/lib/nodeum_sdk/models/by_secondary_bucket_all_of.rb +206 -0
  194. data/lib/nodeum_sdk/models/by_secondary_buckets.rb +208 -0
  195. data/lib/nodeum_sdk/models/by_secondary_facet.rb +268 -0
  196. data/lib/nodeum_sdk/models/by_secondary_type_facet.rb +218 -0
  197. data/lib/nodeum_sdk/models/by_secondary_type_facet_all_of.rb +206 -0
  198. data/lib/nodeum_sdk/models/by_size_facet.rb +295 -0
  199. data/lib/nodeum_sdk/models/by_user_owner_facet.rb +218 -0
  200. data/lib/nodeum_sdk/models/by_user_owner_facet_all_of.rb +206 -0
  201. data/lib/nodeum_sdk/models/cloud_bucket.rb +269 -0
  202. data/lib/nodeum_sdk/models/cloud_bucket_collection.rb +217 -0
  203. data/lib/nodeum_sdk/models/cloud_bucket_simple_collection.rb +208 -0
  204. data/lib/nodeum_sdk/models/cloud_connector.rb +303 -0
  205. data/lib/nodeum_sdk/models/cloud_connector_collection.rb +217 -0
  206. data/lib/nodeum_sdk/models/container.rb +321 -0
  207. data/lib/nodeum_sdk/models/container_collection.rb +217 -0
  208. data/lib/nodeum_sdk/models/container_privilege.rb +279 -0
  209. data/lib/nodeum_sdk/models/container_privilege_collection.rb +217 -0
  210. data/lib/nodeum_sdk/models/date_to_file_facets.rb +269 -0
  211. data/lib/nodeum_sdk/models/error.rb +221 -0
  212. data/lib/nodeum_sdk/models/file_facet.rb +215 -0
  213. data/lib/nodeum_sdk/models/frozen.rb +209 -0
  214. data/lib/nodeum_sdk/models/greater_than.rb +230 -0
  215. data/lib/nodeum_sdk/models/greater_than_all_of.rb +217 -0
  216. data/lib/nodeum_sdk/models/greater_than_or_equal_to.rb +230 -0
  217. data/lib/nodeum_sdk/models/import_file.rb +339 -0
  218. data/lib/nodeum_sdk/models/import_file_collection.rb +217 -0
  219. data/lib/nodeum_sdk/models/import_file_with_path.rb +356 -0
  220. data/lib/nodeum_sdk/models/invalid.rb +220 -0
  221. data/lib/nodeum_sdk/models/less_than.rb +230 -0
  222. data/lib/nodeum_sdk/models/less_than_all_of.rb +217 -0
  223. data/lib/nodeum_sdk/models/less_than_or_equal_to.rb +230 -0
  224. data/lib/nodeum_sdk/models/mount_collection.rb +208 -0
  225. data/lib/nodeum_sdk/models/mount_info.rb +420 -0
  226. data/lib/nodeum_sdk/models/mount_notification.rb +249 -0
  227. data/lib/nodeum_sdk/models/mount_status.rb +224 -0
  228. data/lib/nodeum_sdk/models/nas.rb +285 -0
  229. data/lib/nodeum_sdk/models/nas_collection.rb +217 -0
  230. data/lib/nodeum_sdk/models/nas_share.rb +287 -0
  231. data/lib/nodeum_sdk/models/nas_share_collection.rb +217 -0
  232. data/lib/nodeum_sdk/models/nodeum_file.rb +339 -0
  233. data/lib/nodeum_sdk/models/nodeum_file_collection.rb +217 -0
  234. data/lib/nodeum_sdk/models/nodeum_file_with_path.rb +240 -0
  235. data/lib/nodeum_sdk/models/nodeum_file_with_path_all_of.rb +206 -0
  236. data/lib/nodeum_sdk/models/occurrence_less_than.rb +230 -0
  237. data/lib/nodeum_sdk/models/occurrence_less_than_all_of.rb +217 -0
  238. data/lib/nodeum_sdk/models/occurrence_less_than_or_equal_to.rb +230 -0
  239. data/lib/nodeum_sdk/models/on_tapes_file.rb +278 -0
  240. data/lib/nodeum_sdk/models/on_tapes_file_collection.rb +217 -0
  241. data/lib/nodeum_sdk/models/pool.rb +297 -0
  242. data/lib/nodeum_sdk/models/pool_collection.rb +217 -0
  243. data/lib/nodeum_sdk/models/pool_up.rb +264 -0
  244. data/lib/nodeum_sdk/models/pool_up_all_of.rb +230 -0
  245. data/lib/nodeum_sdk/models/primary_scan.rb +276 -0
  246. data/lib/nodeum_sdk/models/quota_on_cache.rb +209 -0
  247. data/lib/nodeum_sdk/models/reset.rb +209 -0
  248. data/lib/nodeum_sdk/models/reset_sections.rb +265 -0
  249. data/lib/nodeum_sdk/models/size_to_date_facets.rb +269 -0
  250. data/lib/nodeum_sdk/models/system_group.rb +226 -0
  251. data/lib/nodeum_sdk/models/system_group_collection.rb +217 -0
  252. data/lib/nodeum_sdk/models/system_user.rb +233 -0
  253. data/lib/nodeum_sdk/models/system_user_collection.rb +217 -0
  254. data/lib/nodeum_sdk/models/taken.rb +220 -0
  255. data/lib/nodeum_sdk/models/taken_all_of.rb +207 -0
  256. data/lib/nodeum_sdk/models/tape.rb +456 -0
  257. data/lib/nodeum_sdk/models/tape_collection.rb +217 -0
  258. data/lib/nodeum_sdk/models/tape_drive.rb +423 -0
  259. data/lib/nodeum_sdk/models/tape_drive_all_of.rb +411 -0
  260. data/lib/nodeum_sdk/models/tape_drive_collection.rb +217 -0
  261. data/lib/nodeum_sdk/models/tape_drive_device.rb +261 -0
  262. data/lib/nodeum_sdk/models/tape_drive_device_collection.rb +208 -0
  263. data/lib/nodeum_sdk/models/tape_library.rb +297 -0
  264. data/lib/nodeum_sdk/models/tape_library_all_of.rb +285 -0
  265. data/lib/nodeum_sdk/models/tape_library_collection.rb +217 -0
  266. data/lib/nodeum_sdk/models/tape_library_device.rb +330 -0
  267. data/lib/nodeum_sdk/models/tape_library_device_collection.rb +208 -0
  268. data/lib/nodeum_sdk/models/tape_stat.rb +647 -0
  269. data/lib/nodeum_sdk/models/tape_stat_collection.rb +217 -0
  270. data/lib/nodeum_sdk/models/task.rb +483 -0
  271. data/lib/nodeum_sdk/models/task_callback.rb +258 -0
  272. data/lib/nodeum_sdk/models/task_callback_collection.rb +217 -0
  273. data/lib/nodeum_sdk/models/task_collection.rb +217 -0
  274. data/lib/nodeum_sdk/models/task_destination_collection.rb +217 -0
  275. data/lib/nodeum_sdk/models/task_destination_down.rb +242 -0
  276. data/lib/nodeum_sdk/models/task_destination_up.rb +251 -0
  277. data/lib/nodeum_sdk/models/task_execution.rb +441 -0
  278. data/lib/nodeum_sdk/models/task_execution_collection.rb +217 -0
  279. data/lib/nodeum_sdk/models/task_metadatum.rb +224 -0
  280. data/lib/nodeum_sdk/models/task_metadatum_collection.rb +217 -0
  281. data/lib/nodeum_sdk/models/task_option.rb +258 -0
  282. data/lib/nodeum_sdk/models/task_option_collection.rb +217 -0
  283. data/lib/nodeum_sdk/models/task_schedule.rb +278 -0
  284. data/lib/nodeum_sdk/models/task_schedule_collection.rb +217 -0
  285. data/lib/nodeum_sdk/models/task_source_collection.rb +217 -0
  286. data/lib/nodeum_sdk/models/task_source_down.rb +262 -0
  287. data/lib/nodeum_sdk/models/task_source_up.rb +280 -0
  288. data/lib/nodeum_sdk/models/too_long.rb +220 -0
  289. data/lib/nodeum_sdk/models/too_long_all_of.rb +207 -0
  290. data/lib/nodeum_sdk/models/too_short.rb +220 -0
  291. data/lib/nodeum_sdk/models/too_short_all_of.rb +207 -0
  292. data/lib/nodeum_sdk/models/type_to_secondary_facets.rb +242 -0
  293. data/lib/nodeum_sdk/version.rb +15 -0
  294. data/nodeum_sdk.gemspec +39 -0
  295. data/spec/api/cloud_buckets_api_spec.rb +237 -0
  296. data/spec/api/cloud_connectors_api_spec.rb +129 -0
  297. data/spec/api/containers_api_spec.rb +180 -0
  298. data/spec/api/files_api_spec.rb +570 -0
  299. data/spec/api/mounts_api_spec.rb +46 -0
  300. data/spec/api/nas_api_spec.rb +104 -0
  301. data/spec/api/nas_shares_api_spec.rb +292 -0
  302. data/spec/api/pools_api_spec.rb +203 -0
  303. data/spec/api/statistics_api_spec.rb +113 -0
  304. data/spec/api/systems_api_spec.rb +70 -0
  305. data/spec/api/tape_drives_api_spec.rb +220 -0
  306. data/spec/api/tape_libraries_api_spec.rb +127 -0
  307. data/spec/api/tapes_api_spec.rb +279 -0
  308. data/spec/api/task_callbacks_api_spec.rb +106 -0
  309. data/spec/api/task_destinations_api_spec.rb +107 -0
  310. data/spec/api/task_executions_api_spec.rb +127 -0
  311. data/spec/api/task_metadata_api_spec.rb +106 -0
  312. data/spec/api/task_options_api_spec.rb +106 -0
  313. data/spec/api/task_schedules_api_spec.rb +104 -0
  314. data/spec/api/task_sources_api_spec.rb +108 -0
  315. data/spec/api/tasks_api_spec.rb +226 -0
  316. data/spec/api/users_api_spec.rb +119 -0
  317. data/spec/api_client_spec.rb +226 -0
  318. data/spec/configuration_spec.rb +42 -0
  319. data/spec/models/active_job_status_spec.rb +63 -0
  320. data/spec/models/api_key_collection_spec.rb +47 -0
  321. data/spec/models/api_key_full_all_of_spec.rb +41 -0
  322. data/spec/models/api_key_full_spec.rb +41 -0
  323. data/spec/models/api_key_scope_spec.rb +47 -0
  324. data/spec/models/api_key_spec.rb +53 -0
  325. data/spec/models/attribute_error_spec.rb +41 -0
  326. data/spec/models/blank_spec.rb +35 -0
  327. data/spec/models/by_date_facet_bucket_all_of_spec.rb +41 -0
  328. data/spec/models/by_date_facet_bucket_spec.rb +41 -0
  329. data/spec/models/by_date_facet_buckets_spec.rb +41 -0
  330. data/spec/models/by_date_facet_spec.rb +95 -0
  331. data/spec/models/by_file_extension_facet_all_of_spec.rb +41 -0
  332. data/spec/models/by_file_extension_facet_spec.rb +41 -0
  333. data/spec/models/by_group_owner_facet_all_of_spec.rb +41 -0
  334. data/spec/models/by_group_owner_facet_spec.rb +41 -0
  335. data/spec/models/by_primary_facet_all_of_spec.rb +41 -0
  336. data/spec/models/by_primary_facet_spec.rb +41 -0
  337. data/spec/models/by_secondary_bucket_all_of_spec.rb +41 -0
  338. data/spec/models/by_secondary_bucket_spec.rb +41 -0
  339. data/spec/models/by_secondary_buckets_spec.rb +41 -0
  340. data/spec/models/by_secondary_facet_spec.rb +77 -0
  341. data/spec/models/by_secondary_type_facet_all_of_spec.rb +41 -0
  342. data/spec/models/by_secondary_type_facet_spec.rb +41 -0
  343. data/spec/models/by_size_facet_spec.rb +95 -0
  344. data/spec/models/by_user_owner_facet_all_of_spec.rb +41 -0
  345. data/spec/models/by_user_owner_facet_spec.rb +41 -0
  346. data/spec/models/cloud_bucket_collection_spec.rb +47 -0
  347. data/spec/models/cloud_bucket_simple_collection_spec.rb +41 -0
  348. data/spec/models/cloud_bucket_spec.rb +83 -0
  349. data/spec/models/cloud_connector_collection_spec.rb +47 -0
  350. data/spec/models/cloud_connector_spec.rb +87 -0
  351. data/spec/models/container_collection_spec.rb +47 -0
  352. data/spec/models/container_privilege_collection_spec.rb +47 -0
  353. data/spec/models/container_privilege_spec.rb +67 -0
  354. data/spec/models/container_spec.rb +99 -0
  355. data/spec/models/date_to_file_facets_spec.rb +83 -0
  356. data/spec/models/error_spec.rb +47 -0
  357. data/spec/models/file_facet_spec.rb +47 -0
  358. data/spec/models/frozen_spec.rb +35 -0
  359. data/spec/models/greater_than_all_of_spec.rb +47 -0
  360. data/spec/models/greater_than_or_equal_to_spec.rb +47 -0
  361. data/spec/models/greater_than_spec.rb +47 -0
  362. data/spec/models/import_file_collection_spec.rb +47 -0
  363. data/spec/models/import_file_spec.rb +111 -0
  364. data/spec/models/import_file_with_path_spec.rb +117 -0
  365. data/spec/models/invalid_spec.rb +41 -0
  366. data/spec/models/less_than_all_of_spec.rb +47 -0
  367. data/spec/models/less_than_or_equal_to_spec.rb +47 -0
  368. data/spec/models/less_than_spec.rb +47 -0
  369. data/spec/models/mount_collection_spec.rb +41 -0
  370. data/spec/models/mount_info_spec.rb +165 -0
  371. data/spec/models/mount_notification_spec.rb +51 -0
  372. data/spec/models/mount_status_spec.rb +53 -0
  373. data/spec/models/nas_collection_spec.rb +47 -0
  374. data/spec/models/nas_share_collection_spec.rb +47 -0
  375. data/spec/models/nas_share_spec.rb +95 -0
  376. data/spec/models/nas_spec.rb +75 -0
  377. data/spec/models/nodeum_file_collection_spec.rb +47 -0
  378. data/spec/models/nodeum_file_spec.rb +111 -0
  379. data/spec/models/nodeum_file_with_path_all_of_spec.rb +41 -0
  380. data/spec/models/nodeum_file_with_path_spec.rb +41 -0
  381. data/spec/models/occurrence_less_than_all_of_spec.rb +47 -0
  382. data/spec/models/occurrence_less_than_or_equal_to_spec.rb +47 -0
  383. data/spec/models/occurrence_less_than_spec.rb +47 -0
  384. data/spec/models/on_tapes_file_collection_spec.rb +47 -0
  385. data/spec/models/on_tapes_file_spec.rb +69 -0
  386. data/spec/models/pool_collection_spec.rb +47 -0
  387. data/spec/models/pool_spec.rb +79 -0
  388. data/spec/models/pool_up_all_of_spec.rb +53 -0
  389. data/spec/models/pool_up_spec.rb +53 -0
  390. data/spec/models/primary_scan_spec.rb +69 -0
  391. data/spec/models/quota_on_cache_spec.rb +35 -0
  392. data/spec/models/reset_sections_spec.rb +57 -0
  393. data/spec/models/reset_spec.rb +41 -0
  394. data/spec/models/size_to_date_facets_spec.rb +83 -0
  395. data/spec/models/system_group_collection_spec.rb +47 -0
  396. data/spec/models/system_group_spec.rb +53 -0
  397. data/spec/models/system_user_collection_spec.rb +47 -0
  398. data/spec/models/system_user_spec.rb +59 -0
  399. data/spec/models/taken_all_of_spec.rb +41 -0
  400. data/spec/models/taken_spec.rb +41 -0
  401. data/spec/models/tape_collection_spec.rb +47 -0
  402. data/spec/models/tape_drive_all_of_spec.rb +159 -0
  403. data/spec/models/tape_drive_collection_spec.rb +47 -0
  404. data/spec/models/tape_drive_device_collection_spec.rb +41 -0
  405. data/spec/models/tape_drive_device_spec.rb +77 -0
  406. data/spec/models/tape_drive_spec.rb +159 -0
  407. data/spec/models/tape_library_all_of_spec.rb +75 -0
  408. data/spec/models/tape_library_collection_spec.rb +47 -0
  409. data/spec/models/tape_library_device_collection_spec.rb +41 -0
  410. data/spec/models/tape_library_device_spec.rb +105 -0
  411. data/spec/models/tape_library_spec.rb +75 -0
  412. data/spec/models/tape_spec.rb +189 -0
  413. data/spec/models/tape_stat_collection_spec.rb +47 -0
  414. data/spec/models/tape_stat_spec.rb +335 -0
  415. data/spec/models/task_callback_collection_spec.rb +47 -0
  416. data/spec/models/task_callback_spec.rb +57 -0
  417. data/spec/models/task_collection_spec.rb +47 -0
  418. data/spec/models/task_destination_collection_spec.rb +47 -0
  419. data/spec/models/task_destination_down_spec.rb +65 -0
  420. data/spec/models/task_destination_up_spec.rb +71 -0
  421. data/spec/models/task_execution_collection_spec.rb +47 -0
  422. data/spec/models/task_execution_spec.rb +163 -0
  423. data/spec/models/task_metadatum_collection_spec.rb +47 -0
  424. data/spec/models/task_metadatum_spec.rb +53 -0
  425. data/spec/models/task_option_collection_spec.rb +47 -0
  426. data/spec/models/task_option_spec.rb +57 -0
  427. data/spec/models/task_schedule_collection_spec.rb +47 -0
  428. data/spec/models/task_schedule_spec.rb +89 -0
  429. data/spec/models/task_source_collection_spec.rb +47 -0
  430. data/spec/models/task_source_down_spec.rb +77 -0
  431. data/spec/models/task_source_up_spec.rb +89 -0
  432. data/spec/models/task_spec.rb +183 -0
  433. data/spec/models/too_long_all_of_spec.rb +41 -0
  434. data/spec/models/too_long_spec.rb +41 -0
  435. data/spec/models/too_short_all_of_spec.rb +41 -0
  436. data/spec/models/too_short_spec.rb +41 -0
  437. data/spec/models/type_to_secondary_facets_spec.rb +65 -0
  438. data/spec/spec_helper.rb +111 -0
  439. metadata +718 -0
@@ -0,0 +1,208 @@
1
+ =begin
2
+ #Nodeum API
3
+
4
+ #The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http://nodeumhostname/api/ The current production version of the API is v1. **REST** The Nodeum API is a RESTful API. This means that the API is designed to allow you to get, create, update, & delete objects with the HTTP verbs GET, POST, PUT, PATCH, & DELETE. **JSON** The Nodeum API speaks exclusively in JSON. This means that you should always set the Content-Type header to application/json to ensure that your requests are properly accepted and processed by the API. **Authentication** All API calls require user-password authentication. **Cross-Origin Resource Sharing** The Nodeum API supports CORS for communicating from Javascript for these endpoints. You will need to specify an Origin URI when creating your application to allow for CORS to be whitelisted for your domain. **Pagination** Some endpoints such as File Listing return a potentially lengthy array of objects. In order to keep the response sizes manageable the API will take advantage of pagination. Pagination is a mechanism for returning a subset of the results for a request and allowing for subsequent requests to “page” through the rest of the results until the end is reached. Paginated endpoints follow a standard interface that accepts two query parameters, limit and offset, and return a payload that follows a standard form. These parameters names and their behavior are borrowed from SQL LIMIT and OFFSET keywords. **Versioning** The Nodeum API is constantly being worked on to add features, make improvements, and fix bugs. This means that you should expect changes to be introduced and documented. However, there are some changes or additions that are considered backwards-compatible and your applications should be flexible enough to handle them. These include: - Adding new endpoints to the API - Adding new attributes to the response of an existing endpoint - Changing the order of attributes of responses (JSON by definition is an object of unordered key/value pairs) **Filter parameters** When browsing a list of items, multiple filter parameters may be applied. Some operators can be added to the value as a prefix: - `=` value is equal. Default operator, may be omitted - `!=` value is different - `>` greater than - `>=` greater than or equal - `<` lower than - `>=` lower than or equal - `><` included in list, items should be separated by `|` - `!><` not included in list, items should be separated by `|` - `~` pattern matching, may include `%` (any characters) and `_` (one character) - `!~` pattern not matching, may include `%` (any characters) and `_` (one character)
5
+
6
+ The version of the OpenAPI document: 2.1.0
7
+ Contact: info@nodeum.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Nodeum
16
+ class TapeLibraryDeviceCollection
17
+ attr_accessor :tape_libraries
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'tape_libraries' => :'tape_libraries'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'tape_libraries' => :'Array<TapeLibraryDevice>'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Nodeum::TapeLibraryDeviceCollection` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Nodeum::TapeLibraryDeviceCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'tape_libraries')
55
+ if (value = attributes[:'tape_libraries']).is_a?(Array)
56
+ self.tape_libraries = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ invalid_properties
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ def valid?
71
+ true
72
+ end
73
+
74
+ # Checks equality by comparing each attribute.
75
+ # @param [Object] Object to be compared
76
+ def ==(o)
77
+ return true if self.equal?(o)
78
+ self.class == o.class &&
79
+ tape_libraries == o.tape_libraries
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Integer] Hash code
90
+ def hash
91
+ [tape_libraries].hash
92
+ end
93
+
94
+ # Builds the object from hash
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ # @return [Object] Returns the model itself
97
+ def self.build_from_hash(attributes)
98
+ new.build_from_hash(attributes)
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def build_from_hash(attributes)
105
+ return nil unless attributes.is_a?(Hash)
106
+ self.class.openapi_types.each_pair do |key, type|
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the attribute
109
+ # is documented as an array but the input is not
110
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
111
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ end
113
+ elsif !attributes[self.class.attribute_map[key]].nil?
114
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ end
117
+
118
+ self
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def _deserialize(type, value)
126
+ case type.to_sym
127
+ when :DateTime
128
+ DateTime.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :Boolean
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ Nodeum.const_get(type).build_from_hash(value)
159
+ end
160
+ end
161
+
162
+ # Returns the string representation of the object
163
+ # @return [String] String presentation of the object
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_hash (backward compatibility)
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Outputs non-array value in the form of hash
191
+ # For object, use to_hash. Otherwise, just return the value
192
+ # @param [Object] value Any valid value
193
+ # @return [Hash] Returns the value in the form of hash
194
+ def _to_hash(value)
195
+ if value.is_a?(Array)
196
+ value.compact.map { |v| _to_hash(v) }
197
+ elsif value.is_a?(Hash)
198
+ {}.tap do |hash|
199
+ value.each { |k, v| hash[k] = _to_hash(v) }
200
+ end
201
+ elsif value.respond_to? :to_hash
202
+ value.to_hash
203
+ else
204
+ value
205
+ end
206
+ end
207
+ end
208
+ end
@@ -0,0 +1,647 @@
1
+ =begin
2
+ #Nodeum API
3
+
4
+ #The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http://nodeumhostname/api/ The current production version of the API is v1. **REST** The Nodeum API is a RESTful API. This means that the API is designed to allow you to get, create, update, & delete objects with the HTTP verbs GET, POST, PUT, PATCH, & DELETE. **JSON** The Nodeum API speaks exclusively in JSON. This means that you should always set the Content-Type header to application/json to ensure that your requests are properly accepted and processed by the API. **Authentication** All API calls require user-password authentication. **Cross-Origin Resource Sharing** The Nodeum API supports CORS for communicating from Javascript for these endpoints. You will need to specify an Origin URI when creating your application to allow for CORS to be whitelisted for your domain. **Pagination** Some endpoints such as File Listing return a potentially lengthy array of objects. In order to keep the response sizes manageable the API will take advantage of pagination. Pagination is a mechanism for returning a subset of the results for a request and allowing for subsequent requests to “page” through the rest of the results until the end is reached. Paginated endpoints follow a standard interface that accepts two query parameters, limit and offset, and return a payload that follows a standard form. These parameters names and their behavior are borrowed from SQL LIMIT and OFFSET keywords. **Versioning** The Nodeum API is constantly being worked on to add features, make improvements, and fix bugs. This means that you should expect changes to be introduced and documented. However, there are some changes or additions that are considered backwards-compatible and your applications should be flexible enough to handle them. These include: - Adding new endpoints to the API - Adding new attributes to the response of an existing endpoint - Changing the order of attributes of responses (JSON by definition is an object of unordered key/value pairs) **Filter parameters** When browsing a list of items, multiple filter parameters may be applied. Some operators can be added to the value as a prefix: - `=` value is equal. Default operator, may be omitted - `!=` value is different - `>` greater than - `>=` greater than or equal - `<` lower than - `>=` lower than or equal - `><` included in list, items should be separated by `|` - `!><` not included in list, items should be separated by `|` - `~` pattern matching, may include `%` (any characters) and `_` (one character) - `!~` pattern not matching, may include `%` (any characters) and `_` (one character)
5
+
6
+ The version of the OpenAPI document: 2.1.0
7
+ Contact: info@nodeum.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Nodeum
16
+ class TapeStat
17
+ attr_accessor :log_time
18
+
19
+ attr_accessor :barcode
20
+
21
+ attr_accessor :mounts
22
+
23
+ attr_accessor :datasets_written
24
+
25
+ attr_accessor :datasets_read
26
+
27
+ attr_accessor :recovered_write_data_errors
28
+
29
+ attr_accessor :unrecovered_write_data_errors
30
+
31
+ attr_accessor :write_servo_errors
32
+
33
+ attr_accessor :unrecovered_write_servo_errors
34
+
35
+ attr_accessor :recovered_read_errors
36
+
37
+ attr_accessor :unrecovered_read_errors
38
+
39
+ attr_accessor :last_mount_unrecovered_write_errors
40
+
41
+ attr_accessor :last_mount_unrecovered_read_errors
42
+
43
+ attr_accessor :last_mount_mbytes_written
44
+
45
+ attr_accessor :last_mount_mbytes_read
46
+
47
+ attr_accessor :lifetime_mbytes_written
48
+
49
+ attr_accessor :lifetime_mbytes_read
50
+
51
+ attr_accessor :last_load_write_compression_ratio
52
+
53
+ attr_accessor :last_load_read_compression_ratio
54
+
55
+ attr_accessor :medium_mount_time
56
+
57
+ attr_accessor :medium_ready_time
58
+
59
+ attr_accessor :total_native_capacity
60
+
61
+ attr_accessor :total_used_native_capacity
62
+
63
+ attr_accessor :write_protect
64
+
65
+ attr_accessor :worm
66
+
67
+ attr_accessor :beginning_of_medium_passes
68
+
69
+ attr_accessor :middle_of_tape_passes
70
+
71
+ attr_accessor :read_compression_ratio
72
+
73
+ attr_accessor :write_compression_ratio
74
+
75
+ attr_accessor :mbytes_transferred_to_app_client
76
+
77
+ attr_accessor :bytes_transferred_to_app_client
78
+
79
+ attr_accessor :mbytes_read_from_medium
80
+
81
+ attr_accessor :bytes_read_from_medium
82
+
83
+ attr_accessor :mbytes_transferred_from_app_client
84
+
85
+ attr_accessor :bytes_transferred_from_app_client
86
+
87
+ attr_accessor :mbytes_written_to_medium
88
+
89
+ attr_accessor :bytes_written_to_medium
90
+
91
+ attr_accessor :data_compression_enabled
92
+
93
+ attr_accessor :write_retries
94
+
95
+ attr_accessor :write_perms
96
+
97
+ attr_accessor :suspended_writes
98
+
99
+ attr_accessor :fatal_suspended_writes
100
+
101
+ attr_accessor :read_retries
102
+
103
+ attr_accessor :read_perms
104
+
105
+ attr_accessor :suspended_reads
106
+
107
+ attr_accessor :fatal_suspended_reads
108
+
109
+ attr_accessor :partition_0_remaining_capacity
110
+
111
+ attr_accessor :partition_1_remaining_capacity
112
+
113
+ attr_accessor :partition_0_maximum_capacity
114
+
115
+ attr_accessor :partition_1_maximum_capacity
116
+
117
+ # Attribute mapping from ruby-style variable name to JSON key.
118
+ def self.attribute_map
119
+ {
120
+ :'log_time' => :'log_time',
121
+ :'barcode' => :'barcode',
122
+ :'mounts' => :'mounts',
123
+ :'datasets_written' => :'datasets_written',
124
+ :'datasets_read' => :'datasets_read',
125
+ :'recovered_write_data_errors' => :'recovered_write_data_errors',
126
+ :'unrecovered_write_data_errors' => :'unrecovered_write_data_errors',
127
+ :'write_servo_errors' => :'write_servo_errors',
128
+ :'unrecovered_write_servo_errors' => :'unrecovered_write_servo_errors',
129
+ :'recovered_read_errors' => :'recovered_read_errors',
130
+ :'unrecovered_read_errors' => :'unrecovered_read_errors',
131
+ :'last_mount_unrecovered_write_errors' => :'last_mount_unrecovered_write_errors',
132
+ :'last_mount_unrecovered_read_errors' => :'last_mount_unrecovered_read_errors',
133
+ :'last_mount_mbytes_written' => :'last_mount_mbytes_written',
134
+ :'last_mount_mbytes_read' => :'last_mount_mbytes_read',
135
+ :'lifetime_mbytes_written' => :'lifetime_mbytes_written',
136
+ :'lifetime_mbytes_read' => :'lifetime_mbytes_read',
137
+ :'last_load_write_compression_ratio' => :'last_load_write_compression_ratio',
138
+ :'last_load_read_compression_ratio' => :'last_load_read_compression_ratio',
139
+ :'medium_mount_time' => :'medium_mount_time',
140
+ :'medium_ready_time' => :'medium_ready_time',
141
+ :'total_native_capacity' => :'total_native_capacity',
142
+ :'total_used_native_capacity' => :'total_used_native_capacity',
143
+ :'write_protect' => :'write_protect',
144
+ :'worm' => :'worm',
145
+ :'beginning_of_medium_passes' => :'beginning_of_medium_passes',
146
+ :'middle_of_tape_passes' => :'middle_of_tape_passes',
147
+ :'read_compression_ratio' => :'read_compression_ratio',
148
+ :'write_compression_ratio' => :'write_compression_ratio',
149
+ :'mbytes_transferred_to_app_client' => :'mbytes_transferred_to_app_client',
150
+ :'bytes_transferred_to_app_client' => :'bytes_transferred_to_app_client',
151
+ :'mbytes_read_from_medium' => :'mbytes_read_from_medium',
152
+ :'bytes_read_from_medium' => :'bytes_read_from_medium',
153
+ :'mbytes_transferred_from_app_client' => :'mbytes_transferred_from_app_client',
154
+ :'bytes_transferred_from_app_client' => :'bytes_transferred_from_app_client',
155
+ :'mbytes_written_to_medium' => :'mbytes_written_to_medium',
156
+ :'bytes_written_to_medium' => :'bytes_written_to_medium',
157
+ :'data_compression_enabled' => :'data_compression_enabled',
158
+ :'write_retries' => :'write_retries',
159
+ :'write_perms' => :'write_perms',
160
+ :'suspended_writes' => :'suspended_writes',
161
+ :'fatal_suspended_writes' => :'fatal_suspended_writes',
162
+ :'read_retries' => :'read_retries',
163
+ :'read_perms' => :'read_perms',
164
+ :'suspended_reads' => :'suspended_reads',
165
+ :'fatal_suspended_reads' => :'fatal_suspended_reads',
166
+ :'partition_0_remaining_capacity' => :'partition_0_remaining_capacity',
167
+ :'partition_1_remaining_capacity' => :'partition_1_remaining_capacity',
168
+ :'partition_0_maximum_capacity' => :'partition_0_maximum_capacity',
169
+ :'partition_1_maximum_capacity' => :'partition_1_maximum_capacity'
170
+ }
171
+ end
172
+
173
+ # Attribute type mapping.
174
+ def self.openapi_types
175
+ {
176
+ :'log_time' => :'String',
177
+ :'barcode' => :'String',
178
+ :'mounts' => :'Integer',
179
+ :'datasets_written' => :'Integer',
180
+ :'datasets_read' => :'Integer',
181
+ :'recovered_write_data_errors' => :'Integer',
182
+ :'unrecovered_write_data_errors' => :'Integer',
183
+ :'write_servo_errors' => :'Integer',
184
+ :'unrecovered_write_servo_errors' => :'Integer',
185
+ :'recovered_read_errors' => :'Integer',
186
+ :'unrecovered_read_errors' => :'Integer',
187
+ :'last_mount_unrecovered_write_errors' => :'Integer',
188
+ :'last_mount_unrecovered_read_errors' => :'Integer',
189
+ :'last_mount_mbytes_written' => :'Integer',
190
+ :'last_mount_mbytes_read' => :'Integer',
191
+ :'lifetime_mbytes_written' => :'Integer',
192
+ :'lifetime_mbytes_read' => :'Integer',
193
+ :'last_load_write_compression_ratio' => :'Integer',
194
+ :'last_load_read_compression_ratio' => :'Integer',
195
+ :'medium_mount_time' => :'Integer',
196
+ :'medium_ready_time' => :'Integer',
197
+ :'total_native_capacity' => :'Integer',
198
+ :'total_used_native_capacity' => :'Integer',
199
+ :'write_protect' => :'Integer',
200
+ :'worm' => :'Integer',
201
+ :'beginning_of_medium_passes' => :'Integer',
202
+ :'middle_of_tape_passes' => :'Integer',
203
+ :'read_compression_ratio' => :'Integer',
204
+ :'write_compression_ratio' => :'Integer',
205
+ :'mbytes_transferred_to_app_client' => :'Integer',
206
+ :'bytes_transferred_to_app_client' => :'Integer',
207
+ :'mbytes_read_from_medium' => :'Integer',
208
+ :'bytes_read_from_medium' => :'Integer',
209
+ :'mbytes_transferred_from_app_client' => :'Integer',
210
+ :'bytes_transferred_from_app_client' => :'Integer',
211
+ :'mbytes_written_to_medium' => :'Integer',
212
+ :'bytes_written_to_medium' => :'Integer',
213
+ :'data_compression_enabled' => :'Integer',
214
+ :'write_retries' => :'Integer',
215
+ :'write_perms' => :'Integer',
216
+ :'suspended_writes' => :'Integer',
217
+ :'fatal_suspended_writes' => :'Integer',
218
+ :'read_retries' => :'Integer',
219
+ :'read_perms' => :'Integer',
220
+ :'suspended_reads' => :'Integer',
221
+ :'fatal_suspended_reads' => :'Integer',
222
+ :'partition_0_remaining_capacity' => :'Integer',
223
+ :'partition_1_remaining_capacity' => :'Integer',
224
+ :'partition_0_maximum_capacity' => :'Integer',
225
+ :'partition_1_maximum_capacity' => :'Integer'
226
+ }
227
+ end
228
+
229
+ # List of attributes with nullable: true
230
+ def self.openapi_nullable
231
+ Set.new([
232
+ ])
233
+ end
234
+
235
+ # Initializes the object
236
+ # @param [Hash] attributes Model attributes in the form of hash
237
+ def initialize(attributes = {})
238
+ if (!attributes.is_a?(Hash))
239
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Nodeum::TapeStat` initialize method"
240
+ end
241
+
242
+ # check to see if the attribute exists and convert string to symbol for hash key
243
+ attributes = attributes.each_with_object({}) { |(k, v), h|
244
+ if (!self.class.attribute_map.key?(k.to_sym))
245
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Nodeum::TapeStat`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
246
+ end
247
+ h[k.to_sym] = v
248
+ }
249
+
250
+ if attributes.key?(:'log_time')
251
+ self.log_time = attributes[:'log_time']
252
+ end
253
+
254
+ if attributes.key?(:'barcode')
255
+ self.barcode = attributes[:'barcode']
256
+ end
257
+
258
+ if attributes.key?(:'mounts')
259
+ self.mounts = attributes[:'mounts']
260
+ end
261
+
262
+ if attributes.key?(:'datasets_written')
263
+ self.datasets_written = attributes[:'datasets_written']
264
+ end
265
+
266
+ if attributes.key?(:'datasets_read')
267
+ self.datasets_read = attributes[:'datasets_read']
268
+ end
269
+
270
+ if attributes.key?(:'recovered_write_data_errors')
271
+ self.recovered_write_data_errors = attributes[:'recovered_write_data_errors']
272
+ end
273
+
274
+ if attributes.key?(:'unrecovered_write_data_errors')
275
+ self.unrecovered_write_data_errors = attributes[:'unrecovered_write_data_errors']
276
+ end
277
+
278
+ if attributes.key?(:'write_servo_errors')
279
+ self.write_servo_errors = attributes[:'write_servo_errors']
280
+ end
281
+
282
+ if attributes.key?(:'unrecovered_write_servo_errors')
283
+ self.unrecovered_write_servo_errors = attributes[:'unrecovered_write_servo_errors']
284
+ end
285
+
286
+ if attributes.key?(:'recovered_read_errors')
287
+ self.recovered_read_errors = attributes[:'recovered_read_errors']
288
+ end
289
+
290
+ if attributes.key?(:'unrecovered_read_errors')
291
+ self.unrecovered_read_errors = attributes[:'unrecovered_read_errors']
292
+ end
293
+
294
+ if attributes.key?(:'last_mount_unrecovered_write_errors')
295
+ self.last_mount_unrecovered_write_errors = attributes[:'last_mount_unrecovered_write_errors']
296
+ end
297
+
298
+ if attributes.key?(:'last_mount_unrecovered_read_errors')
299
+ self.last_mount_unrecovered_read_errors = attributes[:'last_mount_unrecovered_read_errors']
300
+ end
301
+
302
+ if attributes.key?(:'last_mount_mbytes_written')
303
+ self.last_mount_mbytes_written = attributes[:'last_mount_mbytes_written']
304
+ end
305
+
306
+ if attributes.key?(:'last_mount_mbytes_read')
307
+ self.last_mount_mbytes_read = attributes[:'last_mount_mbytes_read']
308
+ end
309
+
310
+ if attributes.key?(:'lifetime_mbytes_written')
311
+ self.lifetime_mbytes_written = attributes[:'lifetime_mbytes_written']
312
+ end
313
+
314
+ if attributes.key?(:'lifetime_mbytes_read')
315
+ self.lifetime_mbytes_read = attributes[:'lifetime_mbytes_read']
316
+ end
317
+
318
+ if attributes.key?(:'last_load_write_compression_ratio')
319
+ self.last_load_write_compression_ratio = attributes[:'last_load_write_compression_ratio']
320
+ end
321
+
322
+ if attributes.key?(:'last_load_read_compression_ratio')
323
+ self.last_load_read_compression_ratio = attributes[:'last_load_read_compression_ratio']
324
+ end
325
+
326
+ if attributes.key?(:'medium_mount_time')
327
+ self.medium_mount_time = attributes[:'medium_mount_time']
328
+ end
329
+
330
+ if attributes.key?(:'medium_ready_time')
331
+ self.medium_ready_time = attributes[:'medium_ready_time']
332
+ end
333
+
334
+ if attributes.key?(:'total_native_capacity')
335
+ self.total_native_capacity = attributes[:'total_native_capacity']
336
+ end
337
+
338
+ if attributes.key?(:'total_used_native_capacity')
339
+ self.total_used_native_capacity = attributes[:'total_used_native_capacity']
340
+ end
341
+
342
+ if attributes.key?(:'write_protect')
343
+ self.write_protect = attributes[:'write_protect']
344
+ end
345
+
346
+ if attributes.key?(:'worm')
347
+ self.worm = attributes[:'worm']
348
+ end
349
+
350
+ if attributes.key?(:'beginning_of_medium_passes')
351
+ self.beginning_of_medium_passes = attributes[:'beginning_of_medium_passes']
352
+ end
353
+
354
+ if attributes.key?(:'middle_of_tape_passes')
355
+ self.middle_of_tape_passes = attributes[:'middle_of_tape_passes']
356
+ end
357
+
358
+ if attributes.key?(:'read_compression_ratio')
359
+ self.read_compression_ratio = attributes[:'read_compression_ratio']
360
+ end
361
+
362
+ if attributes.key?(:'write_compression_ratio')
363
+ self.write_compression_ratio = attributes[:'write_compression_ratio']
364
+ end
365
+
366
+ if attributes.key?(:'mbytes_transferred_to_app_client')
367
+ self.mbytes_transferred_to_app_client = attributes[:'mbytes_transferred_to_app_client']
368
+ end
369
+
370
+ if attributes.key?(:'bytes_transferred_to_app_client')
371
+ self.bytes_transferred_to_app_client = attributes[:'bytes_transferred_to_app_client']
372
+ end
373
+
374
+ if attributes.key?(:'mbytes_read_from_medium')
375
+ self.mbytes_read_from_medium = attributes[:'mbytes_read_from_medium']
376
+ end
377
+
378
+ if attributes.key?(:'bytes_read_from_medium')
379
+ self.bytes_read_from_medium = attributes[:'bytes_read_from_medium']
380
+ end
381
+
382
+ if attributes.key?(:'mbytes_transferred_from_app_client')
383
+ self.mbytes_transferred_from_app_client = attributes[:'mbytes_transferred_from_app_client']
384
+ end
385
+
386
+ if attributes.key?(:'bytes_transferred_from_app_client')
387
+ self.bytes_transferred_from_app_client = attributes[:'bytes_transferred_from_app_client']
388
+ end
389
+
390
+ if attributes.key?(:'mbytes_written_to_medium')
391
+ self.mbytes_written_to_medium = attributes[:'mbytes_written_to_medium']
392
+ end
393
+
394
+ if attributes.key?(:'bytes_written_to_medium')
395
+ self.bytes_written_to_medium = attributes[:'bytes_written_to_medium']
396
+ end
397
+
398
+ if attributes.key?(:'data_compression_enabled')
399
+ self.data_compression_enabled = attributes[:'data_compression_enabled']
400
+ end
401
+
402
+ if attributes.key?(:'write_retries')
403
+ self.write_retries = attributes[:'write_retries']
404
+ end
405
+
406
+ if attributes.key?(:'write_perms')
407
+ self.write_perms = attributes[:'write_perms']
408
+ end
409
+
410
+ if attributes.key?(:'suspended_writes')
411
+ self.suspended_writes = attributes[:'suspended_writes']
412
+ end
413
+
414
+ if attributes.key?(:'fatal_suspended_writes')
415
+ self.fatal_suspended_writes = attributes[:'fatal_suspended_writes']
416
+ end
417
+
418
+ if attributes.key?(:'read_retries')
419
+ self.read_retries = attributes[:'read_retries']
420
+ end
421
+
422
+ if attributes.key?(:'read_perms')
423
+ self.read_perms = attributes[:'read_perms']
424
+ end
425
+
426
+ if attributes.key?(:'suspended_reads')
427
+ self.suspended_reads = attributes[:'suspended_reads']
428
+ end
429
+
430
+ if attributes.key?(:'fatal_suspended_reads')
431
+ self.fatal_suspended_reads = attributes[:'fatal_suspended_reads']
432
+ end
433
+
434
+ if attributes.key?(:'partition_0_remaining_capacity')
435
+ self.partition_0_remaining_capacity = attributes[:'partition_0_remaining_capacity']
436
+ end
437
+
438
+ if attributes.key?(:'partition_1_remaining_capacity')
439
+ self.partition_1_remaining_capacity = attributes[:'partition_1_remaining_capacity']
440
+ end
441
+
442
+ if attributes.key?(:'partition_0_maximum_capacity')
443
+ self.partition_0_maximum_capacity = attributes[:'partition_0_maximum_capacity']
444
+ end
445
+
446
+ if attributes.key?(:'partition_1_maximum_capacity')
447
+ self.partition_1_maximum_capacity = attributes[:'partition_1_maximum_capacity']
448
+ end
449
+ end
450
+
451
+ # Show invalid properties with the reasons. Usually used together with valid?
452
+ # @return Array for valid properties with the reasons
453
+ def list_invalid_properties
454
+ invalid_properties = Array.new
455
+ invalid_properties
456
+ end
457
+
458
+ # Check to see if the all the properties in the model are valid
459
+ # @return true if the model is valid
460
+ def valid?
461
+ true
462
+ end
463
+
464
+ # Checks equality by comparing each attribute.
465
+ # @param [Object] Object to be compared
466
+ def ==(o)
467
+ return true if self.equal?(o)
468
+ self.class == o.class &&
469
+ log_time == o.log_time &&
470
+ barcode == o.barcode &&
471
+ mounts == o.mounts &&
472
+ datasets_written == o.datasets_written &&
473
+ datasets_read == o.datasets_read &&
474
+ recovered_write_data_errors == o.recovered_write_data_errors &&
475
+ unrecovered_write_data_errors == o.unrecovered_write_data_errors &&
476
+ write_servo_errors == o.write_servo_errors &&
477
+ unrecovered_write_servo_errors == o.unrecovered_write_servo_errors &&
478
+ recovered_read_errors == o.recovered_read_errors &&
479
+ unrecovered_read_errors == o.unrecovered_read_errors &&
480
+ last_mount_unrecovered_write_errors == o.last_mount_unrecovered_write_errors &&
481
+ last_mount_unrecovered_read_errors == o.last_mount_unrecovered_read_errors &&
482
+ last_mount_mbytes_written == o.last_mount_mbytes_written &&
483
+ last_mount_mbytes_read == o.last_mount_mbytes_read &&
484
+ lifetime_mbytes_written == o.lifetime_mbytes_written &&
485
+ lifetime_mbytes_read == o.lifetime_mbytes_read &&
486
+ last_load_write_compression_ratio == o.last_load_write_compression_ratio &&
487
+ last_load_read_compression_ratio == o.last_load_read_compression_ratio &&
488
+ medium_mount_time == o.medium_mount_time &&
489
+ medium_ready_time == o.medium_ready_time &&
490
+ total_native_capacity == o.total_native_capacity &&
491
+ total_used_native_capacity == o.total_used_native_capacity &&
492
+ write_protect == o.write_protect &&
493
+ worm == o.worm &&
494
+ beginning_of_medium_passes == o.beginning_of_medium_passes &&
495
+ middle_of_tape_passes == o.middle_of_tape_passes &&
496
+ read_compression_ratio == o.read_compression_ratio &&
497
+ write_compression_ratio == o.write_compression_ratio &&
498
+ mbytes_transferred_to_app_client == o.mbytes_transferred_to_app_client &&
499
+ bytes_transferred_to_app_client == o.bytes_transferred_to_app_client &&
500
+ mbytes_read_from_medium == o.mbytes_read_from_medium &&
501
+ bytes_read_from_medium == o.bytes_read_from_medium &&
502
+ mbytes_transferred_from_app_client == o.mbytes_transferred_from_app_client &&
503
+ bytes_transferred_from_app_client == o.bytes_transferred_from_app_client &&
504
+ mbytes_written_to_medium == o.mbytes_written_to_medium &&
505
+ bytes_written_to_medium == o.bytes_written_to_medium &&
506
+ data_compression_enabled == o.data_compression_enabled &&
507
+ write_retries == o.write_retries &&
508
+ write_perms == o.write_perms &&
509
+ suspended_writes == o.suspended_writes &&
510
+ fatal_suspended_writes == o.fatal_suspended_writes &&
511
+ read_retries == o.read_retries &&
512
+ read_perms == o.read_perms &&
513
+ suspended_reads == o.suspended_reads &&
514
+ fatal_suspended_reads == o.fatal_suspended_reads &&
515
+ partition_0_remaining_capacity == o.partition_0_remaining_capacity &&
516
+ partition_1_remaining_capacity == o.partition_1_remaining_capacity &&
517
+ partition_0_maximum_capacity == o.partition_0_maximum_capacity &&
518
+ partition_1_maximum_capacity == o.partition_1_maximum_capacity
519
+ end
520
+
521
+ # @see the `==` method
522
+ # @param [Object] Object to be compared
523
+ def eql?(o)
524
+ self == o
525
+ end
526
+
527
+ # Calculates hash code according to all attributes.
528
+ # @return [Integer] Hash code
529
+ def hash
530
+ [log_time, barcode, mounts, datasets_written, datasets_read, recovered_write_data_errors, unrecovered_write_data_errors, write_servo_errors, unrecovered_write_servo_errors, recovered_read_errors, unrecovered_read_errors, last_mount_unrecovered_write_errors, last_mount_unrecovered_read_errors, last_mount_mbytes_written, last_mount_mbytes_read, lifetime_mbytes_written, lifetime_mbytes_read, last_load_write_compression_ratio, last_load_read_compression_ratio, medium_mount_time, medium_ready_time, total_native_capacity, total_used_native_capacity, write_protect, worm, beginning_of_medium_passes, middle_of_tape_passes, read_compression_ratio, write_compression_ratio, mbytes_transferred_to_app_client, bytes_transferred_to_app_client, mbytes_read_from_medium, bytes_read_from_medium, mbytes_transferred_from_app_client, bytes_transferred_from_app_client, mbytes_written_to_medium, bytes_written_to_medium, data_compression_enabled, write_retries, write_perms, suspended_writes, fatal_suspended_writes, read_retries, read_perms, suspended_reads, fatal_suspended_reads, partition_0_remaining_capacity, partition_1_remaining_capacity, partition_0_maximum_capacity, partition_1_maximum_capacity].hash
531
+ end
532
+
533
+ # Builds the object from hash
534
+ # @param [Hash] attributes Model attributes in the form of hash
535
+ # @return [Object] Returns the model itself
536
+ def self.build_from_hash(attributes)
537
+ new.build_from_hash(attributes)
538
+ end
539
+
540
+ # Builds the object from hash
541
+ # @param [Hash] attributes Model attributes in the form of hash
542
+ # @return [Object] Returns the model itself
543
+ def build_from_hash(attributes)
544
+ return nil unless attributes.is_a?(Hash)
545
+ self.class.openapi_types.each_pair do |key, type|
546
+ if type =~ /\AArray<(.*)>/i
547
+ # check to ensure the input is an array given that the attribute
548
+ # is documented as an array but the input is not
549
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
550
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
551
+ end
552
+ elsif !attributes[self.class.attribute_map[key]].nil?
553
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
554
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
555
+ end
556
+
557
+ self
558
+ end
559
+
560
+ # Deserializes the data based on type
561
+ # @param string type Data type
562
+ # @param string value Value to be deserialized
563
+ # @return [Object] Deserialized data
564
+ def _deserialize(type, value)
565
+ case type.to_sym
566
+ when :DateTime
567
+ DateTime.parse(value)
568
+ when :Date
569
+ Date.parse(value)
570
+ when :String
571
+ value.to_s
572
+ when :Integer
573
+ value.to_i
574
+ when :Float
575
+ value.to_f
576
+ when :Boolean
577
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
578
+ true
579
+ else
580
+ false
581
+ end
582
+ when :Object
583
+ # generic object (usually a Hash), return directly
584
+ value
585
+ when /\AArray<(?<inner_type>.+)>\z/
586
+ inner_type = Regexp.last_match[:inner_type]
587
+ value.map { |v| _deserialize(inner_type, v) }
588
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
589
+ k_type = Regexp.last_match[:k_type]
590
+ v_type = Regexp.last_match[:v_type]
591
+ {}.tap do |hash|
592
+ value.each do |k, v|
593
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
594
+ end
595
+ end
596
+ else # model
597
+ Nodeum.const_get(type).build_from_hash(value)
598
+ end
599
+ end
600
+
601
+ # Returns the string representation of the object
602
+ # @return [String] String presentation of the object
603
+ def to_s
604
+ to_hash.to_s
605
+ end
606
+
607
+ # to_body is an alias to to_hash (backward compatibility)
608
+ # @return [Hash] Returns the object in the form of hash
609
+ def to_body
610
+ to_hash
611
+ end
612
+
613
+ # Returns the object in the form of hash
614
+ # @return [Hash] Returns the object in the form of hash
615
+ def to_hash
616
+ hash = {}
617
+ self.class.attribute_map.each_pair do |attr, param|
618
+ value = self.send(attr)
619
+ if value.nil?
620
+ is_nullable = self.class.openapi_nullable.include?(attr)
621
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
622
+ end
623
+
624
+ hash[param] = _to_hash(value)
625
+ end
626
+ hash
627
+ end
628
+
629
+ # Outputs non-array value in the form of hash
630
+ # For object, use to_hash. Otherwise, just return the value
631
+ # @param [Object] value Any valid value
632
+ # @return [Hash] Returns the value in the form of hash
633
+ def _to_hash(value)
634
+ if value.is_a?(Array)
635
+ value.compact.map { |v| _to_hash(v) }
636
+ elsif value.is_a?(Hash)
637
+ {}.tap do |hash|
638
+ value.each { |k, v| hash[k] = _to_hash(v) }
639
+ end
640
+ elsif value.respond_to? :to_hash
641
+ value.to_hash
642
+ else
643
+ value
644
+ end
645
+ end
646
+ end
647
+ end