vsphere-automation-content 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +229 -0
  5. data/Rakefile +10 -0
  6. data/docs/ConfigurationApi.md +91 -0
  7. data/docs/ContentConfigurationModel.md +11 -0
  8. data/docs/ContentConfigurationResult.md +8 -0
  9. data/docs/ContentConfigurationUpdate.md +8 -0
  10. data/docs/ContentLibraryFind.md +8 -0
  11. data/docs/ContentLibraryFindResult.md +8 -0
  12. data/docs/ContentLibraryFindSpec.md +9 -0
  13. data/docs/ContentLibraryItemCopy.md +9 -0
  14. data/docs/ContentLibraryItemCopyResult.md +8 -0
  15. data/docs/ContentLibraryItemCreate.md +9 -0
  16. data/docs/ContentLibraryItemCreateResult.md +8 -0
  17. data/docs/ContentLibraryItemDownloadSessionCreate.md +9 -0
  18. data/docs/ContentLibraryItemDownloadSessionCreateResult.md +8 -0
  19. data/docs/ContentLibraryItemDownloadSessionFail.md +8 -0
  20. data/docs/ContentLibraryItemDownloadSessionKeepAlive.md +8 -0
  21. data/docs/ContentLibraryItemDownloadSessionListResult.md +8 -0
  22. data/docs/ContentLibraryItemDownloadSessionModel.md +14 -0
  23. data/docs/ContentLibraryItemDownloadSessionModelState.md +7 -0
  24. data/docs/ContentLibraryItemDownloadSessionResult.md +8 -0
  25. data/docs/ContentLibraryItemDownloadsessionFileEndpointType.md +7 -0
  26. data/docs/ContentLibraryItemDownloadsessionFileGet.md +8 -0
  27. data/docs/ContentLibraryItemDownloadsessionFileInfo.md +14 -0
  28. data/docs/ContentLibraryItemDownloadsessionFileListResult.md +8 -0
  29. data/docs/ContentLibraryItemDownloadsessionFilePrepare.md +9 -0
  30. data/docs/ContentLibraryItemDownloadsessionFilePrepareResult.md +8 -0
  31. data/docs/ContentLibraryItemDownloadsessionFilePrepareStatus.md +7 -0
  32. data/docs/ContentLibraryItemDownloadsessionFileResult.md +8 -0
  33. data/docs/ContentLibraryItemFileChecksumAlgorithm.md +7 -0
  34. data/docs/ContentLibraryItemFileChecksumInfo.md +9 -0
  35. data/docs/ContentLibraryItemFileGet.md +8 -0
  36. data/docs/ContentLibraryItemFileInfo.md +12 -0
  37. data/docs/ContentLibraryItemFileListResult.md +8 -0
  38. data/docs/ContentLibraryItemFileResult.md +8 -0
  39. data/docs/ContentLibraryItemFind.md +8 -0
  40. data/docs/ContentLibraryItemFindResult.md +8 -0
  41. data/docs/ContentLibraryItemFindSpec.md +12 -0
  42. data/docs/ContentLibraryItemListResult.md +8 -0
  43. data/docs/ContentLibraryItemModel.md +21 -0
  44. data/docs/ContentLibraryItemResult.md +8 -0
  45. data/docs/ContentLibraryItemStorageGet.md +8 -0
  46. data/docs/ContentLibraryItemStorageInfo.md +14 -0
  47. data/docs/ContentLibraryItemStorageListResult.md +8 -0
  48. data/docs/ContentLibraryItemStorageResult.md +8 -0
  49. data/docs/ContentLibraryItemTransferEndpoint.md +9 -0
  50. data/docs/ContentLibraryItemTransferStatus.md +7 -0
  51. data/docs/ContentLibraryItemUpdate.md +8 -0
  52. data/docs/ContentLibraryItemUpdateSessionCreate.md +9 -0
  53. data/docs/ContentLibraryItemUpdateSessionCreateResult.md +8 -0
  54. data/docs/ContentLibraryItemUpdateSessionFail.md +8 -0
  55. data/docs/ContentLibraryItemUpdateSessionKeepAlive.md +8 -0
  56. data/docs/ContentLibraryItemUpdateSessionListResult.md +8 -0
  57. data/docs/ContentLibraryItemUpdateSessionModel.md +16 -0
  58. data/docs/ContentLibraryItemUpdateSessionModelState.md +7 -0
  59. data/docs/ContentLibraryItemUpdateSessionResult.md +8 -0
  60. data/docs/ContentLibraryItemUpdateSessionUpdate.md +8 -0
  61. data/docs/ContentLibraryItemUpdatesessionCertificateInfo.md +11 -0
  62. data/docs/ContentLibraryItemUpdatesessionFileAdd.md +8 -0
  63. data/docs/ContentLibraryItemUpdatesessionFileAddResult.md +8 -0
  64. data/docs/ContentLibraryItemUpdatesessionFileAddSpec.md +12 -0
  65. data/docs/ContentLibraryItemUpdatesessionFileGet.md +8 -0
  66. data/docs/ContentLibraryItemUpdatesessionFileInfo.md +17 -0
  67. data/docs/ContentLibraryItemUpdatesessionFileListResult.md +8 -0
  68. data/docs/ContentLibraryItemUpdatesessionFileRemove.md +8 -0
  69. data/docs/ContentLibraryItemUpdatesessionFileResult.md +8 -0
  70. data/docs/ContentLibraryItemUpdatesessionFileSourceType.md +7 -0
  71. data/docs/ContentLibraryItemUpdatesessionFileValidateResult.md +8 -0
  72. data/docs/ContentLibraryItemUpdatesessionFileValidationError.md +9 -0
  73. data/docs/ContentLibraryItemUpdatesessionFileValidationResult.md +10 -0
  74. data/docs/ContentLibraryItemUpdatesessionPreviewInfo.md +10 -0
  75. data/docs/ContentLibraryItemUpdatesessionPreviewInfoState.md +7 -0
  76. data/docs/ContentLibraryItemUpdatesessionPreviewWarningInfo.md +10 -0
  77. data/docs/ContentLibraryItemUpdatesessionWarningBehavior.md +9 -0
  78. data/docs/ContentLibraryItemUpdatesessionWarningType.md +7 -0
  79. data/docs/ContentLibraryListResult.md +8 -0
  80. data/docs/ContentLibraryModel.md +20 -0
  81. data/docs/ContentLibraryModelLibraryType.md +7 -0
  82. data/docs/ContentLibraryOptimizationInfo.md +8 -0
  83. data/docs/ContentLibraryPublishInfo.md +14 -0
  84. data/docs/ContentLibraryPublishInfoAuthenticationMethod.md +7 -0
  85. data/docs/ContentLibraryResult.md +8 -0
  86. data/docs/ContentLibraryStorageBacking.md +10 -0
  87. data/docs/ContentLibraryStorageBackingType.md +7 -0
  88. data/docs/ContentLibrarySubscribedItemSync.md +8 -0
  89. data/docs/ContentLibrarySubscriptionInfo.md +14 -0
  90. data/docs/ContentLibrarySubscriptionInfoAuthenticationMethod.md +7 -0
  91. data/docs/ContentLibraryUpdate.md +8 -0
  92. data/docs/ContentLocalLibraryCreate.md +9 -0
  93. data/docs/ContentLocalLibraryCreateResult.md +8 -0
  94. data/docs/ContentLocalLibraryListResult.md +8 -0
  95. data/docs/ContentLocalLibraryResult.md +8 -0
  96. data/docs/ContentLocalLibraryUpdate.md +8 -0
  97. data/docs/ContentSubscribedLibraryCreate.md +9 -0
  98. data/docs/ContentSubscribedLibraryCreateResult.md +8 -0
  99. data/docs/ContentSubscribedLibraryListResult.md +8 -0
  100. data/docs/ContentSubscribedLibraryProbe.md +8 -0
  101. data/docs/ContentSubscribedLibraryProbeResult.md +10 -0
  102. data/docs/ContentSubscribedLibraryProbeResultStatus.md +7 -0
  103. data/docs/ContentSubscribedLibraryResult.md +8 -0
  104. data/docs/ContentSubscribedLibraryUpdate.md +8 -0
  105. data/docs/LibraryApi.md +181 -0
  106. data/docs/LibraryItemApi.md +318 -0
  107. data/docs/LibraryItemDownloadSessionApi.md +320 -0
  108. data/docs/LibraryItemDownloadsessionFileApi.md +144 -0
  109. data/docs/LibraryItemFileApi.md +98 -0
  110. data/docs/LibraryItemStorageApi.md +98 -0
  111. data/docs/LibraryItemUpdateSessionApi.md +408 -0
  112. data/docs/LibraryItemUpdatesessionFileApi.md +233 -0
  113. data/docs/LibrarySubscribedItemApi.md +96 -0
  114. data/docs/LocalLibraryApi.md +224 -0
  115. data/docs/SubscribedLibraryApi.md +354 -0
  116. data/docs/VapiStdErrorsConcurrentChange.md +9 -0
  117. data/docs/VapiStdErrorsConcurrentChangeError.md +9 -0
  118. data/docs/VapiStdErrorsInvalidArgument.md +9 -0
  119. data/docs/VapiStdErrorsInvalidArgumentError.md +9 -0
  120. data/docs/VapiStdErrorsInvalidElementConfiguration.md +9 -0
  121. data/docs/VapiStdErrorsInvalidElementConfigurationError.md +9 -0
  122. data/docs/VapiStdErrorsInvalidElementType.md +9 -0
  123. data/docs/VapiStdErrorsInvalidElementTypeError.md +9 -0
  124. data/docs/VapiStdErrorsNotAllowedInCurrentState.md +9 -0
  125. data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +9 -0
  126. data/docs/VapiStdErrorsNotFound.md +9 -0
  127. data/docs/VapiStdErrorsNotFoundError.md +9 -0
  128. data/docs/VapiStdErrorsResourceBusy.md +9 -0
  129. data/docs/VapiStdErrorsResourceBusyError.md +9 -0
  130. data/docs/VapiStdErrorsResourceInaccessible.md +9 -0
  131. data/docs/VapiStdErrorsResourceInaccessibleError.md +9 -0
  132. data/docs/VapiStdErrorsUnauthorized.md +9 -0
  133. data/docs/VapiStdErrorsUnauthorizedError.md +9 -0
  134. data/docs/VapiStdErrorsUnsupported.md +9 -0
  135. data/docs/VapiStdErrorsUnsupportedError.md +9 -0
  136. data/docs/VapiStdLocalizableMessage.md +10 -0
  137. data/git_push.sh +55 -0
  138. data/lib/vsphere-automation-content.rb +168 -0
  139. data/lib/vsphere-automation-content/api/configuration_api.rb +122 -0
  140. data/lib/vsphere-automation-content/api/library_api.rb +238 -0
  141. data/lib/vsphere-automation-content/api/library_item_api.rb +416 -0
  142. data/lib/vsphere-automation-content/api/library_item_download_session_api.rb +397 -0
  143. data/lib/vsphere-automation-content/api/library_item_downloadsession_file_api.rb +205 -0
  144. data/lib/vsphere-automation-content/api/library_item_file_api.rb +140 -0
  145. data/lib/vsphere-automation-content/api/library_item_storage_api.rb +140 -0
  146. data/lib/vsphere-automation-content/api/library_item_update_session_api.rb +505 -0
  147. data/lib/vsphere-automation-content/api/library_item_updatesession_file_api.rb +318 -0
  148. data/lib/vsphere-automation-content/api/library_subscribed_item_api.rb +131 -0
  149. data/lib/vsphere-automation-content/api/local_library_api.rb +289 -0
  150. data/lib/vsphere-automation-content/api/subscribed_library_api.rb +444 -0
  151. data/lib/vsphere-automation-content/api_client.rb +386 -0
  152. data/lib/vsphere-automation-content/api_error.rb +36 -0
  153. data/lib/vsphere-automation-content/configuration.rb +200 -0
  154. data/lib/vsphere-automation-content/models/content_configuration_model.rb +214 -0
  155. data/lib/vsphere-automation-content/models/content_configuration_result.rb +188 -0
  156. data/lib/vsphere-automation-content/models/content_configuration_update.rb +188 -0
  157. data/lib/vsphere-automation-content/models/content_library_find.rb +188 -0
  158. data/lib/vsphere-automation-content/models/content_library_find_result.rb +190 -0
  159. data/lib/vsphere-automation-content/models/content_library_find_spec.rb +193 -0
  160. data/lib/vsphere-automation-content/models/content_library_item_copy.rb +198 -0
  161. data/lib/vsphere-automation-content/models/content_library_item_copy_result.rb +188 -0
  162. data/lib/vsphere-automation-content/models/content_library_item_create.rb +198 -0
  163. data/lib/vsphere-automation-content/models/content_library_item_create_result.rb +188 -0
  164. data/lib/vsphere-automation-content/models/content_library_item_download_session_create.rb +198 -0
  165. data/lib/vsphere-automation-content/models/content_library_item_download_session_create_result.rb +188 -0
  166. data/lib/vsphere-automation-content/models/content_library_item_download_session_fail.rb +189 -0
  167. data/lib/vsphere-automation-content/models/content_library_item_download_session_keep_alive.rb +184 -0
  168. data/lib/vsphere-automation-content/models/content_library_item_download_session_list_result.rb +190 -0
  169. data/lib/vsphere-automation-content/models/content_library_item_download_session_model.rb +242 -0
  170. data/lib/vsphere-automation-content/models/content_library_item_download_session_model_state.rb +31 -0
  171. data/lib/vsphere-automation-content/models/content_library_item_download_session_result.rb +188 -0
  172. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type.rb +30 -0
  173. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_get.rb +189 -0
  174. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_info.rb +255 -0
  175. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_list_result.rb +190 -0
  176. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare.rb +198 -0
  177. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result.rb +188 -0
  178. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status.rb +33 -0
  179. data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_result.rb +188 -0
  180. data/lib/vsphere-automation-content/models/content_library_item_file_checksum_algorithm.rb +32 -0
  181. data/lib/vsphere-automation-content/models/content_library_item_file_checksum_info.rb +198 -0
  182. data/lib/vsphere-automation-content/models/content_library_item_file_get.rb +189 -0
  183. data/lib/vsphere-automation-content/models/content_library_item_file_info.rb +243 -0
  184. data/lib/vsphere-automation-content/models/content_library_item_file_list_result.rb +190 -0
  185. data/lib/vsphere-automation-content/models/content_library_item_file_result.rb +188 -0
  186. data/lib/vsphere-automation-content/models/content_library_item_find.rb +188 -0
  187. data/lib/vsphere-automation-content/models/content_library_item_find_result.rb +190 -0
  188. data/lib/vsphere-automation-content/models/content_library_item_find_spec.rb +224 -0
  189. data/lib/vsphere-automation-content/models/content_library_item_list_result.rb +190 -0
  190. data/lib/vsphere-automation-content/models/content_library_item_model.rb +314 -0
  191. data/lib/vsphere-automation-content/models/content_library_item_result.rb +188 -0
  192. data/lib/vsphere-automation-content/models/content_library_item_storage_get.rb +189 -0
  193. data/lib/vsphere-automation-content/models/content_library_item_storage_info.rb +274 -0
  194. data/lib/vsphere-automation-content/models/content_library_item_storage_list_result.rb +190 -0
  195. data/lib/vsphere-automation-content/models/content_library_item_storage_result.rb +190 -0
  196. data/lib/vsphere-automation-content/models/content_library_item_transfer_endpoint.rb +199 -0
  197. data/lib/vsphere-automation-content/models/content_library_item_transfer_status.rb +33 -0
  198. data/lib/vsphere-automation-content/models/content_library_item_update.rb +188 -0
  199. data/lib/vsphere-automation-content/models/content_library_item_update_session_create.rb +198 -0
  200. data/lib/vsphere-automation-content/models/content_library_item_update_session_create_result.rb +188 -0
  201. data/lib/vsphere-automation-content/models/content_library_item_update_session_fail.rb +189 -0
  202. data/lib/vsphere-automation-content/models/content_library_item_update_session_keep_alive.rb +184 -0
  203. data/lib/vsphere-automation-content/models/content_library_item_update_session_list_result.rb +190 -0
  204. data/lib/vsphere-automation-content/models/content_library_item_update_session_model.rb +263 -0
  205. data/lib/vsphere-automation-content/models/content_library_item_update_session_model_state.rb +32 -0
  206. data/lib/vsphere-automation-content/models/content_library_item_update_session_result.rb +188 -0
  207. data/lib/vsphere-automation-content/models/content_library_item_update_session_update.rb +188 -0
  208. data/lib/vsphere-automation-content/models/content_library_item_updatesession_certificate_info.rb +234 -0
  209. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add.rb +188 -0
  210. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_result.rb +188 -0
  211. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_spec.rb +231 -0
  212. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_get.rb +189 -0
  213. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_info.rb +288 -0
  214. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_list_result.rb +190 -0
  215. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_remove.rb +189 -0
  216. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_result.rb +188 -0
  217. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_source_type.rb +31 -0
  218. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validate_result.rb +188 -0
  219. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_error.rb +203 -0
  220. data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_result.rb +223 -0
  221. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info.rb +209 -0
  222. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info_state.rb +32 -0
  223. data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info.rb +217 -0
  224. data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_behavior.rb +203 -0
  225. data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_type.rb +32 -0
  226. data/lib/vsphere-automation-content/models/content_library_list_result.rb +190 -0
  227. data/lib/vsphere-automation-content/models/content_library_model.rb +302 -0
  228. data/lib/vsphere-automation-content/models/content_library_model_library_type.rb +30 -0
  229. data/lib/vsphere-automation-content/models/content_library_optimization_info.rb +184 -0
  230. data/lib/vsphere-automation-content/models/content_library_publish_info.rb +243 -0
  231. data/lib/vsphere-automation-content/models/content_library_publish_info_authentication_method.rb +30 -0
  232. data/lib/vsphere-automation-content/models/content_library_result.rb +188 -0
  233. data/lib/vsphere-automation-content/models/content_library_storage_backing.rb +203 -0
  234. data/lib/vsphere-automation-content/models/content_library_storage_backing_type.rb +30 -0
  235. data/lib/vsphere-automation-content/models/content_library_subscribed_item_sync.rb +189 -0
  236. data/lib/vsphere-automation-content/models/content_library_subscription_info.rb +243 -0
  237. data/lib/vsphere-automation-content/models/content_library_subscription_info_authentication_method.rb +30 -0
  238. data/lib/vsphere-automation-content/models/content_library_update.rb +188 -0
  239. data/lib/vsphere-automation-content/models/content_local_library_create.rb +198 -0
  240. data/lib/vsphere-automation-content/models/content_local_library_create_result.rb +188 -0
  241. data/lib/vsphere-automation-content/models/content_local_library_list_result.rb +190 -0
  242. data/lib/vsphere-automation-content/models/content_local_library_result.rb +188 -0
  243. data/lib/vsphere-automation-content/models/content_local_library_update.rb +188 -0
  244. data/lib/vsphere-automation-content/models/content_subscribed_library_create.rb +198 -0
  245. data/lib/vsphere-automation-content/models/content_subscribed_library_create_result.rb +188 -0
  246. data/lib/vsphere-automation-content/models/content_subscribed_library_list_result.rb +190 -0
  247. data/lib/vsphere-automation-content/models/content_subscribed_library_probe.rb +188 -0
  248. data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result.rb +215 -0
  249. data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result_status.rb +36 -0
  250. data/lib/vsphere-automation-content/models/content_subscribed_library_result.rb +188 -0
  251. data/lib/vsphere-automation-content/models/content_subscribed_library_update.rb +188 -0
  252. data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change.rb +201 -0
  253. data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change_error.rb +192 -0
  254. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument.rb +201 -0
  255. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument_error.rb +192 -0
  256. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration.rb +201 -0
  257. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error.rb +192 -0
  258. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type.rb +201 -0
  259. data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error.rb +192 -0
  260. data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state.rb +201 -0
  261. data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error.rb +192 -0
  262. data/lib/vsphere-automation-content/models/vapi_std_errors_not_found.rb +201 -0
  263. data/lib/vsphere-automation-content/models/vapi_std_errors_not_found_error.rb +192 -0
  264. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy.rb +201 -0
  265. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy_error.rb +192 -0
  266. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible.rb +201 -0
  267. data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error.rb +192 -0
  268. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized.rb +201 -0
  269. data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized_error.rb +192 -0
  270. data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported.rb +201 -0
  271. data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported_error.rb +192 -0
  272. data/lib/vsphere-automation-content/models/vapi_std_localizable_message.rb +221 -0
  273. data/lib/vsphere-automation-content/version.rb +15 -0
  274. data/spec/api/configuration_api_spec.rb +54 -0
  275. data/spec/api/library_api_spec.rb +77 -0
  276. data/spec/api/library_item_api_spec.rb +112 -0
  277. data/spec/api/library_item_download_session_api_spec.rb +112 -0
  278. data/spec/api/library_item_downloadsession_file_api_spec.rb +68 -0
  279. data/spec/api/library_item_file_api_spec.rb +56 -0
  280. data/spec/api/library_item_storage_api_spec.rb +56 -0
  281. data/spec/api/library_item_update_session_api_spec.rb +135 -0
  282. data/spec/api/library_item_updatesession_file_api_spec.rb +91 -0
  283. data/spec/api/library_subscribed_item_api_spec.rb +56 -0
  284. data/spec/api/local_library_api_spec.rb +88 -0
  285. data/spec/api/subscribed_library_api_spec.rb +121 -0
  286. data/spec/api_client_spec.rb +224 -0
  287. data/spec/configuration_spec.rb +40 -0
  288. data/spec/models/content_configuration_model_spec.rb +57 -0
  289. data/spec/models/content_configuration_result_spec.rb +39 -0
  290. data/spec/models/content_configuration_update_spec.rb +39 -0
  291. data/spec/models/content_library_find_result_spec.rb +39 -0
  292. data/spec/models/content_library_find_spec.rb +39 -0
  293. data/spec/models/content_library_find_spec_spec.rb +45 -0
  294. data/spec/models/content_library_item_copy_result_spec.rb +39 -0
  295. data/spec/models/content_library_item_copy_spec.rb +45 -0
  296. data/spec/models/content_library_item_create_result_spec.rb +39 -0
  297. data/spec/models/content_library_item_create_spec.rb +45 -0
  298. data/spec/models/content_library_item_download_session_create_result_spec.rb +39 -0
  299. data/spec/models/content_library_item_download_session_create_spec.rb +45 -0
  300. data/spec/models/content_library_item_download_session_fail_spec.rb +39 -0
  301. data/spec/models/content_library_item_download_session_keep_alive_spec.rb +39 -0
  302. data/spec/models/content_library_item_download_session_list_result_spec.rb +39 -0
  303. data/spec/models/content_library_item_download_session_model_spec.rb +75 -0
  304. data/spec/models/content_library_item_download_session_model_state_spec.rb +33 -0
  305. data/spec/models/content_library_item_download_session_result_spec.rb +39 -0
  306. data/spec/models/content_library_item_downloadsession_file_endpoint_type_spec.rb +33 -0
  307. data/spec/models/content_library_item_downloadsession_file_get_spec.rb +39 -0
  308. data/spec/models/content_library_item_downloadsession_file_info_spec.rb +75 -0
  309. data/spec/models/content_library_item_downloadsession_file_list_result_spec.rb +39 -0
  310. data/spec/models/content_library_item_downloadsession_file_prepare_result_spec.rb +39 -0
  311. data/spec/models/content_library_item_downloadsession_file_prepare_spec.rb +45 -0
  312. data/spec/models/content_library_item_downloadsession_file_prepare_status_spec.rb +33 -0
  313. data/spec/models/content_library_item_downloadsession_file_result_spec.rb +39 -0
  314. data/spec/models/content_library_item_file_checksum_algorithm_spec.rb +33 -0
  315. data/spec/models/content_library_item_file_checksum_info_spec.rb +45 -0
  316. data/spec/models/content_library_item_file_get_spec.rb +39 -0
  317. data/spec/models/content_library_item_file_info_spec.rb +63 -0
  318. data/spec/models/content_library_item_file_list_result_spec.rb +39 -0
  319. data/spec/models/content_library_item_file_result_spec.rb +39 -0
  320. data/spec/models/content_library_item_find_result_spec.rb +39 -0
  321. data/spec/models/content_library_item_find_spec.rb +39 -0
  322. data/spec/models/content_library_item_find_spec_spec.rb +63 -0
  323. data/spec/models/content_library_item_list_result_spec.rb +39 -0
  324. data/spec/models/content_library_item_model_spec.rb +117 -0
  325. data/spec/models/content_library_item_result_spec.rb +39 -0
  326. data/spec/models/content_library_item_storage_get_spec.rb +39 -0
  327. data/spec/models/content_library_item_storage_info_spec.rb +75 -0
  328. data/spec/models/content_library_item_storage_list_result_spec.rb +39 -0
  329. data/spec/models/content_library_item_storage_result_spec.rb +39 -0
  330. data/spec/models/content_library_item_transfer_endpoint_spec.rb +45 -0
  331. data/spec/models/content_library_item_transfer_status_spec.rb +33 -0
  332. data/spec/models/content_library_item_update_session_create_result_spec.rb +39 -0
  333. data/spec/models/content_library_item_update_session_create_spec.rb +45 -0
  334. data/spec/models/content_library_item_update_session_fail_spec.rb +39 -0
  335. data/spec/models/content_library_item_update_session_keep_alive_spec.rb +39 -0
  336. data/spec/models/content_library_item_update_session_list_result_spec.rb +39 -0
  337. data/spec/models/content_library_item_update_session_model_spec.rb +87 -0
  338. data/spec/models/content_library_item_update_session_model_state_spec.rb +33 -0
  339. data/spec/models/content_library_item_update_session_result_spec.rb +39 -0
  340. data/spec/models/content_library_item_update_session_update_spec.rb +39 -0
  341. data/spec/models/content_library_item_update_spec.rb +39 -0
  342. data/spec/models/content_library_item_updatesession_certificate_info_spec.rb +57 -0
  343. data/spec/models/content_library_item_updatesession_file_add_result_spec.rb +39 -0
  344. data/spec/models/content_library_item_updatesession_file_add_spec.rb +39 -0
  345. data/spec/models/content_library_item_updatesession_file_add_spec_spec.rb +63 -0
  346. data/spec/models/content_library_item_updatesession_file_get_spec.rb +39 -0
  347. data/spec/models/content_library_item_updatesession_file_info_spec.rb +93 -0
  348. data/spec/models/content_library_item_updatesession_file_list_result_spec.rb +39 -0
  349. data/spec/models/content_library_item_updatesession_file_remove_spec.rb +39 -0
  350. data/spec/models/content_library_item_updatesession_file_result_spec.rb +39 -0
  351. data/spec/models/content_library_item_updatesession_file_source_type_spec.rb +33 -0
  352. data/spec/models/content_library_item_updatesession_file_validate_result_spec.rb +39 -0
  353. data/spec/models/content_library_item_updatesession_file_validation_error_spec.rb +45 -0
  354. data/spec/models/content_library_item_updatesession_file_validation_result_spec.rb +51 -0
  355. data/spec/models/content_library_item_updatesession_preview_info_spec.rb +51 -0
  356. data/spec/models/content_library_item_updatesession_preview_info_state_spec.rb +33 -0
  357. data/spec/models/content_library_item_updatesession_preview_warning_info_spec.rb +51 -0
  358. data/spec/models/content_library_item_updatesession_warning_behavior_spec.rb +45 -0
  359. data/spec/models/content_library_item_updatesession_warning_type_spec.rb +33 -0
  360. data/spec/models/content_library_list_result_spec.rb +39 -0
  361. data/spec/models/content_library_model_library_type_spec.rb +33 -0
  362. data/spec/models/content_library_model_spec.rb +111 -0
  363. data/spec/models/content_library_optimization_info_spec.rb +39 -0
  364. data/spec/models/content_library_publish_info_authentication_method_spec.rb +33 -0
  365. data/spec/models/content_library_publish_info_spec.rb +75 -0
  366. data/spec/models/content_library_result_spec.rb +39 -0
  367. data/spec/models/content_library_storage_backing_spec.rb +51 -0
  368. data/spec/models/content_library_storage_backing_type_spec.rb +33 -0
  369. data/spec/models/content_library_subscribed_item_sync_spec.rb +39 -0
  370. data/spec/models/content_library_subscription_info_authentication_method_spec.rb +33 -0
  371. data/spec/models/content_library_subscription_info_spec.rb +75 -0
  372. data/spec/models/content_library_update_spec.rb +39 -0
  373. data/spec/models/content_local_library_create_result_spec.rb +39 -0
  374. data/spec/models/content_local_library_create_spec.rb +45 -0
  375. data/spec/models/content_local_library_list_result_spec.rb +39 -0
  376. data/spec/models/content_local_library_result_spec.rb +39 -0
  377. data/spec/models/content_local_library_update_spec.rb +39 -0
  378. data/spec/models/content_subscribed_library_create_result_spec.rb +39 -0
  379. data/spec/models/content_subscribed_library_create_spec.rb +45 -0
  380. data/spec/models/content_subscribed_library_list_result_spec.rb +39 -0
  381. data/spec/models/content_subscribed_library_probe_result_spec.rb +51 -0
  382. data/spec/models/content_subscribed_library_probe_result_status_spec.rb +33 -0
  383. data/spec/models/content_subscribed_library_probe_spec.rb +39 -0
  384. data/spec/models/content_subscribed_library_result_spec.rb +39 -0
  385. data/spec/models/content_subscribed_library_update_spec.rb +39 -0
  386. data/spec/models/vapi_std_errors_concurrent_change_error_spec.rb +45 -0
  387. data/spec/models/vapi_std_errors_concurrent_change_spec.rb +45 -0
  388. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +45 -0
  389. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +45 -0
  390. data/spec/models/vapi_std_errors_invalid_element_configuration_error_spec.rb +45 -0
  391. data/spec/models/vapi_std_errors_invalid_element_configuration_spec.rb +45 -0
  392. data/spec/models/vapi_std_errors_invalid_element_type_error_spec.rb +45 -0
  393. data/spec/models/vapi_std_errors_invalid_element_type_spec.rb +45 -0
  394. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +45 -0
  395. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +45 -0
  396. data/spec/models/vapi_std_errors_not_found_error_spec.rb +45 -0
  397. data/spec/models/vapi_std_errors_not_found_spec.rb +45 -0
  398. data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +45 -0
  399. data/spec/models/vapi_std_errors_resource_busy_spec.rb +45 -0
  400. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +45 -0
  401. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +45 -0
  402. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +45 -0
  403. data/spec/models/vapi_std_errors_unauthorized_spec.rb +45 -0
  404. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +45 -0
  405. data/spec/models/vapi_std_errors_unsupported_spec.rb +45 -0
  406. data/spec/models/vapi_std_localizable_message_spec.rb +51 -0
  407. data/spec/spec_helper.rb +109 -0
  408. data/vsphere-automation-content.gemspec +44 -0
  409. metadata +725 -0
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsNotAllowedInCurrentStateError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsNotAllowedInCurrentState**](VapiStdErrorsNotAllowedInCurrentState.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsNotFound
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::VapiStdErrorsNotFoundError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsNotFound**](VapiStdErrorsNotFound.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsResourceBusy
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::VapiStdErrorsResourceBusyError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsResourceBusy**](VapiStdErrorsResourceBusy.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsResourceInaccessible
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::VapiStdErrorsResourceInaccessibleError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsResourceInaccessible**](VapiStdErrorsResourceInaccessible.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsUnauthorized
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::VapiStdErrorsUnauthorizedError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsUnauthorized**](VapiStdErrorsUnauthorized.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # VSphereAutomation::Content::VapiStdErrorsUnsupported
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::VapiStdErrorsUnsupportedError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **value** | [**VapiStdErrorsUnsupported**](VapiStdErrorsUnsupported.md) | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # VSphereAutomation::Content::VapiStdLocalizableMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Unique identifier of the localizable string or message template. <p> This identifier is typically used to retrieve a locale-specific string or message template from a message catalog. |
7
+ **default_message** | **String** | The value of this localizable string or message template in the {@code en_US} (English) locale. If {@link #id} refers to a message template, the default message will contain the substituted arguments. This value can be used by clients that do not need to display strings and messages in the native language of the user. It could also be used as a fallback if a client is unable to access the appropriate message catalog. |
8
+ **args** | **Array<String>** | Arguments to be substituted into a message template. |
9
+
10
+
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://openapi-generator.tech
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,168 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # content
5
+
6
+ # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
7
+
8
+
9
+ =end
10
+
11
+ # Common files
12
+ require 'vsphere-automation-content/api_client'
13
+ require 'vsphere-automation-content/api_error'
14
+ require 'vsphere-automation-content/version'
15
+ require 'vsphere-automation-content/configuration'
16
+
17
+ # Models
18
+ require 'vsphere-automation-content/models/content_configuration_model'
19
+ require 'vsphere-automation-content/models/content_configuration_result'
20
+ require 'vsphere-automation-content/models/content_configuration_update'
21
+ require 'vsphere-automation-content/models/content_library_find'
22
+ require 'vsphere-automation-content/models/content_library_find_result'
23
+ require 'vsphere-automation-content/models/content_library_find_spec'
24
+ require 'vsphere-automation-content/models/content_library_item_copy'
25
+ require 'vsphere-automation-content/models/content_library_item_copy_result'
26
+ require 'vsphere-automation-content/models/content_library_item_create'
27
+ require 'vsphere-automation-content/models/content_library_item_create_result'
28
+ require 'vsphere-automation-content/models/content_library_item_download_session_create'
29
+ require 'vsphere-automation-content/models/content_library_item_download_session_create_result'
30
+ require 'vsphere-automation-content/models/content_library_item_download_session_fail'
31
+ require 'vsphere-automation-content/models/content_library_item_download_session_keep_alive'
32
+ require 'vsphere-automation-content/models/content_library_item_download_session_list_result'
33
+ require 'vsphere-automation-content/models/content_library_item_download_session_model'
34
+ require 'vsphere-automation-content/models/content_library_item_download_session_model_state'
35
+ require 'vsphere-automation-content/models/content_library_item_download_session_result'
36
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type'
37
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_get'
38
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_info'
39
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_list_result'
40
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_prepare'
41
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result'
42
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status'
43
+ require 'vsphere-automation-content/models/content_library_item_downloadsession_file_result'
44
+ require 'vsphere-automation-content/models/content_library_item_file_checksum_algorithm'
45
+ require 'vsphere-automation-content/models/content_library_item_file_checksum_info'
46
+ require 'vsphere-automation-content/models/content_library_item_file_get'
47
+ require 'vsphere-automation-content/models/content_library_item_file_info'
48
+ require 'vsphere-automation-content/models/content_library_item_file_list_result'
49
+ require 'vsphere-automation-content/models/content_library_item_file_result'
50
+ require 'vsphere-automation-content/models/content_library_item_find'
51
+ require 'vsphere-automation-content/models/content_library_item_find_result'
52
+ require 'vsphere-automation-content/models/content_library_item_find_spec'
53
+ require 'vsphere-automation-content/models/content_library_item_list_result'
54
+ require 'vsphere-automation-content/models/content_library_item_model'
55
+ require 'vsphere-automation-content/models/content_library_item_result'
56
+ require 'vsphere-automation-content/models/content_library_item_storage_get'
57
+ require 'vsphere-automation-content/models/content_library_item_storage_info'
58
+ require 'vsphere-automation-content/models/content_library_item_storage_list_result'
59
+ require 'vsphere-automation-content/models/content_library_item_storage_result'
60
+ require 'vsphere-automation-content/models/content_library_item_transfer_endpoint'
61
+ require 'vsphere-automation-content/models/content_library_item_transfer_status'
62
+ require 'vsphere-automation-content/models/content_library_item_update'
63
+ require 'vsphere-automation-content/models/content_library_item_update_session_create'
64
+ require 'vsphere-automation-content/models/content_library_item_update_session_create_result'
65
+ require 'vsphere-automation-content/models/content_library_item_update_session_fail'
66
+ require 'vsphere-automation-content/models/content_library_item_update_session_keep_alive'
67
+ require 'vsphere-automation-content/models/content_library_item_update_session_list_result'
68
+ require 'vsphere-automation-content/models/content_library_item_update_session_model'
69
+ require 'vsphere-automation-content/models/content_library_item_update_session_model_state'
70
+ require 'vsphere-automation-content/models/content_library_item_update_session_result'
71
+ require 'vsphere-automation-content/models/content_library_item_update_session_update'
72
+ require 'vsphere-automation-content/models/content_library_item_updatesession_certificate_info'
73
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_add'
74
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_add_result'
75
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_add_spec'
76
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_get'
77
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_info'
78
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_list_result'
79
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_remove'
80
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_result'
81
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_source_type'
82
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_validate_result'
83
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_validation_error'
84
+ require 'vsphere-automation-content/models/content_library_item_updatesession_file_validation_result'
85
+ require 'vsphere-automation-content/models/content_library_item_updatesession_preview_info'
86
+ require 'vsphere-automation-content/models/content_library_item_updatesession_preview_info_state'
87
+ require 'vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info'
88
+ require 'vsphere-automation-content/models/content_library_item_updatesession_warning_behavior'
89
+ require 'vsphere-automation-content/models/content_library_item_updatesession_warning_type'
90
+ require 'vsphere-automation-content/models/content_library_list_result'
91
+ require 'vsphere-automation-content/models/content_library_model'
92
+ require 'vsphere-automation-content/models/content_library_model_library_type'
93
+ require 'vsphere-automation-content/models/content_library_optimization_info'
94
+ require 'vsphere-automation-content/models/content_library_publish_info'
95
+ require 'vsphere-automation-content/models/content_library_publish_info_authentication_method'
96
+ require 'vsphere-automation-content/models/content_library_result'
97
+ require 'vsphere-automation-content/models/content_library_storage_backing'
98
+ require 'vsphere-automation-content/models/content_library_storage_backing_type'
99
+ require 'vsphere-automation-content/models/content_library_subscribed_item_sync'
100
+ require 'vsphere-automation-content/models/content_library_subscription_info'
101
+ require 'vsphere-automation-content/models/content_library_subscription_info_authentication_method'
102
+ require 'vsphere-automation-content/models/content_library_update'
103
+ require 'vsphere-automation-content/models/content_local_library_create'
104
+ require 'vsphere-automation-content/models/content_local_library_create_result'
105
+ require 'vsphere-automation-content/models/content_local_library_list_result'
106
+ require 'vsphere-automation-content/models/content_local_library_result'
107
+ require 'vsphere-automation-content/models/content_local_library_update'
108
+ require 'vsphere-automation-content/models/content_subscribed_library_create'
109
+ require 'vsphere-automation-content/models/content_subscribed_library_create_result'
110
+ require 'vsphere-automation-content/models/content_subscribed_library_list_result'
111
+ require 'vsphere-automation-content/models/content_subscribed_library_probe'
112
+ require 'vsphere-automation-content/models/content_subscribed_library_probe_result'
113
+ require 'vsphere-automation-content/models/content_subscribed_library_probe_result_status'
114
+ require 'vsphere-automation-content/models/content_subscribed_library_result'
115
+ require 'vsphere-automation-content/models/content_subscribed_library_update'
116
+ require 'vsphere-automation-content/models/vapi_std_errors_concurrent_change'
117
+ require 'vsphere-automation-content/models/vapi_std_errors_concurrent_change_error'
118
+ require 'vsphere-automation-content/models/vapi_std_errors_invalid_argument'
119
+ require 'vsphere-automation-content/models/vapi_std_errors_invalid_argument_error'
120
+ require 'vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration'
121
+ require 'vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error'
122
+ require 'vsphere-automation-content/models/vapi_std_errors_invalid_element_type'
123
+ require 'vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error'
124
+ require 'vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state'
125
+ require 'vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error'
126
+ require 'vsphere-automation-content/models/vapi_std_errors_not_found'
127
+ require 'vsphere-automation-content/models/vapi_std_errors_not_found_error'
128
+ require 'vsphere-automation-content/models/vapi_std_errors_resource_busy'
129
+ require 'vsphere-automation-content/models/vapi_std_errors_resource_busy_error'
130
+ require 'vsphere-automation-content/models/vapi_std_errors_resource_inaccessible'
131
+ require 'vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error'
132
+ require 'vsphere-automation-content/models/vapi_std_errors_unauthorized'
133
+ require 'vsphere-automation-content/models/vapi_std_errors_unauthorized_error'
134
+ require 'vsphere-automation-content/models/vapi_std_errors_unsupported'
135
+ require 'vsphere-automation-content/models/vapi_std_errors_unsupported_error'
136
+ require 'vsphere-automation-content/models/vapi_std_localizable_message'
137
+
138
+ # APIs
139
+ require 'vsphere-automation-content/api/configuration_api'
140
+ require 'vsphere-automation-content/api/library_api'
141
+ require 'vsphere-automation-content/api/library_item_api'
142
+ require 'vsphere-automation-content/api/library_item_download_session_api'
143
+ require 'vsphere-automation-content/api/library_item_downloadsession_file_api'
144
+ require 'vsphere-automation-content/api/library_item_file_api'
145
+ require 'vsphere-automation-content/api/library_item_storage_api'
146
+ require 'vsphere-automation-content/api/library_item_update_session_api'
147
+ require 'vsphere-automation-content/api/library_item_updatesession_file_api'
148
+ require 'vsphere-automation-content/api/library_subscribed_item_api'
149
+ require 'vsphere-automation-content/api/local_library_api'
150
+ require 'vsphere-automation-content/api/subscribed_library_api'
151
+
152
+ module VSphereAutomation
153
+ class << self
154
+ # Customize default settings for the SDK using block.
155
+ # VSphereAutomation.configure do |config|
156
+ # config.username = "xxx"
157
+ # config.password = "xxx"
158
+ # end
159
+ # If no block given, return the default Configuration object.
160
+ def configure
161
+ if block_given?
162
+ yield(Configuration.default)
163
+ else
164
+ Configuration.default
165
+ end
166
+ end
167
+ end
168
+ end
@@ -0,0 +1,122 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # content
5
+
6
+ # VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
7
+
8
+
9
+ =end
10
+
11
+ require 'uri'
12
+
13
+ module VSphereAutomation
14
+ module Content
15
+ class ConfigurationApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Retrieves the current configuration values.
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [ContentConfigurationResult|]
24
+ def get(opts = {})
25
+ data, _status_code, _headers = get_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Retrieves the current configuration values.
30
+ # @api private
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(ContentConfigurationResult|, Fixnum, Hash)>] data, response status code and response headers
33
+ def get_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: ConfigurationApi.get ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/com/vmware/content/configuration?~action=get'
39
+
40
+ # query parameters
41
+ query_params = {}
42
+
43
+ # header parameters
44
+ header_params = {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
47
+
48
+ # form parameters
49
+ form_params = {}
50
+
51
+ # http body (model)
52
+ post_body = nil
53
+ auth_names = []
54
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
55
+ :header_params => header_params,
56
+ :query_params => query_params,
57
+ :form_params => form_params,
58
+ :body => post_body,
59
+ :auth_names => auth_names,
60
+ :return_type => {
61
+ '200' => 'Content::ContentConfigurationResult',
62
+ })
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: ConfigurationApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+ # 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
70
+ # @param [Hash] opts the optional parameters
71
+ # @return [|VapiStdErrorsInvalidArgumentError|nil]
72
+ def update(content_configuration_update, opts = {})
73
+ update_with_http_info(content_configuration_update, opts)
74
+ nil
75
+ end
76
+
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&#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
+ # @api private
79
+ # @param content_configuration_update
80
+ # @param [Hash] opts the optional parameters
81
+ # @return [Array<(|VapiStdErrorsInvalidArgumentError|nil, Fixnum, Hash)>] nil, response status code and response headers
82
+ def update_with_http_info(content_configuration_update, opts = {})
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug 'Calling API: ConfigurationApi.update ...'
85
+ 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"
89
+ end
90
+ # resource path
91
+ local_var_path = '/com/vmware/content/configuration'
92
+
93
+ # query parameters
94
+ query_params = {}
95
+
96
+ # header parameters
97
+ header_params = {}
98
+ # HTTP header 'Accept' (if needed)
99
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
100
+ # HTTP header 'Content-Type'
101
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
102
+
103
+ # form parameters
104
+ form_params = {}
105
+
106
+ # http body (model)
107
+ post_body = @api_client.object_to_http_body(content_configuration_update)
108
+ auth_names = []
109
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
110
+ :header_params => header_params,
111
+ :query_params => query_params,
112
+ :form_params => form_params,
113
+ :body => post_body,
114
+ :auth_names => auth_names)
115
+ if @api_client.config.debugging
116
+ @api_client.config.logger.debug "API called: ConfigurationApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
117
+ end
118
+ return data, status_code, headers
119
+ end
120
+ end
121
+ end
122
+ end