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
@@ -4,7 +4,7 @@ All URIs are relative to *https://<vcenter>/rest*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**add**](LibraryItemUpdatesessionFileApi.md#add) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=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.
7
+ [**add**](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.
8
8
  [**get**](LibraryItemUpdatesessionFileApi.md#get) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=get | Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
9
9
  [**list**](LibraryItemUpdatesessionFileApi.md#list) | **GET** /com/vmware/content/library/item/updatesession/file | Lists all files in the library item associated with the update session.
10
10
  [**remove**](LibraryItemUpdatesessionFileApi.md#remove) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=remove | Requests a file to be removed. The file will only be effectively removed when the update session is completed.
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
 
14
14
  # **add**
15
- > ContentLibraryItemUpdatesessionFileAddResult add(update_session_id, content_library_item_updatesession_file_add)
15
+ > ContentLibraryItemUpdatesessionFileAddResult add(update_session_id, action, request_body)
16
16
 
17
17
  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.
18
18
 
@@ -20,14 +20,22 @@ Requests file content to be changed (either created, or updated). Depending on t
20
20
  ```ruby
21
21
  # load the gem
22
22
  require 'vsphere-automation-content'
23
+ # setup authorization
24
+ VSphereAutomation::Configuration.new.tap do |config|
25
+ # Configure API key authorization: api_key
26
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
29
+ end
23
30
 
24
31
  api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
25
32
  update_session_id = 'update_session_id_example' # String | Identifier of the update session to be modified.
26
- content_library_item_updatesession_file_add = VSphereAutomation::ContentLibraryItemUpdatesessionFileAdd.new # ContentLibraryItemUpdatesessionFileAdd |
33
+ action = 'action_example' # String | ~action=add
34
+ request_body = Content::ContentLibraryItemUpdatesessionFileAdd.new # ContentLibraryItemUpdatesessionFileAdd |
27
35
 
28
36
  begin
29
37
  #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.
30
- result = api_instance.add(update_session_id, content_library_item_updatesession_file_add)
38
+ result = api_instance.add(update_session_id, action, request_body)
31
39
  p result
32
40
  rescue VSphereAutomation::ApiError => e
33
41
  puts "Exception when calling LibraryItemUpdatesessionFileApi->add: #{e}"
@@ -39,7 +47,8 @@ end
39
47
  Name | Type | Description | Notes
40
48
  ------------- | ------------- | ------------- | -------------
41
49
  **update_session_id** | **String**| Identifier of the update session to be modified. |
42
- **content_library_item_updatesession_file_add** | [**ContentLibraryItemUpdatesessionFileAdd**](ContentLibraryItemUpdatesessionFileAdd.md)| |
50
+ **action** | **String**| ~action&#x3D;add |
51
+ **request_body** | [**ContentLibraryItemUpdatesessionFileAdd**](ContentLibraryItemUpdatesessionFileAdd.md)| |
43
52
 
44
53
  ### Return type
45
54
 
@@ -47,17 +56,17 @@ Name | Type | Description | Notes
47
56
 
48
57
  ### Authorization
49
58
 
50
- No authorization required
59
+ [api_key](../README.md#api_key)
51
60
 
52
61
  ### HTTP request headers
53
62
 
54
63
  - **Content-Type**: application/json
55
- - **Accept**: */*
64
+ - **Accept**: application/json
56
65
 
57
66
 
58
67
 
59
68
  # **get**
60
- > ContentLibraryItemUpdatesessionFileResult get(update_session_id, content_library_item_updatesession_file_get)
69
+ > ContentLibraryItemUpdatesessionFileResult get(update_session_id, request_body)
61
70
 
62
71
  Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
63
72
 
@@ -65,14 +74,21 @@ Retrieves information about a specific file in the snapshot of the library item
65
74
  ```ruby
66
75
  # load the gem
67
76
  require 'vsphere-automation-content'
77
+ # setup authorization
78
+ VSphereAutomation::Configuration.new.tap do |config|
79
+ # Configure API key authorization: api_key
80
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
81
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
82
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
83
+ end
68
84
 
69
85
  api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
70
86
  update_session_id = 'update_session_id_example' # String | Identifier of the update session.
71
- content_library_item_updatesession_file_get = VSphereAutomation::ContentLibraryItemUpdatesessionFileGet.new # ContentLibraryItemUpdatesessionFileGet |
87
+ request_body = Content::ContentLibraryItemUpdatesessionFileGet.new # ContentLibraryItemUpdatesessionFileGet |
72
88
 
73
89
  begin
74
90
  #Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
75
- result = api_instance.get(update_session_id, content_library_item_updatesession_file_get)
91
+ result = api_instance.get(update_session_id, request_body)
76
92
  p result
77
93
  rescue VSphereAutomation::ApiError => e
78
94
  puts "Exception when calling LibraryItemUpdatesessionFileApi->get: #{e}"
@@ -84,7 +100,7 @@ end
84
100
  Name | Type | Description | Notes
85
101
  ------------- | ------------- | ------------- | -------------
86
102
  **update_session_id** | **String**| Identifier of the update session. |
87
- **content_library_item_updatesession_file_get** | [**ContentLibraryItemUpdatesessionFileGet**](ContentLibraryItemUpdatesessionFileGet.md)| |
103
+ **request_body** | [**ContentLibraryItemUpdatesessionFileGet**](ContentLibraryItemUpdatesessionFileGet.md)| |
88
104
 
89
105
  ### Return type
90
106
 
@@ -92,12 +108,12 @@ Name | Type | Description | Notes
92
108
 
93
109
  ### Authorization
94
110
 
95
- No authorization required
111
+ [api_key](../README.md#api_key)
96
112
 
97
113
  ### HTTP request headers
98
114
 
99
115
  - **Content-Type**: application/json
100
- - **Accept**: */*
116
+ - **Accept**: application/json
101
117
 
102
118
 
103
119
 
@@ -110,6 +126,13 @@ Lists all files in the library item associated with the update session.
110
126
  ```ruby
111
127
  # load the gem
112
128
  require 'vsphere-automation-content'
129
+ # setup authorization
130
+ VSphereAutomation::Configuration.new.tap do |config|
131
+ # Configure API key authorization: api_key
132
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
133
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
134
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
135
+ end
113
136
 
114
137
  api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
115
138
  update_session_id = 'update_session_id_example' # String | Identifier of the update session.
@@ -135,17 +158,17 @@ Name | Type | Description | Notes
135
158
 
136
159
  ### Authorization
137
160
 
138
- No authorization required
161
+ [api_key](../README.md#api_key)
139
162
 
140
163
  ### HTTP request headers
141
164
 
142
165
  - **Content-Type**: Not defined
143
- - **Accept**: */*
166
+ - **Accept**: application/json
144
167
 
145
168
 
146
169
 
147
170
  # **remove**
148
- > remove(update_session_id, content_library_item_updatesession_file_remove)
171
+ > remove(update_session_id, request_body)
149
172
 
150
173
  Requests a file to be removed. The file will only be effectively removed when the update session is completed.
151
174
 
@@ -153,14 +176,21 @@ Requests a file to be removed. The file will only be effectively removed when th
153
176
  ```ruby
154
177
  # load the gem
155
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
156
186
 
157
187
  api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
158
188
  update_session_id = 'update_session_id_example' # String | Identifier of the update session.
159
- content_library_item_updatesession_file_remove = VSphereAutomation::ContentLibraryItemUpdatesessionFileRemove.new # ContentLibraryItemUpdatesessionFileRemove |
189
+ request_body = Content::ContentLibraryItemUpdatesessionFileRemove.new # ContentLibraryItemUpdatesessionFileRemove |
160
190
 
161
191
  begin
162
192
  #Requests a file to be removed. The file will only be effectively removed when the update session is completed.
163
- api_instance.remove(update_session_id, content_library_item_updatesession_file_remove)
193
+ api_instance.remove(update_session_id, request_body)
164
194
  rescue VSphereAutomation::ApiError => e
165
195
  puts "Exception when calling LibraryItemUpdatesessionFileApi->remove: #{e}"
166
196
  end
@@ -171,7 +201,7 @@ end
171
201
  Name | Type | Description | Notes
172
202
  ------------- | ------------- | ------------- | -------------
173
203
  **update_session_id** | **String**| Identifier of the update session. |
174
- **content_library_item_updatesession_file_remove** | [**ContentLibraryItemUpdatesessionFileRemove**](ContentLibraryItemUpdatesessionFileRemove.md)| |
204
+ **request_body** | [**ContentLibraryItemUpdatesessionFileRemove**](ContentLibraryItemUpdatesessionFileRemove.md)| |
175
205
 
176
206
  ### Return type
177
207
 
@@ -179,12 +209,12 @@ nil (empty response body)
179
209
 
180
210
  ### Authorization
181
211
 
182
- No authorization required
212
+ [api_key](../README.md#api_key)
183
213
 
184
214
  ### HTTP request headers
185
215
 
186
216
  - **Content-Type**: application/json
187
- - **Accept**: */*
217
+ - **Accept**: application/json
188
218
 
189
219
 
190
220
 
@@ -197,6 +227,13 @@ Validates the files in the update session with the referenced identifier and ens
197
227
  ```ruby
198
228
  # load the gem
199
229
  require 'vsphere-automation-content'
230
+ # setup authorization
231
+ VSphereAutomation::Configuration.new.tap do |config|
232
+ # Configure API key authorization: api_key
233
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
234
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
235
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
236
+ end
200
237
 
201
238
  api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
202
239
  update_session_id = 'update_session_id_example' # String | Identifier of the update session to validate.
@@ -222,12 +259,12 @@ Name | Type | Description | Notes
222
259
 
223
260
  ### Authorization
224
261
 
225
- No authorization required
262
+ [api_key](../README.md#api_key)
226
263
 
227
264
  ### HTTP request headers
228
265
 
229
266
  - **Content-Type**: Not defined
230
- - **Accept**: */*
267
+ - **Accept**: application/json
231
268
 
232
269
 
233
270
 
@@ -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
- [**evict**](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. &lt;p&gt; 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.
7
+ [**evict**](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. &lt;p&gt; 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.
8
8
  [**sync**](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. &lt;p&gt; Synchronizing an individual item will update that item&#39;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. &lt;p&gt; The default behavior of the synchronization is determined by the {@link SubscriptionInfo} of the library which owns the library item. &lt;ul&gt; &lt;li&gt;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}.&lt;/li&gt; &lt;li&gt;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.&lt;/li&gt; &lt;/ul&gt; When the file content has been synchronized, the {@link ItemModel#cached} {@term field} will be true. &lt;p&gt; This {@term operation} will return immediately and create an asynchronous task to perform the synchronization.
9
9
 
10
10
 
11
11
  # **evict**
12
- > evict(library_item_id)
12
+ > evict(library_item_id, action)
13
13
 
14
14
  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.
15
15
 
@@ -17,13 +17,21 @@ Evicts the cached content of a library item in a subscribed library. <p> This {@
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::LibrarySubscribedItemApi.new
22
29
  library_item_id = 'library_item_id_example' # String | Identifier of the library item whose content should be evicted.
30
+ action = 'action_example' # String | ~action=evict
23
31
 
24
32
  begin
25
33
  #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.
26
- api_instance.evict(library_item_id)
34
+ api_instance.evict(library_item_id, action)
27
35
  rescue VSphereAutomation::ApiError => e
28
36
  puts "Exception when calling LibrarySubscribedItemApi->evict: #{e}"
29
37
  end
@@ -34,6 +42,7 @@ end
34
42
  Name | Type | Description | Notes
35
43
  ------------- | ------------- | ------------- | -------------
36
44
  **library_item_id** | **String**| Identifier of the library item whose content should be evicted. |
45
+ **action** | **String**| ~action&#x3D;evict |
37
46
 
38
47
  ### Return type
39
48
 
@@ -41,17 +50,17 @@ nil (empty response body)
41
50
 
42
51
  ### Authorization
43
52
 
44
- No authorization required
53
+ [api_key](../README.md#api_key)
45
54
 
46
55
  ### HTTP request headers
47
56
 
48
57
  - **Content-Type**: Not defined
49
- - **Accept**: */*
58
+ - **Accept**: application/json
50
59
 
51
60
 
52
61
 
53
62
  # **sync**
54
- > sync(library_item_id, content_library_subscribed_item_sync)
63
+ > sync(library_item_id, request_body)
55
64
 
56
65
  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.
57
66
 
@@ -59,14 +68,21 @@ Forces the synchronization of an individual library item in a subscribed library
59
68
  ```ruby
60
69
  # load the gem
61
70
  require 'vsphere-automation-content'
71
+ # setup authorization
72
+ VSphereAutomation::Configuration.new.tap do |config|
73
+ # Configure API key authorization: api_key
74
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
75
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
76
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
77
+ end
62
78
 
63
79
  api_instance = VSphereAutomation::Content::LibrarySubscribedItemApi.new
64
80
  library_item_id = 'library_item_id_example' # String | Identifier of the library item to synchronize.
65
- content_library_subscribed_item_sync = VSphereAutomation::ContentLibrarySubscribedItemSync.new # ContentLibrarySubscribedItemSync |
81
+ request_body = Content::ContentLibrarySubscribedItemSync.new # ContentLibrarySubscribedItemSync |
66
82
 
67
83
  begin
68
84
  #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.
69
- api_instance.sync(library_item_id, content_library_subscribed_item_sync)
85
+ api_instance.sync(library_item_id, request_body)
70
86
  rescue VSphereAutomation::ApiError => e
71
87
  puts "Exception when calling LibrarySubscribedItemApi->sync: #{e}"
72
88
  end
@@ -77,7 +93,7 @@ end
77
93
  Name | Type | Description | Notes
78
94
  ------------- | ------------- | ------------- | -------------
79
95
  **library_item_id** | **String**| Identifier of the library item to synchronize. |
80
- **content_library_subscribed_item_sync** | [**ContentLibrarySubscribedItemSync**](ContentLibrarySubscribedItemSync.md)| |
96
+ **request_body** | [**ContentLibrarySubscribedItemSync**](ContentLibrarySubscribedItemSync.md)| |
81
97
 
82
98
  ### Return type
83
99
 
@@ -85,12 +101,12 @@ nil (empty response body)
85
101
 
86
102
  ### Authorization
87
103
 
88
- No authorization required
104
+ [api_key](../README.md#api_key)
89
105
 
90
106
  ### HTTP request headers
91
107
 
92
108
  - **Content-Type**: application/json
93
- - **Accept**: */*
109
+ - **Accept**: application/json
94
110
 
95
111
 
96
112
 
@@ -0,0 +1,269 @@
1
+ # VSphereAutomation::Content::LibrarySubscriptionsApi
2
+
3
+ All URIs are relative to *https://&lt;vcenter&gt;/rest*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](LibrarySubscriptionsApi.md#create) | **POST** /com/vmware/content/library/subscriptions/id:{library} | Creates a subscription of the published library.
8
+ [**delete**](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.
9
+ [**get**](LibrarySubscriptionsApi.md#get) | **POST** /com/vmware/content/library/subscriptions/id:{library}?~action&#x3D;get | Returns information about the specified subscription of the published library.
10
+ [**list**](LibrarySubscriptionsApi.md#list) | **GET** /com/vmware/content/library/subscriptions | Lists the subscriptions of the published library.
11
+ [**update**](LibrarySubscriptionsApi.md#update) | **PATCH** /com/vmware/content/library/subscriptions/id:{library} | Updates the specified subscription of the published library. &lt;p&gt; 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.
12
+
13
+
14
+ # **create**
15
+ > ContentLibrarySubscriptionsCreateResult create(library, request_body)
16
+
17
+ Creates a subscription of the published library.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'vsphere-automation-content'
23
+ # setup authorization
24
+ VSphereAutomation::Configuration.new.tap do |config|
25
+ # Configure API key authorization: api_key
26
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
32
+ library = 'library_example' # String | Identifier of the published library.
33
+ request_body = Content::ContentLibrarySubscriptionsCreate.new # ContentLibrarySubscriptionsCreate |
34
+
35
+ begin
36
+ #Creates a subscription of the published library.
37
+ result = api_instance.create(library, request_body)
38
+ p result
39
+ rescue VSphereAutomation::ApiError => e
40
+ puts "Exception when calling LibrarySubscriptionsApi->create: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **library** | **String**| Identifier of the published library. |
49
+ **request_body** | [**ContentLibrarySubscriptionsCreate**](ContentLibrarySubscriptionsCreate.md)| |
50
+
51
+ ### Return type
52
+
53
+ [**ContentLibrarySubscriptionsCreateResult**](ContentLibrarySubscriptionsCreateResult.md)
54
+
55
+ ### Authorization
56
+
57
+ [api_key](../README.md#api_key)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+
66
+ # **delete**
67
+ > delete(library, request_body)
68
+
69
+ Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted.
70
+
71
+ ### Example
72
+ ```ruby
73
+ # load the gem
74
+ require 'vsphere-automation-content'
75
+ # setup authorization
76
+ VSphereAutomation::Configuration.new.tap do |config|
77
+ # Configure API key authorization: api_key
78
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
79
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
80
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
81
+ end
82
+
83
+ api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
84
+ library = 'library_example' # String | Identifier of the published library.
85
+ request_body = Content::ContentLibrarySubscriptionsDelete.new # ContentLibrarySubscriptionsDelete |
86
+
87
+ begin
88
+ #Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted.
89
+ api_instance.delete(library, request_body)
90
+ rescue VSphereAutomation::ApiError => e
91
+ puts "Exception when calling LibrarySubscriptionsApi->delete: #{e}"
92
+ end
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ Name | Type | Description | Notes
98
+ ------------- | ------------- | ------------- | -------------
99
+ **library** | **String**| Identifier of the published library. |
100
+ **request_body** | [**ContentLibrarySubscriptionsDelete**](ContentLibrarySubscriptionsDelete.md)| |
101
+
102
+ ### Return type
103
+
104
+ nil (empty response body)
105
+
106
+ ### Authorization
107
+
108
+ [api_key](../README.md#api_key)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+
117
+ # **get**
118
+ > ContentLibrarySubscriptionsResult get(library, request_body)
119
+
120
+ Returns information about the specified subscription of the published library.
121
+
122
+ ### Example
123
+ ```ruby
124
+ # load the gem
125
+ require 'vsphere-automation-content'
126
+ # setup authorization
127
+ VSphereAutomation::Configuration.new.tap do |config|
128
+ # Configure API key authorization: api_key
129
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
130
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
131
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
132
+ end
133
+
134
+ api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
135
+ library = 'library_example' # String | Identifier of the published library.
136
+ request_body = Content::ContentLibrarySubscriptionsGet.new # ContentLibrarySubscriptionsGet |
137
+
138
+ begin
139
+ #Returns information about the specified subscription of the published library.
140
+ result = api_instance.get(library, request_body)
141
+ p result
142
+ rescue VSphereAutomation::ApiError => e
143
+ puts "Exception when calling LibrarySubscriptionsApi->get: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ Name | Type | Description | Notes
150
+ ------------- | ------------- | ------------- | -------------
151
+ **library** | **String**| Identifier of the published library. |
152
+ **request_body** | [**ContentLibrarySubscriptionsGet**](ContentLibrarySubscriptionsGet.md)| |
153
+
154
+ ### Return type
155
+
156
+ [**ContentLibrarySubscriptionsResult**](ContentLibrarySubscriptionsResult.md)
157
+
158
+ ### Authorization
159
+
160
+ [api_key](../README.md#api_key)
161
+
162
+ ### HTTP request headers
163
+
164
+ - **Content-Type**: application/json
165
+ - **Accept**: application/json
166
+
167
+
168
+
169
+ # **list**
170
+ > ContentLibrarySubscriptionsListResult list(library)
171
+
172
+ Lists the subscriptions of the published library.
173
+
174
+ ### Example
175
+ ```ruby
176
+ # load the gem
177
+ require 'vsphere-automation-content'
178
+ # setup authorization
179
+ VSphereAutomation::Configuration.new.tap do |config|
180
+ # Configure API key authorization: api_key
181
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
182
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
183
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
184
+ end
185
+
186
+ api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
187
+ library = 'library_example' # String | Identifier of the published library.
188
+
189
+ begin
190
+ #Lists the subscriptions of the published library.
191
+ result = api_instance.list(library)
192
+ p result
193
+ rescue VSphereAutomation::ApiError => e
194
+ puts "Exception when calling LibrarySubscriptionsApi->list: #{e}"
195
+ end
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ Name | Type | Description | Notes
201
+ ------------- | ------------- | ------------- | -------------
202
+ **library** | **String**| Identifier of the published library. |
203
+
204
+ ### Return type
205
+
206
+ [**ContentLibrarySubscriptionsListResult**](ContentLibrarySubscriptionsListResult.md)
207
+
208
+ ### Authorization
209
+
210
+ [api_key](../README.md#api_key)
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: Not defined
215
+ - **Accept**: application/json
216
+
217
+
218
+
219
+ # **update**
220
+ > update(library, request_body)
221
+
222
+ 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.
223
+
224
+ ### Example
225
+ ```ruby
226
+ # load the gem
227
+ require 'vsphere-automation-content'
228
+ # setup authorization
229
+ VSphereAutomation::Configuration.new.tap do |config|
230
+ # Configure API key authorization: api_key
231
+ config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
232
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
233
+ #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
234
+ end
235
+
236
+ api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
237
+ library = 'library_example' # String | Identifier of the published library.
238
+ request_body = Content::ContentLibrarySubscriptionsUpdate.new # ContentLibrarySubscriptionsUpdate |
239
+
240
+ begin
241
+ #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.
242
+ api_instance.update(library, request_body)
243
+ rescue VSphereAutomation::ApiError => e
244
+ puts "Exception when calling LibrarySubscriptionsApi->update: #{e}"
245
+ end
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ Name | Type | Description | Notes
251
+ ------------- | ------------- | ------------- | -------------
252
+ **library** | **String**| Identifier of the published library. |
253
+ **request_body** | [**ContentLibrarySubscriptionsUpdate**](ContentLibrarySubscriptionsUpdate.md)| |
254
+
255
+ ### Return type
256
+
257
+ nil (empty response body)
258
+
259
+ ### Authorization
260
+
261
+ [api_key](../README.md#api_key)
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: application/json
266
+ - **Accept**: application/json
267
+
268
+
269
+