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.
- checksums.yaml +4 -4
- data/Gemfile +12 -1
- data/Gemfile.lock +57 -44
- data/README.md +61 -13
- data/Rakefile +8 -0
- data/docs/ConfigurationApi.md +30 -12
- data/docs/ContentConfigurationModel.md +1 -1
- data/docs/ContentLibraryItemDestinationSpec.md +8 -0
- data/docs/ContentLibraryItemFileInfo.md +1 -1
- data/docs/ContentLibraryItemFindSpec.md +1 -1
- data/docs/ContentLibraryItemModel.md +1 -1
- data/docs/ContentLibraryItemPublish.md +9 -0
- data/docs/ContentLibraryItemStorageInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionCertificateInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionFileInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionFileValidationResult.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionPreviewWarningInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionWarningBehavior.md +1 -1
- data/docs/ContentLibraryOptimizationInfo.md +1 -1
- data/docs/ContentLibraryPublishInfo.md +2 -2
- data/docs/ContentLibrarySourceInfo.md +9 -0
- data/docs/ContentLibrarySubscribedItemSync.md +1 -1
- data/docs/ContentLibrarySubscriptionInfo.md +3 -2
- data/docs/ContentLibrarySubscriptionsCreate.md +9 -0
- data/docs/ContentLibrarySubscriptionsCreateResult.md +8 -0
- data/docs/ContentLibrarySubscriptionsCreateSpec.md +8 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecNewSubscribedLibrary.md +12 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecPlacement.md +12 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibrary.md +13 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibraryTarget.md +7 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecVcenter.md +9 -0
- data/docs/ContentLibrarySubscriptionsDelete.md +8 -0
- data/docs/ContentLibrarySubscriptionsGet.md +8 -0
- data/docs/ContentLibrarySubscriptionsInfo.md +12 -0
- data/docs/ContentLibrarySubscriptionsListResult.md +8 -0
- data/docs/ContentLibrarySubscriptionsLocation.md +7 -0
- data/docs/ContentLibrarySubscriptionsPlacementInfo.md +12 -0
- data/docs/ContentLibrarySubscriptionsResult.md +8 -0
- data/docs/ContentLibrarySubscriptionsSummary.md +11 -0
- data/docs/ContentLibrarySubscriptionsUpdate.md +9 -0
- data/docs/ContentLibrarySubscriptionsUpdateSpec.md +9 -0
- data/docs/ContentLibrarySubscriptionsUpdateSpecPlacement.md +12 -0
- data/docs/ContentLibrarySubscriptionsUpdateSpecVcenter.md +9 -0
- data/docs/ContentLibrarySubscriptionsVcenterInfo.md +10 -0
- data/docs/ContentLocalLibraryDestinationSpec.md +8 -0
- data/docs/ContentLocalLibraryPublish.md +8 -0
- data/docs/LibraryApi.md +47 -17
- data/docs/LibraryItemApi.md +136 -31
- data/docs/LibraryItemDownloadSessionApi.md +76 -25
- data/docs/LibraryItemDownloadsessionFileApi.md +38 -15
- data/docs/LibraryItemFileApi.md +25 -9
- data/docs/LibraryItemStorageApi.md +25 -9
- data/docs/LibraryItemUpdateSessionApi.md +100 -35
- data/docs/LibraryItemUpdatesessionFileApi.md +60 -23
- data/docs/LibrarySubscribedItemApi.md +27 -11
- data/docs/LibrarySubscriptionsApi.md +269 -0
- data/docs/LocalLibraryApi.md +109 -18
- data/docs/SubscribedLibraryApi.md +89 -31
- data/docs/VapiStdErrorsAlreadyExists.md +9 -0
- data/docs/VapiStdErrorsAlreadyExistsError.md +9 -0
- data/docs/VapiStdErrorsError.md +9 -0
- data/docs/VapiStdErrorsErrorError.md +9 -0
- data/docs/VapiStdErrorsUnauthenticated.md +9 -0
- data/docs/VapiStdErrorsUnauthenticatedError.md +9 -0
- data/lib/vsphere-automation-content.rb +40 -9
- data/lib/vsphere-automation-content/api/configuration_api.rb +32 -23
- data/lib/vsphere-automation-content/api/library_api.rb +42 -33
- data/lib/vsphere-automation-content/api/library_item_api.rb +140 -62
- data/lib/vsphere-automation-content/api/library_item_download_session_api.rb +51 -42
- data/lib/vsphere-automation-content/api/library_item_downloadsession_file_api.rb +40 -31
- data/lib/vsphere-automation-content/api/library_item_file_api.rb +29 -20
- data/lib/vsphere-automation-content/api/library_item_storage_api.rb +29 -20
- data/lib/vsphere-automation-content/api/library_item_update_session_api.rb +67 -58
- data/lib/vsphere-automation-content/api/library_item_updatesession_file_api.rb +53 -44
- data/lib/vsphere-automation-content/api/library_subscribed_item_api.rb +32 -23
- data/lib/vsphere-automation-content/api/library_subscriptions_api.rb +325 -0
- data/lib/vsphere-automation-content/api/local_library_api.rb +97 -34
- data/lib/vsphere-automation-content/api/subscribed_library_api.rb +62 -53
- data/lib/vsphere-automation-content/api_client.rb +9 -5
- data/lib/vsphere-automation-content/api_error.rb +4 -6
- data/lib/vsphere-automation-content/configuration.rb +18 -6
- data/lib/vsphere-automation-content/models/content_configuration_model.rb +5 -7
- data/lib/vsphere-automation-content/models/content_configuration_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_configuration_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_find.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_find_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_find_spec.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_copy.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_copy_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_destination_spec.rb +187 -0
- data/lib/vsphere-automation-content/models/content_library_item_download_session_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_fail.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_keep_alive.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_model.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_model_state.rb +7 -9
- data/lib/vsphere-automation-content/models/content_library_item_download_session_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_info.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status.rb +9 -11
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_checksum_algorithm.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_item_file_checksum_info.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_file_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_find.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_find_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_find_spec.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_model.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_publish.rb +199 -0
- data/lib/vsphere-automation-content/models/content_library_item_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_storage_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_storage_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_storage_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_storage_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_transfer_endpoint.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_transfer_status.rb +9 -11
- data/lib/vsphere-automation-content/models/content_library_item_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_fail.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_keep_alive.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_model.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_model_state.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_item_update_session_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_certificate_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_spec.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_remove.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_source_type.rb +7 -9
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validate_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_error.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_result.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info_state.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_behavior.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_type.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_model.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_model_library_type.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_optimization_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_publish_info.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_publish_info_authentication_method.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_source_info.rb +192 -0
- data/lib/vsphere-automation-content/models/content_library_storage_backing.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_storage_backing_type.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_subscribed_item_sync.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_subscription_info.rb +19 -12
- data/lib/vsphere-automation-content/models/content_library_subscription_info_authentication_method.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create.rb +196 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_result.rb +186 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec.rb +186 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_new_subscribed_library.rb +244 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_placement.rb +222 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library.rb +237 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library_target.rb +28 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_vcenter.rb +197 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_delete.rb +187 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_get.rb +187 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_info.rb +239 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_list_result.rb +188 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_location.rb +28 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_placement_info.rb +222 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_result.rb +186 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_summary.rb +227 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update.rb +201 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec.rb +190 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_placement.rb +222 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_vcenter.rb +192 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_vcenter_info.rb +212 -0
- data/lib/vsphere-automation-content/models/content_library_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_destination_spec.rb +187 -0
- data/lib/vsphere-automation-content/models/content_local_library_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_publish.rb +184 -0
- data/lib/vsphere-automation-content/models/content_local_library_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_probe.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result_status.rb +12 -14
- data/lib/vsphere-automation-content/models/content_subscribed_library_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_update.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_already_exists.rb +199 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_already_exists_error.rb +190 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_error.rb +199 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_error_error.rb +190 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_found.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_found_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated.rb +199 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated_error.rb +190 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_localizable_message.rb +4 -6
- data/lib/vsphere-automation-content/version.rb +5 -7
- data/spec/api/configuration_api_spec.rb +6 -7
- data/spec/api/library_api_spec.rb +7 -8
- data/spec/api/library_item_api_spec.rb +22 -10
- data/spec/api/library_item_download_session_api_spec.rb +8 -9
- data/spec/api/library_item_downloadsession_file_api_spec.rb +7 -8
- data/spec/api/library_item_file_api_spec.rb +6 -7
- data/spec/api/library_item_storage_api_spec.rb +6 -7
- data/spec/api/library_item_update_session_api_spec.rb +9 -10
- data/spec/api/library_item_updatesession_file_api_spec.rb +8 -9
- data/spec/api/library_subscribed_item_api_spec.rb +6 -7
- data/spec/api/library_subscriptions_api_spec.rb +90 -0
- data/spec/api/local_library_api_spec.rb +19 -8
- data/spec/api/subscribed_library_api_spec.rb +8 -9
- data/spec/api_client_spec.rb +4 -6
- data/spec/configuration_spec.rb +4 -6
- data/spec/models/content_configuration_model_spec.rb +4 -6
- data/spec/models/content_configuration_result_spec.rb +4 -6
- data/spec/models/content_configuration_update_spec.rb +4 -6
- data/spec/models/content_library_find_result_spec.rb +4 -6
- data/spec/models/content_library_find_spec.rb +4 -6
- data/spec/models/content_library_find_spec_spec.rb +4 -6
- data/spec/models/content_library_item_copy_result_spec.rb +4 -6
- data/spec/models/content_library_item_copy_spec.rb +4 -6
- data/spec/models/content_library_item_create_result_spec.rb +4 -6
- data/spec/models/content_library_item_create_spec.rb +4 -6
- data/spec/models/content_library_item_destination_spec_spec.rb +37 -0
- data/spec/models/content_library_item_download_session_create_result_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_create_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_fail_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_keep_alive_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_model_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_model_state_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_result_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_endpoint_type_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_get_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_info_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_prepare_result_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_prepare_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_prepare_status_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_result_spec.rb +4 -6
- data/spec/models/content_library_item_file_checksum_algorithm_spec.rb +4 -6
- data/spec/models/content_library_item_file_checksum_info_spec.rb +4 -6
- data/spec/models/content_library_item_file_get_spec.rb +4 -6
- data/spec/models/content_library_item_file_info_spec.rb +4 -6
- data/spec/models/content_library_item_file_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_file_result_spec.rb +4 -6
- data/spec/models/content_library_item_find_result_spec.rb +4 -6
- data/spec/models/content_library_item_find_spec.rb +4 -6
- data/spec/models/content_library_item_find_spec_spec.rb +4 -6
- data/spec/models/content_library_item_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_model_spec.rb +4 -6
- data/spec/models/content_library_item_publish_spec.rb +43 -0
- data/spec/models/content_library_item_result_spec.rb +4 -6
- data/spec/models/content_library_item_storage_get_spec.rb +4 -6
- data/spec/models/content_library_item_storage_info_spec.rb +4 -6
- data/spec/models/content_library_item_storage_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_storage_result_spec.rb +4 -6
- data/spec/models/content_library_item_transfer_endpoint_spec.rb +4 -6
- data/spec/models/content_library_item_transfer_status_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_create_result_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_create_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_fail_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_keep_alive_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_model_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_model_state_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_result_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_update_spec.rb +4 -6
- data/spec/models/content_library_item_update_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_certificate_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_add_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_add_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_add_spec_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_get_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_remove_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_source_type_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_validate_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_validation_error_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_validation_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_preview_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_preview_info_state_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_preview_warning_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_warning_behavior_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_warning_type_spec.rb +4 -6
- data/spec/models/content_library_list_result_spec.rb +4 -6
- data/spec/models/content_library_model_library_type_spec.rb +4 -6
- data/spec/models/content_library_model_spec.rb +4 -6
- data/spec/models/content_library_optimization_info_spec.rb +4 -6
- data/spec/models/content_library_publish_info_authentication_method_spec.rb +4 -6
- data/spec/models/content_library_publish_info_spec.rb +4 -6
- data/spec/models/content_library_result_spec.rb +4 -6
- data/spec/models/content_library_source_info_spec.rb +43 -0
- data/spec/models/content_library_storage_backing_spec.rb +4 -6
- data/spec/models/content_library_storage_backing_type_spec.rb +4 -6
- data/spec/models/content_library_subscribed_item_sync_spec.rb +4 -6
- data/spec/models/content_library_subscription_info_authentication_method_spec.rb +4 -6
- data/spec/models/content_library_subscription_info_spec.rb +10 -6
- data/spec/models/content_library_subscriptions_create_result_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_create_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_create_spec_new_subscribed_library_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_create_spec_placement_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_create_spec_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_create_spec_subscribed_library_spec.rb +67 -0
- data/spec/models/content_library_subscriptions_create_spec_subscribed_library_target_spec.rb +31 -0
- data/spec/models/content_library_subscriptions_create_spec_vcenter_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_delete_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_get_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_info_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_list_result_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_location_spec.rb +31 -0
- data/spec/models/content_library_subscriptions_placement_info_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_result_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_summary_spec.rb +55 -0
- data/spec/models/content_library_subscriptions_update_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_update_spec_placement_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_update_spec_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_update_spec_vcenter_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_vcenter_info_spec.rb +49 -0
- data/spec/models/content_library_update_spec.rb +4 -6
- data/spec/models/content_local_library_create_result_spec.rb +4 -6
- data/spec/models/content_local_library_create_spec.rb +4 -6
- data/spec/models/content_local_library_destination_spec_spec.rb +37 -0
- data/spec/models/content_local_library_list_result_spec.rb +4 -6
- data/spec/models/content_local_library_publish_spec.rb +37 -0
- data/spec/models/content_local_library_result_spec.rb +4 -6
- data/spec/models/content_local_library_update_spec.rb +4 -6
- data/spec/models/content_subscribed_library_create_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_create_spec.rb +4 -6
- data/spec/models/content_subscribed_library_list_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_probe_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_probe_result_status_spec.rb +4 -6
- data/spec/models/content_subscribed_library_probe_spec.rb +4 -6
- data/spec/models/content_subscribed_library_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_update_spec.rb +4 -6
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_already_exists_spec.rb +43 -0
- data/spec/models/vapi_std_errors_concurrent_change_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_concurrent_change_spec.rb +4 -6
- data/spec/models/vapi_std_errors_error_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_configuration_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_configuration_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_type_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_type_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_busy_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +43 -0
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_spec.rb +4 -6
- data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
- data/spec/spec_helper.rb +4 -6
- data/vsphere-automation-content.gemspec +11 -14
- metadata +150 -33
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# content
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
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
|
|
@@ -20,21 +18,23 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
|
22
20
|
# @param source_library_item_id Identifier of the existing library item from which the content will be copied.
|
23
|
-
# @param
|
21
|
+
# @param action ~action=copy
|
22
|
+
# @param request_body
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [ContentLibraryItemCopyResult|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|]
|
26
|
-
def copy(source_library_item_id,
|
27
|
-
data, _status_code, _headers = copy_with_http_info(source_library_item_id,
|
25
|
+
def copy(source_library_item_id, action, request_body, opts = {})
|
26
|
+
data, _status_code, _headers = copy_with_http_info(source_library_item_id, action, request_body, opts)
|
28
27
|
data
|
29
28
|
end
|
30
29
|
|
31
30
|
# Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
|
32
31
|
# @api private
|
33
32
|
# @param source_library_item_id Identifier of the existing library item from which the content will be copied.
|
34
|
-
# @param
|
33
|
+
# @param action ~action=copy
|
34
|
+
# @param request_body
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(ContentLibraryItemCopyResult|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def copy_with_http_info(source_library_item_id,
|
37
|
+
def copy_with_http_info(source_library_item_id, action, request_body, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: LibraryItemApi.copy ...'
|
40
40
|
end
|
@@ -42,20 +42,29 @@ module VSphereAutomation
|
|
42
42
|
if @api_client.config.client_side_validation && source_library_item_id.nil?
|
43
43
|
fail ArgumentError, "Missing the required parameter 'source_library_item_id' when calling LibraryItemApi.copy"
|
44
44
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
45
|
+
# verify the required parameter 'action' is set
|
46
|
+
if @api_client.config.client_side_validation && action.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemApi.copy"
|
48
|
+
end
|
49
|
+
# verify enum value
|
50
|
+
if @api_client.config.client_side_validation && !['copy'].include?(action)
|
51
|
+
fail ArgumentError, "invalid value for 'action', must be one of copy"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'request_body' is set
|
54
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemApi.copy"
|
48
56
|
end
|
49
57
|
# resource path
|
50
|
-
local_var_path = '/com/vmware/content/library/item/id:{source_library_item_id}
|
58
|
+
local_var_path = '/com/vmware/content/library/item/id:{source_library_item_id}'.sub('{' + 'source_library_item_id' + '}', source_library_item_id.to_s)
|
51
59
|
|
52
60
|
# query parameters
|
53
61
|
query_params = {}
|
62
|
+
query_params[:'~action'] = action
|
54
63
|
|
55
64
|
# header parameters
|
56
65
|
header_params = {}
|
57
66
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
68
|
# HTTP header 'Content-Type'
|
60
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
70
|
|
@@ -63,8 +72,8 @@ module VSphereAutomation
|
|
63
72
|
form_params = {}
|
64
73
|
|
65
74
|
# http body (model)
|
66
|
-
post_body = @api_client.object_to_http_body(
|
67
|
-
auth_names = []
|
75
|
+
post_body = @api_client.object_to_http_body(request_body)
|
76
|
+
auth_names = ['api_key']
|
68
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
78
|
:header_params => header_params,
|
70
79
|
:query_params => query_params,
|
@@ -82,26 +91,26 @@ module VSphereAutomation
|
|
82
91
|
return data, status_code, headers
|
83
92
|
end
|
84
93
|
# Creates a new library item. <p> A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. <p> A library item cannot be created in a subscribed library.
|
85
|
-
# @param
|
94
|
+
# @param request_body
|
86
95
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [ContentLibraryItemCreateResult|
|
88
|
-
def create(
|
89
|
-
data, _status_code, _headers = create_with_http_info(
|
96
|
+
# @return [ContentLibraryItemCreateResult|VapiStdErrorsAlreadyExistsError|VapiStdErrorsNotFoundError|]
|
97
|
+
def create(request_body, opts = {})
|
98
|
+
data, _status_code, _headers = create_with_http_info(request_body, opts)
|
90
99
|
data
|
91
100
|
end
|
92
101
|
|
93
102
|
# Creates a new library item. <p> A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. <p> A library item cannot be created in a subscribed library.
|
94
103
|
# @api private
|
95
|
-
# @param
|
104
|
+
# @param request_body
|
96
105
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(ContentLibraryItemCreateResult|
|
98
|
-
def create_with_http_info(
|
106
|
+
# @return [Array<(ContentLibraryItemCreateResult|VapiStdErrorsAlreadyExistsError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
107
|
+
def create_with_http_info(request_body, opts = {})
|
99
108
|
if @api_client.config.debugging
|
100
109
|
@api_client.config.logger.debug 'Calling API: LibraryItemApi.create ...'
|
101
110
|
end
|
102
|
-
# verify the required parameter '
|
103
|
-
if @api_client.config.client_side_validation &&
|
104
|
-
fail ArgumentError, "Missing the required parameter '
|
111
|
+
# verify the required parameter 'request_body' is set
|
112
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemApi.create"
|
105
114
|
end
|
106
115
|
# resource path
|
107
116
|
local_var_path = '/com/vmware/content/library/item'
|
@@ -112,7 +121,7 @@ module VSphereAutomation
|
|
112
121
|
# header parameters
|
113
122
|
header_params = {}
|
114
123
|
# HTTP header 'Accept' (if needed)
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
116
125
|
# HTTP header 'Content-Type'
|
117
126
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
118
127
|
|
@@ -120,8 +129,8 @@ module VSphereAutomation
|
|
120
129
|
form_params = {}
|
121
130
|
|
122
131
|
# http body (model)
|
123
|
-
post_body = @api_client.object_to_http_body(
|
124
|
-
auth_names = []
|
132
|
+
post_body = @api_client.object_to_http_body(request_body)
|
133
|
+
auth_names = ['api_key']
|
125
134
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
126
135
|
:header_params => header_params,
|
127
136
|
:query_params => query_params,
|
@@ -130,7 +139,7 @@ module VSphereAutomation
|
|
130
139
|
:auth_names => auth_names,
|
131
140
|
:return_type => {
|
132
141
|
'200' => 'Content::ContentLibraryItemCreateResult',
|
133
|
-
'400' => 'Content::
|
142
|
+
'400' => 'Content::VapiStdErrorsAlreadyExistsError',
|
134
143
|
'404' => 'Content::VapiStdErrorsNotFoundError',
|
135
144
|
})
|
136
145
|
if @api_client.config.debugging
|
@@ -169,14 +178,14 @@ module VSphereAutomation
|
|
169
178
|
# header parameters
|
170
179
|
header_params = {}
|
171
180
|
# HTTP header 'Accept' (if needed)
|
172
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
173
182
|
|
174
183
|
# form parameters
|
175
184
|
form_params = {}
|
176
185
|
|
177
186
|
# http body (model)
|
178
187
|
post_body = nil
|
179
|
-
auth_names = []
|
188
|
+
auth_names = ['api_key']
|
180
189
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
181
190
|
:header_params => header_params,
|
182
191
|
:query_params => query_params,
|
@@ -189,26 +198,26 @@ module VSphereAutomation
|
|
189
198
|
return data, status_code, headers
|
190
199
|
end
|
191
200
|
# Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
192
|
-
# @param
|
201
|
+
# @param request_body
|
193
202
|
# @param [Hash] opts the optional parameters
|
194
203
|
# @return [ContentLibraryItemFindResult|VapiStdErrorsInvalidArgumentError|]
|
195
|
-
def find(
|
196
|
-
data, _status_code, _headers = find_with_http_info(
|
204
|
+
def find(request_body, opts = {})
|
205
|
+
data, _status_code, _headers = find_with_http_info(request_body, opts)
|
197
206
|
data
|
198
207
|
end
|
199
208
|
|
200
209
|
# Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
201
210
|
# @api private
|
202
|
-
# @param
|
211
|
+
# @param request_body
|
203
212
|
# @param [Hash] opts the optional parameters
|
204
213
|
# @return [Array<(ContentLibraryItemFindResult|VapiStdErrorsInvalidArgumentError|, Fixnum, Hash)>] data, response status code and response headers
|
205
|
-
def find_with_http_info(
|
214
|
+
def find_with_http_info(request_body, opts = {})
|
206
215
|
if @api_client.config.debugging
|
207
216
|
@api_client.config.logger.debug 'Calling API: LibraryItemApi.find ...'
|
208
217
|
end
|
209
|
-
# verify the required parameter '
|
210
|
-
if @api_client.config.client_side_validation &&
|
211
|
-
fail ArgumentError, "Missing the required parameter '
|
218
|
+
# verify the required parameter 'request_body' is set
|
219
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemApi.find"
|
212
221
|
end
|
213
222
|
# resource path
|
214
223
|
local_var_path = '/com/vmware/content/library/item?~action=find'
|
@@ -219,7 +228,7 @@ module VSphereAutomation
|
|
219
228
|
# header parameters
|
220
229
|
header_params = {}
|
221
230
|
# HTTP header 'Accept' (if needed)
|
222
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
223
232
|
# HTTP header 'Content-Type'
|
224
233
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
225
234
|
|
@@ -227,8 +236,8 @@ module VSphereAutomation
|
|
227
236
|
form_params = {}
|
228
237
|
|
229
238
|
# http body (model)
|
230
|
-
post_body = @api_client.object_to_http_body(
|
231
|
-
auth_names = []
|
239
|
+
post_body = @api_client.object_to_http_body(request_body)
|
240
|
+
auth_names = ['api_key']
|
232
241
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
233
242
|
:header_params => header_params,
|
234
243
|
:query_params => query_params,
|
@@ -275,14 +284,14 @@ module VSphereAutomation
|
|
275
284
|
# header parameters
|
276
285
|
header_params = {}
|
277
286
|
# HTTP header 'Accept' (if needed)
|
278
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
279
288
|
|
280
289
|
# form parameters
|
281
290
|
form_params = {}
|
282
291
|
|
283
292
|
# http body (model)
|
284
293
|
post_body = nil
|
285
|
-
auth_names = []
|
294
|
+
auth_names = ['api_key']
|
286
295
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
287
296
|
:header_params => header_params,
|
288
297
|
:query_params => query_params,
|
@@ -330,14 +339,14 @@ module VSphereAutomation
|
|
330
339
|
# header parameters
|
331
340
|
header_params = {}
|
332
341
|
# HTTP header 'Accept' (if needed)
|
333
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
342
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
334
343
|
|
335
344
|
# form parameters
|
336
345
|
form_params = {}
|
337
346
|
|
338
347
|
# http body (model)
|
339
348
|
post_body = nil
|
340
|
-
auth_names = []
|
349
|
+
auth_names = ['api_key']
|
341
350
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
342
351
|
:header_params => header_params,
|
343
352
|
:query_params => query_params,
|
@@ -353,23 +362,92 @@ module VSphereAutomation
|
|
353
362
|
end
|
354
363
|
return data, status_code, headers
|
355
364
|
end
|
365
|
+
# Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library.
|
366
|
+
# @param library_item_id Library item identifier.
|
367
|
+
# @param action ~action=publish
|
368
|
+
# @param request_body
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
371
|
+
def publish(library_item_id, action, request_body, opts = {})
|
372
|
+
publish_with_http_info(library_item_id, action, request_body, opts)
|
373
|
+
nil
|
374
|
+
end
|
375
|
+
|
376
|
+
# Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library.
|
377
|
+
# @api private
|
378
|
+
# @param library_item_id Library item identifier.
|
379
|
+
# @param action ~action=publish
|
380
|
+
# @param request_body
|
381
|
+
# @param [Hash] opts the optional parameters
|
382
|
+
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
383
|
+
def publish_with_http_info(library_item_id, action, request_body, opts = {})
|
384
|
+
if @api_client.config.debugging
|
385
|
+
@api_client.config.logger.debug 'Calling API: LibraryItemApi.publish ...'
|
386
|
+
end
|
387
|
+
# verify the required parameter 'library_item_id' is set
|
388
|
+
if @api_client.config.client_side_validation && library_item_id.nil?
|
389
|
+
fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemApi.publish"
|
390
|
+
end
|
391
|
+
# verify the required parameter 'action' is set
|
392
|
+
if @api_client.config.client_side_validation && action.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemApi.publish"
|
394
|
+
end
|
395
|
+
# verify enum value
|
396
|
+
if @api_client.config.client_side_validation && !['publish'].include?(action)
|
397
|
+
fail ArgumentError, "invalid value for 'action', must be one of publish"
|
398
|
+
end
|
399
|
+
# verify the required parameter 'request_body' is set
|
400
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
401
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemApi.publish"
|
402
|
+
end
|
403
|
+
# resource path
|
404
|
+
local_var_path = '/com/vmware/content/library/item/id:{library_item_id}'.sub('{' + 'library_item_id' + '}', library_item_id.to_s)
|
405
|
+
|
406
|
+
# query parameters
|
407
|
+
query_params = {}
|
408
|
+
query_params[:'~action'] = action
|
409
|
+
|
410
|
+
# header parameters
|
411
|
+
header_params = {}
|
412
|
+
# HTTP header 'Accept' (if needed)
|
413
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
414
|
+
# HTTP header 'Content-Type'
|
415
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
416
|
+
|
417
|
+
# form parameters
|
418
|
+
form_params = {}
|
419
|
+
|
420
|
+
# http body (model)
|
421
|
+
post_body = @api_client.object_to_http_body(request_body)
|
422
|
+
auth_names = ['api_key']
|
423
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
424
|
+
:header_params => header_params,
|
425
|
+
:query_params => query_params,
|
426
|
+
:form_params => form_params,
|
427
|
+
:body => post_body,
|
428
|
+
:auth_names => auth_names)
|
429
|
+
if @api_client.config.debugging
|
430
|
+
@api_client.config.logger.debug "API called: LibraryItemApi#publish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
431
|
+
end
|
432
|
+
return data, status_code, headers
|
433
|
+
end
|
356
434
|
# Updates the specified properties of a library item. <p> This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. <p> This {@term operation} cannot update a library item that is a member of a subscribed library. Those items must be updated in the source published library and synchronized to the subscribed library.
|
357
435
|
# @param library_item_id Identifier of the library item to update.
|
358
|
-
# @param
|
436
|
+
# @param request_body
|
359
437
|
# @param [Hash] opts the optional parameters
|
360
|
-
# @return [|
|
361
|
-
def update(library_item_id,
|
362
|
-
update_with_http_info(library_item_id,
|
438
|
+
# @return [|VapiStdErrorsAlreadyExistsError|VapiStdErrorsNotFoundError|nil]
|
439
|
+
def update(library_item_id, request_body, opts = {})
|
440
|
+
update_with_http_info(library_item_id, request_body, opts)
|
363
441
|
nil
|
364
442
|
end
|
365
443
|
|
366
444
|
# Updates the specified properties of a library item. <p> This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. <p> This {@term operation} cannot update a library item that is a member of a subscribed library. Those items must be updated in the source published library and synchronized to the subscribed library.
|
367
445
|
# @api private
|
368
446
|
# @param library_item_id Identifier of the library item to update.
|
369
|
-
# @param
|
447
|
+
# @param request_body
|
370
448
|
# @param [Hash] opts the optional parameters
|
371
|
-
# @return [Array<(|
|
372
|
-
def update_with_http_info(library_item_id,
|
449
|
+
# @return [Array<(|VapiStdErrorsAlreadyExistsError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
450
|
+
def update_with_http_info(library_item_id, request_body, opts = {})
|
373
451
|
if @api_client.config.debugging
|
374
452
|
@api_client.config.logger.debug 'Calling API: LibraryItemApi.update ...'
|
375
453
|
end
|
@@ -377,9 +455,9 @@ module VSphereAutomation
|
|
377
455
|
if @api_client.config.client_side_validation && library_item_id.nil?
|
378
456
|
fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemApi.update"
|
379
457
|
end
|
380
|
-
# verify the required parameter '
|
381
|
-
if @api_client.config.client_side_validation &&
|
382
|
-
fail ArgumentError, "Missing the required parameter '
|
458
|
+
# verify the required parameter 'request_body' is set
|
459
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
460
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemApi.update"
|
383
461
|
end
|
384
462
|
# resource path
|
385
463
|
local_var_path = '/com/vmware/content/library/item/id:{library_item_id}'.sub('{' + 'library_item_id' + '}', library_item_id.to_s)
|
@@ -390,7 +468,7 @@ module VSphereAutomation
|
|
390
468
|
# header parameters
|
391
469
|
header_params = {}
|
392
470
|
# HTTP header 'Accept' (if needed)
|
393
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
394
472
|
# HTTP header 'Content-Type'
|
395
473
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
396
474
|
|
@@ -398,8 +476,8 @@ module VSphereAutomation
|
|
398
476
|
form_params = {}
|
399
477
|
|
400
478
|
# http body (model)
|
401
|
-
post_body = @api_client.object_to_http_body(
|
402
|
-
auth_names = []
|
479
|
+
post_body = @api_client.object_to_http_body(request_body)
|
480
|
+
auth_names = ['api_key']
|
403
481
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
404
482
|
:header_params => header_params,
|
405
483
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# content
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
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
|
|
@@ -49,14 +47,14 @@ module VSphereAutomation
|
|
49
47
|
# header parameters
|
50
48
|
header_params = {}
|
51
49
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
51
|
|
54
52
|
# form parameters
|
55
53
|
form_params = {}
|
56
54
|
|
57
55
|
# http body (model)
|
58
56
|
post_body = nil
|
59
|
-
auth_names = []
|
57
|
+
auth_names = ['api_key']
|
60
58
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
61
59
|
:header_params => header_params,
|
62
60
|
:query_params => query_params,
|
@@ -69,26 +67,26 @@ module VSphereAutomation
|
|
69
67
|
return data, status_code, headers
|
70
68
|
end
|
71
69
|
# Creates a new download session.
|
72
|
-
# @param
|
70
|
+
# @param request_body
|
73
71
|
# @param [Hash] opts the optional parameters
|
74
72
|
# @return [ContentLibraryItemDownloadSessionCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|]
|
75
|
-
def create(
|
76
|
-
data, _status_code, _headers = create_with_http_info(
|
73
|
+
def create(request_body, opts = {})
|
74
|
+
data, _status_code, _headers = create_with_http_info(request_body, opts)
|
77
75
|
data
|
78
76
|
end
|
79
77
|
|
80
78
|
# Creates a new download session.
|
81
79
|
# @api private
|
82
|
-
# @param
|
80
|
+
# @param request_body
|
83
81
|
# @param [Hash] opts the optional parameters
|
84
82
|
# @return [Array<(ContentLibraryItemDownloadSessionCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
85
|
-
def create_with_http_info(
|
83
|
+
def create_with_http_info(request_body, opts = {})
|
86
84
|
if @api_client.config.debugging
|
87
85
|
@api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.create ...'
|
88
86
|
end
|
89
|
-
# verify the required parameter '
|
90
|
-
if @api_client.config.client_side_validation &&
|
91
|
-
fail ArgumentError, "Missing the required parameter '
|
87
|
+
# verify the required parameter 'request_body' is set
|
88
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
89
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemDownloadSessionApi.create"
|
92
90
|
end
|
93
91
|
# resource path
|
94
92
|
local_var_path = '/com/vmware/content/library/item/download-session'
|
@@ -99,7 +97,7 @@ module VSphereAutomation
|
|
99
97
|
# header parameters
|
100
98
|
header_params = {}
|
101
99
|
# HTTP header 'Accept' (if needed)
|
102
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
100
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
103
101
|
# HTTP header 'Content-Type'
|
104
102
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
105
103
|
|
@@ -107,8 +105,8 @@ module VSphereAutomation
|
|
107
105
|
form_params = {}
|
108
106
|
|
109
107
|
# http body (model)
|
110
|
-
post_body = @api_client.object_to_http_body(
|
111
|
-
auth_names = []
|
108
|
+
post_body = @api_client.object_to_http_body(request_body)
|
109
|
+
auth_names = ['api_key']
|
112
110
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
113
111
|
:header_params => header_params,
|
114
112
|
:query_params => query_params,
|
@@ -156,14 +154,14 @@ module VSphereAutomation
|
|
156
154
|
# header parameters
|
157
155
|
header_params = {}
|
158
156
|
# HTTP header 'Accept' (if needed)
|
159
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
157
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
160
158
|
|
161
159
|
# form parameters
|
162
160
|
form_params = {}
|
163
161
|
|
164
162
|
# http body (model)
|
165
163
|
post_body = nil
|
166
|
-
auth_names = []
|
164
|
+
auth_names = ['api_key']
|
167
165
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
168
166
|
:header_params => header_params,
|
169
167
|
:query_params => query_params,
|
@@ -177,21 +175,23 @@ module VSphereAutomation
|
|
177
175
|
end
|
178
176
|
# Terminates the download session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
|
179
177
|
# @param download_session_id Identifier of the download session to fail.
|
180
|
-
# @param
|
178
|
+
# @param action ~action=fail
|
179
|
+
# @param request_body
|
181
180
|
# @param [Hash] opts the optional parameters
|
182
181
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
|
183
|
-
def fail(download_session_id,
|
184
|
-
fail_with_http_info(download_session_id,
|
182
|
+
def fail(download_session_id, action, request_body, opts = {})
|
183
|
+
fail_with_http_info(download_session_id, action, request_body, opts)
|
185
184
|
nil
|
186
185
|
end
|
187
186
|
|
188
187
|
# Terminates the download session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
|
189
188
|
# @api private
|
190
189
|
# @param download_session_id Identifier of the download session to fail.
|
191
|
-
# @param
|
190
|
+
# @param action ~action=fail
|
191
|
+
# @param request_body
|
192
192
|
# @param [Hash] opts the optional parameters
|
193
193
|
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
194
|
-
def fail_with_http_info(download_session_id,
|
194
|
+
def fail_with_http_info(download_session_id, action, request_body, opts = {})
|
195
195
|
if @api_client.config.debugging
|
196
196
|
@api_client.config.logger.debug 'Calling API: LibraryItemDownloadSessionApi.fail ...'
|
197
197
|
end
|
@@ -199,20 +199,29 @@ module VSphereAutomation
|
|
199
199
|
if @api_client.config.client_side_validation && download_session_id.nil?
|
200
200
|
fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadSessionApi.fail"
|
201
201
|
end
|
202
|
-
# verify the required parameter '
|
203
|
-
if @api_client.config.client_side_validation &&
|
204
|
-
fail ArgumentError, "Missing the required parameter '
|
202
|
+
# verify the required parameter 'action' is set
|
203
|
+
if @api_client.config.client_side_validation && action.nil?
|
204
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemDownloadSessionApi.fail"
|
205
|
+
end
|
206
|
+
# verify enum value
|
207
|
+
if @api_client.config.client_side_validation && !['fail'].include?(action)
|
208
|
+
fail ArgumentError, "invalid value for 'action', must be one of fail"
|
209
|
+
end
|
210
|
+
# verify the required parameter 'request_body' is set
|
211
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
212
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemDownloadSessionApi.fail"
|
205
213
|
end
|
206
214
|
# resource path
|
207
|
-
local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}
|
215
|
+
local_var_path = '/com/vmware/content/library/item/download-session/id:{download_session_id}'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
|
208
216
|
|
209
217
|
# query parameters
|
210
218
|
query_params = {}
|
219
|
+
query_params[:'~action'] = action
|
211
220
|
|
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(
|
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(:POST, local_var_path,
|
226
235
|
:header_params => header_params,
|
227
236
|
:query_params => query_params,
|
@@ -264,14 +273,14 @@ module VSphereAutomation
|
|
264
273
|
# header parameters
|
265
274
|
header_params = {}
|
266
275
|
# HTTP header 'Accept' (if needed)
|
267
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
268
277
|
|
269
278
|
# form parameters
|
270
279
|
form_params = {}
|
271
280
|
|
272
281
|
# http body (model)
|
273
282
|
post_body = nil
|
274
|
-
auth_names = []
|
283
|
+
auth_names = ['api_key']
|
275
284
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
276
285
|
:header_params => header_params,
|
277
286
|
:query_params => query_params,
|
@@ -290,7 +299,7 @@ module VSphereAutomation
|
|
290
299
|
# Keeps a download session alive. This operation is allowed only if the session is in the {@link DownloadSessionModel.State#ACTIVE} state. <p> If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this {@term operation} enables a client to specifically extend the lifetime of an active download session.
|
291
300
|
# @param download_session_id Identifier of the download session whose lifetime should be extended.
|
292
301
|
# @param [Hash] opts the optional parameters
|
293
|
-
# @option opts [ContentLibraryItemDownloadSessionKeepAlive] :
|
302
|
+
# @option opts [ContentLibraryItemDownloadSessionKeepAlive] :request_body
|
294
303
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
|
295
304
|
def keep_alive(download_session_id, opts = {})
|
296
305
|
keep_alive_with_http_info(download_session_id, opts)
|
@@ -301,7 +310,7 @@ module VSphereAutomation
|
|
301
310
|
# @api private
|
302
311
|
# @param download_session_id Identifier of the download session whose lifetime should be extended.
|
303
312
|
# @param [Hash] opts the optional parameters
|
304
|
-
# @option opts [ContentLibraryItemDownloadSessionKeepAlive] :
|
313
|
+
# @option opts [ContentLibraryItemDownloadSessionKeepAlive] :request_body
|
305
314
|
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
306
315
|
def keep_alive_with_http_info(download_session_id, opts = {})
|
307
316
|
if @api_client.config.debugging
|
@@ -320,7 +329,7 @@ module VSphereAutomation
|
|
320
329
|
# header parameters
|
321
330
|
header_params = {}
|
322
331
|
# HTTP header 'Accept' (if needed)
|
323
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
332
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
324
333
|
# HTTP header 'Content-Type'
|
325
334
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
326
335
|
|
@@ -328,8 +337,8 @@ module VSphereAutomation
|
|
328
337
|
form_params = {}
|
329
338
|
|
330
339
|
# http body (model)
|
331
|
-
post_body = @api_client.object_to_http_body(opts[:'
|
332
|
-
auth_names = []
|
340
|
+
post_body = @api_client.object_to_http_body(opts[:'request_body'])
|
341
|
+
auth_names = ['api_key']
|
333
342
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
334
343
|
:header_params => header_params,
|
335
344
|
:query_params => query_params,
|
@@ -369,14 +378,14 @@ module VSphereAutomation
|
|
369
378
|
# header parameters
|
370
379
|
header_params = {}
|
371
380
|
# HTTP header 'Accept' (if needed)
|
372
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
373
382
|
|
374
383
|
# form parameters
|
375
384
|
form_params = {}
|
376
385
|
|
377
386
|
# http body (model)
|
378
387
|
post_body = nil
|
379
|
-
auth_names = []
|
388
|
+
auth_names = ['api_key']
|
380
389
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
381
390
|
:header_params => header_params,
|
382
391
|
:query_params => query_params,
|