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
@@ -7,7 +7,7 @@ Method | HTTP request | Description
|
|
7
7
|
[**cancel**](LibraryItemDownloadSessionApi.md#cancel) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action=cancel | Cancels the download session. This {@term operation} will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
|
8
8
|
[**create**](LibraryItemDownloadSessionApi.md#create) | **POST** /com/vmware/content/library/item/download-session | Creates a new download session.
|
9
9
|
[**delete**](LibraryItemDownloadSessionApi.md#delete) | **DELETE** /com/vmware/content/library/item/download-session/id:{download_session_id} | Deletes a download session. This removes the session and all information associated with it. <p> Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item. <p> Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
|
10
|
-
[**fail**](LibraryItemDownloadSessionApi.md#fail) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}
|
10
|
+
[**fail**](LibraryItemDownloadSessionApi.md#fail) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id} | 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.
|
11
11
|
[**get**](LibraryItemDownloadSessionApi.md#get) | **GET** /com/vmware/content/library/item/download-session/id:{download_session_id} | Gets the download session with the specified identifier, including the most up-to-date status information for the session.
|
12
12
|
[**keep_alive**](LibraryItemDownloadSessionApi.md#keep_alive) | **POST** /com/vmware/content/library/item/download-session/id:{download_session_id}?~action=keep-alive | 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.
|
13
13
|
[**list**](LibraryItemDownloadSessionApi.md#list) | **GET** /com/vmware/content/library/item/download-session | Lists the identifiers of the download sessions created by the calling user. Optionally may filter by library item.
|
@@ -22,6 +22,13 @@ Cancels the download session. This {@term operation} will abort any ongoing tran
|
|
22
22
|
```ruby
|
23
23
|
# load the gem
|
24
24
|
require 'vsphere-automation-content'
|
25
|
+
# setup authorization
|
26
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
27
|
+
# Configure API key authorization: api_key
|
28
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
31
|
+
end
|
25
32
|
|
26
33
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
|
27
34
|
download_session_id = 'download_session_id_example' # String | Identifer of the download session that should be canceled.
|
@@ -46,17 +53,17 @@ nil (empty response body)
|
|
46
53
|
|
47
54
|
### Authorization
|
48
55
|
|
49
|
-
|
56
|
+
[api_key](../README.md#api_key)
|
50
57
|
|
51
58
|
### HTTP request headers
|
52
59
|
|
53
60
|
- **Content-Type**: Not defined
|
54
|
-
- **Accept**:
|
61
|
+
- **Accept**: application/json
|
55
62
|
|
56
63
|
|
57
64
|
|
58
65
|
# **create**
|
59
|
-
> ContentLibraryItemDownloadSessionCreateResult create(
|
66
|
+
> ContentLibraryItemDownloadSessionCreateResult create(request_body)
|
60
67
|
|
61
68
|
Creates a new download session.
|
62
69
|
|
@@ -64,13 +71,20 @@ Creates a new download session.
|
|
64
71
|
```ruby
|
65
72
|
# load the gem
|
66
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
|
67
81
|
|
68
82
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
|
69
|
-
|
83
|
+
request_body = Content::ContentLibraryItemDownloadSessionCreate.new # ContentLibraryItemDownloadSessionCreate |
|
70
84
|
|
71
85
|
begin
|
72
86
|
#Creates a new download session.
|
73
|
-
result = api_instance.create(
|
87
|
+
result = api_instance.create(request_body)
|
74
88
|
p result
|
75
89
|
rescue VSphereAutomation::ApiError => e
|
76
90
|
puts "Exception when calling LibraryItemDownloadSessionApi->create: #{e}"
|
@@ -81,7 +95,7 @@ end
|
|
81
95
|
|
82
96
|
Name | Type | Description | Notes
|
83
97
|
------------- | ------------- | ------------- | -------------
|
84
|
-
**
|
98
|
+
**request_body** | [**ContentLibraryItemDownloadSessionCreate**](ContentLibraryItemDownloadSessionCreate.md)| |
|
85
99
|
|
86
100
|
### Return type
|
87
101
|
|
@@ -89,12 +103,12 @@ Name | Type | Description | Notes
|
|
89
103
|
|
90
104
|
### Authorization
|
91
105
|
|
92
|
-
|
106
|
+
[api_key](../README.md#api_key)
|
93
107
|
|
94
108
|
### HTTP request headers
|
95
109
|
|
96
110
|
- **Content-Type**: application/json
|
97
|
-
- **Accept**:
|
111
|
+
- **Accept**: application/json
|
98
112
|
|
99
113
|
|
100
114
|
|
@@ -107,6 +121,13 @@ Deletes a download session. This removes the session and all information associa
|
|
107
121
|
```ruby
|
108
122
|
# load the gem
|
109
123
|
require 'vsphere-automation-content'
|
124
|
+
# setup authorization
|
125
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
126
|
+
# Configure API key authorization: api_key
|
127
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
128
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
129
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
130
|
+
end
|
110
131
|
|
111
132
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
|
112
133
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session to be deleted.
|
@@ -131,17 +152,17 @@ nil (empty response body)
|
|
131
152
|
|
132
153
|
### Authorization
|
133
154
|
|
134
|
-
|
155
|
+
[api_key](../README.md#api_key)
|
135
156
|
|
136
157
|
### HTTP request headers
|
137
158
|
|
138
159
|
- **Content-Type**: Not defined
|
139
|
-
- **Accept**:
|
160
|
+
- **Accept**: application/json
|
140
161
|
|
141
162
|
|
142
163
|
|
143
164
|
# **fail**
|
144
|
-
> fail(download_session_id,
|
165
|
+
> fail(download_session_id, action, request_body)
|
145
166
|
|
146
167
|
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.
|
147
168
|
|
@@ -149,14 +170,22 @@ Terminates the download session with a client specified error message. <p> This
|
|
149
170
|
```ruby
|
150
171
|
# load the gem
|
151
172
|
require 'vsphere-automation-content'
|
173
|
+
# setup authorization
|
174
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
175
|
+
# Configure API key authorization: api_key
|
176
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
177
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
178
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
179
|
+
end
|
152
180
|
|
153
181
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
|
154
182
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session to fail.
|
155
|
-
|
183
|
+
action = 'action_example' # String | ~action=fail
|
184
|
+
request_body = Content::ContentLibraryItemDownloadSessionFail.new # ContentLibraryItemDownloadSessionFail |
|
156
185
|
|
157
186
|
begin
|
158
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.
|
159
|
-
api_instance.fail(download_session_id,
|
188
|
+
api_instance.fail(download_session_id, action, request_body)
|
160
189
|
rescue VSphereAutomation::ApiError => e
|
161
190
|
puts "Exception when calling LibraryItemDownloadSessionApi->fail: #{e}"
|
162
191
|
end
|
@@ -167,7 +196,8 @@ end
|
|
167
196
|
Name | Type | Description | Notes
|
168
197
|
------------- | ------------- | ------------- | -------------
|
169
198
|
**download_session_id** | **String**| Identifier of the download session to fail. |
|
170
|
-
**
|
199
|
+
**action** | **String**| ~action=fail |
|
200
|
+
**request_body** | [**ContentLibraryItemDownloadSessionFail**](ContentLibraryItemDownloadSessionFail.md)| |
|
171
201
|
|
172
202
|
### Return type
|
173
203
|
|
@@ -175,12 +205,12 @@ 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**: application/json
|
183
|
-
- **Accept**:
|
213
|
+
- **Accept**: application/json
|
184
214
|
|
185
215
|
|
186
216
|
|
@@ -193,6 +223,13 @@ Gets the download session with the specified identifier, including the most up-t
|
|
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::LibraryItemDownloadSessionApi.new
|
198
235
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session to retrieve.
|
@@ -218,12 +255,12 @@ Name | Type | Description | Notes
|
|
218
255
|
|
219
256
|
### Authorization
|
220
257
|
|
221
|
-
|
258
|
+
[api_key](../README.md#api_key)
|
222
259
|
|
223
260
|
### HTTP request headers
|
224
261
|
|
225
262
|
- **Content-Type**: Not defined
|
226
|
-
- **Accept**:
|
263
|
+
- **Accept**: application/json
|
227
264
|
|
228
265
|
|
229
266
|
|
@@ -236,11 +273,18 @@ Keeps a download session alive. This operation is allowed only if the session is
|
|
236
273
|
```ruby
|
237
274
|
# load the gem
|
238
275
|
require 'vsphere-automation-content'
|
276
|
+
# setup authorization
|
277
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
278
|
+
# Configure API key authorization: api_key
|
279
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
280
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
281
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
282
|
+
end
|
239
283
|
|
240
284
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
|
241
285
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session whose lifetime should be extended.
|
242
286
|
opts = {
|
243
|
-
|
287
|
+
request_body: Content::ContentLibraryItemDownloadSessionKeepAlive.new # ContentLibraryItemDownloadSessionKeepAlive |
|
244
288
|
}
|
245
289
|
|
246
290
|
begin
|
@@ -256,7 +300,7 @@ end
|
|
256
300
|
Name | Type | Description | Notes
|
257
301
|
------------- | ------------- | ------------- | -------------
|
258
302
|
**download_session_id** | **String**| Identifier of the download session whose lifetime should be extended. |
|
259
|
-
**
|
303
|
+
**request_body** | [**ContentLibraryItemDownloadSessionKeepAlive**](ContentLibraryItemDownloadSessionKeepAlive.md)| | [optional]
|
260
304
|
|
261
305
|
### Return type
|
262
306
|
|
@@ -264,12 +308,12 @@ nil (empty response body)
|
|
264
308
|
|
265
309
|
### Authorization
|
266
310
|
|
267
|
-
|
311
|
+
[api_key](../README.md#api_key)
|
268
312
|
|
269
313
|
### HTTP request headers
|
270
314
|
|
271
315
|
- **Content-Type**: application/json
|
272
|
-
- **Accept**:
|
316
|
+
- **Accept**: application/json
|
273
317
|
|
274
318
|
|
275
319
|
|
@@ -282,6 +326,13 @@ Lists the identifiers of the download sessions created by the calling user. Opti
|
|
282
326
|
```ruby
|
283
327
|
# load the gem
|
284
328
|
require 'vsphere-automation-content'
|
329
|
+
# setup authorization
|
330
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
331
|
+
# Configure API key authorization: api_key
|
332
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
333
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
334
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
335
|
+
end
|
285
336
|
|
286
337
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadSessionApi.new
|
287
338
|
opts = {
|
@@ -309,12 +360,12 @@ Name | Type | Description | Notes
|
|
309
360
|
|
310
361
|
### Authorization
|
311
362
|
|
312
|
-
|
363
|
+
[api_key](../README.md#api_key)
|
313
364
|
|
314
365
|
### HTTP request headers
|
315
366
|
|
316
367
|
- **Content-Type**: Not defined
|
317
|
-
- **Accept**:
|
368
|
+
- **Accept**: application/json
|
318
369
|
|
319
370
|
|
320
371
|
|
@@ -6,11 +6,11 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**get**](LibraryItemDownloadsessionFileApi.md#get) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id}?~action=get | Retrieves file download information for a specific file.
|
8
8
|
[**list**](LibraryItemDownloadsessionFileApi.md#list) | **GET** /com/vmware/content/library/item/downloadsession/file | Lists the information of all the files in the library item associated with the download session.
|
9
|
-
[**prepare**](LibraryItemDownloadsessionFileApi.md#prepare) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id}
|
9
|
+
[**prepare**](LibraryItemDownloadsessionFileApi.md#prepare) | **POST** /com/vmware/content/library/item/downloadsession/file/id:{download_session_id} | Requests a file to be prepared for download.
|
10
10
|
|
11
11
|
|
12
12
|
# **get**
|
13
|
-
> ContentLibraryItemDownloadsessionFileResult get(download_session_id,
|
13
|
+
> ContentLibraryItemDownloadsessionFileResult get(download_session_id, request_body)
|
14
14
|
|
15
15
|
Retrieves file download information for a specific file.
|
16
16
|
|
@@ -18,14 +18,21 @@ Retrieves file download information for a specific file.
|
|
18
18
|
```ruby
|
19
19
|
# load the gem
|
20
20
|
require 'vsphere-automation-content'
|
21
|
+
# setup authorization
|
22
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
23
|
+
# Configure API key authorization: api_key
|
24
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
27
|
+
end
|
21
28
|
|
22
29
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadsessionFileApi.new
|
23
30
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session.
|
24
|
-
|
31
|
+
request_body = Content::ContentLibraryItemDownloadsessionFileGet.new # ContentLibraryItemDownloadsessionFileGet |
|
25
32
|
|
26
33
|
begin
|
27
34
|
#Retrieves file download information for a specific file.
|
28
|
-
result = api_instance.get(download_session_id,
|
35
|
+
result = api_instance.get(download_session_id, request_body)
|
29
36
|
p result
|
30
37
|
rescue VSphereAutomation::ApiError => e
|
31
38
|
puts "Exception when calling LibraryItemDownloadsessionFileApi->get: #{e}"
|
@@ -37,7 +44,7 @@ end
|
|
37
44
|
Name | Type | Description | Notes
|
38
45
|
------------- | ------------- | ------------- | -------------
|
39
46
|
**download_session_id** | **String**| Identifier of the download session. |
|
40
|
-
**
|
47
|
+
**request_body** | [**ContentLibraryItemDownloadsessionFileGet**](ContentLibraryItemDownloadsessionFileGet.md)| |
|
41
48
|
|
42
49
|
### Return type
|
43
50
|
|
@@ -45,12 +52,12 @@ Name | Type | Description | Notes
|
|
45
52
|
|
46
53
|
### Authorization
|
47
54
|
|
48
|
-
|
55
|
+
[api_key](../README.md#api_key)
|
49
56
|
|
50
57
|
### HTTP request headers
|
51
58
|
|
52
59
|
- **Content-Type**: application/json
|
53
|
-
- **Accept**:
|
60
|
+
- **Accept**: application/json
|
54
61
|
|
55
62
|
|
56
63
|
|
@@ -63,6 +70,13 @@ Lists the information of all the files in the library item associated with the d
|
|
63
70
|
```ruby
|
64
71
|
# load the gem
|
65
72
|
require 'vsphere-automation-content'
|
73
|
+
# setup authorization
|
74
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
75
|
+
# Configure API key authorization: api_key
|
76
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
77
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
78
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
79
|
+
end
|
66
80
|
|
67
81
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadsessionFileApi.new
|
68
82
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session.
|
@@ -88,17 +102,17 @@ Name | Type | Description | Notes
|
|
88
102
|
|
89
103
|
### Authorization
|
90
104
|
|
91
|
-
|
105
|
+
[api_key](../README.md#api_key)
|
92
106
|
|
93
107
|
### HTTP request headers
|
94
108
|
|
95
109
|
- **Content-Type**: Not defined
|
96
|
-
- **Accept**:
|
110
|
+
- **Accept**: application/json
|
97
111
|
|
98
112
|
|
99
113
|
|
100
114
|
# **prepare**
|
101
|
-
> ContentLibraryItemDownloadsessionFilePrepareResult prepare(download_session_id,
|
115
|
+
> ContentLibraryItemDownloadsessionFilePrepareResult prepare(download_session_id, action, request_body)
|
102
116
|
|
103
117
|
Requests a file to be prepared for download.
|
104
118
|
|
@@ -106,14 +120,22 @@ Requests a file to be prepared for download.
|
|
106
120
|
```ruby
|
107
121
|
# load the gem
|
108
122
|
require 'vsphere-automation-content'
|
123
|
+
# setup authorization
|
124
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
125
|
+
# Configure API key authorization: api_key
|
126
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
127
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
128
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
129
|
+
end
|
109
130
|
|
110
131
|
api_instance = VSphereAutomation::Content::LibraryItemDownloadsessionFileApi.new
|
111
132
|
download_session_id = 'download_session_id_example' # String | Identifier of the download session.
|
112
|
-
|
133
|
+
action = 'action_example' # String | ~action=prepare
|
134
|
+
request_body = Content::ContentLibraryItemDownloadsessionFilePrepare.new # ContentLibraryItemDownloadsessionFilePrepare |
|
113
135
|
|
114
136
|
begin
|
115
137
|
#Requests a file to be prepared for download.
|
116
|
-
result = api_instance.prepare(download_session_id,
|
138
|
+
result = api_instance.prepare(download_session_id, action, request_body)
|
117
139
|
p result
|
118
140
|
rescue VSphereAutomation::ApiError => e
|
119
141
|
puts "Exception when calling LibraryItemDownloadsessionFileApi->prepare: #{e}"
|
@@ -125,7 +147,8 @@ end
|
|
125
147
|
Name | Type | Description | Notes
|
126
148
|
------------- | ------------- | ------------- | -------------
|
127
149
|
**download_session_id** | **String**| Identifier of the download session. |
|
128
|
-
**
|
150
|
+
**action** | **String**| ~action=prepare |
|
151
|
+
**request_body** | [**ContentLibraryItemDownloadsessionFilePrepare**](ContentLibraryItemDownloadsessionFilePrepare.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
|
|
data/docs/LibraryItemFileApi.md
CHANGED
@@ -4,12 +4,12 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**get**](LibraryItemFileApi.md#get) | **POST** /com/vmware/content/library/item/file/id:{library_item_id}
|
7
|
+
[**get**](LibraryItemFileApi.md#get) | **POST** /com/vmware/content/library/item/file/id:{library_item_id} | Retrieves the information for a single file in a library item by its name.
|
8
8
|
[**list**](LibraryItemFileApi.md#list) | **GET** /com/vmware/content/library/item/file | Lists all of the files that are stored within a given library item.
|
9
9
|
|
10
10
|
|
11
11
|
# **get**
|
12
|
-
> ContentLibraryItemFileResult get(library_item_id,
|
12
|
+
> ContentLibraryItemFileResult get(library_item_id, action, request_body)
|
13
13
|
|
14
14
|
Retrieves the information for a single file in a library item by its name.
|
15
15
|
|
@@ -17,14 +17,22 @@ Retrieves the information for a single file in a library item by its name.
|
|
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::LibraryItemFileApi.new
|
22
29
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item whose file information should be returned.
|
23
|
-
|
30
|
+
action = 'action_example' # String | ~action=get
|
31
|
+
request_body = Content::ContentLibraryItemFileGet.new # ContentLibraryItemFileGet |
|
24
32
|
|
25
33
|
begin
|
26
34
|
#Retrieves the information for a single file in a library item by its name.
|
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 LibraryItemFileApi->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 file information should be returned. |
|
39
|
-
**
|
47
|
+
**action** | **String**| ~action=get |
|
48
|
+
**request_body** | [**ContentLibraryItemFileGet**](ContentLibraryItemFileGet.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 of the files that are stored within 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::LibraryItemFileApi.new
|
67
83
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item whose files 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
|
|