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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc08ea5ffe4c0e8a0153ba76c9e71b2239d7713e79346f2510dc7128519bcdb5
4
- data.tar.gz: c8e0ad9e1fc32fbb843e77853414ef752a2846cbd64cd8ca22af63e11bac2291
3
+ metadata.gz: b68b5c504cc382d72d02338520c8106d852ac31463d212bb3752ee9131ecc7e8
4
+ data.tar.gz: eb5fe7f9aeb9a8056332987f7d95493bce9665e6b1aade0fcea3c2b461f2cce2
5
5
  SHA512:
6
- metadata.gz: 2de902b95cf26e55fca81eed72666de3df45e14c43d959d04fdb0c73b131648e8cf3831bbbbc221905ca89f0fe197103b41febf5695247dbdf1293a0ef267003
7
- data.tar.gz: 90ae8043e4539a138b0d481b9d6522e846291ec9442d412fcb519caec794808fb4356d89e1afa66c37102f43f86045fb9176e26464ef1a731e38ab9899ec233d
6
+ metadata.gz: ecc4bfb6d4d2d036f2b50003133c409cb4808faa115e562697902b2fb6185c733fa897a87bb043b5d128c58ac17b193d1dde62cd775c7ea2e2d96948bd5c418b
7
+ data.tar.gz: 8699204704837f2510fad5865ab574321ef5aa9a850b944e6d6633aa1059bd3c26081e8bdfa38c3ed3e842a55cfbcdfbf77106be586d6cb37c30058f98360d43
data/Gemfile CHANGED
@@ -1,3 +1,14 @@
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
+
6
+ # content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
7
+
8
+
1
9
  source 'https://rubygems.org'
2
10
 
3
- gemspec
11
+ gem 'vsphere-automation-runtime', path: '../runtime'
12
+ gem 'vsphere-automation-cis', path: '../cis'
13
+
14
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,79 +1,92 @@
1
+ PATH
2
+ remote: ../cis
3
+ specs:
4
+ vsphere-automation-cis (0.2.0)
5
+ vsphere-automation-runtime (~> 0.2.0)
6
+
7
+ PATH
8
+ remote: ../runtime
9
+ specs:
10
+ vsphere-automation-runtime (0.2.0)
11
+ typhoeus (~> 1.3)
12
+
1
13
  PATH
2
14
  remote: .
3
15
  specs:
4
- vsphere-automation-content (0.1.0)
5
- json (~> 2.1, >= 2.1.0)
6
- typhoeus (~> 1.0, >= 1.0.1)
16
+ vsphere-automation-content (0.2.0)
17
+ vsphere-automation-cis (~> 0.2.0)
18
+ vsphere-automation-runtime (~> 0.2.0)
7
19
 
8
20
  GEM
9
21
  remote: https://rubygems.org/
10
22
  specs:
11
- ZenTest (4.11.1)
12
- addressable (2.5.2)
23
+ addressable (2.6.0)
13
24
  public_suffix (>= 2.0.2, < 4.0)
14
- autotest (4.4.6)
15
- ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.14)
17
- sys-uname
18
- autotest-growl (0.2.16)
19
- autotest-rails-pure (4.1.2)
20
- byebug (10.0.2)
25
+ ast (2.4.0)
21
26
  coderay (1.1.2)
22
27
  crack (0.4.3)
23
28
  safe_yaml (~> 1.0.0)
24
29
  diff-lcs (1.3)
25
- ethon (0.11.0)
30
+ ethon (0.12.0)
26
31
  ffi (>= 1.3.0)
27
- ffi (1.9.25)
28
- hashdiff (0.3.7)
29
- json (2.1.0)
30
- method_source (0.9.0)
31
- pry (0.11.3)
32
+ ffi (1.11.1)
33
+ hashdiff (1.0.0)
34
+ jaro_winkler (1.5.3)
35
+ method_source (0.9.2)
36
+ parallel (1.17.0)
37
+ parser (2.6.3.0)
38
+ ast (~> 2.4.0)
39
+ pry (0.12.2)
32
40
  coderay (~> 1.1.0)
33
41
  method_source (~> 0.9.0)
34
- pry-byebug (3.6.0)
35
- byebug (~> 10.0)
36
- pry (~> 0.10)
37
- public_suffix (3.0.3)
38
- rake (12.0.0)
42
+ public_suffix (3.1.1)
43
+ rainbow (3.0.0)
44
+ rake (12.3.3)
39
45
  rspec (3.8.0)
40
46
  rspec-core (~> 3.8.0)
41
47
  rspec-expectations (~> 3.8.0)
42
48
  rspec-mocks (~> 3.8.0)
43
- rspec-core (3.8.0)
49
+ rspec-core (3.8.2)
44
50
  rspec-support (~> 3.8.0)
45
- rspec-expectations (3.8.1)
51
+ rspec-expectations (3.8.4)
46
52
  diff-lcs (>= 1.2.0, < 2.0)
47
53
  rspec-support (~> 3.8.0)
48
- rspec-mocks (3.8.0)
54
+ rspec-mocks (3.8.1)
49
55
  diff-lcs (>= 1.2.0, < 2.0)
50
56
  rspec-support (~> 3.8.0)
51
- rspec-support (3.8.0)
52
- safe_yaml (1.0.4)
53
- sys-uname (1.0.3)
54
- ffi (>= 1.0.0)
55
- typhoeus (1.3.0)
57
+ rspec-support (3.8.2)
58
+ rubocop (0.73.0)
59
+ jaro_winkler (~> 1.5.1)
60
+ parallel (~> 1.10)
61
+ parser (>= 2.6)
62
+ rainbow (>= 2.2.2, < 4.0)
63
+ ruby-progressbar (~> 1.7)
64
+ unicode-display_width (>= 1.4.0, < 1.7)
65
+ ruby-progressbar (1.10.1)
66
+ safe_yaml (1.0.5)
67
+ typhoeus (1.3.1)
56
68
  ethon (>= 0.9.0)
57
- vcr (3.0.3)
58
- webmock (1.24.6)
69
+ unicode-display_width (1.6.0)
70
+ vcr (5.0.0)
71
+ webmock (3.6.2)
59
72
  addressable (>= 2.3.6)
60
73
  crack (>= 0.3.2)
61
- hashdiff
74
+ hashdiff (>= 0.4.0, < 2.0.0)
62
75
 
63
76
  PLATFORMS
64
77
  ruby
65
78
 
66
79
  DEPENDENCIES
67
- autotest (~> 4.4, >= 4.4.6)
68
- autotest-fsevent (~> 0.2, >= 0.2.12)
69
- autotest-growl (~> 0.2, >= 0.2.16)
70
- autotest-rails-pure (~> 4.1, >= 4.1.2)
80
+ bundler (~> 2.0)
81
+ pry (~> 0.12.2)
82
+ rake (~> 12.3)
83
+ rspec (~> 3.7)
84
+ rubocop (~> 0.73.0)
85
+ vcr (~> 5.0)
86
+ vsphere-automation-cis!
71
87
  vsphere-automation-content!
72
- pry-byebug
73
- rake (~> 12.0.0)
74
- rspec (~> 3.6, >= 3.6.0)
75
- vcr (~> 3.0, >= 3.0.1)
76
- webmock (~> 1.24, >= 1.24.3)
88
+ vsphere-automation-runtime!
89
+ webmock (~> 3.6)
77
90
 
78
91
  BUNDLED WITH
79
- 1.16.1
92
+ 2.0.2
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  The Ruby gem for the vSphere Content API
4
4
 
5
5
  - API version: 2.0.0
6
- - Package version: 0.1.0
6
+ - Package version: 0.2.0
7
7
 
8
8
  ## Installation
9
9
 
@@ -29,11 +29,20 @@ Please follow the [installation](#installation) procedure and then run the follo
29
29
  # Load the gem
30
30
  require 'vsphere-automation-content'
31
31
 
32
+ # Setup authorization
33
+ VSphereAutomation.configure do |config|
34
+ # Configure API key authorization: api_key
35
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
36
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
37
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
38
+ end
39
+
32
40
  api_instance = VSphereAutomation::Content::ConfigurationApi.new
41
+ action = 'action_example' # String | ~action=get
33
42
 
34
43
  begin
35
44
  #Retrieves the current configuration values.
36
- result = api_instance.get
45
+ result = api_instance.get(action)
37
46
  p result
38
47
  rescue VSphereAutomation::ApiError => e
39
48
  puts "Exception when calling ConfigurationApi->get: #{e}"
@@ -47,35 +56,36 @@ All URIs are relative to *https://&lt;vcenter&gt;/rest*
47
56
 
48
57
  Class | Method | HTTP request | Description
49
58
  ------------ | ------------- | ------------- | -------------
50
- `VSphereAutomation::Content::ConfigurationApi` | [**get**](docs/ConfigurationApi.md#get) | **POST** /com/vmware/content/configuration?~action&#x3D;get | Retrieves the current configuration values.
59
+ `VSphereAutomation::Content::ConfigurationApi` | [**get**](docs/ConfigurationApi.md#get) | **POST** /com/vmware/content/configuration | Retrieves the current configuration values.
51
60
  `VSphereAutomation::Content::ConfigurationApi` | [**update**](docs/ConfigurationApi.md#update) | **PATCH** /com/vmware/content/configuration | Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn't guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
52
- `VSphereAutomation::Content::LibraryApi` | [**find**](docs/LibraryApi.md#find) | **POST** /com/vmware/content/library?~action&#x3D;find | Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
61
+ `VSphereAutomation::Content::LibraryApi` | [**find**](docs/LibraryApi.md#find) | **POST** /com/vmware/content/library | Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
53
62
  `VSphereAutomation::Content::LibraryApi` | [**get**](docs/LibraryApi.md#get) | **GET** /com/vmware/content/library/id:{library_id} | Returns a given {@link LibraryModel}.
54
63
  `VSphereAutomation::Content::LibraryApi` | [**list**](docs/LibraryApi.md#list) | **GET** /com/vmware/content/library | Returns the identifiers of all libraries of any type in the Content Library.
55
64
  `VSphereAutomation::Content::LibraryApi` | [**update**](docs/LibraryApi.md#update) | **PATCH** /com/vmware/content/library/id:{library_id} | Updates the properties of a library. <p> This is an incremental update to the library. Any {@term field} in the {@link LibraryModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the common properties for all library types. This will not, for example, update the {@link LibraryModel#publishInfo} of a local library, nor the {@link LibraryModel#subscriptionInfo} of a subscribed library. Specific properties are updated in {@link LocalLibrary#update} and {@link SubscribedLibrary#update}.
56
- `VSphereAutomation::Content::LibraryItemApi` | [**copy**](docs/LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id}?~action&#x3D;copy | Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
65
+ `VSphereAutomation::Content::LibraryItemApi` | [**copy**](docs/LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id} | Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
57
66
  `VSphereAutomation::Content::LibraryItemApi` | [**create**](docs/LibraryItemApi.md#create) | **POST** /com/vmware/content/library/item | Creates a new library item. <p> A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. <p> A library item cannot be created in a subscribed library.
58
67
  `VSphereAutomation::Content::LibraryItemApi` | [**delete**](docs/LibraryItemApi.md#delete) | **DELETE** /com/vmware/content/library/item/id:{library_item_id} | Deletes a library item. <p> This {@term operation} will immediately remove the item from the library that owns it. The content of the item will be asynchronously removed from the storage backings. The content deletion can be tracked with a task. In the event that the task fails, an administrator may need to manually remove the files from the storage backing. <p> This {@term operation} cannot be used to delete a library item that is a member of a subscribed library. Removing an item from a subscribed library requires deleting the item from the original published local library and syncing the subscribed library.
59
68
  `VSphereAutomation::Content::LibraryItemApi` | [**find**](docs/LibraryItemApi.md#find) | **POST** /com/vmware/content/library/item?~action&#x3D;find | Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
60
69
  `VSphereAutomation::Content::LibraryItemApi` | [**get**](docs/LibraryItemApi.md#get) | **GET** /com/vmware/content/library/item/id:{library_item_id} | Returns the {@link ItemModel} with the given identifier.
61
70
  `VSphereAutomation::Content::LibraryItemApi` | [**list**](docs/LibraryItemApi.md#list) | **GET** /com/vmware/content/library/item | Returns the identifiers of all items in the given library.
71
+ `VSphereAutomation::Content::LibraryItemApi` | [**publish**](docs/LibraryItemApi.md#publish) | **POST** /com/vmware/content/library/item/id:{library_item_id} | Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library.
62
72
  `VSphereAutomation::Content::LibraryItemApi` | [**update**](docs/LibraryItemApi.md#update) | **PATCH** /com/vmware/content/library/item/id:{library_item_id} | Updates the specified properties of a library item. <p> This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. <p> This {@term operation} cannot update a library item that is a member of a subscribed library. Those items must be updated in the source published library and synchronized to the subscribed library.
63
73
  `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**cancel**](docs/LibraryItemDownloadSessionApi.md#cancel) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action&#x3D;cancel | Cancels the download session. This {@term operation} will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
64
74
  `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**create**](docs/LibraryItemDownloadSessionApi.md#create) | **POST** /com/vmware/content/library/item/download-session | Creates a new download session.
65
75
  `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**delete**](docs/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.
66
- `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**fail**](docs/LibraryItemDownloadSessionApi.md#fail) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action&#x3D;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.
76
+ `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**fail**](docs/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.
67
77
  `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**get**](docs/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.
68
78
  `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**keep_alive**](docs/LibraryItemDownloadSessionApi.md#keep_alive) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action&#x3D;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.
69
79
  `VSphereAutomation::Content::LibraryItemDownloadSessionApi` | [**list**](docs/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.
70
80
  `VSphereAutomation::Content::LibraryItemDownloadsessionFileApi` | [**get**](docs/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.
71
81
  `VSphereAutomation::Content::LibraryItemDownloadsessionFileApi` | [**list**](docs/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.
72
- `VSphereAutomation::Content::LibraryItemDownloadsessionFileApi` | [**prepare**](docs/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.
73
- `VSphereAutomation::Content::LibraryItemFileApi` | [**get**](docs/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.
82
+ `VSphereAutomation::Content::LibraryItemDownloadsessionFileApi` | [**prepare**](docs/LibraryItemDownloadsessionFileApi.md#prepare) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id} | Requests a file to be prepared for download.
83
+ `VSphereAutomation::Content::LibraryItemFileApi` | [**get**](docs/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.
74
84
  `VSphereAutomation::Content::LibraryItemFileApi` | [**list**](docs/LibraryItemFileApi.md#list) | **GET** /com/vmware/content/library/item/file | Lists all of the files that are stored within a given library item.
75
- `VSphereAutomation::Content::LibraryItemStorageApi` | [**get**](docs/LibraryItemStorageApi.md#get) | **POST** /com/vmware/content/library/item/storage/id:{library_item_id}?~action&#x3D;get | Retrieves the storage information for a specific file in a library item.
85
+ `VSphereAutomation::Content::LibraryItemStorageApi` | [**get**](docs/LibraryItemStorageApi.md#get) | **POST** /com/vmware/content/library/item/storage/id:{library_item_id} | Retrieves the storage information for a specific file in a library item.
76
86
  `VSphereAutomation::Content::LibraryItemStorageApi` | [**list**](docs/LibraryItemStorageApi.md#list) | **GET** /com/vmware/content/library/item/storage | Lists all storage items for a given library item.
77
87
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**cancel**](docs/LibraryItemUpdateSessionApi.md#cancel) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}?~action&#x3D;cancel | 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.
78
- `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**complete**](docs/LibraryItemUpdateSessionApi.md#complete) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}?~action&#x3D;complete | 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.
88
+ `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**complete**](docs/LibraryItemUpdateSessionApi.md#complete) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id} | 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.
79
89
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**create**](docs/LibraryItemUpdateSessionApi.md#create) | **POST** /com/vmware/content/library/item/update-session | 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.
80
90
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**delete**](docs/LibraryItemUpdateSessionApi.md#delete) | **DELETE** /com/vmware/content/library/item/update-session/id:{update_session_id} | 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.
81
91
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**fail**](docs/LibraryItemUpdateSessionApi.md#fail) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}?~action&#x3D;fail | 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.
@@ -83,17 +93,23 @@ Class | Method | HTTP request | Description
83
93
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**keep_alive**](docs/LibraryItemUpdateSessionApi.md#keep_alive) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}?~action&#x3D;keep-alive | 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.
84
94
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**list**](docs/LibraryItemUpdateSessionApi.md#list) | **GET** /com/vmware/content/library/item/update-session | Lists the identifiers of the update session created by the calling user. Optionally may filter by library item.
85
95
  `VSphereAutomation::Content::LibraryItemUpdateSessionApi` | [**update**](docs/LibraryItemUpdateSessionApi.md#update) | **PATCH** /com/vmware/content/library/item/update-session/id:{update_session_id} | 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.
86
- `VSphereAutomation::Content::LibraryItemUpdatesessionFileApi` | [**add**](docs/LibraryItemUpdatesessionFileApi.md#add) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action&#x3D;add | Requests file content to be changed (either created, or updated). Depending on the source type of the file, this {@term operation} will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this {@term operation} will be used to update the content of the existing file. <p> When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
96
+ `VSphereAutomation::Content::LibraryItemUpdatesessionFileApi` | [**add**](docs/LibraryItemUpdatesessionFileApi.md#add) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id} | Requests file content to be changed (either created, or updated). Depending on the source type of the file, this {@term operation} will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this {@term operation} will be used to update the content of the existing file. <p> When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
87
97
  `VSphereAutomation::Content::LibraryItemUpdatesessionFileApi` | [**get**](docs/LibraryItemUpdatesessionFileApi.md#get) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action&#x3D;get | Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
88
98
  `VSphereAutomation::Content::LibraryItemUpdatesessionFileApi` | [**list**](docs/LibraryItemUpdatesessionFileApi.md#list) | **GET** /com/vmware/content/library/item/updatesession/file | Lists all files in the library item associated with the update session.
89
99
  `VSphereAutomation::Content::LibraryItemUpdatesessionFileApi` | [**remove**](docs/LibraryItemUpdatesessionFileApi.md#remove) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action&#x3D;remove | Requests a file to be removed. The file will only be effectively removed when the update session is completed.
90
100
  `VSphereAutomation::Content::LibraryItemUpdatesessionFileApi` | [**validate**](docs/LibraryItemUpdatesessionFileApi.md#validate) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action&#x3D;validate | Validates the files in the update session with the referenced identifier and ensures all necessary files are received. In the case where a file is missing, this {@term operation} will return its name in the {@link ValidationResult#missingFiles} set. The user can add the missing files and try re-validating. For other type of errors, {@link ValidationResult#invalidFiles} will contain the list of invalid files.
91
- `VSphereAutomation::Content::LibrarySubscribedItemApi` | [**evict**](docs/LibrarySubscribedItemApi.md#evict) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id}?~action&#x3D;evict | Evicts the cached content of a library item in a subscribed library. <p> This {@term operation} allows the cached content of a library item to be removed to free up storage capacity. This {@term operation} will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set {@link ItemModel#cached} to false.
101
+ `VSphereAutomation::Content::LibrarySubscribedItemApi` | [**evict**](docs/LibrarySubscribedItemApi.md#evict) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id} | Evicts the cached content of a library item in a subscribed library. <p> This {@term operation} allows the cached content of a library item to be removed to free up storage capacity. This {@term operation} will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set {@link ItemModel#cached} to false.
92
102
  `VSphereAutomation::Content::LibrarySubscribedItemApi` | [**sync**](docs/LibrarySubscribedItemApi.md#sync) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id}?~action&#x3D;sync | Forces the synchronization of an individual library item in a subscribed library. <p> Synchronizing an individual item will update that item's metadata from the remote source. If the source library item on the remote library has been deleted, this {@term operation} will delete the library item from the subscribed library as well. <p> The default behavior of the synchronization is determined by the {@link SubscriptionInfo} of the library which owns the library item. <ul> <li>If {@link SubscriptionInfo#onDemand} is true, then the file content is not synchronized by default. In this case, only the library item metadata is synchronized. The file content may still be forcefully synchronized by passing true for the {@param.name forceSyncContent} {@term parameter}.</li> <li>If {@link SubscriptionInfo#onDemand} is false, then this call will always synchronize the file content. The {@param.name forceSyncContent} {@term parameter} is ignored when the subscription is not on-demand.</li> </ul> When the file content has been synchronized, the {@link ItemModel#cached} {@term field} will be true. <p> This {@term operation} will return immediately and create an asynchronous task to perform the synchronization.
103
+ `VSphereAutomation::Content::LibrarySubscriptionsApi` | [**create**](docs/LibrarySubscriptionsApi.md#create) | **POST** /com/vmware/content/library/subscriptions/id:{library} | Creates a subscription of the published library.
104
+ `VSphereAutomation::Content::LibrarySubscriptionsApi` | [**delete**](docs/LibrarySubscriptionsApi.md#delete) | **POST** /com/vmware/content/library/subscriptions/id:{library}?~action&#x3D;delete | Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted.
105
+ `VSphereAutomation::Content::LibrarySubscriptionsApi` | [**get**](docs/LibrarySubscriptionsApi.md#get) | **POST** /com/vmware/content/library/subscriptions/id:{library}?~action&#x3D;get | Returns information about the specified subscription of the published library.
106
+ `VSphereAutomation::Content::LibrarySubscriptionsApi` | [**list**](docs/LibrarySubscriptionsApi.md#list) | **GET** /com/vmware/content/library/subscriptions | Lists the subscriptions of the published library.
107
+ `VSphereAutomation::Content::LibrarySubscriptionsApi` | [**update**](docs/LibrarySubscriptionsApi.md#update) | **PATCH** /com/vmware/content/library/subscriptions/id:{library} | Updates the specified subscription of the published library. <p> This is an incremental update to the subscription. Except for the {@link UpdateSpecPlacement} {@term structure}, {@term fields} that are {@term unset} in the update specification will be left unchanged. If {@param.name spec#subscribedLibraryPlacement} is specified, all {@term fields} of the current subscribed library placement will be replaced by this placement.
93
108
  `VSphereAutomation::Content::LocalLibraryApi` | [**create**](docs/LocalLibraryApi.md#create) | **POST** /com/vmware/content/local-library | Creates a new local library.
94
109
  `VSphereAutomation::Content::LocalLibraryApi` | [**delete**](docs/LocalLibraryApi.md#delete) | **DELETE** /com/vmware/content/local-library/id:{library_id} | Deletes the specified local library. <p> Deleting a local library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
95
110
  `VSphereAutomation::Content::LocalLibraryApi` | [**get**](docs/LocalLibraryApi.md#get) | **GET** /com/vmware/content/local-library/id:{library_id} | Returns a given local library.
96
111
  `VSphereAutomation::Content::LocalLibraryApi` | [**list**](docs/LocalLibraryApi.md#list) | **GET** /com/vmware/content/local-library | Returns the identifiers of all local libraries in the Content Library.
112
+ `VSphereAutomation::Content::LocalLibraryApi` | [**publish**](docs/LocalLibraryApi.md#publish) | **POST** /com/vmware/content/local-library/id:{library_id} | Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions.
97
113
  `VSphereAutomation::Content::LocalLibraryApi` | [**update**](docs/LocalLibraryApi.md#update) | **PATCH** /com/vmware/content/local-library/id:{library_id} | Updates the properties of a local library. <p> This is an incremental update to the local library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
98
114
  `VSphereAutomation::Content::SubscribedLibraryApi` | [**create**](docs/SubscribedLibraryApi.md#create) | **POST** /com/vmware/content/subscribed-library | Creates a new subscribed library. <p> Once created, the subscribed library will be empty. If the {@link LibraryModel#subscriptionInfo} property is set, the Content Library Service will attempt to synchronize to the remote source. This is an asynchronous operation so the content of the published library may not immediately appear.
99
115
  `VSphereAutomation::Content::SubscribedLibraryApi` | [**delete**](docs/SubscribedLibraryApi.md#delete) | **DELETE** /com/vmware/content/subscribed-library/id:{library_id} | Deletes the specified subscribed library. <p> Deleting a subscribed library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
@@ -101,7 +117,7 @@ Class | Method | HTTP request | Description
101
117
  `VSphereAutomation::Content::SubscribedLibraryApi` | [**get**](docs/SubscribedLibraryApi.md#get) | **GET** /com/vmware/content/subscribed-library/id:{library_id} | Returns a given subscribed library.
102
118
  `VSphereAutomation::Content::SubscribedLibraryApi` | [**list**](docs/SubscribedLibraryApi.md#list) | **GET** /com/vmware/content/subscribed-library | Returns the identifiers of all subscribed libraries in the Content Library.
103
119
  `VSphereAutomation::Content::SubscribedLibraryApi` | [**probe**](docs/SubscribedLibraryApi.md#probe) | **POST** /com/vmware/content/subscribed-library?~action&#x3D;probe | Probes remote library subscription information, including URL, SSL certificate and password. The resulting {@link ProbeResult} {@term structure} describes whether or not the subscription configuration is successful.
104
- `VSphereAutomation::Content::SubscribedLibraryApi` | [**sync**](docs/SubscribedLibraryApi.md#sync) | **POST** /com/vmware/content/subscribed-library/id:{library_id}?~action&#x3D;sync | Forces the synchronization of the subscribed library. <p> Synchronizing a subscribed library forcefully with this {@term operation} will perform the same synchronization behavior as would run periodically for the library. The {@link SubscriptionInfo#onDemand} setting is respected. Calling this {@term operation} on a library that is already in the process of synchronizing will have no effect.
120
+ `VSphereAutomation::Content::SubscribedLibraryApi` | [**sync**](docs/SubscribedLibraryApi.md#sync) | **POST** /com/vmware/content/subscribed-library/id:{library_id} | Forces the synchronization of the subscribed library. <p> Synchronizing a subscribed library forcefully with this {@term operation} will perform the same synchronization behavior as would run periodically for the library. The {@link SubscriptionInfo#onDemand} setting is respected. Calling this {@term operation} on a library that is already in the process of synchronizing will have no effect.
105
121
  `VSphereAutomation::Content::SubscribedLibraryApi` | [**update**](docs/SubscribedLibraryApi.md#update) | **PATCH** /com/vmware/content/subscribed-library/id:{library_id} | Updates the properties of a subscribed library. <p> This is an incremental update to the subscribed library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
106
122
 
107
123
 
@@ -117,6 +133,7 @@ Class | Method | HTTP request | Description
117
133
  - [VSphereAutomation::Content::ContentLibraryItemCopyResult](docs/ContentLibraryItemCopyResult.md)
118
134
  - [VSphereAutomation::Content::ContentLibraryItemCreate](docs/ContentLibraryItemCreate.md)
119
135
  - [VSphereAutomation::Content::ContentLibraryItemCreateResult](docs/ContentLibraryItemCreateResult.md)
136
+ - [VSphereAutomation::Content::ContentLibraryItemDestinationSpec](docs/ContentLibraryItemDestinationSpec.md)
120
137
  - [VSphereAutomation::Content::ContentLibraryItemDownloadSessionCreate](docs/ContentLibraryItemDownloadSessionCreate.md)
121
138
  - [VSphereAutomation::Content::ContentLibraryItemDownloadSessionCreateResult](docs/ContentLibraryItemDownloadSessionCreateResult.md)
122
139
  - [VSphereAutomation::Content::ContentLibraryItemDownloadSessionFail](docs/ContentLibraryItemDownloadSessionFail.md)
@@ -144,6 +161,7 @@ Class | Method | HTTP request | Description
144
161
  - [VSphereAutomation::Content::ContentLibraryItemFindSpec](docs/ContentLibraryItemFindSpec.md)
145
162
  - [VSphereAutomation::Content::ContentLibraryItemListResult](docs/ContentLibraryItemListResult.md)
146
163
  - [VSphereAutomation::Content::ContentLibraryItemModel](docs/ContentLibraryItemModel.md)
164
+ - [VSphereAutomation::Content::ContentLibraryItemPublish](docs/ContentLibraryItemPublish.md)
147
165
  - [VSphereAutomation::Content::ContentLibraryItemResult](docs/ContentLibraryItemResult.md)
148
166
  - [VSphereAutomation::Content::ContentLibraryItemStorageGet](docs/ContentLibraryItemStorageGet.md)
149
167
  - [VSphereAutomation::Content::ContentLibraryItemStorageInfo](docs/ContentLibraryItemStorageInfo.md)
@@ -186,15 +204,39 @@ Class | Method | HTTP request | Description
186
204
  - [VSphereAutomation::Content::ContentLibraryPublishInfo](docs/ContentLibraryPublishInfo.md)
187
205
  - [VSphereAutomation::Content::ContentLibraryPublishInfoAuthenticationMethod](docs/ContentLibraryPublishInfoAuthenticationMethod.md)
188
206
  - [VSphereAutomation::Content::ContentLibraryResult](docs/ContentLibraryResult.md)
207
+ - [VSphereAutomation::Content::ContentLibrarySourceInfo](docs/ContentLibrarySourceInfo.md)
189
208
  - [VSphereAutomation::Content::ContentLibraryStorageBacking](docs/ContentLibraryStorageBacking.md)
190
209
  - [VSphereAutomation::Content::ContentLibraryStorageBackingType](docs/ContentLibraryStorageBackingType.md)
191
210
  - [VSphereAutomation::Content::ContentLibrarySubscribedItemSync](docs/ContentLibrarySubscribedItemSync.md)
192
211
  - [VSphereAutomation::Content::ContentLibrarySubscriptionInfo](docs/ContentLibrarySubscriptionInfo.md)
193
212
  - [VSphereAutomation::Content::ContentLibrarySubscriptionInfoAuthenticationMethod](docs/ContentLibrarySubscriptionInfoAuthenticationMethod.md)
213
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreate](docs/ContentLibrarySubscriptionsCreate.md)
214
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateResult](docs/ContentLibrarySubscriptionsCreateResult.md)
215
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateSpec](docs/ContentLibrarySubscriptionsCreateSpec.md)
216
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateSpecNewSubscribedLibrary](docs/ContentLibrarySubscriptionsCreateSpecNewSubscribedLibrary.md)
217
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateSpecPlacement](docs/ContentLibrarySubscriptionsCreateSpecPlacement.md)
218
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateSpecSubscribedLibrary](docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibrary.md)
219
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateSpecSubscribedLibraryTarget](docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibraryTarget.md)
220
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsCreateSpecVcenter](docs/ContentLibrarySubscriptionsCreateSpecVcenter.md)
221
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsDelete](docs/ContentLibrarySubscriptionsDelete.md)
222
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsGet](docs/ContentLibrarySubscriptionsGet.md)
223
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsInfo](docs/ContentLibrarySubscriptionsInfo.md)
224
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsListResult](docs/ContentLibrarySubscriptionsListResult.md)
225
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsLocation](docs/ContentLibrarySubscriptionsLocation.md)
226
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsPlacementInfo](docs/ContentLibrarySubscriptionsPlacementInfo.md)
227
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsResult](docs/ContentLibrarySubscriptionsResult.md)
228
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsSummary](docs/ContentLibrarySubscriptionsSummary.md)
229
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsUpdate](docs/ContentLibrarySubscriptionsUpdate.md)
230
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsUpdateSpec](docs/ContentLibrarySubscriptionsUpdateSpec.md)
231
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsUpdateSpecPlacement](docs/ContentLibrarySubscriptionsUpdateSpecPlacement.md)
232
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsUpdateSpecVcenter](docs/ContentLibrarySubscriptionsUpdateSpecVcenter.md)
233
+ - [VSphereAutomation::Content::ContentLibrarySubscriptionsVcenterInfo](docs/ContentLibrarySubscriptionsVcenterInfo.md)
194
234
  - [VSphereAutomation::Content::ContentLibraryUpdate](docs/ContentLibraryUpdate.md)
195
235
  - [VSphereAutomation::Content::ContentLocalLibraryCreate](docs/ContentLocalLibraryCreate.md)
196
236
  - [VSphereAutomation::Content::ContentLocalLibraryCreateResult](docs/ContentLocalLibraryCreateResult.md)
237
+ - [VSphereAutomation::Content::ContentLocalLibraryDestinationSpec](docs/ContentLocalLibraryDestinationSpec.md)
197
238
  - [VSphereAutomation::Content::ContentLocalLibraryListResult](docs/ContentLocalLibraryListResult.md)
239
+ - [VSphereAutomation::Content::ContentLocalLibraryPublish](docs/ContentLocalLibraryPublish.md)
198
240
  - [VSphereAutomation::Content::ContentLocalLibraryResult](docs/ContentLocalLibraryResult.md)
199
241
  - [VSphereAutomation::Content::ContentLocalLibraryUpdate](docs/ContentLocalLibraryUpdate.md)
200
242
  - [VSphereAutomation::Content::ContentSubscribedLibraryCreate](docs/ContentSubscribedLibraryCreate.md)
@@ -205,8 +247,12 @@ Class | Method | HTTP request | Description
205
247
  - [VSphereAutomation::Content::ContentSubscribedLibraryProbeResultStatus](docs/ContentSubscribedLibraryProbeResultStatus.md)
206
248
  - [VSphereAutomation::Content::ContentSubscribedLibraryResult](docs/ContentSubscribedLibraryResult.md)
207
249
  - [VSphereAutomation::Content::ContentSubscribedLibraryUpdate](docs/ContentSubscribedLibraryUpdate.md)
250
+ - [VSphereAutomation::Content::VapiStdErrorsAlreadyExists](docs/VapiStdErrorsAlreadyExists.md)
251
+ - [VSphereAutomation::Content::VapiStdErrorsAlreadyExistsError](docs/VapiStdErrorsAlreadyExistsError.md)
208
252
  - [VSphereAutomation::Content::VapiStdErrorsConcurrentChange](docs/VapiStdErrorsConcurrentChange.md)
209
253
  - [VSphereAutomation::Content::VapiStdErrorsConcurrentChangeError](docs/VapiStdErrorsConcurrentChangeError.md)
254
+ - [VSphereAutomation::Content::VapiStdErrorsError](docs/VapiStdErrorsError.md)
255
+ - [VSphereAutomation::Content::VapiStdErrorsErrorError](docs/VapiStdErrorsErrorError.md)
210
256
  - [VSphereAutomation::Content::VapiStdErrorsInvalidArgument](docs/VapiStdErrorsInvalidArgument.md)
211
257
  - [VSphereAutomation::Content::VapiStdErrorsInvalidArgumentError](docs/VapiStdErrorsInvalidArgumentError.md)
212
258
  - [VSphereAutomation::Content::VapiStdErrorsInvalidElementConfiguration](docs/VapiStdErrorsInvalidElementConfiguration.md)
@@ -221,6 +267,8 @@ Class | Method | HTTP request | Description
221
267
  - [VSphereAutomation::Content::VapiStdErrorsResourceBusyError](docs/VapiStdErrorsResourceBusyError.md)
222
268
  - [VSphereAutomation::Content::VapiStdErrorsResourceInaccessible](docs/VapiStdErrorsResourceInaccessible.md)
223
269
  - [VSphereAutomation::Content::VapiStdErrorsResourceInaccessibleError](docs/VapiStdErrorsResourceInaccessibleError.md)
270
+ - [VSphereAutomation::Content::VapiStdErrorsUnauthenticated](docs/VapiStdErrorsUnauthenticated.md)
271
+ - [VSphereAutomation::Content::VapiStdErrorsUnauthenticatedError](docs/VapiStdErrorsUnauthenticatedError.md)
224
272
  - [VSphereAutomation::Content::VapiStdErrorsUnauthorized](docs/VapiStdErrorsUnauthorized.md)
225
273
  - [VSphereAutomation::Content::VapiStdErrorsUnauthorizedError](docs/VapiStdErrorsUnauthorizedError.md)
226
274
  - [VSphereAutomation::Content::VapiStdErrorsUnsupported](docs/VapiStdErrorsUnsupported.md)
data/Rakefile CHANGED
@@ -1,3 +1,11 @@
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
+
6
+ # content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
7
+
8
+
1
9
  require "bundler/gem_tasks"
2
10
 
3
11
  begin
@@ -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**](ConfigurationApi.md#get) | **POST** /com/vmware/content/configuration?~action&#x3D;get | Retrieves the current configuration values.
7
+ [**get**](ConfigurationApi.md#get) | **POST** /com/vmware/content/configuration | Retrieves the current configuration values.
8
8
  [**update**](ConfigurationApi.md#update) | **PATCH** /com/vmware/content/configuration | Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn&#39;t guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
9
9
 
10
10
 
11
11
  # **get**
12
- > ContentConfigurationResult get
12
+ > ContentConfigurationResult get(action)
13
13
 
14
14
  Retrieves the current configuration values.
15
15
 
@@ -17,12 +17,20 @@ Retrieves the current configuration values.
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::ConfigurationApi.new
29
+ action = 'action_example' # String | ~action=get
22
30
 
23
31
  begin
24
32
  #Retrieves the current configuration values.
25
- result = api_instance.get
33
+ result = api_instance.get(action)
26
34
  p result
27
35
  rescue VSphereAutomation::ApiError => e
28
36
  puts "Exception when calling ConfigurationApi->get: #{e}"
@@ -30,7 +38,10 @@ end
30
38
  ```
31
39
 
32
40
  ### Parameters
33
- This endpoint does not need any parameter.
41
+
42
+ Name | Type | Description | Notes
43
+ ------------- | ------------- | ------------- | -------------
44
+ **action** | **String**| ~action&#x3D;get |
34
45
 
35
46
  ### Return type
36
47
 
@@ -38,17 +49,17 @@ This endpoint does not need any parameter.
38
49
 
39
50
  ### Authorization
40
51
 
41
- No authorization required
52
+ [api_key](../README.md#api_key)
42
53
 
43
54
  ### HTTP request headers
44
55
 
45
56
  - **Content-Type**: Not defined
46
- - **Accept**: */*
57
+ - **Accept**: application/json
47
58
 
48
59
 
49
60
 
50
61
  # **update**
51
- > update(content_configuration_update)
62
+ > update(request_body)
52
63
 
53
64
  Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn't guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
54
65
 
@@ -56,13 +67,20 @@ Updates the configuration. The update is incremental. Any {@term field} in the {
56
67
  ```ruby
57
68
  # load the gem
58
69
  require 'vsphere-automation-content'
70
+ # setup authorization
71
+ VSphereAutomation::Configuration.new.tap do |config|
72
+ # Configure API key authorization: api_key
73
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
74
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
75
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
76
+ end
59
77
 
60
78
  api_instance = VSphereAutomation::Content::ConfigurationApi.new
61
- content_configuration_update = VSphereAutomation::ContentConfigurationUpdate.new # ContentConfigurationUpdate |
79
+ request_body = Content::ContentConfigurationUpdate.new # ContentConfigurationUpdate |
62
80
 
63
81
  begin
64
82
  #Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn't guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
65
- api_instance.update(content_configuration_update)
83
+ api_instance.update(request_body)
66
84
  rescue VSphereAutomation::ApiError => e
67
85
  puts "Exception when calling ConfigurationApi->update: #{e}"
68
86
  end
@@ -72,7 +90,7 @@ end
72
90
 
73
91
  Name | Type | Description | Notes
74
92
  ------------- | ------------- | ------------- | -------------
75
- **content_configuration_update** | [**ContentConfigurationUpdate**](ContentConfigurationUpdate.md)| |
93
+ **request_body** | [**ContentConfigurationUpdate**](ContentConfigurationUpdate.md)| |
76
94
 
77
95
  ### Return type
78
96
 
@@ -80,12 +98,12 @@ nil (empty response body)
80
98
 
81
99
  ### Authorization
82
100
 
83
- No authorization required
101
+ [api_key](../README.md#api_key)
84
102
 
85
103
  ### HTTP request headers
86
104
 
87
105
  - **Content-Type**: application/json
88
- - **Accept**: */*
106
+ - **Accept**: application/json
89
107
 
90
108
 
91
109