vsphere-automation-content 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +12 -1
  3. data/Gemfile.lock +57 -44
  4. data/README.md +61 -13
  5. data/Rakefile +8 -0
  6. data/docs/ConfigurationApi.md +30 -12
  7. data/docs/ContentConfigurationModel.md +1 -1
  8. data/docs/ContentLibraryItemDestinationSpec.md +8 -0
  9. data/docs/ContentLibraryItemFileInfo.md +1 -1
  10. data/docs/ContentLibraryItemFindSpec.md +1 -1
  11. data/docs/ContentLibraryItemModel.md +1 -1
  12. data/docs/ContentLibraryItemPublish.md +9 -0
  13. data/docs/ContentLibraryItemStorageInfo.md +1 -1
  14. data/docs/ContentLibraryItemUpdatesessionCertificateInfo.md +1 -1
  15. data/docs/ContentLibraryItemUpdatesessionFileInfo.md +1 -1
  16. data/docs/ContentLibraryItemUpdatesessionFileValidationResult.md +1 -1
  17. data/docs/ContentLibraryItemUpdatesessionPreviewWarningInfo.md +1 -1
  18. data/docs/ContentLibraryItemUpdatesessionWarningBehavior.md +1 -1
  19. data/docs/ContentLibraryOptimizationInfo.md +1 -1
  20. data/docs/ContentLibraryPublishInfo.md +2 -2
  21. data/docs/ContentLibrarySourceInfo.md +9 -0
  22. data/docs/ContentLibrarySubscribedItemSync.md +1 -1
  23. data/docs/ContentLibrarySubscriptionInfo.md +3 -2
  24. data/docs/ContentLibrarySubscriptionsCreate.md +9 -0
  25. data/docs/ContentLibrarySubscriptionsCreateResult.md +8 -0
  26. data/docs/ContentLibrarySubscriptionsCreateSpec.md +8 -0
  27. data/docs/ContentLibrarySubscriptionsCreateSpecNewSubscribedLibrary.md +12 -0
  28. data/docs/ContentLibrarySubscriptionsCreateSpecPlacement.md +12 -0
  29. data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibrary.md +13 -0
  30. data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibraryTarget.md +7 -0
  31. data/docs/ContentLibrarySubscriptionsCreateSpecVcenter.md +9 -0
  32. data/docs/ContentLibrarySubscriptionsDelete.md +8 -0
  33. data/docs/ContentLibrarySubscriptionsGet.md +8 -0
  34. data/docs/ContentLibrarySubscriptionsInfo.md +12 -0
  35. data/docs/ContentLibrarySubscriptionsListResult.md +8 -0
  36. data/docs/ContentLibrarySubscriptionsLocation.md +7 -0
  37. data/docs/ContentLibrarySubscriptionsPlacementInfo.md +12 -0
  38. data/docs/ContentLibrarySubscriptionsResult.md +8 -0
  39. data/docs/ContentLibrarySubscriptionsSummary.md +11 -0
  40. data/docs/ContentLibrarySubscriptionsUpdate.md +9 -0
  41. data/docs/ContentLibrarySubscriptionsUpdateSpec.md +9 -0
  42. data/docs/ContentLibrarySubscriptionsUpdateSpecPlacement.md +12 -0
  43. data/docs/ContentLibrarySubscriptionsUpdateSpecVcenter.md +9 -0
  44. data/docs/ContentLibrarySubscriptionsVcenterInfo.md +10 -0
  45. data/docs/ContentLocalLibraryDestinationSpec.md +8 -0
  46. data/docs/ContentLocalLibraryPublish.md +8 -0
  47. data/docs/LibraryApi.md +47 -17
  48. data/docs/LibraryItemApi.md +136 -31
  49. data/docs/LibraryItemDownloadSessionApi.md +76 -25
  50. data/docs/LibraryItemDownloadsessionFileApi.md +38 -15
  51. data/docs/LibraryItemFileApi.md +25 -9
  52. data/docs/LibraryItemStorageApi.md +25 -9
  53. data/docs/LibraryItemUpdateSessionApi.md +100 -35
  54. data/docs/LibraryItemUpdatesessionFileApi.md +60 -23
  55. data/docs/LibrarySubscribedItemApi.md +27 -11
  56. data/docs/LibrarySubscriptionsApi.md +269 -0
  57. data/docs/LocalLibraryApi.md +109 -18
  58. data/docs/SubscribedLibraryApi.md +89 -31
  59. data/docs/VapiStdErrorsAlreadyExists.md +9 -0
  60. data/docs/VapiStdErrorsAlreadyExistsError.md +9 -0
  61. data/docs/VapiStdErrorsError.md +9 -0
  62. data/docs/VapiStdErrorsErrorError.md +9 -0
  63. data/docs/VapiStdErrorsUnauthenticated.md +9 -0
  64. data/docs/VapiStdErrorsUnauthenticatedError.md +9 -0
  65. data/lib/vsphere-automation-content.rb +40 -9
  66. data/lib/vsphere-automation-content/api/configuration_api.rb +32 -23
  67. data/lib/vsphere-automation-content/api/library_api.rb +42 -33
  68. data/lib/vsphere-automation-content/api/library_item_api.rb +140 -62
  69. data/lib/vsphere-automation-content/api/library_item_download_session_api.rb +51 -42
  70. data/lib/vsphere-automation-content/api/library_item_downloadsession_file_api.rb +40 -31
  71. data/lib/vsphere-automation-content/api/library_item_file_api.rb +29 -20
  72. data/lib/vsphere-automation-content/api/library_item_storage_api.rb +29 -20
  73. data/lib/vsphere-automation-content/api/library_item_update_session_api.rb +67 -58
  74. data/lib/vsphere-automation-content/api/library_item_updatesession_file_api.rb +53 -44
  75. data/lib/vsphere-automation-content/api/library_subscribed_item_api.rb +32 -23
  76. data/lib/vsphere-automation-content/api/library_subscriptions_api.rb +325 -0
  77. data/lib/vsphere-automation-content/api/local_library_api.rb +97 -34
  78. data/lib/vsphere-automation-content/api/subscribed_library_api.rb +62 -53
  79. data/lib/vsphere-automation-content/api_client.rb +9 -5
  80. data/lib/vsphere-automation-content/api_error.rb +4 -6
  81. data/lib/vsphere-automation-content/configuration.rb +18 -6
  82. data/lib/vsphere-automation-content/models/content_configuration_model.rb +5 -7
  83. data/lib/vsphere-automation-content/models/content_configuration_result.rb +4 -6
  84. data/lib/vsphere-automation-content/models/content_configuration_update.rb +4 -6
  85. data/lib/vsphere-automation-content/models/content_library_find.rb +4 -6
  86. data/lib/vsphere-automation-content/models/content_library_find_result.rb +4 -6
  87. data/lib/vsphere-automation-content/models/content_library_find_spec.rb +4 -6
  88. data/lib/vsphere-automation-content/models/content_library_item_copy.rb +4 -6
  89. data/lib/vsphere-automation-content/models/content_library_item_copy_result.rb +4 -6
  90. data/lib/vsphere-automation-content/models/content_library_item_create.rb +4 -6
  91. data/lib/vsphere-automation-content/models/content_library_item_create_result.rb +4 -6
  92. data/lib/vsphere-automation-content/models/content_library_item_destination_spec.rb +187 -0
  93. data/lib/vsphere-automation-content/models/content_library_item_download_session_create.rb +4 -6
  94. data/lib/vsphere-automation-content/models/content_library_item_download_session_create_result.rb +4 -6
  95. data/lib/vsphere-automation-content/models/content_library_item_download_session_fail.rb +4 -6
  96. data/lib/vsphere-automation-content/models/content_library_item_download_session_keep_alive.rb +4 -6
  97. data/lib/vsphere-automation-content/models/content_library_item_download_session_list_result.rb +4 -6
  98. data/lib/vsphere-automation-content/models/content_library_item_download_session_model.rb +4 -6
  99. data/lib/vsphere-automation-content/models/content_library_item_download_session_model_state.rb +7 -9
  100. data/lib/vsphere-automation-content/models/content_library_item_download_session_result.rb +4 -6
  101. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type.rb +6 -8
  102. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_get.rb +4 -6
  103. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_info.rb +4 -6
  104. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_list_result.rb +4 -6
  105. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare.rb +4 -6
  106. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result.rb +4 -6
  107. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status.rb +9 -11
  108. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_result.rb +4 -6
  109. data/lib/vsphere-automation-content/models/content_library_item_file_checksum_algorithm.rb +8 -10
  110. data/lib/vsphere-automation-content/models/content_library_item_file_checksum_info.rb +4 -6
  111. data/lib/vsphere-automation-content/models/content_library_item_file_get.rb +4 -6
  112. data/lib/vsphere-automation-content/models/content_library_item_file_info.rb +5 -7
  113. data/lib/vsphere-automation-content/models/content_library_item_file_list_result.rb +4 -6
  114. data/lib/vsphere-automation-content/models/content_library_item_file_result.rb +4 -6
  115. data/lib/vsphere-automation-content/models/content_library_item_find.rb +4 -6
  116. data/lib/vsphere-automation-content/models/content_library_item_find_result.rb +4 -6
  117. data/lib/vsphere-automation-content/models/content_library_item_find_spec.rb +5 -7
  118. data/lib/vsphere-automation-content/models/content_library_item_list_result.rb +4 -6
  119. data/lib/vsphere-automation-content/models/content_library_item_model.rb +5 -7
  120. data/lib/vsphere-automation-content/models/content_library_item_publish.rb +199 -0
  121. data/lib/vsphere-automation-content/models/content_library_item_result.rb +4 -6
  122. data/lib/vsphere-automation-content/models/content_library_item_storage_get.rb +4 -6
  123. data/lib/vsphere-automation-content/models/content_library_item_storage_info.rb +5 -7
  124. data/lib/vsphere-automation-content/models/content_library_item_storage_list_result.rb +4 -6
  125. data/lib/vsphere-automation-content/models/content_library_item_storage_result.rb +4 -6
  126. data/lib/vsphere-automation-content/models/content_library_item_transfer_endpoint.rb +4 -6
  127. data/lib/vsphere-automation-content/models/content_library_item_transfer_status.rb +9 -11
  128. data/lib/vsphere-automation-content/models/content_library_item_update.rb +4 -6
  129. data/lib/vsphere-automation-content/models/content_library_item_update_session_create.rb +4 -6
  130. data/lib/vsphere-automation-content/models/content_library_item_update_session_create_result.rb +4 -6
  131. data/lib/vsphere-automation-content/models/content_library_item_update_session_fail.rb +4 -6
  132. data/lib/vsphere-automation-content/models/content_library_item_update_session_keep_alive.rb +4 -6
  133. data/lib/vsphere-automation-content/models/content_library_item_update_session_list_result.rb +4 -6
  134. data/lib/vsphere-automation-content/models/content_library_item_update_session_model.rb +4 -6
  135. data/lib/vsphere-automation-content/models/content_library_item_update_session_model_state.rb +8 -10
  136. data/lib/vsphere-automation-content/models/content_library_item_update_session_result.rb +4 -6
  137. data/lib/vsphere-automation-content/models/content_library_item_update_session_update.rb +4 -6
  138. data/lib/vsphere-automation-content/models/content_library_item_updatesession_certificate_info.rb +5 -7
  139. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add.rb +4 -6
  140. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_result.rb +4 -6
  141. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_spec.rb +4 -6
  142. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_get.rb +4 -6
  143. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_info.rb +5 -7
  144. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_list_result.rb +4 -6
  145. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_remove.rb +4 -6
  146. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_result.rb +4 -6
  147. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_source_type.rb +7 -9
  148. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validate_result.rb +4 -6
  149. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_error.rb +4 -6
  150. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_result.rb +5 -7
  151. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info.rb +4 -6
  152. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info_state.rb +8 -10
  153. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info.rb +5 -7
  154. data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_behavior.rb +5 -7
  155. data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_type.rb +8 -10
  156. data/lib/vsphere-automation-content/models/content_library_list_result.rb +4 -6
  157. data/lib/vsphere-automation-content/models/content_library_model.rb +4 -6
  158. data/lib/vsphere-automation-content/models/content_library_model_library_type.rb +6 -8
  159. data/lib/vsphere-automation-content/models/content_library_optimization_info.rb +5 -7
  160. data/lib/vsphere-automation-content/models/content_library_publish_info.rb +6 -8
  161. data/lib/vsphere-automation-content/models/content_library_publish_info_authentication_method.rb +6 -8
  162. data/lib/vsphere-automation-content/models/content_library_result.rb +4 -6
  163. data/lib/vsphere-automation-content/models/content_library_source_info.rb +192 -0
  164. data/lib/vsphere-automation-content/models/content_library_storage_backing.rb +4 -6
  165. data/lib/vsphere-automation-content/models/content_library_storage_backing_type.rb +6 -8
  166. data/lib/vsphere-automation-content/models/content_library_subscribed_item_sync.rb +5 -7
  167. data/lib/vsphere-automation-content/models/content_library_subscription_info.rb +19 -12
  168. data/lib/vsphere-automation-content/models/content_library_subscription_info_authentication_method.rb +6 -8
  169. data/lib/vsphere-automation-content/models/content_library_subscriptions_create.rb +196 -0
  170. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_result.rb +186 -0
  171. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec.rb +186 -0
  172. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_new_subscribed_library.rb +244 -0
  173. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_placement.rb +222 -0
  174. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library.rb +237 -0
  175. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library_target.rb +28 -0
  176. data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_vcenter.rb +197 -0
  177. data/lib/vsphere-automation-content/models/content_library_subscriptions_delete.rb +187 -0
  178. data/lib/vsphere-automation-content/models/content_library_subscriptions_get.rb +187 -0
  179. data/lib/vsphere-automation-content/models/content_library_subscriptions_info.rb +239 -0
  180. data/lib/vsphere-automation-content/models/content_library_subscriptions_list_result.rb +188 -0
  181. data/lib/vsphere-automation-content/models/content_library_subscriptions_location.rb +28 -0
  182. data/lib/vsphere-automation-content/models/content_library_subscriptions_placement_info.rb +222 -0
  183. data/lib/vsphere-automation-content/models/content_library_subscriptions_result.rb +186 -0
  184. data/lib/vsphere-automation-content/models/content_library_subscriptions_summary.rb +227 -0
  185. data/lib/vsphere-automation-content/models/content_library_subscriptions_update.rb +201 -0
  186. data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec.rb +190 -0
  187. data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_placement.rb +222 -0
  188. data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_vcenter.rb +192 -0
  189. data/lib/vsphere-automation-content/models/content_library_subscriptions_vcenter_info.rb +212 -0
  190. data/lib/vsphere-automation-content/models/content_library_update.rb +4 -6
  191. data/lib/vsphere-automation-content/models/content_local_library_create.rb +4 -6
  192. data/lib/vsphere-automation-content/models/content_local_library_create_result.rb +4 -6
  193. data/lib/vsphere-automation-content/models/content_local_library_destination_spec.rb +187 -0
  194. data/lib/vsphere-automation-content/models/content_local_library_list_result.rb +4 -6
  195. data/lib/vsphere-automation-content/models/content_local_library_publish.rb +184 -0
  196. data/lib/vsphere-automation-content/models/content_local_library_result.rb +4 -6
  197. data/lib/vsphere-automation-content/models/content_local_library_update.rb +4 -6
  198. data/lib/vsphere-automation-content/models/content_subscribed_library_create.rb +4 -6
  199. data/lib/vsphere-automation-content/models/content_subscribed_library_create_result.rb +4 -6
  200. data/lib/vsphere-automation-content/models/content_subscribed_library_list_result.rb +4 -6
  201. data/lib/vsphere-automation-content/models/content_subscribed_library_probe.rb +4 -6
  202. data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result.rb +4 -6
  203. data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result_status.rb +12 -14
  204. data/lib/vsphere-automation-content/models/content_subscribed_library_result.rb +4 -6
  205. data/lib/vsphere-automation-content/models/content_subscribed_library_update.rb +4 -6
  206. data/lib/vsphere-automation-content/models/vapi_std_errors_already_exists.rb +199 -0
  207. data/lib/vsphere-automation-content/models/vapi_std_errors_already_exists_error.rb +190 -0
  208. data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change.rb +4 -6
  209. data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change_error.rb +4 -6
  210. data/lib/vsphere-automation-content/models/vapi_std_errors_error.rb +199 -0
  211. data/lib/vsphere-automation-content/models/vapi_std_errors_error_error.rb +190 -0
  212. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument.rb +4 -6
  213. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument_error.rb +4 -6
  214. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration.rb +4 -6
  215. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error.rb +4 -6
  216. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type.rb +4 -6
  217. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error.rb +4 -6
  218. data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
  219. data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
  220. data/lib/vsphere-automation-content/models/vapi_std_errors_not_found.rb +4 -6
  221. data/lib/vsphere-automation-content/models/vapi_std_errors_not_found_error.rb +4 -6
  222. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy.rb +4 -6
  223. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy_error.rb +4 -6
  224. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible.rb +4 -6
  225. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error.rb +4 -6
  226. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated.rb +199 -0
  227. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated_error.rb +190 -0
  228. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized.rb +4 -6
  229. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized_error.rb +4 -6
  230. data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported.rb +4 -6
  231. data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported_error.rb +4 -6
  232. data/lib/vsphere-automation-content/models/vapi_std_localizable_message.rb +4 -6
  233. data/lib/vsphere-automation-content/version.rb +5 -7
  234. data/spec/api/configuration_api_spec.rb +6 -7
  235. data/spec/api/library_api_spec.rb +7 -8
  236. data/spec/api/library_item_api_spec.rb +22 -10
  237. data/spec/api/library_item_download_session_api_spec.rb +8 -9
  238. data/spec/api/library_item_downloadsession_file_api_spec.rb +7 -8
  239. data/spec/api/library_item_file_api_spec.rb +6 -7
  240. data/spec/api/library_item_storage_api_spec.rb +6 -7
  241. data/spec/api/library_item_update_session_api_spec.rb +9 -10
  242. data/spec/api/library_item_updatesession_file_api_spec.rb +8 -9
  243. data/spec/api/library_subscribed_item_api_spec.rb +6 -7
  244. data/spec/api/library_subscriptions_api_spec.rb +90 -0
  245. data/spec/api/local_library_api_spec.rb +19 -8
  246. data/spec/api/subscribed_library_api_spec.rb +8 -9
  247. data/spec/api_client_spec.rb +4 -6
  248. data/spec/configuration_spec.rb +4 -6
  249. data/spec/models/content_configuration_model_spec.rb +4 -6
  250. data/spec/models/content_configuration_result_spec.rb +4 -6
  251. data/spec/models/content_configuration_update_spec.rb +4 -6
  252. data/spec/models/content_library_find_result_spec.rb +4 -6
  253. data/spec/models/content_library_find_spec.rb +4 -6
  254. data/spec/models/content_library_find_spec_spec.rb +4 -6
  255. data/spec/models/content_library_item_copy_result_spec.rb +4 -6
  256. data/spec/models/content_library_item_copy_spec.rb +4 -6
  257. data/spec/models/content_library_item_create_result_spec.rb +4 -6
  258. data/spec/models/content_library_item_create_spec.rb +4 -6
  259. data/spec/models/content_library_item_destination_spec_spec.rb +37 -0
  260. data/spec/models/content_library_item_download_session_create_result_spec.rb +4 -6
  261. data/spec/models/content_library_item_download_session_create_spec.rb +4 -6
  262. data/spec/models/content_library_item_download_session_fail_spec.rb +4 -6
  263. data/spec/models/content_library_item_download_session_keep_alive_spec.rb +4 -6
  264. data/spec/models/content_library_item_download_session_list_result_spec.rb +4 -6
  265. data/spec/models/content_library_item_download_session_model_spec.rb +4 -6
  266. data/spec/models/content_library_item_download_session_model_state_spec.rb +4 -6
  267. data/spec/models/content_library_item_download_session_result_spec.rb +4 -6
  268. data/spec/models/content_library_item_downloadsession_file_endpoint_type_spec.rb +4 -6
  269. data/spec/models/content_library_item_downloadsession_file_get_spec.rb +4 -6
  270. data/spec/models/content_library_item_downloadsession_file_info_spec.rb +4 -6
  271. data/spec/models/content_library_item_downloadsession_file_list_result_spec.rb +4 -6
  272. data/spec/models/content_library_item_downloadsession_file_prepare_result_spec.rb +4 -6
  273. data/spec/models/content_library_item_downloadsession_file_prepare_spec.rb +4 -6
  274. data/spec/models/content_library_item_downloadsession_file_prepare_status_spec.rb +4 -6
  275. data/spec/models/content_library_item_downloadsession_file_result_spec.rb +4 -6
  276. data/spec/models/content_library_item_file_checksum_algorithm_spec.rb +4 -6
  277. data/spec/models/content_library_item_file_checksum_info_spec.rb +4 -6
  278. data/spec/models/content_library_item_file_get_spec.rb +4 -6
  279. data/spec/models/content_library_item_file_info_spec.rb +4 -6
  280. data/spec/models/content_library_item_file_list_result_spec.rb +4 -6
  281. data/spec/models/content_library_item_file_result_spec.rb +4 -6
  282. data/spec/models/content_library_item_find_result_spec.rb +4 -6
  283. data/spec/models/content_library_item_find_spec.rb +4 -6
  284. data/spec/models/content_library_item_find_spec_spec.rb +4 -6
  285. data/spec/models/content_library_item_list_result_spec.rb +4 -6
  286. data/spec/models/content_library_item_model_spec.rb +4 -6
  287. data/spec/models/content_library_item_publish_spec.rb +43 -0
  288. data/spec/models/content_library_item_result_spec.rb +4 -6
  289. data/spec/models/content_library_item_storage_get_spec.rb +4 -6
  290. data/spec/models/content_library_item_storage_info_spec.rb +4 -6
  291. data/spec/models/content_library_item_storage_list_result_spec.rb +4 -6
  292. data/spec/models/content_library_item_storage_result_spec.rb +4 -6
  293. data/spec/models/content_library_item_transfer_endpoint_spec.rb +4 -6
  294. data/spec/models/content_library_item_transfer_status_spec.rb +4 -6
  295. data/spec/models/content_library_item_update_session_create_result_spec.rb +4 -6
  296. data/spec/models/content_library_item_update_session_create_spec.rb +4 -6
  297. data/spec/models/content_library_item_update_session_fail_spec.rb +4 -6
  298. data/spec/models/content_library_item_update_session_keep_alive_spec.rb +4 -6
  299. data/spec/models/content_library_item_update_session_list_result_spec.rb +4 -6
  300. data/spec/models/content_library_item_update_session_model_spec.rb +4 -6
  301. data/spec/models/content_library_item_update_session_model_state_spec.rb +4 -6
  302. data/spec/models/content_library_item_update_session_result_spec.rb +4 -6
  303. data/spec/models/content_library_item_update_session_update_spec.rb +4 -6
  304. data/spec/models/content_library_item_update_spec.rb +4 -6
  305. data/spec/models/content_library_item_updatesession_certificate_info_spec.rb +4 -6
  306. data/spec/models/content_library_item_updatesession_file_add_result_spec.rb +4 -6
  307. data/spec/models/content_library_item_updatesession_file_add_spec.rb +4 -6
  308. data/spec/models/content_library_item_updatesession_file_add_spec_spec.rb +4 -6
  309. data/spec/models/content_library_item_updatesession_file_get_spec.rb +4 -6
  310. data/spec/models/content_library_item_updatesession_file_info_spec.rb +4 -6
  311. data/spec/models/content_library_item_updatesession_file_list_result_spec.rb +4 -6
  312. data/spec/models/content_library_item_updatesession_file_remove_spec.rb +4 -6
  313. data/spec/models/content_library_item_updatesession_file_result_spec.rb +4 -6
  314. data/spec/models/content_library_item_updatesession_file_source_type_spec.rb +4 -6
  315. data/spec/models/content_library_item_updatesession_file_validate_result_spec.rb +4 -6
  316. data/spec/models/content_library_item_updatesession_file_validation_error_spec.rb +4 -6
  317. data/spec/models/content_library_item_updatesession_file_validation_result_spec.rb +4 -6
  318. data/spec/models/content_library_item_updatesession_preview_info_spec.rb +4 -6
  319. data/spec/models/content_library_item_updatesession_preview_info_state_spec.rb +4 -6
  320. data/spec/models/content_library_item_updatesession_preview_warning_info_spec.rb +4 -6
  321. data/spec/models/content_library_item_updatesession_warning_behavior_spec.rb +4 -6
  322. data/spec/models/content_library_item_updatesession_warning_type_spec.rb +4 -6
  323. data/spec/models/content_library_list_result_spec.rb +4 -6
  324. data/spec/models/content_library_model_library_type_spec.rb +4 -6
  325. data/spec/models/content_library_model_spec.rb +4 -6
  326. data/spec/models/content_library_optimization_info_spec.rb +4 -6
  327. data/spec/models/content_library_publish_info_authentication_method_spec.rb +4 -6
  328. data/spec/models/content_library_publish_info_spec.rb +4 -6
  329. data/spec/models/content_library_result_spec.rb +4 -6
  330. data/spec/models/content_library_source_info_spec.rb +43 -0
  331. data/spec/models/content_library_storage_backing_spec.rb +4 -6
  332. data/spec/models/content_library_storage_backing_type_spec.rb +4 -6
  333. data/spec/models/content_library_subscribed_item_sync_spec.rb +4 -6
  334. data/spec/models/content_library_subscription_info_authentication_method_spec.rb +4 -6
  335. data/spec/models/content_library_subscription_info_spec.rb +10 -6
  336. data/spec/models/content_library_subscriptions_create_result_spec.rb +37 -0
  337. data/spec/models/content_library_subscriptions_create_spec.rb +43 -0
  338. data/spec/models/content_library_subscriptions_create_spec_new_subscribed_library_spec.rb +61 -0
  339. data/spec/models/content_library_subscriptions_create_spec_placement_spec.rb +61 -0
  340. data/spec/models/content_library_subscriptions_create_spec_spec.rb +37 -0
  341. data/spec/models/content_library_subscriptions_create_spec_subscribed_library_spec.rb +67 -0
  342. data/spec/models/content_library_subscriptions_create_spec_subscribed_library_target_spec.rb +31 -0
  343. data/spec/models/content_library_subscriptions_create_spec_vcenter_spec.rb +43 -0
  344. data/spec/models/content_library_subscriptions_delete_spec.rb +37 -0
  345. data/spec/models/content_library_subscriptions_get_spec.rb +37 -0
  346. data/spec/models/content_library_subscriptions_info_spec.rb +61 -0
  347. data/spec/models/content_library_subscriptions_list_result_spec.rb +37 -0
  348. data/spec/models/content_library_subscriptions_location_spec.rb +31 -0
  349. data/spec/models/content_library_subscriptions_placement_info_spec.rb +61 -0
  350. data/spec/models/content_library_subscriptions_result_spec.rb +37 -0
  351. data/spec/models/content_library_subscriptions_summary_spec.rb +55 -0
  352. data/spec/models/content_library_subscriptions_update_spec.rb +43 -0
  353. data/spec/models/content_library_subscriptions_update_spec_placement_spec.rb +61 -0
  354. data/spec/models/content_library_subscriptions_update_spec_spec.rb +43 -0
  355. data/spec/models/content_library_subscriptions_update_spec_vcenter_spec.rb +43 -0
  356. data/spec/models/content_library_subscriptions_vcenter_info_spec.rb +49 -0
  357. data/spec/models/content_library_update_spec.rb +4 -6
  358. data/spec/models/content_local_library_create_result_spec.rb +4 -6
  359. data/spec/models/content_local_library_create_spec.rb +4 -6
  360. data/spec/models/content_local_library_destination_spec_spec.rb +37 -0
  361. data/spec/models/content_local_library_list_result_spec.rb +4 -6
  362. data/spec/models/content_local_library_publish_spec.rb +37 -0
  363. data/spec/models/content_local_library_result_spec.rb +4 -6
  364. data/spec/models/content_local_library_update_spec.rb +4 -6
  365. data/spec/models/content_subscribed_library_create_result_spec.rb +4 -6
  366. data/spec/models/content_subscribed_library_create_spec.rb +4 -6
  367. data/spec/models/content_subscribed_library_list_result_spec.rb +4 -6
  368. data/spec/models/content_subscribed_library_probe_result_spec.rb +4 -6
  369. data/spec/models/content_subscribed_library_probe_result_status_spec.rb +4 -6
  370. data/spec/models/content_subscribed_library_probe_spec.rb +4 -6
  371. data/spec/models/content_subscribed_library_result_spec.rb +4 -6
  372. data/spec/models/content_subscribed_library_update_spec.rb +4 -6
  373. data/spec/models/vapi_std_errors_already_exists_error_spec.rb +43 -0
  374. data/spec/models/vapi_std_errors_already_exists_spec.rb +43 -0
  375. data/spec/models/vapi_std_errors_concurrent_change_error_spec.rb +4 -6
  376. data/spec/models/vapi_std_errors_concurrent_change_spec.rb +4 -6
  377. data/spec/models/vapi_std_errors_error_error_spec.rb +43 -0
  378. data/spec/models/vapi_std_errors_error_spec.rb +43 -0
  379. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +4 -6
  380. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +4 -6
  381. data/spec/models/vapi_std_errors_invalid_element_configuration_error_spec.rb +4 -6
  382. data/spec/models/vapi_std_errors_invalid_element_configuration_spec.rb +4 -6
  383. data/spec/models/vapi_std_errors_invalid_element_type_error_spec.rb +4 -6
  384. data/spec/models/vapi_std_errors_invalid_element_type_spec.rb +4 -6
  385. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
  386. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
  387. data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
  388. data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
  389. data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +4 -6
  390. data/spec/models/vapi_std_errors_resource_busy_spec.rb +4 -6
  391. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +4 -6
  392. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +4 -6
  393. data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +43 -0
  394. data/spec/models/vapi_std_errors_unauthenticated_spec.rb +43 -0
  395. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
  396. data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
  397. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +4 -6
  398. data/spec/models/vapi_std_errors_unsupported_spec.rb +4 -6
  399. data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
  400. data/spec/spec_helper.rb +4 -6
  401. data/vsphere-automation-content.gemspec +11 -14
  402. metadata +150 -33
@@ -7,7 +7,7 @@ Method | HTTP request | Description
7
7
  [**cancel**](LibraryItemDownloadSessionApi.md#cancel) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action=cancel | Cancels the download session. This {@term operation} will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
8
8
  [**create**](LibraryItemDownloadSessionApi.md#create) | **POST** /com/vmware/content/library/item/download-session | Creates a new download session.
9
9
  [**delete**](LibraryItemDownloadSessionApi.md#delete) | **DELETE** /com/vmware/content/library/item/download-session/id:{download_session_id} | 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.
10
- [**fail**](LibraryItemDownloadSessionApi.md#fail) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action=fail | 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.
10
+ [**fail**](LibraryItemDownloadSessionApi.md#fail) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id} | 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.
11
11
  [**get**](LibraryItemDownloadSessionApi.md#get) | **GET** /com/vmware/content/library/item/download-session/id:{download_session_id} | Gets the download session with the specified identifier, including the most up-to-date status information for the session.
12
12
  [**keep_alive**](LibraryItemDownloadSessionApi.md#keep_alive) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action=keep-alive | 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.
13
13
  [**list**](LibraryItemDownloadSessionApi.md#list) | **GET** /com/vmware/content/library/item/download-session | Lists the identifiers of the download sessions created by the calling user. Optionally may filter by library item.
@@ -22,6 +22,13 @@ Cancels the download session. This {@term operation} will abort any ongoing tran
22
22
  ```ruby
23
23
  # load the gem
24
24
  require 'vsphere-automation-content'
25
+ # setup authorization
26
+ VSphereAutomation::Configuration.new.tap do |config|
27
+ # Configure API key authorization: api_key
28
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
31
+ end
25
32
 
26
33
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
27
34
  download_session_id = 'download_session_id_example' # String | Identifer of the download session that should be canceled.
@@ -46,17 +53,17 @@ nil (empty response body)
46
53
 
47
54
  ### Authorization
48
55
 
49
- No authorization required
56
+ [api_key](../README.md#api_key)
50
57
 
51
58
  ### HTTP request headers
52
59
 
53
60
  - **Content-Type**: Not defined
54
- - **Accept**: */*
61
+ - **Accept**: application/json
55
62
 
56
63
 
57
64
 
58
65
  # **create**
59
- > ContentLibraryItemDownloadSessionCreateResult create(content_library_item_download_session_create)
66
+ > ContentLibraryItemDownloadSessionCreateResult create(request_body)
60
67
 
61
68
  Creates a new download session.
62
69
 
@@ -64,13 +71,20 @@ Creates a new download session.
64
71
  ```ruby
65
72
  # load the gem
66
73
  require 'vsphere-automation-content'
74
+ # setup authorization
75
+ VSphereAutomation::Configuration.new.tap do |config|
76
+ # Configure API key authorization: api_key
77
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
78
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
79
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
80
+ end
67
81
 
68
82
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
69
- content_library_item_download_session_create = VSphereAutomation::ContentLibraryItemDownloadSessionCreate.new # ContentLibraryItemDownloadSessionCreate |
83
+ request_body = Content::ContentLibraryItemDownloadSessionCreate.new # ContentLibraryItemDownloadSessionCreate |
70
84
 
71
85
  begin
72
86
  #Creates a new download session.
73
- result = api_instance.create(content_library_item_download_session_create)
87
+ result = api_instance.create(request_body)
74
88
  p result
75
89
  rescue VSphereAutomation::ApiError => e
76
90
  puts "Exception when calling LibraryItemDownloadSessionApi->create: #{e}"
@@ -81,7 +95,7 @@ end
81
95
 
82
96
  Name | Type | Description | Notes
83
97
  ------------- | ------------- | ------------- | -------------
84
- **content_library_item_download_session_create** | [**ContentLibraryItemDownloadSessionCreate**](ContentLibraryItemDownloadSessionCreate.md)| |
98
+ **request_body** | [**ContentLibraryItemDownloadSessionCreate**](ContentLibraryItemDownloadSessionCreate.md)| |
85
99
 
86
100
  ### Return type
87
101
 
@@ -89,12 +103,12 @@ Name | Type | Description | Notes
89
103
 
90
104
  ### Authorization
91
105
 
92
- No authorization required
106
+ [api_key](../README.md#api_key)
93
107
 
94
108
  ### HTTP request headers
95
109
 
96
110
  - **Content-Type**: application/json
97
- - **Accept**: */*
111
+ - **Accept**: application/json
98
112
 
99
113
 
100
114
 
@@ -107,6 +121,13 @@ Deletes a download session. This removes the session and all information associa
107
121
  ```ruby
108
122
  # load the gem
109
123
  require 'vsphere-automation-content'
124
+ # setup authorization
125
+ VSphereAutomation::Configuration.new.tap do |config|
126
+ # Configure API key authorization: api_key
127
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
128
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
129
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
130
+ end
110
131
 
111
132
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
112
133
  download_session_id = 'download_session_id_example' # String | Identifier of the download session to be deleted.
@@ -131,17 +152,17 @@ nil (empty response body)
131
152
 
132
153
  ### Authorization
133
154
 
134
- No authorization required
155
+ [api_key](../README.md#api_key)
135
156
 
136
157
  ### HTTP request headers
137
158
 
138
159
  - **Content-Type**: Not defined
139
- - **Accept**: */*
160
+ - **Accept**: application/json
140
161
 
141
162
 
142
163
 
143
164
  # **fail**
144
- > fail(download_session_id, content_library_item_download_session_fail)
165
+ > fail(download_session_id, action, request_body)
145
166
 
146
167
  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.
147
168
 
@@ -149,14 +170,22 @@ Terminates the download session with a client specified error message. <p> This
149
170
  ```ruby
150
171
  # load the gem
151
172
  require 'vsphere-automation-content'
173
+ # setup authorization
174
+ VSphereAutomation::Configuration.new.tap do |config|
175
+ # Configure API key authorization: api_key
176
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
177
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
179
+ end
152
180
 
153
181
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
154
182
  download_session_id = 'download_session_id_example' # String | Identifier of the download session to fail.
155
- content_library_item_download_session_fail = VSphereAutomation::ContentLibraryItemDownloadSessionFail.new # ContentLibraryItemDownloadSessionFail |
183
+ action = 'action_example' # String | ~action=fail
184
+ request_body = Content::ContentLibraryItemDownloadSessionFail.new # ContentLibraryItemDownloadSessionFail |
156
185
 
157
186
  begin
158
187
  #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.
159
- api_instance.fail(download_session_id, content_library_item_download_session_fail)
188
+ api_instance.fail(download_session_id, action, request_body)
160
189
  rescue VSphereAutomation::ApiError => e
161
190
  puts "Exception when calling LibraryItemDownloadSessionApi->fail: #{e}"
162
191
  end
@@ -167,7 +196,8 @@ end
167
196
  Name | Type | Description | Notes
168
197
  ------------- | ------------- | ------------- | -------------
169
198
  **download_session_id** | **String**| Identifier of the download session to fail. |
170
- **content_library_item_download_session_fail** | [**ContentLibraryItemDownloadSessionFail**](ContentLibraryItemDownloadSessionFail.md)| |
199
+ **action** | **String**| ~action&#x3D;fail |
200
+ **request_body** | [**ContentLibraryItemDownloadSessionFail**](ContentLibraryItemDownloadSessionFail.md)| |
171
201
 
172
202
  ### Return type
173
203
 
@@ -175,12 +205,12 @@ nil (empty response body)
175
205
 
176
206
  ### Authorization
177
207
 
178
- No authorization required
208
+ [api_key](../README.md#api_key)
179
209
 
180
210
  ### HTTP request headers
181
211
 
182
212
  - **Content-Type**: application/json
183
- - **Accept**: */*
213
+ - **Accept**: application/json
184
214
 
185
215
 
186
216
 
@@ -193,6 +223,13 @@ Gets the download session with the specified identifier, including the most up-t
193
223
  ```ruby
194
224
  # load the gem
195
225
  require 'vsphere-automation-content'
226
+ # setup authorization
227
+ VSphereAutomation::Configuration.new.tap do |config|
228
+ # Configure API key authorization: api_key
229
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
230
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
231
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
232
+ end
196
233
 
197
234
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
198
235
  download_session_id = 'download_session_id_example' # String | Identifier of the download session to retrieve.
@@ -218,12 +255,12 @@ Name | Type | Description | Notes
218
255
 
219
256
  ### Authorization
220
257
 
221
- No authorization required
258
+ [api_key](../README.md#api_key)
222
259
 
223
260
  ### HTTP request headers
224
261
 
225
262
  - **Content-Type**: Not defined
226
- - **Accept**: */*
263
+ - **Accept**: application/json
227
264
 
228
265
 
229
266
 
@@ -236,11 +273,18 @@ Keeps a download session alive. This operation is allowed only if the session is
236
273
  ```ruby
237
274
  # load the gem
238
275
  require 'vsphere-automation-content'
276
+ # setup authorization
277
+ VSphereAutomation::Configuration.new.tap do |config|
278
+ # Configure API key authorization: api_key
279
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
280
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
281
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
282
+ end
239
283
 
240
284
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
241
285
  download_session_id = 'download_session_id_example' # String | Identifier of the download session whose lifetime should be extended.
242
286
  opts = {
243
- content_library_item_download_session_keep_alive: VSphereAutomation::ContentLibraryItemDownloadSessionKeepAlive.new # ContentLibraryItemDownloadSessionKeepAlive |
287
+ request_body: Content::ContentLibraryItemDownloadSessionKeepAlive.new # ContentLibraryItemDownloadSessionKeepAlive |
244
288
  }
245
289
 
246
290
  begin
@@ -256,7 +300,7 @@ end
256
300
  Name | Type | Description | Notes
257
301
  ------------- | ------------- | ------------- | -------------
258
302
  **download_session_id** | **String**| Identifier of the download session whose lifetime should be extended. |
259
- **content_library_item_download_session_keep_alive** | [**ContentLibraryItemDownloadSessionKeepAlive**](ContentLibraryItemDownloadSessionKeepAlive.md)| | [optional]
303
+ **request_body** | [**ContentLibraryItemDownloadSessionKeepAlive**](ContentLibraryItemDownloadSessionKeepAlive.md)| | [optional]
260
304
 
261
305
  ### Return type
262
306
 
@@ -264,12 +308,12 @@ nil (empty response body)
264
308
 
265
309
  ### Authorization
266
310
 
267
- No authorization required
311
+ [api_key](../README.md#api_key)
268
312
 
269
313
  ### HTTP request headers
270
314
 
271
315
  - **Content-Type**: application/json
272
- - **Accept**: */*
316
+ - **Accept**: application/json
273
317
 
274
318
 
275
319
 
@@ -282,6 +326,13 @@ Lists the identifiers of the download sessions created by the calling user. Opti
282
326
  ```ruby
283
327
  # load the gem
284
328
  require 'vsphere-automation-content'
329
+ # setup authorization
330
+ VSphereAutomation::Configuration.new.tap do |config|
331
+ # Configure API key authorization: api_key
332
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
333
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
334
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
335
+ end
285
336
 
286
337
  api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
287
338
  opts = {
@@ -309,12 +360,12 @@ Name | Type | Description | Notes
309
360
 
310
361
  ### Authorization
311
362
 
312
- No authorization required
363
+ [api_key](../README.md#api_key)
313
364
 
314
365
  ### HTTP request headers
315
366
 
316
367
  - **Content-Type**: Not defined
317
- - **Accept**: */*
368
+ - **Accept**: application/json
318
369
 
319
370
 
320
371
 
@@ -6,11 +6,11 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**get**](LibraryItemDownloadsessionFileApi.md#get) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id}?~action&#x3D;get | Retrieves file download information for a specific file.
8
8
  [**list**](LibraryItemDownloadsessionFileApi.md#list) | **GET** /com/vmware/content/library/item/downloadsession/file | Lists the information of all the files in the library item associated with the download session.
9
- [**prepare**](LibraryItemDownloadsessionFileApi.md#prepare) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id}?~action&#x3D;prepare | Requests a file to be prepared for download.
9
+ [**prepare**](LibraryItemDownloadsessionFileApi.md#prepare) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id} | Requests a file to be prepared for download.
10
10
 
11
11
 
12
12
  # **get**
13
- > ContentLibraryItemDownloadsessionFileResult get(download_session_id, content_library_item_downloadsession_file_get)
13
+ > ContentLibraryItemDownloadsessionFileResult get(download_session_id, request_body)
14
14
 
15
15
  Retrieves file download information for a specific file.
16
16
 
@@ -18,14 +18,21 @@ Retrieves file download information for a specific file.
18
18
  ```ruby
19
19
  # load the gem
20
20
  require 'vsphere-automation-content'
21
+ # setup authorization
22
+ VSphereAutomation::Configuration.new.tap do |config|
23
+ # Configure API key authorization: api_key
24
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
27
+ end
21
28
 
22
29
  api_instance = VSphereAutomation::Content::LibraryItemDownloadsessionFileApi.new
23
30
  download_session_id = 'download_session_id_example' # String | Identifier of the download session.
24
- content_library_item_downloadsession_file_get = VSphereAutomation::ContentLibraryItemDownloadsessionFileGet.new # ContentLibraryItemDownloadsessionFileGet |
31
+ request_body = Content::ContentLibraryItemDownloadsessionFileGet.new # ContentLibraryItemDownloadsessionFileGet |
25
32
 
26
33
  begin
27
34
  #Retrieves file download information for a specific file.
28
- result = api_instance.get(download_session_id, content_library_item_downloadsession_file_get)
35
+ result = api_instance.get(download_session_id, request_body)
29
36
  p result
30
37
  rescue VSphereAutomation::ApiError => e
31
38
  puts "Exception when calling LibraryItemDownloadsessionFileApi->get: #{e}"
@@ -37,7 +44,7 @@ end
37
44
  Name | Type | Description | Notes
38
45
  ------------- | ------------- | ------------- | -------------
39
46
  **download_session_id** | **String**| Identifier of the download session. |
40
- **content_library_item_downloadsession_file_get** | [**ContentLibraryItemDownloadsessionFileGet**](ContentLibraryItemDownloadsessionFileGet.md)| |
47
+ **request_body** | [**ContentLibraryItemDownloadsessionFileGet**](ContentLibraryItemDownloadsessionFileGet.md)| |
41
48
 
42
49
  ### Return type
43
50
 
@@ -45,12 +52,12 @@ Name | Type | Description | Notes
45
52
 
46
53
  ### Authorization
47
54
 
48
- No authorization required
55
+ [api_key](../README.md#api_key)
49
56
 
50
57
  ### HTTP request headers
51
58
 
52
59
  - **Content-Type**: application/json
53
- - **Accept**: */*
60
+ - **Accept**: application/json
54
61
 
55
62
 
56
63
 
@@ -63,6 +70,13 @@ Lists the information of all the files in the library item associated with the d
63
70
  ```ruby
64
71
  # load the gem
65
72
  require 'vsphere-automation-content'
73
+ # setup authorization
74
+ VSphereAutomation::Configuration.new.tap do |config|
75
+ # Configure API key authorization: api_key
76
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
77
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
78
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
79
+ end
66
80
 
67
81
  api_instance = VSphereAutomation::Content::LibraryItemDownloadsessionFileApi.new
68
82
  download_session_id = 'download_session_id_example' # String | Identifier of the download session.
@@ -88,17 +102,17 @@ Name | Type | Description | Notes
88
102
 
89
103
  ### Authorization
90
104
 
91
- No authorization required
105
+ [api_key](../README.md#api_key)
92
106
 
93
107
  ### HTTP request headers
94
108
 
95
109
  - **Content-Type**: Not defined
96
- - **Accept**: */*
110
+ - **Accept**: application/json
97
111
 
98
112
 
99
113
 
100
114
  # **prepare**
101
- > ContentLibraryItemDownloadsessionFilePrepareResult prepare(download_session_id, content_library_item_downloadsession_file_prepare)
115
+ > ContentLibraryItemDownloadsessionFilePrepareResult prepare(download_session_id, action, request_body)
102
116
 
103
117
  Requests a file to be prepared for download.
104
118
 
@@ -106,14 +120,22 @@ Requests a file to be prepared for download.
106
120
  ```ruby
107
121
  # load the gem
108
122
  require 'vsphere-automation-content'
123
+ # setup authorization
124
+ VSphereAutomation::Configuration.new.tap do |config|
125
+ # Configure API key authorization: api_key
126
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
127
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
128
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
129
+ end
109
130
 
110
131
  api_instance = VSphereAutomation::Content::LibraryItemDownloadsessionFileApi.new
111
132
  download_session_id = 'download_session_id_example' # String | Identifier of the download session.
112
- content_library_item_downloadsession_file_prepare = VSphereAutomation::ContentLibraryItemDownloadsessionFilePrepare.new # ContentLibraryItemDownloadsessionFilePrepare |
133
+ action = 'action_example' # String | ~action=prepare
134
+ request_body = Content::ContentLibraryItemDownloadsessionFilePrepare.new # ContentLibraryItemDownloadsessionFilePrepare |
113
135
 
114
136
  begin
115
137
  #Requests a file to be prepared for download.
116
- result = api_instance.prepare(download_session_id, content_library_item_downloadsession_file_prepare)
138
+ result = api_instance.prepare(download_session_id, action, request_body)
117
139
  p result
118
140
  rescue VSphereAutomation::ApiError => e
119
141
  puts "Exception when calling LibraryItemDownloadsessionFileApi->prepare: #{e}"
@@ -125,7 +147,8 @@ end
125
147
  Name | Type | Description | Notes
126
148
  ------------- | ------------- | ------------- | -------------
127
149
  **download_session_id** | **String**| Identifier of the download session. |
128
- **content_library_item_downloadsession_file_prepare** | [**ContentLibraryItemDownloadsessionFilePrepare**](ContentLibraryItemDownloadsessionFilePrepare.md)| |
150
+ **action** | **String**| ~action&#x3D;prepare |
151
+ **request_body** | [**ContentLibraryItemDownloadsessionFilePrepare**](ContentLibraryItemDownloadsessionFilePrepare.md)| |
129
152
 
130
153
  ### Return type
131
154
 
@@ -133,12 +156,12 @@ Name | Type | Description | Notes
133
156
 
134
157
  ### Authorization
135
158
 
136
- No authorization required
159
+ [api_key](../README.md#api_key)
137
160
 
138
161
  ### HTTP request headers
139
162
 
140
163
  - **Content-Type**: application/json
141
- - **Accept**: */*
164
+ - **Accept**: application/json
142
165
 
143
166
 
144
167
 
@@ -4,12 +4,12 @@ All URIs are relative to *https://&lt;vcenter&gt;/rest*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**get**](LibraryItemFileApi.md#get) | **POST** /com/vmware/content/library/item/file/id:{library_item_id}?~action&#x3D;get | Retrieves the information for a single file in a library item by its name.
7
+ [**get**](LibraryItemFileApi.md#get) | **POST** /com/vmware/content/library/item/file/id:{library_item_id} | Retrieves the information for a single file in a library item by its name.
8
8
  [**list**](LibraryItemFileApi.md#list) | **GET** /com/vmware/content/library/item/file | Lists all of the files that are stored within a given library item.
9
9
 
10
10
 
11
11
  # **get**
12
- > ContentLibraryItemFileResult get(library_item_id, content_library_item_file_get)
12
+ > ContentLibraryItemFileResult get(library_item_id, action, request_body)
13
13
 
14
14
  Retrieves the information for a single file in a library item by its name.
15
15
 
@@ -17,14 +17,22 @@ Retrieves the information for a single file in a library item by its name.
17
17
  ```ruby
18
18
  # load the gem
19
19
  require 'vsphere-automation-content'
20
+ # setup authorization
21
+ VSphereAutomation::Configuration.new.tap do |config|
22
+ # Configure API key authorization: api_key
23
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
24
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
25
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
26
+ end
20
27
 
21
28
  api_instance = VSphereAutomation::Content::LibraryItemFileApi.new
22
29
  library_item_id = 'library_item_id_example' # String | Identifier of the library item whose file information should be returned.
23
- content_library_item_file_get = VSphereAutomation::ContentLibraryItemFileGet.new # ContentLibraryItemFileGet |
30
+ action = 'action_example' # String | ~action=get
31
+ request_body = Content::ContentLibraryItemFileGet.new # ContentLibraryItemFileGet |
24
32
 
25
33
  begin
26
34
  #Retrieves the information for a single file in a library item by its name.
27
- result = api_instance.get(library_item_id, content_library_item_file_get)
35
+ result = api_instance.get(library_item_id, action, request_body)
28
36
  p result
29
37
  rescue VSphereAutomation::ApiError => e
30
38
  puts "Exception when calling LibraryItemFileApi->get: #{e}"
@@ -36,7 +44,8 @@ end
36
44
  Name | Type | Description | Notes
37
45
  ------------- | ------------- | ------------- | -------------
38
46
  **library_item_id** | **String**| Identifier of the library item whose file information should be returned. |
39
- **content_library_item_file_get** | [**ContentLibraryItemFileGet**](ContentLibraryItemFileGet.md)| |
47
+ **action** | **String**| ~action&#x3D;get |
48
+ **request_body** | [**ContentLibraryItemFileGet**](ContentLibraryItemFileGet.md)| |
40
49
 
41
50
  ### Return type
42
51
 
@@ -44,12 +53,12 @@ Name | Type | Description | Notes
44
53
 
45
54
  ### Authorization
46
55
 
47
- No authorization required
56
+ [api_key](../README.md#api_key)
48
57
 
49
58
  ### HTTP request headers
50
59
 
51
60
  - **Content-Type**: application/json
52
- - **Accept**: */*
61
+ - **Accept**: application/json
53
62
 
54
63
 
55
64
 
@@ -62,6 +71,13 @@ Lists all of the files that are stored within a given library item.
62
71
  ```ruby
63
72
  # load the gem
64
73
  require 'vsphere-automation-content'
74
+ # setup authorization
75
+ VSphereAutomation::Configuration.new.tap do |config|
76
+ # Configure API key authorization: api_key
77
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
78
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
79
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
80
+ end
65
81
 
66
82
  api_instance = VSphereAutomation::Content::LibraryItemFileApi.new
67
83
  library_item_id = 'library_item_id_example' # String | Identifier of the library item whose files should be listed.
@@ -87,12 +103,12 @@ Name | Type | Description | Notes
87
103
 
88
104
  ### Authorization
89
105
 
90
- No authorization required
106
+ [api_key](../README.md#api_key)
91
107
 
92
108
  ### HTTP request headers
93
109
 
94
110
  - **Content-Type**: Not defined
95
- - **Accept**: */*
111
+ - **Accept**: application/json
96
112
 
97
113
 
98
114