vsphere-automation-content 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +229 -0
  5. data/Rakefile +10 -0
  6. data/docs/ConfigurationApi.md +91 -0
  7. data/docs/ContentConfigurationModel.md +11 -0
  8. data/docs/ContentConfigurationResult.md +8 -0
  9. data/docs/ContentConfigurationUpdate.md +8 -0
  10. data/docs/ContentLibraryFind.md +8 -0
  11. data/docs/ContentLibraryFindResult.md +8 -0
  12. data/docs/ContentLibraryFindSpec.md +9 -0
  13. data/docs/ContentLibraryItemCopy.md +9 -0
  14. data/docs/ContentLibraryItemCopyResult.md +8 -0
  15. data/docs/ContentLibraryItemCreate.md +9 -0
  16. data/docs/ContentLibraryItemCreateResult.md +8 -0
  17. data/docs/ContentLibraryItemDownloadSessionCreate.md +9 -0
  18. data/docs/ContentLibraryItemDownloadSessionCreateResult.md +8 -0
  19. data/docs/ContentLibraryItemDownloadSessionFail.md +8 -0
  20. data/docs/ContentLibraryItemDownloadSessionKeepAlive.md +8 -0
  21. data/docs/ContentLibraryItemDownloadSessionListResult.md +8 -0
  22. data/docs/ContentLibraryItemDownloadSessionModel.md +14 -0
  23. data/docs/ContentLibraryItemDownloadSessionModelState.md +7 -0
  24. data/docs/ContentLibraryItemDownloadSessionResult.md +8 -0
  25. data/docs/ContentLibraryItemDownloadsessionFileEndpointType.md +7 -0
  26. data/docs/ContentLibraryItemDownloadsessionFileGet.md +8 -0
  27. data/docs/ContentLibraryItemDownloadsessionFileInfo.md +14 -0
  28. data/docs/ContentLibraryItemDownloadsessionFileListResult.md +8 -0
  29. data/docs/ContentLibraryItemDownloadsessionFilePrepare.md +9 -0
  30. data/docs/ContentLibraryItemDownloadsessionFilePrepareResult.md +8 -0
  31. data/docs/ContentLibraryItemDownloadsessionFilePrepareStatus.md +7 -0
  32. data/docs/ContentLibraryItemDownloadsessionFileResult.md +8 -0
  33. data/docs/ContentLibraryItemFileChecksumAlgorithm.md +7 -0
  34. data/docs/ContentLibraryItemFileChecksumInfo.md +9 -0
  35. data/docs/ContentLibraryItemFileGet.md +8 -0
  36. data/docs/ContentLibraryItemFileInfo.md +12 -0
  37. data/docs/ContentLibraryItemFileListResult.md +8 -0
  38. data/docs/ContentLibraryItemFileResult.md +8 -0
  39. data/docs/ContentLibraryItemFind.md +8 -0
  40. data/docs/ContentLibraryItemFindResult.md +8 -0
  41. data/docs/ContentLibraryItemFindSpec.md +12 -0
  42. data/docs/ContentLibraryItemListResult.md +8 -0
  43. data/docs/ContentLibraryItemModel.md +21 -0
  44. data/docs/ContentLibraryItemResult.md +8 -0
  45. data/docs/ContentLibraryItemStorageGet.md +8 -0
  46. data/docs/ContentLibraryItemStorageInfo.md +14 -0
  47. data/docs/ContentLibraryItemStorageListResult.md +8 -0
  48. data/docs/ContentLibraryItemStorageResult.md +8 -0
  49. data/docs/ContentLibraryItemTransferEndpoint.md +9 -0
  50. data/docs/ContentLibraryItemTransferStatus.md +7 -0
  51. data/docs/ContentLibraryItemUpdate.md +8 -0
  52. data/docs/ContentLibraryItemUpdateSessionCreate.md +9 -0
  53. data/docs/ContentLibraryItemUpdateSessionCreateResult.md +8 -0
  54. data/docs/ContentLibraryItemUpdateSessionFail.md +8 -0
  55. data/docs/ContentLibraryItemUpdateSessionKeepAlive.md +8 -0
  56. data/docs/ContentLibraryItemUpdateSessionListResult.md +8 -0
  57. data/docs/ContentLibraryItemUpdateSessionModel.md +16 -0
  58. data/docs/ContentLibraryItemUpdateSessionModelState.md +7 -0
  59. data/docs/ContentLibraryItemUpdateSessionResult.md +8 -0
  60. data/docs/ContentLibraryItemUpdateSessionUpdate.md +8 -0
  61. data/docs/ContentLibraryItemUpdatesessionCertificateInfo.md +11 -0
  62. data/docs/ContentLibraryItemUpdatesessionFileAdd.md +8 -0
  63. data/docs/ContentLibraryItemUpdatesessionFileAddResult.md +8 -0
  64. data/docs/ContentLibraryItemUpdatesessionFileAddSpec.md +12 -0
  65. data/docs/ContentLibraryItemUpdatesessionFileGet.md +8 -0
  66. data/docs/ContentLibraryItemUpdatesessionFileInfo.md +17 -0
  67. data/docs/ContentLibraryItemUpdatesessionFileListResult.md +8 -0
  68. data/docs/ContentLibraryItemUpdatesessionFileRemove.md +8 -0
  69. data/docs/ContentLibraryItemUpdatesessionFileResult.md +8 -0
  70. data/docs/ContentLibraryItemUpdatesessionFileSourceType.md +7 -0
  71. data/docs/ContentLibraryItemUpdatesessionFileValidateResult.md +8 -0
  72. data/docs/ContentLibraryItemUpdatesessionFileValidationError.md +9 -0
  73. data/docs/ContentLibraryItemUpdatesessionFileValidationResult.md +10 -0
  74. data/docs/ContentLibraryItemUpdatesessionPreviewInfo.md +10 -0
  75. data/docs/ContentLibraryItemUpdatesessionPreviewInfoState.md +7 -0
  76. data/docs/ContentLibraryItemUpdatesessionPreviewWarningInfo.md +10 -0
  77. data/docs/ContentLibraryItemUpdatesessionWarningBehavior.md +9 -0
  78. data/docs/ContentLibraryItemUpdatesessionWarningType.md +7 -0
  79. data/docs/ContentLibraryListResult.md +8 -0
  80. data/docs/ContentLibraryModel.md +20 -0
  81. data/docs/ContentLibraryModelLibraryType.md +7 -0
  82. data/docs/ContentLibraryOptimizationInfo.md +8 -0
  83. data/docs/ContentLibraryPublishInfo.md +14 -0
  84. data/docs/ContentLibraryPublishInfoAuthenticationMethod.md +7 -0
  85. data/docs/ContentLibraryResult.md +8 -0
  86. data/docs/ContentLibraryStorageBacking.md +10 -0
  87. data/docs/ContentLibraryStorageBackingType.md +7 -0
  88. data/docs/ContentLibrarySubscribedItemSync.md +8 -0
  89. data/docs/ContentLibrarySubscriptionInfo.md +14 -0
  90. data/docs/ContentLibrarySubscriptionInfoAuthenticationMethod.md +7 -0
  91. data/docs/ContentLibraryUpdate.md +8 -0
  92. data/docs/ContentLocalLibraryCreate.md +9 -0
  93. data/docs/ContentLocalLibraryCreateResult.md +8 -0
  94. data/docs/ContentLocalLibraryListResult.md +8 -0
  95. data/docs/ContentLocalLibraryResult.md +8 -0
  96. data/docs/ContentLocalLibraryUpdate.md +8 -0
  97. data/docs/ContentSubscribedLibraryCreate.md +9 -0
  98. data/docs/ContentSubscribedLibraryCreateResult.md +8 -0
  99. data/docs/ContentSubscribedLibraryListResult.md +8 -0
  100. data/docs/ContentSubscribedLibraryProbe.md +8 -0
  101. data/docs/ContentSubscribedLibraryProbeResult.md +10 -0
  102. data/docs/ContentSubscribedLibraryProbeResultStatus.md +7 -0
  103. data/docs/ContentSubscribedLibraryResult.md +8 -0
  104. data/docs/ContentSubscribedLibraryUpdate.md +8 -0
  105. data/docs/LibraryApi.md +181 -0
  106. data/docs/LibraryItemApi.md +318 -0
  107. data/docs/LibraryItemDownloadSessionApi.md +320 -0
  108. data/docs/LibraryItemDownloadsessionFileApi.md +144 -0
  109. data/docs/LibraryItemFileApi.md +98 -0
  110. data/docs/LibraryItemStorageApi.md +98 -0
  111. data/docs/LibraryItemUpdateSessionApi.md +408 -0
  112. data/docs/LibraryItemUpdatesessionFileApi.md +233 -0
  113. data/docs/LibrarySubscribedItemApi.md +96 -0
  114. data/docs/LocalLibraryApi.md +224 -0
  115. data/docs/SubscribedLibraryApi.md +354 -0
  116. data/docs/VapiStdErrorsConcurrentChange.md +9 -0
  117. data/docs/VapiStdErrorsConcurrentChangeError.md +9 -0
  118. data/docs/VapiStdErrorsInvalidArgument.md +9 -0
  119. data/docs/VapiStdErrorsInvalidArgumentError.md +9 -0
  120. data/docs/VapiStdErrorsInvalidElementConfiguration.md +9 -0
  121. data/docs/VapiStdErrorsInvalidElementConfigurationError.md +9 -0
  122. data/docs/VapiStdErrorsInvalidElementType.md +9 -0
  123. data/docs/VapiStdErrorsInvalidElementTypeError.md +9 -0
  124. data/docs/VapiStdErrorsNotAllowedInCurrentState.md +9 -0
  125. data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +9 -0
  126. data/docs/VapiStdErrorsNotFound.md +9 -0
  127. data/docs/VapiStdErrorsNotFoundError.md +9 -0
  128. data/docs/VapiStdErrorsResourceBusy.md +9 -0
  129. data/docs/VapiStdErrorsResourceBusyError.md +9 -0
  130. data/docs/VapiStdErrorsResourceInaccessible.md +9 -0
  131. data/docs/VapiStdErrorsResourceInaccessibleError.md +9 -0
  132. data/docs/VapiStdErrorsUnauthorized.md +9 -0
  133. data/docs/VapiStdErrorsUnauthorizedError.md +9 -0
  134. data/docs/VapiStdErrorsUnsupported.md +9 -0
  135. data/docs/VapiStdErrorsUnsupportedError.md +9 -0
  136. data/docs/VapiStdLocalizableMessage.md +10 -0
  137. data/git_push.sh +55 -0
  138. data/lib/vsphere-automation-content.rb +168 -0
  139. data/lib/vsphere-automation-content/api/configuration_api.rb +122 -0
  140. data/lib/vsphere-automation-content/api/library_api.rb +238 -0
  141. data/lib/vsphere-automation-content/api/library_item_api.rb +416 -0
  142. data/lib/vsphere-automation-content/api/library_item_download_session_api.rb +397 -0
  143. data/lib/vsphere-automation-content/api/library_item_downloadsession_file_api.rb +205 -0
  144. data/lib/vsphere-automation-content/api/library_item_file_api.rb +140 -0
  145. data/lib/vsphere-automation-content/api/library_item_storage_api.rb +140 -0
  146. data/lib/vsphere-automation-content/api/library_item_update_session_api.rb +505 -0
  147. data/lib/vsphere-automation-content/api/library_item_updatesession_file_api.rb +318 -0
  148. data/lib/vsphere-automation-content/api/library_subscribed_item_api.rb +131 -0
  149. data/lib/vsphere-automation-content/api/local_library_api.rb +289 -0
  150. data/lib/vsphere-automation-content/api/subscribed_library_api.rb +444 -0
  151. data/lib/vsphere-automation-content/api_client.rb +386 -0
  152. data/lib/vsphere-automation-content/api_error.rb +36 -0
  153. data/lib/vsphere-automation-content/configuration.rb +200 -0
  154. data/lib/vsphere-automation-content/models/content_configuration_model.rb +214 -0
  155. data/lib/vsphere-automation-content/models/content_configuration_result.rb +188 -0
  156. data/lib/vsphere-automation-content/models/content_configuration_update.rb +188 -0
  157. data/lib/vsphere-automation-content/models/content_library_find.rb +188 -0
  158. data/lib/vsphere-automation-content/models/content_library_find_result.rb +190 -0
  159. data/lib/vsphere-automation-content/models/content_library_find_spec.rb +193 -0
  160. data/lib/vsphere-automation-content/models/content_library_item_copy.rb +198 -0
  161. data/lib/vsphere-automation-content/models/content_library_item_copy_result.rb +188 -0
  162. data/lib/vsphere-automation-content/models/content_library_item_create.rb +198 -0
  163. data/lib/vsphere-automation-content/models/content_library_item_create_result.rb +188 -0
  164. data/lib/vsphere-automation-content/models/content_library_item_download_session_create.rb +198 -0
  165. data/lib/vsphere-automation-content/models/content_library_item_download_session_create_result.rb +188 -0
  166. data/lib/vsphere-automation-content/models/content_library_item_download_session_fail.rb +189 -0
  167. data/lib/vsphere-automation-content/models/content_library_item_download_session_keep_alive.rb +184 -0
  168. data/lib/vsphere-automation-content/models/content_library_item_download_session_list_result.rb +190 -0
  169. data/lib/vsphere-automation-content/models/content_library_item_download_session_model.rb +242 -0
  170. data/lib/vsphere-automation-content/models/content_library_item_download_session_model_state.rb +31 -0
  171. data/lib/vsphere-automation-content/models/content_library_item_download_session_result.rb +188 -0
  172. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type.rb +30 -0
  173. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_get.rb +189 -0
  174. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_info.rb +255 -0
  175. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_list_result.rb +190 -0
  176. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare.rb +198 -0
  177. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result.rb +188 -0
  178. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status.rb +33 -0
  179. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_result.rb +188 -0
  180. data/lib/vsphere-automation-content/models/content_library_item_file_checksum_algorithm.rb +32 -0
  181. data/lib/vsphere-automation-content/models/content_library_item_file_checksum_info.rb +198 -0
  182. data/lib/vsphere-automation-content/models/content_library_item_file_get.rb +189 -0
  183. data/lib/vsphere-automation-content/models/content_library_item_file_info.rb +243 -0
  184. data/lib/vsphere-automation-content/models/content_library_item_file_list_result.rb +190 -0
  185. data/lib/vsphere-automation-content/models/content_library_item_file_result.rb +188 -0
  186. data/lib/vsphere-automation-content/models/content_library_item_find.rb +188 -0
  187. data/lib/vsphere-automation-content/models/content_library_item_find_result.rb +190 -0
  188. data/lib/vsphere-automation-content/models/content_library_item_find_spec.rb +224 -0
  189. data/lib/vsphere-automation-content/models/content_library_item_list_result.rb +190 -0
  190. data/lib/vsphere-automation-content/models/content_library_item_model.rb +314 -0
  191. data/lib/vsphere-automation-content/models/content_library_item_result.rb +188 -0
  192. data/lib/vsphere-automation-content/models/content_library_item_storage_get.rb +189 -0
  193. data/lib/vsphere-automation-content/models/content_library_item_storage_info.rb +274 -0
  194. data/lib/vsphere-automation-content/models/content_library_item_storage_list_result.rb +190 -0
  195. data/lib/vsphere-automation-content/models/content_library_item_storage_result.rb +190 -0
  196. data/lib/vsphere-automation-content/models/content_library_item_transfer_endpoint.rb +199 -0
  197. data/lib/vsphere-automation-content/models/content_library_item_transfer_status.rb +33 -0
  198. data/lib/vsphere-automation-content/models/content_library_item_update.rb +188 -0
  199. data/lib/vsphere-automation-content/models/content_library_item_update_session_create.rb +198 -0
  200. data/lib/vsphere-automation-content/models/content_library_item_update_session_create_result.rb +188 -0
  201. data/lib/vsphere-automation-content/models/content_library_item_update_session_fail.rb +189 -0
  202. data/lib/vsphere-automation-content/models/content_library_item_update_session_keep_alive.rb +184 -0
  203. data/lib/vsphere-automation-content/models/content_library_item_update_session_list_result.rb +190 -0
  204. data/lib/vsphere-automation-content/models/content_library_item_update_session_model.rb +263 -0
  205. data/lib/vsphere-automation-content/models/content_library_item_update_session_model_state.rb +32 -0
  206. data/lib/vsphere-automation-content/models/content_library_item_update_session_result.rb +188 -0
  207. data/lib/vsphere-automation-content/models/content_library_item_update_session_update.rb +188 -0
  208. data/lib/vsphere-automation-content/models/content_library_item_updatesession_certificate_info.rb +234 -0
  209. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add.rb +188 -0
  210. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_result.rb +188 -0
  211. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_spec.rb +231 -0
  212. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_get.rb +189 -0
  213. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_info.rb +288 -0
  214. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_list_result.rb +190 -0
  215. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_remove.rb +189 -0
  216. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_result.rb +188 -0
  217. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_source_type.rb +31 -0
  218. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validate_result.rb +188 -0
  219. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_error.rb +203 -0
  220. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_result.rb +223 -0
  221. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info.rb +209 -0
  222. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info_state.rb +32 -0
  223. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info.rb +217 -0
  224. data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_behavior.rb +203 -0
  225. data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_type.rb +32 -0
  226. data/lib/vsphere-automation-content/models/content_library_list_result.rb +190 -0
  227. data/lib/vsphere-automation-content/models/content_library_model.rb +302 -0
  228. data/lib/vsphere-automation-content/models/content_library_model_library_type.rb +30 -0
  229. data/lib/vsphere-automation-content/models/content_library_optimization_info.rb +184 -0
  230. data/lib/vsphere-automation-content/models/content_library_publish_info.rb +243 -0
  231. data/lib/vsphere-automation-content/models/content_library_publish_info_authentication_method.rb +30 -0
  232. data/lib/vsphere-automation-content/models/content_library_result.rb +188 -0
  233. data/lib/vsphere-automation-content/models/content_library_storage_backing.rb +203 -0
  234. data/lib/vsphere-automation-content/models/content_library_storage_backing_type.rb +30 -0
  235. data/lib/vsphere-automation-content/models/content_library_subscribed_item_sync.rb +189 -0
  236. data/lib/vsphere-automation-content/models/content_library_subscription_info.rb +243 -0
  237. data/lib/vsphere-automation-content/models/content_library_subscription_info_authentication_method.rb +30 -0
  238. data/lib/vsphere-automation-content/models/content_library_update.rb +188 -0
  239. data/lib/vsphere-automation-content/models/content_local_library_create.rb +198 -0
  240. data/lib/vsphere-automation-content/models/content_local_library_create_result.rb +188 -0
  241. data/lib/vsphere-automation-content/models/content_local_library_list_result.rb +190 -0
  242. data/lib/vsphere-automation-content/models/content_local_library_result.rb +188 -0
  243. data/lib/vsphere-automation-content/models/content_local_library_update.rb +188 -0
  244. data/lib/vsphere-automation-content/models/content_subscribed_library_create.rb +198 -0
  245. data/lib/vsphere-automation-content/models/content_subscribed_library_create_result.rb +188 -0
  246. data/lib/vsphere-automation-content/models/content_subscribed_library_list_result.rb +190 -0
  247. data/lib/vsphere-automation-content/models/content_subscribed_library_probe.rb +188 -0
  248. data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result.rb +215 -0
  249. data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result_status.rb +36 -0
  250. data/lib/vsphere-automation-content/models/content_subscribed_library_result.rb +188 -0
  251. data/lib/vsphere-automation-content/models/content_subscribed_library_update.rb +188 -0
  252. data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change.rb +201 -0
  253. data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change_error.rb +192 -0
  254. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument.rb +201 -0
  255. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument_error.rb +192 -0
  256. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration.rb +201 -0
  257. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error.rb +192 -0
  258. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type.rb +201 -0
  259. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error.rb +192 -0
  260. data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state.rb +201 -0
  261. data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error.rb +192 -0
  262. data/lib/vsphere-automation-content/models/vapi_std_errors_not_found.rb +201 -0
  263. data/lib/vsphere-automation-content/models/vapi_std_errors_not_found_error.rb +192 -0
  264. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy.rb +201 -0
  265. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy_error.rb +192 -0
  266. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible.rb +201 -0
  267. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error.rb +192 -0
  268. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized.rb +201 -0
  269. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized_error.rb +192 -0
  270. data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported.rb +201 -0
  271. data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported_error.rb +192 -0
  272. data/lib/vsphere-automation-content/models/vapi_std_localizable_message.rb +221 -0
  273. data/lib/vsphere-automation-content/version.rb +15 -0
  274. data/spec/api/configuration_api_spec.rb +54 -0
  275. data/spec/api/library_api_spec.rb +77 -0
  276. data/spec/api/library_item_api_spec.rb +112 -0
  277. data/spec/api/library_item_download_session_api_spec.rb +112 -0
  278. data/spec/api/library_item_downloadsession_file_api_spec.rb +68 -0
  279. data/spec/api/library_item_file_api_spec.rb +56 -0
  280. data/spec/api/library_item_storage_api_spec.rb +56 -0
  281. data/spec/api/library_item_update_session_api_spec.rb +135 -0
  282. data/spec/api/library_item_updatesession_file_api_spec.rb +91 -0
  283. data/spec/api/library_subscribed_item_api_spec.rb +56 -0
  284. data/spec/api/local_library_api_spec.rb +88 -0
  285. data/spec/api/subscribed_library_api_spec.rb +121 -0
  286. data/spec/api_client_spec.rb +224 -0
  287. data/spec/configuration_spec.rb +40 -0
  288. data/spec/models/content_configuration_model_spec.rb +57 -0
  289. data/spec/models/content_configuration_result_spec.rb +39 -0
  290. data/spec/models/content_configuration_update_spec.rb +39 -0
  291. data/spec/models/content_library_find_result_spec.rb +39 -0
  292. data/spec/models/content_library_find_spec.rb +39 -0
  293. data/spec/models/content_library_find_spec_spec.rb +45 -0
  294. data/spec/models/content_library_item_copy_result_spec.rb +39 -0
  295. data/spec/models/content_library_item_copy_spec.rb +45 -0
  296. data/spec/models/content_library_item_create_result_spec.rb +39 -0
  297. data/spec/models/content_library_item_create_spec.rb +45 -0
  298. data/spec/models/content_library_item_download_session_create_result_spec.rb +39 -0
  299. data/spec/models/content_library_item_download_session_create_spec.rb +45 -0
  300. data/spec/models/content_library_item_download_session_fail_spec.rb +39 -0
  301. data/spec/models/content_library_item_download_session_keep_alive_spec.rb +39 -0
  302. data/spec/models/content_library_item_download_session_list_result_spec.rb +39 -0
  303. data/spec/models/content_library_item_download_session_model_spec.rb +75 -0
  304. data/spec/models/content_library_item_download_session_model_state_spec.rb +33 -0
  305. data/spec/models/content_library_item_download_session_result_spec.rb +39 -0
  306. data/spec/models/content_library_item_downloadsession_file_endpoint_type_spec.rb +33 -0
  307. data/spec/models/content_library_item_downloadsession_file_get_spec.rb +39 -0
  308. data/spec/models/content_library_item_downloadsession_file_info_spec.rb +75 -0
  309. data/spec/models/content_library_item_downloadsession_file_list_result_spec.rb +39 -0
  310. data/spec/models/content_library_item_downloadsession_file_prepare_result_spec.rb +39 -0
  311. data/spec/models/content_library_item_downloadsession_file_prepare_spec.rb +45 -0
  312. data/spec/models/content_library_item_downloadsession_file_prepare_status_spec.rb +33 -0
  313. data/spec/models/content_library_item_downloadsession_file_result_spec.rb +39 -0
  314. data/spec/models/content_library_item_file_checksum_algorithm_spec.rb +33 -0
  315. data/spec/models/content_library_item_file_checksum_info_spec.rb +45 -0
  316. data/spec/models/content_library_item_file_get_spec.rb +39 -0
  317. data/spec/models/content_library_item_file_info_spec.rb +63 -0
  318. data/spec/models/content_library_item_file_list_result_spec.rb +39 -0
  319. data/spec/models/content_library_item_file_result_spec.rb +39 -0
  320. data/spec/models/content_library_item_find_result_spec.rb +39 -0
  321. data/spec/models/content_library_item_find_spec.rb +39 -0
  322. data/spec/models/content_library_item_find_spec_spec.rb +63 -0
  323. data/spec/models/content_library_item_list_result_spec.rb +39 -0
  324. data/spec/models/content_library_item_model_spec.rb +117 -0
  325. data/spec/models/content_library_item_result_spec.rb +39 -0
  326. data/spec/models/content_library_item_storage_get_spec.rb +39 -0
  327. data/spec/models/content_library_item_storage_info_spec.rb +75 -0
  328. data/spec/models/content_library_item_storage_list_result_spec.rb +39 -0
  329. data/spec/models/content_library_item_storage_result_spec.rb +39 -0
  330. data/spec/models/content_library_item_transfer_endpoint_spec.rb +45 -0
  331. data/spec/models/content_library_item_transfer_status_spec.rb +33 -0
  332. data/spec/models/content_library_item_update_session_create_result_spec.rb +39 -0
  333. data/spec/models/content_library_item_update_session_create_spec.rb +45 -0
  334. data/spec/models/content_library_item_update_session_fail_spec.rb +39 -0
  335. data/spec/models/content_library_item_update_session_keep_alive_spec.rb +39 -0
  336. data/spec/models/content_library_item_update_session_list_result_spec.rb +39 -0
  337. data/spec/models/content_library_item_update_session_model_spec.rb +87 -0
  338. data/spec/models/content_library_item_update_session_model_state_spec.rb +33 -0
  339. data/spec/models/content_library_item_update_session_result_spec.rb +39 -0
  340. data/spec/models/content_library_item_update_session_update_spec.rb +39 -0
  341. data/spec/models/content_library_item_update_spec.rb +39 -0
  342. data/spec/models/content_library_item_updatesession_certificate_info_spec.rb +57 -0
  343. data/spec/models/content_library_item_updatesession_file_add_result_spec.rb +39 -0
  344. data/spec/models/content_library_item_updatesession_file_add_spec.rb +39 -0
  345. data/spec/models/content_library_item_updatesession_file_add_spec_spec.rb +63 -0
  346. data/spec/models/content_library_item_updatesession_file_get_spec.rb +39 -0
  347. data/spec/models/content_library_item_updatesession_file_info_spec.rb +93 -0
  348. data/spec/models/content_library_item_updatesession_file_list_result_spec.rb +39 -0
  349. data/spec/models/content_library_item_updatesession_file_remove_spec.rb +39 -0
  350. data/spec/models/content_library_item_updatesession_file_result_spec.rb +39 -0
  351. data/spec/models/content_library_item_updatesession_file_source_type_spec.rb +33 -0
  352. data/spec/models/content_library_item_updatesession_file_validate_result_spec.rb +39 -0
  353. data/spec/models/content_library_item_updatesession_file_validation_error_spec.rb +45 -0
  354. data/spec/models/content_library_item_updatesession_file_validation_result_spec.rb +51 -0
  355. data/spec/models/content_library_item_updatesession_preview_info_spec.rb +51 -0
  356. data/spec/models/content_library_item_updatesession_preview_info_state_spec.rb +33 -0
  357. data/spec/models/content_library_item_updatesession_preview_warning_info_spec.rb +51 -0
  358. data/spec/models/content_library_item_updatesession_warning_behavior_spec.rb +45 -0
  359. data/spec/models/content_library_item_updatesession_warning_type_spec.rb +33 -0
  360. data/spec/models/content_library_list_result_spec.rb +39 -0
  361. data/spec/models/content_library_model_library_type_spec.rb +33 -0
  362. data/spec/models/content_library_model_spec.rb +111 -0
  363. data/spec/models/content_library_optimization_info_spec.rb +39 -0
  364. data/spec/models/content_library_publish_info_authentication_method_spec.rb +33 -0
  365. data/spec/models/content_library_publish_info_spec.rb +75 -0
  366. data/spec/models/content_library_result_spec.rb +39 -0
  367. data/spec/models/content_library_storage_backing_spec.rb +51 -0
  368. data/spec/models/content_library_storage_backing_type_spec.rb +33 -0
  369. data/spec/models/content_library_subscribed_item_sync_spec.rb +39 -0
  370. data/spec/models/content_library_subscription_info_authentication_method_spec.rb +33 -0
  371. data/spec/models/content_library_subscription_info_spec.rb +75 -0
  372. data/spec/models/content_library_update_spec.rb +39 -0
  373. data/spec/models/content_local_library_create_result_spec.rb +39 -0
  374. data/spec/models/content_local_library_create_spec.rb +45 -0
  375. data/spec/models/content_local_library_list_result_spec.rb +39 -0
  376. data/spec/models/content_local_library_result_spec.rb +39 -0
  377. data/spec/models/content_local_library_update_spec.rb +39 -0
  378. data/spec/models/content_subscribed_library_create_result_spec.rb +39 -0
  379. data/spec/models/content_subscribed_library_create_spec.rb +45 -0
  380. data/spec/models/content_subscribed_library_list_result_spec.rb +39 -0
  381. data/spec/models/content_subscribed_library_probe_result_spec.rb +51 -0
  382. data/spec/models/content_subscribed_library_probe_result_status_spec.rb +33 -0
  383. data/spec/models/content_subscribed_library_probe_spec.rb +39 -0
  384. data/spec/models/content_subscribed_library_result_spec.rb +39 -0
  385. data/spec/models/content_subscribed_library_update_spec.rb +39 -0
  386. data/spec/models/vapi_std_errors_concurrent_change_error_spec.rb +45 -0
  387. data/spec/models/vapi_std_errors_concurrent_change_spec.rb +45 -0
  388. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +45 -0
  389. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +45 -0
  390. data/spec/models/vapi_std_errors_invalid_element_configuration_error_spec.rb +45 -0
  391. data/spec/models/vapi_std_errors_invalid_element_configuration_spec.rb +45 -0
  392. data/spec/models/vapi_std_errors_invalid_element_type_error_spec.rb +45 -0
  393. data/spec/models/vapi_std_errors_invalid_element_type_spec.rb +45 -0
  394. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +45 -0
  395. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +45 -0
  396. data/spec/models/vapi_std_errors_not_found_error_spec.rb +45 -0
  397. data/spec/models/vapi_std_errors_not_found_spec.rb +45 -0
  398. data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +45 -0
  399. data/spec/models/vapi_std_errors_resource_busy_spec.rb +45 -0
  400. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +45 -0
  401. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +45 -0
  402. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +45 -0
  403. data/spec/models/vapi_std_errors_unauthorized_spec.rb +45 -0
  404. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +45 -0
  405. data/spec/models/vapi_std_errors_unsupported_spec.rb +45 -0
  406. data/spec/models/vapi_std_localizable_message_spec.rb +51 -0
  407. data/spec/spec_helper.rb +109 -0
  408. data/vsphere-automation-content.gemspec +44 -0
  409. metadata +725 -0
@@ -0,0 +1,397 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # content
5
+
6
+ # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
7
+
8
+
9
+ =end
10
+
11
+ require 'uri'
12
+
13
+ module VSphereAutomation
14
+ module Content
15
+ class LibraryItemDownloadSessionApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Cancels the download session. This {@term operation} will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
22
+ # @param download_session_id Identifer of the download session that should be canceled.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
25
+ def cancel(download_session_id, opts = {})
26
+ cancel_with_http_info(download_session_id, opts)
27
+ nil
28
+ end
29
+
30
+ # Cancels the download session. This {@term operation} will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
31
+ # @api private
32
+ # @param download_session_id Identifer of the download session that should be canceled.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
35
+ def cancel_with_http_info(download_session_id, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.cancel ...'
38
+ end
39
+ # verify the required parameter 'download_session_id' is set
40
+ if @api_client.config.client_side_validation && download_session_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadSessionApi.cancel"
42
+ end
43
+ # resource path
44
+ local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}?~action=cancel'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
53
+
54
+ # form parameters
55
+ form_params = {}
56
+
57
+ # http body (model)
58
+ post_body = nil
59
+ auth_names = []
60
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names)
66
+ if @api_client.config.debugging
67
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
68
+ end
69
+ return data, status_code, headers
70
+ end
71
+ # Creates a new download session.
72
+ # @param content_library_item_download_session_create
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [ContentLibraryItemDownloadSessionCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|]
75
+ def create(content_library_item_download_session_create, opts = {})
76
+ data, _status_code, _headers = create_with_http_info(content_library_item_download_session_create, opts)
77
+ data
78
+ end
79
+
80
+ # Creates a new download session.
81
+ # @api private
82
+ # @param content_library_item_download_session_create
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [Array<(ContentLibraryItemDownloadSessionCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
85
+ def create_with_http_info(content_library_item_download_session_create, opts = {})
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.create ...'
88
+ end
89
+ # verify the required parameter 'content_library_item_download_session_create' is set
90
+ if @api_client.config.client_side_validation && content_library_item_download_session_create.nil?
91
+ fail ArgumentError, "Missing the required parameter 'content_library_item_download_session_create' when calling LibraryItemDownloadSessionApi.create"
92
+ end
93
+ # resource path
94
+ local_var_path = '/com/vmware/content/library/item/download-session'
95
+
96
+ # query parameters
97
+ query_params = {}
98
+
99
+ # header parameters
100
+ header_params = {}
101
+ # HTTP header 'Accept' (if needed)
102
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
103
+ # HTTP header 'Content-Type'
104
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
105
+
106
+ # form parameters
107
+ form_params = {}
108
+
109
+ # http body (model)
110
+ post_body = @api_client.object_to_http_body(content_library_item_download_session_create)
111
+ auth_names = []
112
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
113
+ :header_params => header_params,
114
+ :query_params => query_params,
115
+ :form_params => form_params,
116
+ :body => post_body,
117
+ :auth_names => auth_names,
118
+ :return_type => {
119
+ '200' => 'Content::ContentLibraryItemDownloadSessionCreateResult',
120
+ '400' => 'Content::VapiStdErrorsInvalidArgumentError',
121
+ '404' => 'Content::VapiStdErrorsNotFoundError',
122
+ })
123
+ if @api_client.config.debugging
124
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
125
+ end
126
+ return data, status_code, headers
127
+ end
128
+ # Deletes a download session. This removes the session and all information associated with it. <p> Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item. <p> Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
129
+ # @param download_session_id Identifier of the download session to be deleted.
130
+ # @param [Hash] opts the optional parameters
131
+ # @return [|VapiStdErrorsNotFoundError|nil]
132
+ def delete(download_session_id, opts = {})
133
+ delete_with_http_info(download_session_id, opts)
134
+ nil
135
+ end
136
+
137
+ # Deletes a download session. This removes the session and all information associated with it. &lt;p&gt; Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item. &lt;p&gt; Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
138
+ # @api private
139
+ # @param download_session_id Identifier of the download session to be deleted.
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [Array<(|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
142
+ def delete_with_http_info(download_session_id, opts = {})
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.delete ...'
145
+ end
146
+ # verify the required parameter 'download_session_id' is set
147
+ if @api_client.config.client_side_validation && download_session_id.nil?
148
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadSessionApi.delete"
149
+ end
150
+ # resource path
151
+ local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
152
+
153
+ # query parameters
154
+ query_params = {}
155
+
156
+ # header parameters
157
+ header_params = {}
158
+ # HTTP header 'Accept' (if needed)
159
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
160
+
161
+ # form parameters
162
+ form_params = {}
163
+
164
+ # http body (model)
165
+ post_body = nil
166
+ auth_names = []
167
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
168
+ :header_params => header_params,
169
+ :query_params => query_params,
170
+ :form_params => form_params,
171
+ :body => post_body,
172
+ :auth_names => auth_names)
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ end
176
+ return data, status_code, headers
177
+ end
178
+ # Terminates the download session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
179
+ # @param download_session_id Identifier of the download session to fail.
180
+ # @param content_library_item_download_session_fail
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
183
+ def fail(download_session_id, content_library_item_download_session_fail, opts = {})
184
+ fail_with_http_info(download_session_id, content_library_item_download_session_fail, opts)
185
+ nil
186
+ end
187
+
188
+ # Terminates the download session with a client specified error message. &lt;p&gt; This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
189
+ # @api private
190
+ # @param download_session_id Identifier of the download session to fail.
191
+ # @param content_library_item_download_session_fail
192
+ # @param [Hash] opts the optional parameters
193
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
194
+ def fail_with_http_info(download_session_id, content_library_item_download_session_fail, opts = {})
195
+ if @api_client.config.debugging
196
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.fail ...'
197
+ end
198
+ # verify the required parameter 'download_session_id' is set
199
+ if @api_client.config.client_side_validation && download_session_id.nil?
200
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadSessionApi.fail"
201
+ end
202
+ # verify the required parameter 'content_library_item_download_session_fail' is set
203
+ if @api_client.config.client_side_validation && content_library_item_download_session_fail.nil?
204
+ fail ArgumentError, "Missing the required parameter 'content_library_item_download_session_fail' when calling LibraryItemDownloadSessionApi.fail"
205
+ end
206
+ # resource path
207
+ local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}?~action=fail'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
208
+
209
+ # query parameters
210
+ query_params = {}
211
+
212
+ # header parameters
213
+ header_params = {}
214
+ # HTTP header 'Accept' (if needed)
215
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
216
+ # HTTP header 'Content-Type'
217
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
218
+
219
+ # form parameters
220
+ form_params = {}
221
+
222
+ # http body (model)
223
+ post_body = @api_client.object_to_http_body(content_library_item_download_session_fail)
224
+ auth_names = []
225
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
226
+ :header_params => header_params,
227
+ :query_params => query_params,
228
+ :form_params => form_params,
229
+ :body => post_body,
230
+ :auth_names => auth_names)
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#fail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
233
+ end
234
+ return data, status_code, headers
235
+ end
236
+ # Gets the download session with the specified identifier, including the most up-to-date status information for the session.
237
+ # @param download_session_id Identifier of the download session to retrieve.
238
+ # @param [Hash] opts the optional parameters
239
+ # @return [ContentLibraryItemDownloadSessionResult|VapiStdErrorsNotFoundError|]
240
+ def get(download_session_id, opts = {})
241
+ data, _status_code, _headers = get_with_http_info(download_session_id, opts)
242
+ data
243
+ end
244
+
245
+ # Gets the download session with the specified identifier, including the most up-to-date status information for the session.
246
+ # @api private
247
+ # @param download_session_id Identifier of the download session to retrieve.
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [Array<(ContentLibraryItemDownloadSessionResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
250
+ def get_with_http_info(download_session_id, opts = {})
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.get ...'
253
+ end
254
+ # verify the required parameter 'download_session_id' is set
255
+ if @api_client.config.client_side_validation && download_session_id.nil?
256
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadSessionApi.get"
257
+ end
258
+ # resource path
259
+ local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
260
+
261
+ # query parameters
262
+ query_params = {}
263
+
264
+ # header parameters
265
+ header_params = {}
266
+ # HTTP header 'Accept' (if needed)
267
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
268
+
269
+ # form parameters
270
+ form_params = {}
271
+
272
+ # http body (model)
273
+ post_body = nil
274
+ auth_names = []
275
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
276
+ :header_params => header_params,
277
+ :query_params => query_params,
278
+ :form_params => form_params,
279
+ :body => post_body,
280
+ :auth_names => auth_names,
281
+ :return_type => {
282
+ '200' => 'Content::ContentLibraryItemDownloadSessionResult',
283
+ '404' => 'Content::VapiStdErrorsNotFoundError',
284
+ })
285
+ if @api_client.config.debugging
286
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
287
+ end
288
+ return data, status_code, headers
289
+ end
290
+ # Keeps a download session alive. This operation is allowed only if the session is in the {@link DownloadSessionModel.State#ACTIVE} state. <p> If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this {@term operation} enables a client to specifically extend the lifetime of an active download session.
291
+ # @param download_session_id Identifier of the download session whose lifetime should be extended.
292
+ # @param [Hash] opts the optional parameters
293
+ # @option opts [ContentLibraryItemDownloadSessionKeepAlive] :content_library_item_download_session_keep_alive
294
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
295
+ def keep_alive(download_session_id, opts = {})
296
+ keep_alive_with_http_info(download_session_id, opts)
297
+ nil
298
+ end
299
+
300
+ # Keeps a download session alive. This operation is allowed only if the session is in the {@link DownloadSessionModel.State#ACTIVE} state. &lt;p&gt; If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this {@term operation} enables a client to specifically extend the lifetime of an active download session.
301
+ # @api private
302
+ # @param download_session_id Identifier of the download session whose lifetime should be extended.
303
+ # @param [Hash] opts the optional parameters
304
+ # @option opts [ContentLibraryItemDownloadSessionKeepAlive] :content_library_item_download_session_keep_alive
305
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
306
+ def keep_alive_with_http_info(download_session_id, opts = {})
307
+ if @api_client.config.debugging
308
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.keep_alive ...'
309
+ end
310
+ # verify the required parameter 'download_session_id' is set
311
+ if @api_client.config.client_side_validation && download_session_id.nil?
312
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadSessionApi.keep_alive"
313
+ end
314
+ # resource path
315
+ local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}?~action=keep-alive'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
316
+
317
+ # query parameters
318
+ query_params = {}
319
+
320
+ # header parameters
321
+ header_params = {}
322
+ # HTTP header 'Accept' (if needed)
323
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
324
+ # HTTP header 'Content-Type'
325
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
326
+
327
+ # form parameters
328
+ form_params = {}
329
+
330
+ # http body (model)
331
+ post_body = @api_client.object_to_http_body(opts[:'content_library_item_download_session_keep_alive'])
332
+ auth_names = []
333
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
334
+ :header_params => header_params,
335
+ :query_params => query_params,
336
+ :form_params => form_params,
337
+ :body => post_body,
338
+ :auth_names => auth_names)
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#keep_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
341
+ end
342
+ return data, status_code, headers
343
+ end
344
+ # Lists the identifiers of the download sessions created by the calling user. Optionally may filter by library item.
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [String] :library_item_id Library item identifier on which to filter results.
347
+ # @return [ContentLibraryItemDownloadSessionListResult|VapiStdErrorsNotFoundError|]
348
+ def list(opts = {})
349
+ data, _status_code, _headers = list_with_http_info(opts)
350
+ data
351
+ end
352
+
353
+ # Lists the identifiers of the download sessions created by the calling user. Optionally may filter by library item.
354
+ # @api private
355
+ # @param [Hash] opts the optional parameters
356
+ # @option opts [String] :library_item_id Library item identifier on which to filter results.
357
+ # @return [Array<(ContentLibraryItemDownloadSessionListResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
358
+ def list_with_http_info(opts = {})
359
+ if @api_client.config.debugging
360
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.list ...'
361
+ end
362
+ # resource path
363
+ local_var_path = '/com/vmware/content/library/item/download-session'
364
+
365
+ # query parameters
366
+ query_params = {}
367
+ query_params[:'library_item_id'] = opts[:'library_item_id'] if !opts[:'library_item_id'].nil?
368
+
369
+ # header parameters
370
+ header_params = {}
371
+ # HTTP header 'Accept' (if needed)
372
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
373
+
374
+ # form parameters
375
+ form_params = {}
376
+
377
+ # http body (model)
378
+ post_body = nil
379
+ auth_names = []
380
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => {
387
+ '200' => 'Content::ContentLibraryItemDownloadSessionListResult',
388
+ '404' => 'Content::VapiStdErrorsNotFoundError',
389
+ })
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "API called: LibraryItemDownloadSessionApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ end
393
+ return data, status_code, headers
394
+ end
395
+ end
396
+ end
397
+ end
@@ -0,0 +1,205 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # content
5
+
6
+ # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
7
+
8
+
9
+ =end
10
+
11
+ require 'uri'
12
+
13
+ module VSphereAutomation
14
+ module Content
15
+ class LibraryItemDownloadsessionFileApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Retrieves file download information for a specific file.
22
+ # @param download_session_id Identifier of the download session.
23
+ # @param content_library_item_downloadsession_file_get
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [ContentLibraryItemDownloadsessionFileResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|]
26
+ def get(download_session_id, content_library_item_downloadsession_file_get, opts = {})
27
+ data, _status_code, _headers = get_with_http_info(download_session_id, content_library_item_downloadsession_file_get, opts)
28
+ data
29
+ end
30
+
31
+ # Retrieves file download information for a specific file.
32
+ # @api private
33
+ # @param download_session_id Identifier of the download session.
34
+ # @param content_library_item_downloadsession_file_get
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ContentLibraryItemDownloadsessionFileResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
37
+ def get_with_http_info(download_session_id, content_library_item_downloadsession_file_get, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadsessionFileApi.get ...'
40
+ end
41
+ # verify the required parameter 'download_session_id' is set
42
+ if @api_client.config.client_side_validation && download_session_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadsessionFileApi.get"
44
+ end
45
+ # verify the required parameter 'content_library_item_downloadsession_file_get' is set
46
+ if @api_client.config.client_side_validation && content_library_item_downloadsession_file_get.nil?
47
+ fail ArgumentError, "Missing the required parameter 'content_library_item_downloadsession_file_get' when calling LibraryItemDownloadsessionFileApi.get"
48
+ end
49
+ # resource path
50
+ local_var_path = '/com/vmware/content/library/item/downloadsession/file/id:{download_session_id}?~action=get'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
51
+
52
+ # query parameters
53
+ query_params = {}
54
+
55
+ # header parameters
56
+ header_params = {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = @api_client.object_to_http_body(content_library_item_downloadsession_file_get)
67
+ auth_names = []
68
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => {
75
+ '200' => 'Content::ContentLibraryItemDownloadsessionFileResult',
76
+ '400' => 'Content::VapiStdErrorsInvalidArgumentError',
77
+ '404' => 'Content::VapiStdErrorsNotFoundError',
78
+ })
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: LibraryItemDownloadsessionFileApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+ # Lists the information of all the files in the library item associated with the download session.
85
+ # @param download_session_id Identifier of the download session.
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [ContentLibraryItemDownloadsessionFileListResult|VapiStdErrorsNotFoundError|]
88
+ def list(download_session_id, opts = {})
89
+ data, _status_code, _headers = list_with_http_info(download_session_id, opts)
90
+ data
91
+ end
92
+
93
+ # Lists the information of all the files in the library item associated with the download session.
94
+ # @api private
95
+ # @param download_session_id Identifier of the download session.
96
+ # @param [Hash] opts the optional parameters
97
+ # @return [Array<(ContentLibraryItemDownloadsessionFileListResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
98
+ def list_with_http_info(download_session_id, opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadsessionFileApi.list ...'
101
+ end
102
+ # verify the required parameter 'download_session_id' is set
103
+ if @api_client.config.client_side_validation && download_session_id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadsessionFileApi.list"
105
+ end
106
+ # resource path
107
+ local_var_path = '/com/vmware/content/library/item/downloadsession/file'
108
+
109
+ # query parameters
110
+ query_params = {}
111
+ query_params[:'download_session_id'] = download_session_id
112
+
113
+ # header parameters
114
+ header_params = {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
117
+
118
+ # form parameters
119
+ form_params = {}
120
+
121
+ # http body (model)
122
+ post_body = nil
123
+ auth_names = []
124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
125
+ :header_params => header_params,
126
+ :query_params => query_params,
127
+ :form_params => form_params,
128
+ :body => post_body,
129
+ :auth_names => auth_names,
130
+ :return_type => {
131
+ '200' => 'Content::ContentLibraryItemDownloadsessionFileListResult',
132
+ '404' => 'Content::VapiStdErrorsNotFoundError',
133
+ })
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug "API called: LibraryItemDownloadsessionFileApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
+ end
137
+ return data, status_code, headers
138
+ end
139
+ # Requests a file to be prepared for download.
140
+ # @param download_session_id Identifier of the download session.
141
+ # @param content_library_item_downloadsession_file_prepare
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [ContentLibraryItemDownloadsessionFilePrepareResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
144
+ def prepare(download_session_id, content_library_item_downloadsession_file_prepare, opts = {})
145
+ data, _status_code, _headers = prepare_with_http_info(download_session_id, content_library_item_downloadsession_file_prepare, opts)
146
+ data
147
+ end
148
+
149
+ # Requests a file to be prepared for download.
150
+ # @api private
151
+ # @param download_session_id Identifier of the download session.
152
+ # @param content_library_item_downloadsession_file_prepare
153
+ # @param [Hash] opts the optional parameters
154
+ # @return [Array<(ContentLibraryItemDownloadsessionFilePrepareResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
155
+ def prepare_with_http_info(download_session_id, content_library_item_downloadsession_file_prepare, opts = {})
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug 'Calling API: LibraryItemDownloadsessionFileApi.prepare ...'
158
+ end
159
+ # verify the required parameter 'download_session_id' is set
160
+ if @api_client.config.client_side_validation && download_session_id.nil?
161
+ fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadsessionFileApi.prepare"
162
+ end
163
+ # verify the required parameter 'content_library_item_downloadsession_file_prepare' is set
164
+ if @api_client.config.client_side_validation && content_library_item_downloadsession_file_prepare.nil?
165
+ fail ArgumentError, "Missing the required parameter 'content_library_item_downloadsession_file_prepare' when calling LibraryItemDownloadsessionFileApi.prepare"
166
+ end
167
+ # resource path
168
+ local_var_path = '/com/vmware/content/library/item/downloadsession/file/id:{download_session_id}?~action=prepare'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
169
+
170
+ # query parameters
171
+ query_params = {}
172
+
173
+ # header parameters
174
+ header_params = {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
177
+ # HTTP header 'Content-Type'
178
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
179
+
180
+ # form parameters
181
+ form_params = {}
182
+
183
+ # http body (model)
184
+ post_body = @api_client.object_to_http_body(content_library_item_downloadsession_file_prepare)
185
+ auth_names = []
186
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
187
+ :header_params => header_params,
188
+ :query_params => query_params,
189
+ :form_params => form_params,
190
+ :body => post_body,
191
+ :auth_names => auth_names,
192
+ :return_type => {
193
+ '200' => 'Content::ContentLibraryItemDownloadsessionFilePrepareResult',
194
+ '400' => 'Content::VapiStdErrorsInvalidArgumentError',
195
+ '403' => 'Content::VapiStdErrorsUnauthorizedError',
196
+ '404' => 'Content::VapiStdErrorsNotFoundError',
197
+ })
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug "API called: LibraryItemDownloadsessionFileApi#prepare\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
200
+ end
201
+ return data, status_code, headers
202
+ end
203
+ end
204
+ end
205
+ end