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
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsAlreadyExists
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **messages** | [**Array<VapiStdLocalizableMessage>**](VapiStdLocalizableMessage.md) | Stack of one or more localizable messages for human {@term error} consumers. <p> The message at the top of the stack (first in the list) describes the {@term error} from the perspective of the {@term operation} the client invoked. Each subsequent message in the stack describes the \"cause\" of the prior message. |
7
+ **data** | [**Object**](.md) | Data to facilitate clients responding to the {@term operation} reporting a standard {@term error} to indicating that it was unable to complete successfully. <p> {@term Operations} may provide data that clients can use when responding to {@term errors}. Since the data that clients need may be specific to the context of the {@term operation} reporting the {@term error}, different {@term operations} that report the same {@term error} may provide different data in the {@term error}. The documentation for each each {@term operation} will describe what, if any, data it provides for each {@term error} it reports. The {@link ArgumentLocations}, {@link FileLocations}, and {@link TransientIndication} {@term structures} are intended as possible values for this {@term field}. {@link vapi.std.DynamicID} may also be useful as a value for this {@term field} (although that is not its primary purpose). Some {@term services} may provide their own specific {@term structures} for use as the value of this {@term field} when reporting {@term errors} from their {@term operations}. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsAlreadyExistsError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsAlreadyExists**](VapiStdErrorsAlreadyExists.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **messages** | [**Array<VapiStdLocalizableMessage>**](VapiStdLocalizableMessage.md) | Stack of one or more localizable messages for human {@term error} consumers. <p> The message at the top of the stack (first in the list) describes the {@term error} from the perspective of the {@term operation} the client invoked. Each subsequent message in the stack describes the \"cause\" of the prior message. |
7
+ **data** | [**Object**](.md) | Data to facilitate clients responding to the {@term operation} reporting a standard {@term error} to indicating that it was unable to complete successfully. <p> {@term Operations} may provide data that clients can use when responding to {@term errors}. Since the data that clients need may be specific to the context of the {@term operation} reporting the {@term error}, different {@term operations} that report the same {@term error} may provide different data in the {@term error}. The documentation for each each {@term operation} will describe what, if any, data it provides for each {@term error} it reports. The {@link ArgumentLocations}, {@link FileLocations}, and {@link TransientIndication} {@term structures} are intended as possible values for this {@term field}. {@link vapi.std.DynamicID} may also be useful as a value for this {@term field} (although that is not its primary purpose). Some {@term services} may provide their own specific {@term structures} for use as the value of this {@term field} when reporting {@term errors} from their {@term operations}. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsErrorError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsError**](VapiStdErrorsError.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsUnauthenticated
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **messages** | [**Array<VapiStdLocalizableMessage>**](VapiStdLocalizableMessage.md) | Stack of one or more localizable messages for human {@term error} consumers. <p> The message at the top of the stack (first in the list) describes the {@term error} from the perspective of the {@term operation} the client invoked. Each subsequent message in the stack describes the \"cause\" of the prior message. |
7
+ **data** | [**Object**](.md) | Data to facilitate clients responding to the {@term operation} reporting a standard {@term error} to indicating that it was unable to complete successfully. <p> {@term Operations} may provide data that clients can use when responding to {@term errors}. Since the data that clients need may be specific to the context of the {@term operation} reporting the {@term error}, different {@term operations} that report the same {@term error} may provide different data in the {@term error}. The documentation for each each {@term operation} will describe what, if any, data it provides for each {@term error} it reports. The {@link ArgumentLocations}, {@link FileLocations}, and {@link TransientIndication} {@term structures} are intended as possible values for this {@term field}. {@link vapi.std.DynamicID} may also be useful as a value for this {@term field} (although that is not its primary purpose). Some {@term services} may provide their own specific {@term structures} for use as the value of this {@term field} when reporting {@term errors} from their {@term operations}. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsUnauthenticatedError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsUnauthenticated**](VapiStdErrorsUnauthenticated.md) | | [optional]
8
+
9
+
@@ -1,18 +1,16 @@
1
- =begin
2
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
-
4
- # content
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
5
3
 
6
- # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
7
5
 
6
+ # content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
8
7
 
9
- =end
10
8
 
11
9
  # Common files
12
- require 'vsphere-automation-content/api_client'
13
- require 'vsphere-automation-content/api_error'
10
+ require 'vsphere-automation-runtime/api_client'
11
+ require 'vsphere-automation-runtime/api_error'
12
+ require 'vsphere-automation-runtime/configuration'
14
13
  require 'vsphere-automation-content/version'
15
- require 'vsphere-automation-content/configuration'
16
14
 
17
15
  # Models
18
16
  require 'vsphere-automation-content/models/content_configuration_model'
@@ -25,6 +23,7 @@ require 'vsphere-automation-content/models/content_library_item_copy'
25
23
  require 'vsphere-automation-content/models/content_library_item_copy_result'
26
24
  require 'vsphere-automation-content/models/content_library_item_create'
27
25
  require 'vsphere-automation-content/models/content_library_item_create_result'
26
+ require 'vsphere-automation-content/models/content_library_item_destination_spec'
28
27
  require 'vsphere-automation-content/models/content_library_item_download_session_create'
29
28
  require 'vsphere-automation-content/models/content_library_item_download_session_create_result'
30
29
  require 'vsphere-automation-content/models/content_library_item_download_session_fail'
@@ -52,6 +51,7 @@ require 'vsphere-automation-content/models/content_library_item_find_result'
52
51
  require 'vsphere-automation-content/models/content_library_item_find_spec'
53
52
  require 'vsphere-automation-content/models/content_library_item_list_result'
54
53
  require 'vsphere-automation-content/models/content_library_item_model'
54
+ require 'vsphere-automation-content/models/content_library_item_publish'
55
55
  require 'vsphere-automation-content/models/content_library_item_result'
56
56
  require 'vsphere-automation-content/models/content_library_item_storage_get'
57
57
  require 'vsphere-automation-content/models/content_library_item_storage_info'
@@ -94,15 +94,39 @@ require 'vsphere-automation-content/models/content_library_optimization_info'
94
94
  require 'vsphere-automation-content/models/content_library_publish_info'
95
95
  require 'vsphere-automation-content/models/content_library_publish_info_authentication_method'
96
96
  require 'vsphere-automation-content/models/content_library_result'
97
+ require 'vsphere-automation-content/models/content_library_source_info'
97
98
  require 'vsphere-automation-content/models/content_library_storage_backing'
98
99
  require 'vsphere-automation-content/models/content_library_storage_backing_type'
99
100
  require 'vsphere-automation-content/models/content_library_subscribed_item_sync'
100
101
  require 'vsphere-automation-content/models/content_library_subscription_info'
101
102
  require 'vsphere-automation-content/models/content_library_subscription_info_authentication_method'
103
+ require 'vsphere-automation-content/models/content_library_subscriptions_create'
104
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_result'
105
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_spec'
106
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_new_subscribed_library'
107
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_placement'
108
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library'
109
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library_target'
110
+ require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_vcenter'
111
+ require 'vsphere-automation-content/models/content_library_subscriptions_delete'
112
+ require 'vsphere-automation-content/models/content_library_subscriptions_get'
113
+ require 'vsphere-automation-content/models/content_library_subscriptions_info'
114
+ require 'vsphere-automation-content/models/content_library_subscriptions_list_result'
115
+ require 'vsphere-automation-content/models/content_library_subscriptions_location'
116
+ require 'vsphere-automation-content/models/content_library_subscriptions_placement_info'
117
+ require 'vsphere-automation-content/models/content_library_subscriptions_result'
118
+ require 'vsphere-automation-content/models/content_library_subscriptions_summary'
119
+ require 'vsphere-automation-content/models/content_library_subscriptions_update'
120
+ require 'vsphere-automation-content/models/content_library_subscriptions_update_spec'
121
+ require 'vsphere-automation-content/models/content_library_subscriptions_update_spec_placement'
122
+ require 'vsphere-automation-content/models/content_library_subscriptions_update_spec_vcenter'
123
+ require 'vsphere-automation-content/models/content_library_subscriptions_vcenter_info'
102
124
  require 'vsphere-automation-content/models/content_library_update'
103
125
  require 'vsphere-automation-content/models/content_local_library_create'
104
126
  require 'vsphere-automation-content/models/content_local_library_create_result'
127
+ require 'vsphere-automation-content/models/content_local_library_destination_spec'
105
128
  require 'vsphere-automation-content/models/content_local_library_list_result'
129
+ require 'vsphere-automation-content/models/content_local_library_publish'
106
130
  require 'vsphere-automation-content/models/content_local_library_result'
107
131
  require 'vsphere-automation-content/models/content_local_library_update'
108
132
  require 'vsphere-automation-content/models/content_subscribed_library_create'
@@ -113,8 +137,12 @@ require 'vsphere-automation-content/models/content_subscribed_library_probe_resu
113
137
  require 'vsphere-automation-content/models/content_subscribed_library_probe_result_status'
114
138
  require 'vsphere-automation-content/models/content_subscribed_library_result'
115
139
  require 'vsphere-automation-content/models/content_subscribed_library_update'
140
+ require 'vsphere-automation-content/models/vapi_std_errors_already_exists'
141
+ require 'vsphere-automation-content/models/vapi_std_errors_already_exists_error'
116
142
  require 'vsphere-automation-content/models/vapi_std_errors_concurrent_change'
117
143
  require 'vsphere-automation-content/models/vapi_std_errors_concurrent_change_error'
144
+ require 'vsphere-automation-content/models/vapi_std_errors_error'
145
+ require 'vsphere-automation-content/models/vapi_std_errors_error_error'
118
146
  require 'vsphere-automation-content/models/vapi_std_errors_invalid_argument'
119
147
  require 'vsphere-automation-content/models/vapi_std_errors_invalid_argument_error'
120
148
  require 'vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration'
@@ -129,6 +157,8 @@ require 'vsphere-automation-content/models/vapi_std_errors_resource_busy'
129
157
  require 'vsphere-automation-content/models/vapi_std_errors_resource_busy_error'
130
158
  require 'vsphere-automation-content/models/vapi_std_errors_resource_inaccessible'
131
159
  require 'vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error'
160
+ require 'vsphere-automation-content/models/vapi_std_errors_unauthenticated'
161
+ require 'vsphere-automation-content/models/vapi_std_errors_unauthenticated_error'
132
162
  require 'vsphere-automation-content/models/vapi_std_errors_unauthorized'
133
163
  require 'vsphere-automation-content/models/vapi_std_errors_unauthorized_error'
134
164
  require 'vsphere-automation-content/models/vapi_std_errors_unsupported'
@@ -146,6 +176,7 @@ require 'vsphere-automation-content/api/library_item_storage_api'
146
176
  require 'vsphere-automation-content/api/library_item_update_session_api'
147
177
  require 'vsphere-automation-content/api/library_item_updatesession_file_api'
148
178
  require 'vsphere-automation-content/api/library_subscribed_item_api'
179
+ require 'vsphere-automation-content/api/library_subscriptions_api'
149
180
  require 'vsphere-automation-content/api/local_library_api'
150
181
  require 'vsphere-automation-content/api/subscribed_library_api'
151
182
 
@@ -1,12 +1,10 @@
1
- =begin
2
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
-
4
- # content
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
5
3
 
6
- # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
7
5
 
6
+ # content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
8
7
 
9
- =end
10
8
 
11
9
  require 'uri'
12
10
 
@@ -19,38 +17,49 @@ module VSphereAutomation
19
17
  @api_client = api_client
20
18
  end
21
19
  # Retrieves the current configuration values.
20
+ # @param action ~action=get
22
21
  # @param [Hash] opts the optional parameters
23
22
  # @return [ContentConfigurationResult|]
24
- def get(opts = {})
25
- data, _status_code, _headers = get_with_http_info(opts)
23
+ def get(action, opts = {})
24
+ data, _status_code, _headers = get_with_http_info(action, opts)
26
25
  data
27
26
  end
28
27
 
29
28
  # Retrieves the current configuration values.
30
29
  # @api private
30
+ # @param action ~action=get
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(ContentConfigurationResult|, Fixnum, Hash)>] data, response status code and response headers
33
- def get_with_http_info(opts = {})
33
+ def get_with_http_info(action, opts = {})
34
34
  if @api_client.config.debugging
35
35
  @api_client.config.logger.debug 'Calling API: ConfigurationApi.get ...'
36
36
  end
37
+ # verify the required parameter 'action' is set
38
+ if @api_client.config.client_side_validation && action.nil?
39
+ fail ArgumentError, "Missing the required parameter 'action' when calling ConfigurationApi.get"
40
+ end
41
+ # verify enum value
42
+ if @api_client.config.client_side_validation && !['get'].include?(action)
43
+ fail ArgumentError, "invalid value for 'action', must be one of get"
44
+ end
37
45
  # resource path
38
- local_var_path = '/com/vmware/content/configuration?~action=get'
46
+ local_var_path = '/com/vmware/content/configuration'
39
47
 
40
48
  # query parameters
41
49
  query_params = {}
50
+ query_params[:'~action'] = action
42
51
 
43
52
  # header parameters
44
53
  header_params = {}
45
54
  # HTTP header 'Accept' (if needed)
46
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
47
56
 
48
57
  # form parameters
49
58
  form_params = {}
50
59
 
51
60
  # http body (model)
52
61
  post_body = nil
53
- auth_names = []
62
+ auth_names = ['api_key']
54
63
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
55
64
  :header_params => header_params,
56
65
  :query_params => query_params,
@@ -66,26 +75,26 @@ module VSphereAutomation
66
75
  return data, status_code, headers
67
76
  end
68
77
  # Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn't guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
69
- # @param content_configuration_update
78
+ # @param request_body
70
79
  # @param [Hash] opts the optional parameters
71
80
  # @return [|VapiStdErrorsInvalidArgumentError|nil]
72
- def update(content_configuration_update, opts = {})
73
- update_with_http_info(content_configuration_update, opts)
81
+ def update(request_body, opts = {})
82
+ update_with_http_info(request_body, opts)
74
83
  nil
75
84
  end
76
85
 
77
86
  # Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn&#39;t guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
78
87
  # @api private
79
- # @param content_configuration_update
88
+ # @param request_body
80
89
  # @param [Hash] opts the optional parameters
81
90
  # @return [Array<(|VapiStdErrorsInvalidArgumentError|nil, Fixnum, Hash)>] nil, response status code and response headers
82
- def update_with_http_info(content_configuration_update, opts = {})
91
+ def update_with_http_info(request_body, opts = {})
83
92
  if @api_client.config.debugging
84
93
  @api_client.config.logger.debug 'Calling API: ConfigurationApi.update ...'
85
94
  end
86
- # verify the required parameter 'content_configuration_update' is set
87
- if @api_client.config.client_side_validation && content_configuration_update.nil?
88
- fail ArgumentError, "Missing the required parameter 'content_configuration_update' when calling ConfigurationApi.update"
95
+ # verify the required parameter 'request_body' is set
96
+ if @api_client.config.client_side_validation && request_body.nil?
97
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling ConfigurationApi.update"
89
98
  end
90
99
  # resource path
91
100
  local_var_path = '/com/vmware/content/configuration'
@@ -96,7 +105,7 @@ module VSphereAutomation
96
105
  # header parameters
97
106
  header_params = {}
98
107
  # HTTP header 'Accept' (if needed)
99
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
100
109
  # HTTP header 'Content-Type'
101
110
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
102
111
 
@@ -104,8 +113,8 @@ module VSphereAutomation
104
113
  form_params = {}
105
114
 
106
115
  # http body (model)
107
- post_body = @api_client.object_to_http_body(content_configuration_update)
108
- auth_names = []
116
+ post_body = @api_client.object_to_http_body(request_body)
117
+ auth_names = ['api_key']
109
118
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
110
119
  :header_params => header_params,
111
120
  :query_params => query_params,
@@ -1,12 +1,10 @@
1
- =begin
2
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
-
4
- # content
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
5
3
 
6
- # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
7
5
 
6
+ # content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
8
7
 
9
- =end
10
8
 
11
9
  require 'uri'
12
10
 
@@ -19,37 +17,48 @@ module VSphereAutomation
19
17
  @api_client = api_client
20
18
  end
21
19
  # Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
22
- # @param content_library_find
20
+ # @param action ~action&#x3D;find
21
+ # @param request_body
23
22
  # @param [Hash] opts the optional parameters
24
23
  # @return [ContentLibraryFindResult|VapiStdErrorsInvalidArgumentError|]
25
- def find(content_library_find, opts = {})
26
- data, _status_code, _headers = find_with_http_info(content_library_find, opts)
24
+ def find(action, request_body, opts = {})
25
+ data, _status_code, _headers = find_with_http_info(action, request_body, opts)
27
26
  data
28
27
  end
29
28
 
30
29
  # Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
31
30
  # @api private
32
- # @param content_library_find
31
+ # @param action ~action&#x3D;find
32
+ # @param request_body
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(ContentLibraryFindResult|VapiStdErrorsInvalidArgumentError|, Fixnum, Hash)>] data, response status code and response headers
35
- def find_with_http_info(content_library_find, opts = {})
35
+ def find_with_http_info(action, request_body, opts = {})
36
36
  if @api_client.config.debugging
37
37
  @api_client.config.logger.debug 'Calling API: LibraryApi.find ...'
38
38
  end
39
- # verify the required parameter 'content_library_find' is set
40
- if @api_client.config.client_side_validation && content_library_find.nil?
41
- fail ArgumentError, "Missing the required parameter 'content_library_find' when calling LibraryApi.find"
39
+ # verify the required parameter 'action' is set
40
+ if @api_client.config.client_side_validation && action.nil?
41
+ fail ArgumentError, "Missing the required parameter 'action' when calling LibraryApi.find"
42
+ end
43
+ # verify enum value
44
+ if @api_client.config.client_side_validation && !['find'].include?(action)
45
+ fail ArgumentError, "invalid value for 'action', must be one of find"
46
+ end
47
+ # verify the required parameter 'request_body' is set
48
+ if @api_client.config.client_side_validation && request_body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryApi.find"
42
50
  end
43
51
  # resource path
44
- local_var_path = '/com/vmware/content/library?~action=find'
52
+ local_var_path = '/com/vmware/content/library'
45
53
 
46
54
  # query parameters
47
55
  query_params = {}
56
+ query_params[:'~action'] = action
48
57
 
49
58
  # header parameters
50
59
  header_params = {}
51
60
  # HTTP header 'Accept' (if needed)
52
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
62
  # HTTP header 'Content-Type'
54
63
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
64
 
@@ -57,8 +66,8 @@ module VSphereAutomation
57
66
  form_params = {}
58
67
 
59
68
  # http body (model)
60
- post_body = @api_client.object_to_http_body(content_library_find)
61
- auth_names = []
69
+ post_body = @api_client.object_to_http_body(request_body)
70
+ auth_names = ['api_key']
62
71
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
63
72
  :header_params => header_params,
64
73
  :query_params => query_params,
@@ -105,14 +114,14 @@ module VSphereAutomation
105
114
  # header parameters
106
115
  header_params = {}
107
116
  # HTTP header 'Accept' (if needed)
108
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
109
118
 
110
119
  # form parameters
111
120
  form_params = {}
112
121
 
113
122
  # http body (model)
114
123
  post_body = nil
115
- auth_names = []
124
+ auth_names = ['api_key']
116
125
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
117
126
  :header_params => header_params,
118
127
  :query_params => query_params,
@@ -153,14 +162,14 @@ module VSphereAutomation
153
162
  # header parameters
154
163
  header_params = {}
155
164
  # HTTP header 'Accept' (if needed)
156
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
165
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
157
166
 
158
167
  # form parameters
159
168
  form_params = {}
160
169
 
161
170
  # http body (model)
162
171
  post_body = nil
163
- auth_names = []
172
+ auth_names = ['api_key']
164
173
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
165
174
  :header_params => header_params,
166
175
  :query_params => query_params,
@@ -177,21 +186,21 @@ module VSphereAutomation
177
186
  end
178
187
  # 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}.
179
188
  # @param library_id Identifier of the library to update.
180
- # @param content_library_update
189
+ # @param request_body
181
190
  # @param [Hash] opts the optional parameters
182
191
  # @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil]
183
- def update(library_id, content_library_update, opts = {})
184
- update_with_http_info(library_id, content_library_update, opts)
192
+ def update(library_id, request_body, opts = {})
193
+ update_with_http_info(library_id, request_body, opts)
185
194
  nil
186
195
  end
187
196
 
188
197
  # Updates the properties of a library. &lt;p&gt; 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. &lt;p&gt; 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}.
189
198
  # @api private
190
199
  # @param library_id Identifier of the library to update.
191
- # @param content_library_update
200
+ # @param request_body
192
201
  # @param [Hash] opts the optional parameters
193
202
  # @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
194
- def update_with_http_info(library_id, content_library_update, opts = {})
203
+ def update_with_http_info(library_id, request_body, opts = {})
195
204
  if @api_client.config.debugging
196
205
  @api_client.config.logger.debug 'Calling API: LibraryApi.update ...'
197
206
  end
@@ -199,9 +208,9 @@ module VSphereAutomation
199
208
  if @api_client.config.client_side_validation && library_id.nil?
200
209
  fail ArgumentError, "Missing the required parameter 'library_id' when calling LibraryApi.update"
201
210
  end
202
- # verify the required parameter 'content_library_update' is set
203
- if @api_client.config.client_side_validation && content_library_update.nil?
204
- fail ArgumentError, "Missing the required parameter 'content_library_update' when calling LibraryApi.update"
211
+ # verify the required parameter 'request_body' is set
212
+ if @api_client.config.client_side_validation && request_body.nil?
213
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryApi.update"
205
214
  end
206
215
  # resource path
207
216
  local_var_path = '/com/vmware/content/library/id:{library_id}'.sub('{' + 'library_id' + '}', library_id.to_s)
@@ -212,7 +221,7 @@ module VSphereAutomation
212
221
  # header parameters
213
222
  header_params = {}
214
223
  # HTTP header 'Accept' (if needed)
215
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
224
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
216
225
  # HTTP header 'Content-Type'
217
226
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
218
227
 
@@ -220,8 +229,8 @@ module VSphereAutomation
220
229
  form_params = {}
221
230
 
222
231
  # http body (model)
223
- post_body = @api_client.object_to_http_body(content_library_update)
224
- auth_names = []
232
+ post_body = @api_client.object_to_http_body(request_body)
233
+ auth_names = ['api_key']
225
234
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
226
235
  :header_params => header_params,
227
236
  :query_params => query_params,