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
@@ -4,12 +4,12 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**get**](LibraryItemStorageApi.md#get) | **POST** /com/vmware/content/library/item/storage/id:{library_item_id}
|
7
|
+
[**get**](LibraryItemStorageApi.md#get) | **POST** /com/vmware/content/library/item/storage/id:{library_item_id} | Retrieves the storage information for a specific file in a library item.
|
8
8
|
[**list**](LibraryItemStorageApi.md#list) | **GET** /com/vmware/content/library/item/storage | Lists all storage items for a given library item.
|
9
9
|
|
10
10
|
|
11
11
|
# **get**
|
12
|
-
> ContentLibraryItemStorageResult get(library_item_id,
|
12
|
+
> ContentLibraryItemStorageResult get(library_item_id, action, request_body)
|
13
13
|
|
14
14
|
Retrieves the storage information for a specific file in a library item.
|
15
15
|
|
@@ -17,14 +17,22 @@ Retrieves the storage information for a specific file in a library item.
|
|
17
17
|
```ruby
|
18
18
|
# load the gem
|
19
19
|
require 'vsphere-automation-content'
|
20
|
+
# setup authorization
|
21
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
22
|
+
# Configure API key authorization: api_key
|
23
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
24
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
25
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
26
|
+
end
|
20
27
|
|
21
28
|
api_instance = VSphereAutomation::Content::LibraryItemStorageApi.new
|
22
29
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item whose storage information should be retrieved.
|
23
|
-
|
30
|
+
action = 'action_example' # String | ~action=get
|
31
|
+
request_body = Content::ContentLibraryItemStorageGet.new # ContentLibraryItemStorageGet |
|
24
32
|
|
25
33
|
begin
|
26
34
|
#Retrieves the storage information for a specific file in a library item.
|
27
|
-
result = api_instance.get(library_item_id,
|
35
|
+
result = api_instance.get(library_item_id, action, request_body)
|
28
36
|
p result
|
29
37
|
rescue VSphereAutomation::ApiError => e
|
30
38
|
puts "Exception when calling LibraryItemStorageApi->get: #{e}"
|
@@ -36,7 +44,8 @@ end
|
|
36
44
|
Name | Type | Description | Notes
|
37
45
|
------------- | ------------- | ------------- | -------------
|
38
46
|
**library_item_id** | **String**| Identifier of the library item whose storage information should be retrieved. |
|
39
|
-
**
|
47
|
+
**action** | **String**| ~action=get |
|
48
|
+
**request_body** | [**ContentLibraryItemStorageGet**](ContentLibraryItemStorageGet.md)| |
|
40
49
|
|
41
50
|
### Return type
|
42
51
|
|
@@ -44,12 +53,12 @@ Name | Type | Description | Notes
|
|
44
53
|
|
45
54
|
### Authorization
|
46
55
|
|
47
|
-
|
56
|
+
[api_key](../README.md#api_key)
|
48
57
|
|
49
58
|
### HTTP request headers
|
50
59
|
|
51
60
|
- **Content-Type**: application/json
|
52
|
-
- **Accept**:
|
61
|
+
- **Accept**: application/json
|
53
62
|
|
54
63
|
|
55
64
|
|
@@ -62,6 +71,13 @@ Lists all storage items for a given library item.
|
|
62
71
|
```ruby
|
63
72
|
# load the gem
|
64
73
|
require 'vsphere-automation-content'
|
74
|
+
# setup authorization
|
75
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
76
|
+
# Configure API key authorization: api_key
|
77
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
78
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
79
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
80
|
+
end
|
65
81
|
|
66
82
|
api_instance = VSphereAutomation::Content::LibraryItemStorageApi.new
|
67
83
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item whose storage information should be listed.
|
@@ -87,12 +103,12 @@ Name | Type | Description | Notes
|
|
87
103
|
|
88
104
|
### Authorization
|
89
105
|
|
90
|
-
|
106
|
+
[api_key](../README.md#api_key)
|
91
107
|
|
92
108
|
### HTTP request headers
|
93
109
|
|
94
110
|
- **Content-Type**: Not defined
|
95
|
-
- **Accept**:
|
111
|
+
- **Accept**: application/json
|
96
112
|
|
97
113
|
|
98
114
|
|
@@ -5,7 +5,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**cancel**](LibraryItemUpdateSessionApi.md#cancel) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}?~action=cancel | Cancels the update session and sets its state to {@link UpdateSessionModel.State#CANCELED}. This {@term operation} will free up any temporary resources currently associated with the session. <p> This {@term operation} is not allowed if the session has been already completed. <p> Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
|
8
|
-
[**complete**](LibraryItemUpdateSessionApi.md#complete) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}
|
8
|
+
[**complete**](LibraryItemUpdateSessionApi.md#complete) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id} | Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. <p> Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. <p> Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
|
9
9
|
[**create**](LibraryItemUpdateSessionApi.md#create) | **POST** /com/vmware/content/library/item/update-session | Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. <p> Content Library Service allows only one single update session to be active for a specific library item.
|
10
10
|
[**delete**](LibraryItemUpdateSessionApi.md#delete) | **DELETE** /com/vmware/content/library/item/update-session/id:{update_session_id} | Deletes an update session. This removes the session and all information associated with it. <p> Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item. <p> Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.
|
11
11
|
[**fail**](LibraryItemUpdateSessionApi.md#fail) | **POST** /com/vmware/content/library/item/update-session/id:{update_session_id}?~action=fail | Terminates the update session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
|
@@ -24,6 +24,13 @@ Cancels the update session and sets its state to {@link UpdateSessionModel.State
|
|
24
24
|
```ruby
|
25
25
|
# load the gem
|
26
26
|
require 'vsphere-automation-content'
|
27
|
+
# setup authorization
|
28
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
29
|
+
# Configure API key authorization: api_key
|
30
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
33
|
+
end
|
27
34
|
|
28
35
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
29
36
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session that should be canceled.
|
@@ -48,17 +55,17 @@ nil (empty response body)
|
|
48
55
|
|
49
56
|
### Authorization
|
50
57
|
|
51
|
-
|
58
|
+
[api_key](../README.md#api_key)
|
52
59
|
|
53
60
|
### HTTP request headers
|
54
61
|
|
55
62
|
- **Content-Type**: Not defined
|
56
|
-
- **Accept**:
|
63
|
+
- **Accept**: application/json
|
57
64
|
|
58
65
|
|
59
66
|
|
60
67
|
# **complete**
|
61
|
-
> complete(update_session_id)
|
68
|
+
> complete(update_session_id, action)
|
62
69
|
|
63
70
|
Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. <p> Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. <p> Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
|
64
71
|
|
@@ -66,13 +73,21 @@ Completes the update session. This indicates that the client has finished making
|
|
66
73
|
```ruby
|
67
74
|
# load the gem
|
68
75
|
require 'vsphere-automation-content'
|
76
|
+
# setup authorization
|
77
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
78
|
+
# Configure API key authorization: api_key
|
79
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
82
|
+
end
|
69
83
|
|
70
84
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
71
85
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session that should be completed.
|
86
|
+
action = 'action_example' # String | ~action=complete
|
72
87
|
|
73
88
|
begin
|
74
89
|
#Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. <p> Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. <p> Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
|
75
|
-
api_instance.complete(update_session_id)
|
90
|
+
api_instance.complete(update_session_id, action)
|
76
91
|
rescue VSphereAutomation::ApiError => e
|
77
92
|
puts "Exception when calling LibraryItemUpdateSessionApi->complete: #{e}"
|
78
93
|
end
|
@@ -83,6 +98,7 @@ end
|
|
83
98
|
Name | Type | Description | Notes
|
84
99
|
------------- | ------------- | ------------- | -------------
|
85
100
|
**update_session_id** | **String**| Identifier of the update session that should be completed. |
|
101
|
+
**action** | **String**| ~action=complete |
|
86
102
|
|
87
103
|
### Return type
|
88
104
|
|
@@ -90,17 +106,17 @@ nil (empty response body)
|
|
90
106
|
|
91
107
|
### Authorization
|
92
108
|
|
93
|
-
|
109
|
+
[api_key](../README.md#api_key)
|
94
110
|
|
95
111
|
### HTTP request headers
|
96
112
|
|
97
113
|
- **Content-Type**: Not defined
|
98
|
-
- **Accept**:
|
114
|
+
- **Accept**: application/json
|
99
115
|
|
100
116
|
|
101
117
|
|
102
118
|
# **create**
|
103
|
-
> ContentLibraryItemUpdateSessionCreateResult create(
|
119
|
+
> ContentLibraryItemUpdateSessionCreateResult create(request_body)
|
104
120
|
|
105
121
|
Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. <p> Content Library Service allows only one single update session to be active for a specific library item.
|
106
122
|
|
@@ -108,13 +124,20 @@ Creates a new update session. An update session is used to make modifications to
|
|
108
124
|
```ruby
|
109
125
|
# load the gem
|
110
126
|
require 'vsphere-automation-content'
|
127
|
+
# setup authorization
|
128
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
129
|
+
# Configure API key authorization: api_key
|
130
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
131
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
132
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
133
|
+
end
|
111
134
|
|
112
135
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
113
|
-
|
136
|
+
request_body = Content::ContentLibraryItemUpdateSessionCreate.new # ContentLibraryItemUpdateSessionCreate |
|
114
137
|
|
115
138
|
begin
|
116
139
|
#Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. <p> Content Library Service allows only one single update session to be active for a specific library item.
|
117
|
-
result = api_instance.create(
|
140
|
+
result = api_instance.create(request_body)
|
118
141
|
p result
|
119
142
|
rescue VSphereAutomation::ApiError => e
|
120
143
|
puts "Exception when calling LibraryItemUpdateSessionApi->create: #{e}"
|
@@ -125,7 +148,7 @@ end
|
|
125
148
|
|
126
149
|
Name | Type | Description | Notes
|
127
150
|
------------- | ------------- | ------------- | -------------
|
128
|
-
**
|
151
|
+
**request_body** | [**ContentLibraryItemUpdateSessionCreate**](ContentLibraryItemUpdateSessionCreate.md)| |
|
129
152
|
|
130
153
|
### Return type
|
131
154
|
|
@@ -133,12 +156,12 @@ Name | Type | Description | Notes
|
|
133
156
|
|
134
157
|
### Authorization
|
135
158
|
|
136
|
-
|
159
|
+
[api_key](../README.md#api_key)
|
137
160
|
|
138
161
|
### HTTP request headers
|
139
162
|
|
140
163
|
- **Content-Type**: application/json
|
141
|
-
- **Accept**:
|
164
|
+
- **Accept**: application/json
|
142
165
|
|
143
166
|
|
144
167
|
|
@@ -151,6 +174,13 @@ Deletes an update session. This removes the session and all information associat
|
|
151
174
|
```ruby
|
152
175
|
# load the gem
|
153
176
|
require 'vsphere-automation-content'
|
177
|
+
# setup authorization
|
178
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
179
|
+
# Configure API key authorization: api_key
|
180
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
181
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
182
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
183
|
+
end
|
154
184
|
|
155
185
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
156
186
|
update_session_id = 'update_session_id_example' # String | Identifer of the update session to delete.
|
@@ -175,17 +205,17 @@ nil (empty response body)
|
|
175
205
|
|
176
206
|
### Authorization
|
177
207
|
|
178
|
-
|
208
|
+
[api_key](../README.md#api_key)
|
179
209
|
|
180
210
|
### HTTP request headers
|
181
211
|
|
182
212
|
- **Content-Type**: Not defined
|
183
|
-
- **Accept**:
|
213
|
+
- **Accept**: application/json
|
184
214
|
|
185
215
|
|
186
216
|
|
187
217
|
# **fail**
|
188
|
-
> fail(update_session_id,
|
218
|
+
> fail(update_session_id, request_body)
|
189
219
|
|
190
220
|
Terminates the update session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
|
191
221
|
|
@@ -193,14 +223,21 @@ Terminates the update session with a client specified error message. <p> This is
|
|
193
223
|
```ruby
|
194
224
|
# load the gem
|
195
225
|
require 'vsphere-automation-content'
|
226
|
+
# setup authorization
|
227
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
228
|
+
# Configure API key authorization: api_key
|
229
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
230
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
231
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
232
|
+
end
|
196
233
|
|
197
234
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
198
235
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session to fail.
|
199
|
-
|
236
|
+
request_body = Content::ContentLibraryItemUpdateSessionFail.new # ContentLibraryItemUpdateSessionFail |
|
200
237
|
|
201
238
|
begin
|
202
239
|
#Terminates the update session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
|
203
|
-
api_instance.fail(update_session_id,
|
240
|
+
api_instance.fail(update_session_id, request_body)
|
204
241
|
rescue VSphereAutomation::ApiError => e
|
205
242
|
puts "Exception when calling LibraryItemUpdateSessionApi->fail: #{e}"
|
206
243
|
end
|
@@ -211,7 +248,7 @@ end
|
|
211
248
|
Name | Type | Description | Notes
|
212
249
|
------------- | ------------- | ------------- | -------------
|
213
250
|
**update_session_id** | **String**| Identifier of the update session to fail. |
|
214
|
-
**
|
251
|
+
**request_body** | [**ContentLibraryItemUpdateSessionFail**](ContentLibraryItemUpdateSessionFail.md)| |
|
215
252
|
|
216
253
|
### Return type
|
217
254
|
|
@@ -219,12 +256,12 @@ nil (empty response body)
|
|
219
256
|
|
220
257
|
### Authorization
|
221
258
|
|
222
|
-
|
259
|
+
[api_key](../README.md#api_key)
|
223
260
|
|
224
261
|
### HTTP request headers
|
225
262
|
|
226
263
|
- **Content-Type**: application/json
|
227
|
-
- **Accept**:
|
264
|
+
- **Accept**: application/json
|
228
265
|
|
229
266
|
|
230
267
|
|
@@ -237,6 +274,13 @@ Gets the update session with the specified identifier, including the most up-to-
|
|
237
274
|
```ruby
|
238
275
|
# load the gem
|
239
276
|
require 'vsphere-automation-content'
|
277
|
+
# setup authorization
|
278
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
279
|
+
# Configure API key authorization: api_key
|
280
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
281
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
282
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
283
|
+
end
|
240
284
|
|
241
285
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
242
286
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session to retrieve.
|
@@ -262,12 +306,12 @@ Name | Type | Description | Notes
|
|
262
306
|
|
263
307
|
### Authorization
|
264
308
|
|
265
|
-
|
309
|
+
[api_key](../README.md#api_key)
|
266
310
|
|
267
311
|
### HTTP request headers
|
268
312
|
|
269
313
|
- **Content-Type**: Not defined
|
270
|
-
- **Accept**:
|
314
|
+
- **Accept**: application/json
|
271
315
|
|
272
316
|
|
273
317
|
|
@@ -280,11 +324,18 @@ Keeps an update session alive. <p> If there is no activity for an update session
|
|
280
324
|
```ruby
|
281
325
|
# load the gem
|
282
326
|
require 'vsphere-automation-content'
|
327
|
+
# setup authorization
|
328
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
329
|
+
# Configure API key authorization: api_key
|
330
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
331
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
332
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
333
|
+
end
|
283
334
|
|
284
335
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
285
336
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session whose lifetime should be extended.
|
286
337
|
opts = {
|
287
|
-
|
338
|
+
request_body: Content::ContentLibraryItemUpdateSessionKeepAlive.new # ContentLibraryItemUpdateSessionKeepAlive |
|
288
339
|
}
|
289
340
|
|
290
341
|
begin
|
@@ -300,7 +351,7 @@ end
|
|
300
351
|
Name | Type | Description | Notes
|
301
352
|
------------- | ------------- | ------------- | -------------
|
302
353
|
**update_session_id** | **String**| Identifier of the update session whose lifetime should be extended. |
|
303
|
-
**
|
354
|
+
**request_body** | [**ContentLibraryItemUpdateSessionKeepAlive**](ContentLibraryItemUpdateSessionKeepAlive.md)| | [optional]
|
304
355
|
|
305
356
|
### Return type
|
306
357
|
|
@@ -308,12 +359,12 @@ nil (empty response body)
|
|
308
359
|
|
309
360
|
### Authorization
|
310
361
|
|
311
|
-
|
362
|
+
[api_key](../README.md#api_key)
|
312
363
|
|
313
364
|
### HTTP request headers
|
314
365
|
|
315
366
|
- **Content-Type**: application/json
|
316
|
-
- **Accept**:
|
367
|
+
- **Accept**: application/json
|
317
368
|
|
318
369
|
|
319
370
|
|
@@ -326,6 +377,13 @@ Lists the identifiers of the update session created by the calling user. Optiona
|
|
326
377
|
```ruby
|
327
378
|
# load the gem
|
328
379
|
require 'vsphere-automation-content'
|
380
|
+
# setup authorization
|
381
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
382
|
+
# Configure API key authorization: api_key
|
383
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
384
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
385
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
386
|
+
end
|
329
387
|
|
330
388
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
331
389
|
opts = {
|
@@ -353,17 +411,17 @@ Name | Type | Description | Notes
|
|
353
411
|
|
354
412
|
### Authorization
|
355
413
|
|
356
|
-
|
414
|
+
[api_key](../README.md#api_key)
|
357
415
|
|
358
416
|
### HTTP request headers
|
359
417
|
|
360
418
|
- **Content-Type**: Not defined
|
361
|
-
- **Accept**:
|
419
|
+
- **Accept**: application/json
|
362
420
|
|
363
421
|
|
364
422
|
|
365
423
|
# **update**
|
366
|
-
> update(update_session_id,
|
424
|
+
> update(update_session_id, request_body)
|
367
425
|
|
368
426
|
Updates the properties of an update session. <p> This is an incremental update to the update session. Any {@term field} in the {@link UpdateSessionModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the property {@link UpdateSessionModel#warningBehavior} of the update session. This will not, for example, update the {@link UpdateSessionModel#libraryItemId} or {@link UpdateSessionModel#state} of an update session. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state.
|
369
427
|
|
@@ -371,14 +429,21 @@ Updates the properties of an update session. <p> This is an incremental update t
|
|
371
429
|
```ruby
|
372
430
|
# load the gem
|
373
431
|
require 'vsphere-automation-content'
|
432
|
+
# setup authorization
|
433
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
434
|
+
# Configure API key authorization: api_key
|
435
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
436
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
437
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
438
|
+
end
|
374
439
|
|
375
440
|
api_instance = VSphereAutomation::Content::LibraryItemUpdateSessionApi.new
|
376
441
|
update_session_id = 'update_session_id_example' # String | Identifer of the update session that should be updated.
|
377
|
-
|
442
|
+
request_body = Content::ContentLibraryItemUpdateSessionUpdate.new # ContentLibraryItemUpdateSessionUpdate |
|
378
443
|
|
379
444
|
begin
|
380
445
|
#Updates the properties of an update session. <p> This is an incremental update to the update session. Any {@term field} in the {@link UpdateSessionModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the property {@link UpdateSessionModel#warningBehavior} of the update session. This will not, for example, update the {@link UpdateSessionModel#libraryItemId} or {@link UpdateSessionModel#state} of an update session. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state.
|
381
|
-
api_instance.update(update_session_id,
|
446
|
+
api_instance.update(update_session_id, request_body)
|
382
447
|
rescue VSphereAutomation::ApiError => e
|
383
448
|
puts "Exception when calling LibraryItemUpdateSessionApi->update: #{e}"
|
384
449
|
end
|
@@ -389,7 +454,7 @@ end
|
|
389
454
|
Name | Type | Description | Notes
|
390
455
|
------------- | ------------- | ------------- | -------------
|
391
456
|
**update_session_id** | **String**| Identifer of the update session that should be updated. |
|
392
|
-
**
|
457
|
+
**request_body** | [**ContentLibraryItemUpdateSessionUpdate**](ContentLibraryItemUpdateSessionUpdate.md)| |
|
393
458
|
|
394
459
|
### Return type
|
395
460
|
|
@@ -397,12 +462,12 @@ nil (empty response body)
|
|
397
462
|
|
398
463
|
### Authorization
|
399
464
|
|
400
|
-
|
465
|
+
[api_key](../README.md#api_key)
|
401
466
|
|
402
467
|
### HTTP request headers
|
403
468
|
|
404
469
|
- **Content-Type**: application/json
|
405
|
-
- **Accept**:
|
470
|
+
- **Accept**: application/json
|
406
471
|
|
407
472
|
|
408
473
|
|