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
data/docs/LibraryApi.md CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *https://<vcenter>/rest*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**find**](LibraryApi.md#find) | **POST** /com/vmware/content/library?~action=find | Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
7
+ [**find**](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}.
8
8
  [**get**](LibraryApi.md#get) | **GET** /com/vmware/content/library/id:{library_id} | Returns a given {@link LibraryModel}.
9
9
  [**list**](LibraryApi.md#list) | **GET** /com/vmware/content/library | Returns the identifiers of all libraries of any type in the Content Library.
10
10
  [**update**](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}.
11
11
 
12
12
 
13
13
  # **find**
14
- > ContentLibraryFindResult find(content_library_find)
14
+ > ContentLibraryFindResult find(action, request_body)
15
15
 
16
16
  Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
17
17
 
@@ -19,13 +19,21 @@ Returns a list of all the visible (as determined by authorization policy) librar
19
19
  ```ruby
20
20
  # load the gem
21
21
  require 'vsphere-automation-content'
22
+ # setup authorization
23
+ VSphereAutomation::Configuration.new.tap do |config|
24
+ # Configure API key authorization: api_key
25
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
28
+ end
22
29
 
23
30
  api_instance = VSphereAutomation::Content::LibraryApi.new
24
- content_library_find = VSphereAutomation::ContentLibraryFind.new # ContentLibraryFind |
31
+ action = 'action_example' # String | ~action=find
32
+ request_body = Content::ContentLibraryFind.new # ContentLibraryFind |
25
33
 
26
34
  begin
27
35
  #Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
28
- result = api_instance.find(content_library_find)
36
+ result = api_instance.find(action, request_body)
29
37
  p result
30
38
  rescue VSphereAutomation::ApiError => e
31
39
  puts "Exception when calling LibraryApi->find: #{e}"
@@ -36,7 +44,8 @@ end
36
44
 
37
45
  Name | Type | Description | Notes
38
46
  ------------- | ------------- | ------------- | -------------
39
- **content_library_find** | [**ContentLibraryFind**](ContentLibraryFind.md)| |
47
+ **action** | **String**| ~action=find |
48
+ **request_body** | [**ContentLibraryFind**](ContentLibraryFind.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 @@ Returns a given {@link LibraryModel}.
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::LibraryApi.new
67
83
  library_id = 'library_id_example' # String | Identifier of the library to return.
@@ -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
 
@@ -105,6 +121,13 @@ Returns the identifiers of all libraries of any type in the Content Library.
105
121
  ```ruby
106
122
  # load the gem
107
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
108
131
 
109
132
  api_instance = VSphereAutomation::Content::LibraryApi.new
110
133
 
@@ -126,17 +149,17 @@ This endpoint does not need any parameter.
126
149
 
127
150
  ### Authorization
128
151
 
129
- No authorization required
152
+ [api_key](../README.md#api_key)
130
153
 
131
154
  ### HTTP request headers
132
155
 
133
156
  - **Content-Type**: Not defined
134
- - **Accept**: */*
157
+ - **Accept**: application/json
135
158
 
136
159
 
137
160
 
138
161
  # **update**
139
- > update(library_id, content_library_update)
162
+ > update(library_id, request_body)
140
163
 
141
164
  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}.
142
165
 
@@ -144,14 +167,21 @@ Updates the properties of a library. <p> This is an incremental update to the li
144
167
  ```ruby
145
168
  # load the gem
146
169
  require 'vsphere-automation-content'
170
+ # setup authorization
171
+ VSphereAutomation::Configuration.new.tap do |config|
172
+ # Configure API key authorization: api_key
173
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
174
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
175
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
176
+ end
147
177
 
148
178
  api_instance = VSphereAutomation::Content::LibraryApi.new
149
179
  library_id = 'library_id_example' # String | Identifier of the library to update.
150
- content_library_update = VSphereAutomation::ContentLibraryUpdate.new # ContentLibraryUpdate |
180
+ request_body = Content::ContentLibraryUpdate.new # ContentLibraryUpdate |
151
181
 
152
182
  begin
153
183
  #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}.
154
- api_instance.update(library_id, content_library_update)
184
+ api_instance.update(library_id, request_body)
155
185
  rescue VSphereAutomation::ApiError => e
156
186
  puts "Exception when calling LibraryApi->update: #{e}"
157
187
  end
@@ -162,7 +192,7 @@ end
162
192
  Name | Type | Description | Notes
163
193
  ------------- | ------------- | ------------- | -------------
164
194
  **library_id** | **String**| Identifier of the library to update. |
165
- **content_library_update** | [**ContentLibraryUpdate**](ContentLibraryUpdate.md)| |
195
+ **request_body** | [**ContentLibraryUpdate**](ContentLibraryUpdate.md)| |
166
196
 
167
197
  ### Return type
168
198
 
@@ -170,12 +200,12 @@ nil (empty response body)
170
200
 
171
201
  ### Authorization
172
202
 
173
- No authorization required
203
+ [api_key](../README.md#api_key)
174
204
 
175
205
  ### HTTP request headers
176
206
 
177
207
  - **Content-Type**: application/json
178
- - **Accept**: */*
208
+ - **Accept**: application/json
179
209
 
180
210
 
181
211
 
@@ -4,17 +4,18 @@ All URIs are relative to *https://&lt;vcenter&gt;/rest*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**copy**](LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id}?~action&#x3D;copy | Copies a library item. &lt;p&gt; 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. &lt;p&gt; 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. &lt;p&gt; A library item cannot be copied into a subscribed library.
7
+ [**copy**](LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id} | Copies a library item. &lt;p&gt; 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. &lt;p&gt; 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. &lt;p&gt; A library item cannot be copied into a subscribed library.
8
8
  [**create**](LibraryItemApi.md#create) | **POST** /com/vmware/content/library/item | Creates a new library item. &lt;p&gt; A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. &lt;p&gt; A library item cannot be created in a subscribed library.
9
9
  [**delete**](LibraryItemApi.md#delete) | **DELETE** /com/vmware/content/library/item/id:{library_item_id} | Deletes a library item. &lt;p&gt; 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. &lt;p&gt; 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.
10
10
  [**find**](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}.
11
11
  [**get**](LibraryItemApi.md#get) | **GET** /com/vmware/content/library/item/id:{library_item_id} | Returns the {@link ItemModel} with the given identifier.
12
12
  [**list**](LibraryItemApi.md#list) | **GET** /com/vmware/content/library/item | Returns the identifiers of all items in the given library.
13
+ [**publish**](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.
13
14
  [**update**](LibraryItemApi.md#update) | **PATCH** /com/vmware/content/library/item/id:{library_item_id} | Updates the specified properties of a library item. &lt;p&gt; This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. &lt;p&gt; 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.
14
15
 
15
16
 
16
17
  # **copy**
17
- > ContentLibraryItemCopyResult copy(source_library_item_id, content_library_item_copy)
18
+ > ContentLibraryItemCopyResult copy(source_library_item_id, action, request_body)
18
19
 
19
20
  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.
20
21
 
@@ -22,14 +23,22 @@ Copies a library item. <p> Copying a library item allows a duplicate to be made
22
23
  ```ruby
23
24
  # load the gem
24
25
  require 'vsphere-automation-content'
26
+ # setup authorization
27
+ VSphereAutomation::Configuration.new.tap do |config|
28
+ # Configure API key authorization: api_key
29
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
32
+ end
25
33
 
26
34
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
27
35
  source_library_item_id = 'source_library_item_id_example' # String | Identifier of the existing library item from which the content will be copied.
28
- content_library_item_copy = VSphereAutomation::ContentLibraryItemCopy.new # ContentLibraryItemCopy |
36
+ action = 'action_example' # String | ~action=copy
37
+ request_body = Content::ContentLibraryItemCopy.new # ContentLibraryItemCopy |
29
38
 
30
39
  begin
31
40
  #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.
32
- result = api_instance.copy(source_library_item_id, content_library_item_copy)
41
+ result = api_instance.copy(source_library_item_id, action, request_body)
33
42
  p result
34
43
  rescue VSphereAutomation::ApiError => e
35
44
  puts "Exception when calling LibraryItemApi->copy: #{e}"
@@ -41,7 +50,8 @@ end
41
50
  Name | Type | Description | Notes
42
51
  ------------- | ------------- | ------------- | -------------
43
52
  **source_library_item_id** | **String**| Identifier of the existing library item from which the content will be copied. |
44
- **content_library_item_copy** | [**ContentLibraryItemCopy**](ContentLibraryItemCopy.md)| |
53
+ **action** | **String**| ~action&#x3D;copy |
54
+ **request_body** | [**ContentLibraryItemCopy**](ContentLibraryItemCopy.md)| |
45
55
 
46
56
  ### Return type
47
57
 
@@ -49,17 +59,17 @@ Name | Type | Description | Notes
49
59
 
50
60
  ### Authorization
51
61
 
52
- No authorization required
62
+ [api_key](../README.md#api_key)
53
63
 
54
64
  ### HTTP request headers
55
65
 
56
66
  - **Content-Type**: application/json
57
- - **Accept**: */*
67
+ - **Accept**: application/json
58
68
 
59
69
 
60
70
 
61
71
  # **create**
62
- > ContentLibraryItemCreateResult create(content_library_item_create)
72
+ > ContentLibraryItemCreateResult create(request_body)
63
73
 
64
74
  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.
65
75
 
@@ -67,13 +77,20 @@ Creates a new library item. <p> A new library item is created without any conten
67
77
  ```ruby
68
78
  # load the gem
69
79
  require 'vsphere-automation-content'
80
+ # setup authorization
81
+ VSphereAutomation::Configuration.new.tap do |config|
82
+ # Configure API key authorization: api_key
83
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
84
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
85
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
86
+ end
70
87
 
71
88
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
72
- content_library_item_create = VSphereAutomation::ContentLibraryItemCreate.new # ContentLibraryItemCreate |
89
+ request_body = Content::ContentLibraryItemCreate.new # ContentLibraryItemCreate |
73
90
 
74
91
  begin
75
92
  #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.
76
- result = api_instance.create(content_library_item_create)
93
+ result = api_instance.create(request_body)
77
94
  p result
78
95
  rescue VSphereAutomation::ApiError => e
79
96
  puts "Exception when calling LibraryItemApi->create: #{e}"
@@ -84,7 +101,7 @@ end
84
101
 
85
102
  Name | Type | Description | Notes
86
103
  ------------- | ------------- | ------------- | -------------
87
- **content_library_item_create** | [**ContentLibraryItemCreate**](ContentLibraryItemCreate.md)| |
104
+ **request_body** | [**ContentLibraryItemCreate**](ContentLibraryItemCreate.md)| |
88
105
 
89
106
  ### Return type
90
107
 
@@ -92,12 +109,12 @@ Name | Type | Description | Notes
92
109
 
93
110
  ### Authorization
94
111
 
95
- No authorization required
112
+ [api_key](../README.md#api_key)
96
113
 
97
114
  ### HTTP request headers
98
115
 
99
116
  - **Content-Type**: application/json
100
- - **Accept**: */*
117
+ - **Accept**: application/json
101
118
 
102
119
 
103
120
 
@@ -110,6 +127,13 @@ Deletes a library item. <p> This {@term operation} will immediately remove the i
110
127
  ```ruby
111
128
  # load the gem
112
129
  require 'vsphere-automation-content'
130
+ # setup authorization
131
+ VSphereAutomation::Configuration.new.tap do |config|
132
+ # Configure API key authorization: api_key
133
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
134
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
135
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
136
+ end
113
137
 
114
138
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
115
139
  library_item_id = 'library_item_id_example' # String | Identifier of the library item to delete.
@@ -134,17 +158,17 @@ nil (empty response body)
134
158
 
135
159
  ### Authorization
136
160
 
137
- No authorization required
161
+ [api_key](../README.md#api_key)
138
162
 
139
163
  ### HTTP request headers
140
164
 
141
165
  - **Content-Type**: Not defined
142
- - **Accept**: */*
166
+ - **Accept**: application/json
143
167
 
144
168
 
145
169
 
146
170
  # **find**
147
- > ContentLibraryItemFindResult find(content_library_item_find)
171
+ > ContentLibraryItemFindResult find(request_body)
148
172
 
149
173
  Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
150
174
 
@@ -152,13 +176,20 @@ Returns identifiers of all the visible (as determined by authorization policy) l
152
176
  ```ruby
153
177
  # load the gem
154
178
  require 'vsphere-automation-content'
179
+ # setup authorization
180
+ VSphereAutomation::Configuration.new.tap do |config|
181
+ # Configure API key authorization: api_key
182
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
183
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
184
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
185
+ end
155
186
 
156
187
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
157
- content_library_item_find = VSphereAutomation::ContentLibraryItemFind.new # ContentLibraryItemFind |
188
+ request_body = Content::ContentLibraryItemFind.new # ContentLibraryItemFind |
158
189
 
159
190
  begin
160
191
  #Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
161
- result = api_instance.find(content_library_item_find)
192
+ result = api_instance.find(request_body)
162
193
  p result
163
194
  rescue VSphereAutomation::ApiError => e
164
195
  puts "Exception when calling LibraryItemApi->find: #{e}"
@@ -169,7 +200,7 @@ end
169
200
 
170
201
  Name | Type | Description | Notes
171
202
  ------------- | ------------- | ------------- | -------------
172
- **content_library_item_find** | [**ContentLibraryItemFind**](ContentLibraryItemFind.md)| |
203
+ **request_body** | [**ContentLibraryItemFind**](ContentLibraryItemFind.md)| |
173
204
 
174
205
  ### Return type
175
206
 
@@ -177,12 +208,12 @@ Name | Type | Description | Notes
177
208
 
178
209
  ### Authorization
179
210
 
180
- No authorization required
211
+ [api_key](../README.md#api_key)
181
212
 
182
213
  ### HTTP request headers
183
214
 
184
215
  - **Content-Type**: application/json
185
- - **Accept**: */*
216
+ - **Accept**: application/json
186
217
 
187
218
 
188
219
 
@@ -195,6 +226,13 @@ Returns the {@link ItemModel} with the given identifier.
195
226
  ```ruby
196
227
  # load the gem
197
228
  require 'vsphere-automation-content'
229
+ # setup authorization
230
+ VSphereAutomation::Configuration.new.tap do |config|
231
+ # Configure API key authorization: api_key
232
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
233
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
234
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
235
+ end
198
236
 
199
237
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
200
238
  library_item_id = 'library_item_id_example' # String | Identifier of the library item to return.
@@ -220,12 +258,12 @@ Name | Type | Description | Notes
220
258
 
221
259
  ### Authorization
222
260
 
223
- No authorization required
261
+ [api_key](../README.md#api_key)
224
262
 
225
263
  ### HTTP request headers
226
264
 
227
265
  - **Content-Type**: Not defined
228
- - **Accept**: */*
266
+ - **Accept**: application/json
229
267
 
230
268
 
231
269
 
@@ -238,6 +276,13 @@ Returns the identifiers of all items in the given library.
238
276
  ```ruby
239
277
  # load the gem
240
278
  require 'vsphere-automation-content'
279
+ # setup authorization
280
+ VSphereAutomation::Configuration.new.tap do |config|
281
+ # Configure API key authorization: api_key
282
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
283
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
284
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
285
+ end
241
286
 
242
287
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
243
288
  library_id = 'library_id_example' # String | Identifier of the library whose items should be returned.
@@ -263,17 +308,70 @@ Name | Type | Description | Notes
263
308
 
264
309
  ### Authorization
265
310
 
266
- No authorization required
311
+ [api_key](../README.md#api_key)
267
312
 
268
313
  ### HTTP request headers
269
314
 
270
315
  - **Content-Type**: Not defined
271
- - **Accept**: */*
316
+ - **Accept**: application/json
317
+
318
+
319
+
320
+ # **publish**
321
+ > publish(library_item_id, action, request_body)
322
+
323
+ 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.
324
+
325
+ ### Example
326
+ ```ruby
327
+ # load the gem
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
336
+
337
+ api_instance = VSphereAutomation::Content::LibraryItemApi.new
338
+ library_item_id = 'library_item_id_example' # String | Library item identifier.
339
+ action = 'action_example' # String | ~action=publish
340
+ request_body = Content::ContentLibraryItemPublish.new # ContentLibraryItemPublish |
341
+
342
+ begin
343
+ #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.
344
+ api_instance.publish(library_item_id, action, request_body)
345
+ rescue VSphereAutomation::ApiError => e
346
+ puts "Exception when calling LibraryItemApi->publish: #{e}"
347
+ end
348
+ ```
349
+
350
+ ### Parameters
351
+
352
+ Name | Type | Description | Notes
353
+ ------------- | ------------- | ------------- | -------------
354
+ **library_item_id** | **String**| Library item identifier. |
355
+ **action** | **String**| ~action&#x3D;publish |
356
+ **request_body** | [**ContentLibraryItemPublish**](ContentLibraryItemPublish.md)| |
357
+
358
+ ### Return type
359
+
360
+ nil (empty response body)
361
+
362
+ ### Authorization
363
+
364
+ [api_key](../README.md#api_key)
365
+
366
+ ### HTTP request headers
367
+
368
+ - **Content-Type**: application/json
369
+ - **Accept**: application/json
272
370
 
273
371
 
274
372
 
275
373
  # **update**
276
- > update(library_item_id, content_library_item_update)
374
+ > update(library_item_id, request_body)
277
375
 
278
376
  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.
279
377
 
@@ -281,14 +379,21 @@ Updates the specified properties of a library item. <p> This is an incremental u
281
379
  ```ruby
282
380
  # load the gem
283
381
  require 'vsphere-automation-content'
382
+ # setup authorization
383
+ VSphereAutomation::Configuration.new.tap do |config|
384
+ # Configure API key authorization: api_key
385
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
386
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
387
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
388
+ end
284
389
 
285
390
  api_instance = VSphereAutomation::Content::LibraryItemApi.new
286
391
  library_item_id = 'library_item_id_example' # String | Identifier of the library item to update.
287
- content_library_item_update = VSphereAutomation::ContentLibraryItemUpdate.new # ContentLibraryItemUpdate |
392
+ request_body = Content::ContentLibraryItemUpdate.new # ContentLibraryItemUpdate |
288
393
 
289
394
  begin
290
395
  #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.
291
- api_instance.update(library_item_id, content_library_item_update)
396
+ api_instance.update(library_item_id, request_body)
292
397
  rescue VSphereAutomation::ApiError => e
293
398
  puts "Exception when calling LibraryItemApi->update: #{e}"
294
399
  end
@@ -299,7 +404,7 @@ end
299
404
  Name | Type | Description | Notes
300
405
  ------------- | ------------- | ------------- | -------------
301
406
  **library_item_id** | **String**| Identifier of the library item to update. |
302
- **content_library_item_update** | [**ContentLibraryItemUpdate**](ContentLibraryItemUpdate.md)| |
407
+ **request_body** | [**ContentLibraryItemUpdate**](ContentLibraryItemUpdate.md)| |
303
408
 
304
409
  ### Return type
305
410
 
@@ -307,12 +412,12 @@ nil (empty response body)
307
412
 
308
413
  ### Authorization
309
414
 
310
- No authorization required
415
+ [api_key](../README.md#api_key)
311
416
 
312
417
  ### HTTP request headers
313
418
 
314
419
  - **Content-Type**: application/json
315
- - **Accept**: */*
420
+ - **Accept**: application/json
316
421
 
317
422
 
318
423