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,140 @@
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 LibraryItemFileApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Retrieves the information for a single file in a library item by its name.
22
+ # @param library_item_id Identifier of the library item whose file information should be returned.
23
+ # @param content_library_item_file_get
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [ContentLibraryItemFileResult|VapiStdErrorsNotFoundError|]
26
+ def get(library_item_id, content_library_item_file_get, opts = {})
27
+ data, _status_code, _headers = get_with_http_info(library_item_id, content_library_item_file_get, opts)
28
+ data
29
+ end
30
+
31
+ # Retrieves the information for a single file in a library item by its name.
32
+ # @api private
33
+ # @param library_item_id Identifier of the library item whose file information should be returned.
34
+ # @param content_library_item_file_get
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ContentLibraryItemFileResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
37
+ def get_with_http_info(library_item_id, content_library_item_file_get, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: LibraryItemFileApi.get ...'
40
+ end
41
+ # verify the required parameter 'library_item_id' is set
42
+ if @api_client.config.client_side_validation && library_item_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemFileApi.get"
44
+ end
45
+ # verify the required parameter 'content_library_item_file_get' is set
46
+ if @api_client.config.client_side_validation && content_library_item_file_get.nil?
47
+ fail ArgumentError, "Missing the required parameter 'content_library_item_file_get' when calling LibraryItemFileApi.get"
48
+ end
49
+ # resource path
50
+ local_var_path = '/com/vmware/content/library/item/file/id:{library_item_id}?~action=get'.sub('{' + 'library_item_id' + '}', library_item_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_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::ContentLibraryItemFileResult',
76
+ '404' => 'Content::VapiStdErrorsNotFoundError',
77
+ })
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: LibraryItemFileApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Lists all of the files that are stored within a given library item.
84
+ # @param library_item_id Identifier of the library item whose files should be listed.
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [ContentLibraryItemFileListResult|VapiStdErrorsNotFoundError|]
87
+ def list(library_item_id, opts = {})
88
+ data, _status_code, _headers = list_with_http_info(library_item_id, opts)
89
+ data
90
+ end
91
+
92
+ # Lists all of the files that are stored within a given library item.
93
+ # @api private
94
+ # @param library_item_id Identifier of the library item whose files should be listed.
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [Array<(ContentLibraryItemFileListResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
97
+ def list_with_http_info(library_item_id, opts = {})
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: LibraryItemFileApi.list ...'
100
+ end
101
+ # verify the required parameter 'library_item_id' is set
102
+ if @api_client.config.client_side_validation && library_item_id.nil?
103
+ fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemFileApi.list"
104
+ end
105
+ # resource path
106
+ local_var_path = '/com/vmware/content/library/item/file'
107
+
108
+ # query parameters
109
+ query_params = {}
110
+ query_params[:'library_item_id'] = library_item_id
111
+
112
+ # header parameters
113
+ header_params = {}
114
+ # HTTP header 'Accept' (if needed)
115
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
116
+
117
+ # form parameters
118
+ form_params = {}
119
+
120
+ # http body (model)
121
+ post_body = nil
122
+ auth_names = []
123
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => {
130
+ '200' => 'Content::ContentLibraryItemFileListResult',
131
+ '404' => 'Content::VapiStdErrorsNotFoundError',
132
+ })
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: LibraryItemFileApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,140 @@
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 LibraryItemStorageApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Retrieves the storage information for a specific file in a library item.
22
+ # @param library_item_id Identifier of the library item whose storage information should be retrieved.
23
+ # @param content_library_item_storage_get
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [ContentLibraryItemStorageResult|VapiStdErrorsNotFoundError|]
26
+ def get(library_item_id, content_library_item_storage_get, opts = {})
27
+ data, _status_code, _headers = get_with_http_info(library_item_id, content_library_item_storage_get, opts)
28
+ data
29
+ end
30
+
31
+ # Retrieves the storage information for a specific file in a library item.
32
+ # @api private
33
+ # @param library_item_id Identifier of the library item whose storage information should be retrieved.
34
+ # @param content_library_item_storage_get
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ContentLibraryItemStorageResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
37
+ def get_with_http_info(library_item_id, content_library_item_storage_get, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: LibraryItemStorageApi.get ...'
40
+ end
41
+ # verify the required parameter 'library_item_id' is set
42
+ if @api_client.config.client_side_validation && library_item_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemStorageApi.get"
44
+ end
45
+ # verify the required parameter 'content_library_item_storage_get' is set
46
+ if @api_client.config.client_side_validation && content_library_item_storage_get.nil?
47
+ fail ArgumentError, "Missing the required parameter 'content_library_item_storage_get' when calling LibraryItemStorageApi.get"
48
+ end
49
+ # resource path
50
+ local_var_path = '/com/vmware/content/library/item/storage/id:{library_item_id}?~action=get'.sub('{' + 'library_item_id' + '}', library_item_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_storage_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::ContentLibraryItemStorageResult',
76
+ '404' => 'Content::VapiStdErrorsNotFoundError',
77
+ })
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: LibraryItemStorageApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Lists all storage items for a given library item.
84
+ # @param library_item_id Identifier of the library item whose storage information should be listed.
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [ContentLibraryItemStorageListResult|VapiStdErrorsNotFoundError|]
87
+ def list(library_item_id, opts = {})
88
+ data, _status_code, _headers = list_with_http_info(library_item_id, opts)
89
+ data
90
+ end
91
+
92
+ # Lists all storage items for a given library item.
93
+ # @api private
94
+ # @param library_item_id Identifier of the library item whose storage information should be listed.
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [Array<(ContentLibraryItemStorageListResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
97
+ def list_with_http_info(library_item_id, opts = {})
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: LibraryItemStorageApi.list ...'
100
+ end
101
+ # verify the required parameter 'library_item_id' is set
102
+ if @api_client.config.client_side_validation && library_item_id.nil?
103
+ fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemStorageApi.list"
104
+ end
105
+ # resource path
106
+ local_var_path = '/com/vmware/content/library/item/storage'
107
+
108
+ # query parameters
109
+ query_params = {}
110
+ query_params[:'library_item_id'] = library_item_id
111
+
112
+ # header parameters
113
+ header_params = {}
114
+ # HTTP header 'Accept' (if needed)
115
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
116
+
117
+ # form parameters
118
+ form_params = {}
119
+
120
+ # http body (model)
121
+ post_body = nil
122
+ auth_names = []
123
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => {
130
+ '200' => 'Content::ContentLibraryItemStorageListResult',
131
+ '404' => 'Content::VapiStdErrorsNotFoundError',
132
+ })
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: LibraryItemStorageApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,505 @@
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 LibraryItemUpdateSessionApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Cancels the update session and sets its state to {@link UpdateSessionModel.State#CANCELED}. This {@term operation} will free up any temporary resources currently associated with the session. <p> This {@term operation} is not allowed if the session has been already completed. <p> Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
22
+ # @param update_session_id Identifier of the update session that should be canceled.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
25
+ def cancel(update_session_id, opts = {})
26
+ cancel_with_http_info(update_session_id, opts)
27
+ nil
28
+ end
29
+
30
+ # Cancels the update session and sets its state to {@link UpdateSessionModel.State#CANCELED}. This {@term operation} will free up any temporary resources currently associated with the session. &lt;p&gt; This {@term operation} is not allowed if the session has been already completed. &lt;p&gt; Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
31
+ # @api private
32
+ # @param update_session_id Identifier of the update 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(update_session_id, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.cancel ...'
38
+ end
39
+ # verify the required parameter 'update_session_id' is set
40
+ if @api_client.config.client_side_validation && update_session_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.cancel"
42
+ end
43
+ # resource path
44
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}?~action=cancel'.sub('{' + 'update_session_id' + '}', update_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: LibraryItemUpdateSessionApi#cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
68
+ end
69
+ return data, status_code, headers
70
+ end
71
+ # Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. <p> Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. <p> Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
72
+ # @param update_session_id Identifier of the update session that should be completed.
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
75
+ def complete(update_session_id, opts = {})
76
+ complete_with_http_info(update_session_id, opts)
77
+ nil
78
+ end
79
+
80
+ # Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. &lt;p&gt; This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. &lt;p&gt; Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. &lt;p&gt; Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
81
+ # @api private
82
+ # @param update_session_id Identifier of the update session that should be completed.
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
85
+ def complete_with_http_info(update_session_id, opts = {})
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.complete ...'
88
+ end
89
+ # verify the required parameter 'update_session_id' is set
90
+ if @api_client.config.client_side_validation && update_session_id.nil?
91
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.complete"
92
+ end
93
+ # resource path
94
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}?~action=complete'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
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
+
104
+ # form parameters
105
+ form_params = {}
106
+
107
+ # http body (model)
108
+ post_body = nil
109
+ auth_names = []
110
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names)
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#complete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
118
+ end
119
+ return data, status_code, headers
120
+ end
121
+ # Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. <p> Content Library Service allows only one single update session to be active for a specific library item.
122
+ # @param content_library_item_update_session_create
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [ContentLibraryItemUpdateSessionCreateResult|VapiStdErrorsResourceBusyError|VapiStdErrorsNotFoundError|]
125
+ def create(content_library_item_update_session_create, opts = {})
126
+ data, _status_code, _headers = create_with_http_info(content_library_item_update_session_create, opts)
127
+ data
128
+ end
129
+
130
+ # Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. &lt;p&gt; Content Library Service allows only one single update session to be active for a specific library item.
131
+ # @api private
132
+ # @param content_library_item_update_session_create
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [Array<(ContentLibraryItemUpdateSessionCreateResult|VapiStdErrorsResourceBusyError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
135
+ def create_with_http_info(content_library_item_update_session_create, opts = {})
136
+ if @api_client.config.debugging
137
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.create ...'
138
+ end
139
+ # verify the required parameter 'content_library_item_update_session_create' is set
140
+ if @api_client.config.client_side_validation && content_library_item_update_session_create.nil?
141
+ fail ArgumentError, "Missing the required parameter 'content_library_item_update_session_create' when calling LibraryItemUpdateSessionApi.create"
142
+ end
143
+ # resource path
144
+ local_var_path = '/com/vmware/content/library/item/update-session'
145
+
146
+ # query parameters
147
+ query_params = {}
148
+
149
+ # header parameters
150
+ header_params = {}
151
+ # HTTP header 'Accept' (if needed)
152
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
153
+ # HTTP header 'Content-Type'
154
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
155
+
156
+ # form parameters
157
+ form_params = {}
158
+
159
+ # http body (model)
160
+ post_body = @api_client.object_to_http_body(content_library_item_update_session_create)
161
+ auth_names = []
162
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
163
+ :header_params => header_params,
164
+ :query_params => query_params,
165
+ :form_params => form_params,
166
+ :body => post_body,
167
+ :auth_names => auth_names,
168
+ :return_type => {
169
+ '200' => 'Content::ContentLibraryItemUpdateSessionCreateResult',
170
+ '400' => 'Content::VapiStdErrorsResourceBusyError',
171
+ '404' => 'Content::VapiStdErrorsNotFoundError',
172
+ })
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ end
176
+ return data, status_code, headers
177
+ end
178
+ # Deletes an update session. This removes the session and all information associated with it. <p> Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item. <p> Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.
179
+ # @param update_session_id Identifer of the update session to delete.
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
182
+ def delete(update_session_id, opts = {})
183
+ delete_with_http_info(update_session_id, opts)
184
+ nil
185
+ end
186
+
187
+ # Deletes an update session. This removes the session and all information associated with it. &lt;p&gt; Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item. &lt;p&gt; Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.
188
+ # @api private
189
+ # @param update_session_id Identifer of the update session to delete.
190
+ # @param [Hash] opts the optional parameters
191
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
192
+ def delete_with_http_info(update_session_id, opts = {})
193
+ if @api_client.config.debugging
194
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.delete ...'
195
+ end
196
+ # verify the required parameter 'update_session_id' is set
197
+ if @api_client.config.client_side_validation && update_session_id.nil?
198
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.delete"
199
+ end
200
+ # resource path
201
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
202
+
203
+ # query parameters
204
+ query_params = {}
205
+
206
+ # header parameters
207
+ header_params = {}
208
+ # HTTP header 'Accept' (if needed)
209
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
210
+
211
+ # form parameters
212
+ form_params = {}
213
+
214
+ # http body (model)
215
+ post_body = nil
216
+ auth_names = []
217
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
218
+ :header_params => header_params,
219
+ :query_params => query_params,
220
+ :form_params => form_params,
221
+ :body => post_body,
222
+ :auth_names => auth_names)
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ end
226
+ return data, status_code, headers
227
+ end
228
+ # Terminates the update session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
229
+ # @param update_session_id Identifier of the update session to fail.
230
+ # @param content_library_item_update_session_fail
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
233
+ def fail(update_session_id, content_library_item_update_session_fail, opts = {})
234
+ fail_with_http_info(update_session_id, content_library_item_update_session_fail, opts)
235
+ nil
236
+ end
237
+
238
+ # Terminates the update session with a client specified error message. &lt;p&gt; This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
239
+ # @api private
240
+ # @param update_session_id Identifier of the update session to fail.
241
+ # @param content_library_item_update_session_fail
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
244
+ def fail_with_http_info(update_session_id, content_library_item_update_session_fail, opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.fail ...'
247
+ end
248
+ # verify the required parameter 'update_session_id' is set
249
+ if @api_client.config.client_side_validation && update_session_id.nil?
250
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.fail"
251
+ end
252
+ # verify the required parameter 'content_library_item_update_session_fail' is set
253
+ if @api_client.config.client_side_validation && content_library_item_update_session_fail.nil?
254
+ fail ArgumentError, "Missing the required parameter 'content_library_item_update_session_fail' when calling LibraryItemUpdateSessionApi.fail"
255
+ end
256
+ # resource path
257
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}?~action=fail'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
258
+
259
+ # query parameters
260
+ query_params = {}
261
+
262
+ # header parameters
263
+ header_params = {}
264
+ # HTTP header 'Accept' (if needed)
265
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
266
+ # HTTP header 'Content-Type'
267
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
268
+
269
+ # form parameters
270
+ form_params = {}
271
+
272
+ # http body (model)
273
+ post_body = @api_client.object_to_http_body(content_library_item_update_session_fail)
274
+ auth_names = []
275
+ data, status_code, headers = @api_client.call_api(:POST, 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
+ if @api_client.config.debugging
282
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#fail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
283
+ end
284
+ return data, status_code, headers
285
+ end
286
+ # Gets the update session with the specified identifier, including the most up-to-date status information for the session.
287
+ # @param update_session_id Identifier of the update session to retrieve.
288
+ # @param [Hash] opts the optional parameters
289
+ # @return [ContentLibraryItemUpdateSessionResult|VapiStdErrorsNotFoundError|]
290
+ def get(update_session_id, opts = {})
291
+ data, _status_code, _headers = get_with_http_info(update_session_id, opts)
292
+ data
293
+ end
294
+
295
+ # Gets the update session with the specified identifier, including the most up-to-date status information for the session.
296
+ # @api private
297
+ # @param update_session_id Identifier of the update session to retrieve.
298
+ # @param [Hash] opts the optional parameters
299
+ # @return [Array<(ContentLibraryItemUpdateSessionResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
300
+ def get_with_http_info(update_session_id, opts = {})
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.get ...'
303
+ end
304
+ # verify the required parameter 'update_session_id' is set
305
+ if @api_client.config.client_side_validation && update_session_id.nil?
306
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.get"
307
+ end
308
+ # resource path
309
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
310
+
311
+ # query parameters
312
+ query_params = {}
313
+
314
+ # header parameters
315
+ header_params = {}
316
+ # HTTP header 'Accept' (if needed)
317
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
318
+
319
+ # form parameters
320
+ form_params = {}
321
+
322
+ # http body (model)
323
+ post_body = nil
324
+ auth_names = []
325
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
326
+ :header_params => header_params,
327
+ :query_params => query_params,
328
+ :form_params => form_params,
329
+ :body => post_body,
330
+ :auth_names => auth_names,
331
+ :return_type => {
332
+ '200' => 'Content::ContentLibraryItemUpdateSessionResult',
333
+ '404' => 'Content::VapiStdErrorsNotFoundError',
334
+ })
335
+ if @api_client.config.debugging
336
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
337
+ end
338
+ return data, status_code, headers
339
+ end
340
+ # Keeps an update session alive. <p> If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.
341
+ # @param update_session_id Identifier of the update session whose lifetime should be extended.
342
+ # @param [Hash] opts the optional parameters
343
+ # @option opts [ContentLibraryItemUpdateSessionKeepAlive] :content_library_item_update_session_keep_alive
344
+ # @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
345
+ def keep_alive(update_session_id, opts = {})
346
+ keep_alive_with_http_info(update_session_id, opts)
347
+ nil
348
+ end
349
+
350
+ # Keeps an update session alive. &lt;p&gt; If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.
351
+ # @api private
352
+ # @param update_session_id Identifier of the update session whose lifetime should be extended.
353
+ # @param [Hash] opts the optional parameters
354
+ # @option opts [ContentLibraryItemUpdateSessionKeepAlive] :content_library_item_update_session_keep_alive
355
+ # @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
356
+ def keep_alive_with_http_info(update_session_id, opts = {})
357
+ if @api_client.config.debugging
358
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.keep_alive ...'
359
+ end
360
+ # verify the required parameter 'update_session_id' is set
361
+ if @api_client.config.client_side_validation && update_session_id.nil?
362
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.keep_alive"
363
+ end
364
+ # resource path
365
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}?~action=keep-alive'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
366
+
367
+ # query parameters
368
+ query_params = {}
369
+
370
+ # header parameters
371
+ header_params = {}
372
+ # HTTP header 'Accept' (if needed)
373
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
374
+ # HTTP header 'Content-Type'
375
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
376
+
377
+ # form parameters
378
+ form_params = {}
379
+
380
+ # http body (model)
381
+ post_body = @api_client.object_to_http_body(opts[:'content_library_item_update_session_keep_alive'])
382
+ auth_names = []
383
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
384
+ :header_params => header_params,
385
+ :query_params => query_params,
386
+ :form_params => form_params,
387
+ :body => post_body,
388
+ :auth_names => auth_names)
389
+ if @api_client.config.debugging
390
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#keep_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
391
+ end
392
+ return data, status_code, headers
393
+ end
394
+ # Lists the identifiers of the update session created by the calling user. Optionally may filter by library item.
395
+ # @param [Hash] opts the optional parameters
396
+ # @option opts [String] :library_item_id Optional library item identifier on which to filter results.
397
+ # @return [ContentLibraryItemUpdateSessionListResult|VapiStdErrorsNotFoundError|]
398
+ def list(opts = {})
399
+ data, _status_code, _headers = list_with_http_info(opts)
400
+ data
401
+ end
402
+
403
+ # Lists the identifiers of the update session created by the calling user. Optionally may filter by library item.
404
+ # @api private
405
+ # @param [Hash] opts the optional parameters
406
+ # @option opts [String] :library_item_id Optional library item identifier on which to filter results.
407
+ # @return [Array<(ContentLibraryItemUpdateSessionListResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
408
+ def list_with_http_info(opts = {})
409
+ if @api_client.config.debugging
410
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.list ...'
411
+ end
412
+ # resource path
413
+ local_var_path = '/com/vmware/content/library/item/update-session'
414
+
415
+ # query parameters
416
+ query_params = {}
417
+ query_params[:'library_item_id'] = opts[:'library_item_id'] if !opts[:'library_item_id'].nil?
418
+
419
+ # header parameters
420
+ header_params = {}
421
+ # HTTP header 'Accept' (if needed)
422
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
423
+
424
+ # form parameters
425
+ form_params = {}
426
+
427
+ # http body (model)
428
+ post_body = nil
429
+ auth_names = []
430
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
431
+ :header_params => header_params,
432
+ :query_params => query_params,
433
+ :form_params => form_params,
434
+ :body => post_body,
435
+ :auth_names => auth_names,
436
+ :return_type => {
437
+ '200' => 'Content::ContentLibraryItemUpdateSessionListResult',
438
+ '404' => 'Content::VapiStdErrorsNotFoundError',
439
+ })
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
+ end
443
+ return data, status_code, headers
444
+ end
445
+ # Updates the properties of an update session. <p> This is an incremental update to the update session. Any {@term field} in the {@link UpdateSessionModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the property {@link UpdateSessionModel#warningBehavior} of the update session. This will not, for example, update the {@link UpdateSessionModel#libraryItemId} or {@link UpdateSessionModel#state} of an update session. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state.
446
+ # @param update_session_id Identifer of the update session that should be updated.
447
+ # @param content_library_item_update_session_update
448
+ # @param [Hash] opts the optional parameters
449
+ # @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil]
450
+ def update(update_session_id, content_library_item_update_session_update, opts = {})
451
+ update_with_http_info(update_session_id, content_library_item_update_session_update, opts)
452
+ nil
453
+ end
454
+
455
+ # Updates the properties of an update session. &lt;p&gt; This is an incremental update to the update session. Any {@term field} in the {@link UpdateSessionModel} {@term structure} that is {@term unset} will not be modified. &lt;p&gt; This {@term operation} will only update the property {@link UpdateSessionModel#warningBehavior} of the update session. This will not, for example, update the {@link UpdateSessionModel#libraryItemId} or {@link UpdateSessionModel#state} of an update session. &lt;p&gt; This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state.
456
+ # @api private
457
+ # @param update_session_id Identifer of the update session that should be updated.
458
+ # @param content_library_item_update_session_update
459
+ # @param [Hash] opts the optional parameters
460
+ # @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
461
+ def update_with_http_info(update_session_id, content_library_item_update_session_update, opts = {})
462
+ if @api_client.config.debugging
463
+ @api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.update ...'
464
+ end
465
+ # verify the required parameter 'update_session_id' is set
466
+ if @api_client.config.client_side_validation && update_session_id.nil?
467
+ fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.update"
468
+ end
469
+ # verify the required parameter 'content_library_item_update_session_update' is set
470
+ if @api_client.config.client_side_validation && content_library_item_update_session_update.nil?
471
+ fail ArgumentError, "Missing the required parameter 'content_library_item_update_session_update' when calling LibraryItemUpdateSessionApi.update"
472
+ end
473
+ # resource path
474
+ local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
475
+
476
+ # query parameters
477
+ query_params = {}
478
+
479
+ # header parameters
480
+ header_params = {}
481
+ # HTTP header 'Accept' (if needed)
482
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
483
+ # HTTP header 'Content-Type'
484
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
485
+
486
+ # form parameters
487
+ form_params = {}
488
+
489
+ # http body (model)
490
+ post_body = @api_client.object_to_http_body(content_library_item_update_session_update)
491
+ auth_names = []
492
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
493
+ :header_params => header_params,
494
+ :query_params => query_params,
495
+ :form_params => form_params,
496
+ :body => post_body,
497
+ :auth_names => auth_names)
498
+ if @api_client.config.debugging
499
+ @api_client.config.logger.debug "API called: LibraryItemUpdateSessionApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
500
+ end
501
+ return data, status_code, headers
502
+ end
503
+ end
504
+ end
505
+ end