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,7 +4,7 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**add**](LibraryItemUpdatesessionFileApi.md#add) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}
|
7
|
+
[**add**](LibraryItemUpdatesessionFileApi.md#add) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id} | Requests file content to be changed (either created, or updated). Depending on the source type of the file, this {@term operation} will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this {@term operation} will be used to update the content of the existing file. <p> When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
|
8
8
|
[**get**](LibraryItemUpdatesessionFileApi.md#get) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=get | Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
|
9
9
|
[**list**](LibraryItemUpdatesessionFileApi.md#list) | **GET** /com/vmware/content/library/item/updatesession/file | Lists all files in the library item associated with the update session.
|
10
10
|
[**remove**](LibraryItemUpdatesessionFileApi.md#remove) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=remove | Requests a file to be removed. The file will only be effectively removed when the update session is completed.
|
@@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|
12
12
|
|
13
13
|
|
14
14
|
# **add**
|
15
|
-
> ContentLibraryItemUpdatesessionFileAddResult add(update_session_id,
|
15
|
+
> ContentLibraryItemUpdatesessionFileAddResult add(update_session_id, action, request_body)
|
16
16
|
|
17
17
|
Requests file content to be changed (either created, or updated). Depending on the source type of the file, this {@term operation} will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this {@term operation} will be used to update the content of the existing file. <p> When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
|
18
18
|
|
@@ -20,14 +20,22 @@ Requests file content to be changed (either created, or updated). Depending on t
|
|
20
20
|
```ruby
|
21
21
|
# load the gem
|
22
22
|
require 'vsphere-automation-content'
|
23
|
+
# setup authorization
|
24
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
25
|
+
# Configure API key authorization: api_key
|
26
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
29
|
+
end
|
23
30
|
|
24
31
|
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
25
32
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session to be modified.
|
26
|
-
|
33
|
+
action = 'action_example' # String | ~action=add
|
34
|
+
request_body = Content::ContentLibraryItemUpdatesessionFileAdd.new # ContentLibraryItemUpdatesessionFileAdd |
|
27
35
|
|
28
36
|
begin
|
29
37
|
#Requests file content to be changed (either created, or updated). Depending on the source type of the file, this {@term operation} will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this {@term operation} will be used to update the content of the existing file. <p> When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
|
30
|
-
result = api_instance.add(update_session_id,
|
38
|
+
result = api_instance.add(update_session_id, action, request_body)
|
31
39
|
p result
|
32
40
|
rescue VSphereAutomation::ApiError => e
|
33
41
|
puts "Exception when calling LibraryItemUpdatesessionFileApi->add: #{e}"
|
@@ -39,7 +47,8 @@ end
|
|
39
47
|
Name | Type | Description | Notes
|
40
48
|
------------- | ------------- | ------------- | -------------
|
41
49
|
**update_session_id** | **String**| Identifier of the update session to be modified. |
|
42
|
-
**
|
50
|
+
**action** | **String**| ~action=add |
|
51
|
+
**request_body** | [**ContentLibraryItemUpdatesessionFileAdd**](ContentLibraryItemUpdatesessionFileAdd.md)| |
|
43
52
|
|
44
53
|
### Return type
|
45
54
|
|
@@ -47,17 +56,17 @@ Name | Type | Description | Notes
|
|
47
56
|
|
48
57
|
### Authorization
|
49
58
|
|
50
|
-
|
59
|
+
[api_key](../README.md#api_key)
|
51
60
|
|
52
61
|
### HTTP request headers
|
53
62
|
|
54
63
|
- **Content-Type**: application/json
|
55
|
-
- **Accept**:
|
64
|
+
- **Accept**: application/json
|
56
65
|
|
57
66
|
|
58
67
|
|
59
68
|
# **get**
|
60
|
-
> ContentLibraryItemUpdatesessionFileResult get(update_session_id,
|
69
|
+
> ContentLibraryItemUpdatesessionFileResult get(update_session_id, request_body)
|
61
70
|
|
62
71
|
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
|
63
72
|
|
@@ -65,14 +74,21 @@ Retrieves information about a specific file in the snapshot of the library item
|
|
65
74
|
```ruby
|
66
75
|
# load the gem
|
67
76
|
require 'vsphere-automation-content'
|
77
|
+
# setup authorization
|
78
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
79
|
+
# Configure API key authorization: api_key
|
80
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
81
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
82
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
83
|
+
end
|
68
84
|
|
69
85
|
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
70
86
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session.
|
71
|
-
|
87
|
+
request_body = Content::ContentLibraryItemUpdatesessionFileGet.new # ContentLibraryItemUpdatesessionFileGet |
|
72
88
|
|
73
89
|
begin
|
74
90
|
#Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
|
75
|
-
result = api_instance.get(update_session_id,
|
91
|
+
result = api_instance.get(update_session_id, request_body)
|
76
92
|
p result
|
77
93
|
rescue VSphereAutomation::ApiError => e
|
78
94
|
puts "Exception when calling LibraryItemUpdatesessionFileApi->get: #{e}"
|
@@ -84,7 +100,7 @@ end
|
|
84
100
|
Name | Type | Description | Notes
|
85
101
|
------------- | ------------- | ------------- | -------------
|
86
102
|
**update_session_id** | **String**| Identifier of the update session. |
|
87
|
-
**
|
103
|
+
**request_body** | [**ContentLibraryItemUpdatesessionFileGet**](ContentLibraryItemUpdatesessionFileGet.md)| |
|
88
104
|
|
89
105
|
### Return type
|
90
106
|
|
@@ -92,12 +108,12 @@ Name | Type | Description | Notes
|
|
92
108
|
|
93
109
|
### Authorization
|
94
110
|
|
95
|
-
|
111
|
+
[api_key](../README.md#api_key)
|
96
112
|
|
97
113
|
### HTTP request headers
|
98
114
|
|
99
115
|
- **Content-Type**: application/json
|
100
|
-
- **Accept**:
|
116
|
+
- **Accept**: application/json
|
101
117
|
|
102
118
|
|
103
119
|
|
@@ -110,6 +126,13 @@ Lists all files in the library item associated with the update session.
|
|
110
126
|
```ruby
|
111
127
|
# load the gem
|
112
128
|
require 'vsphere-automation-content'
|
129
|
+
# setup authorization
|
130
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
131
|
+
# Configure API key authorization: api_key
|
132
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
133
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
134
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
135
|
+
end
|
113
136
|
|
114
137
|
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
115
138
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session.
|
@@ -135,17 +158,17 @@ Name | Type | Description | Notes
|
|
135
158
|
|
136
159
|
### Authorization
|
137
160
|
|
138
|
-
|
161
|
+
[api_key](../README.md#api_key)
|
139
162
|
|
140
163
|
### HTTP request headers
|
141
164
|
|
142
165
|
- **Content-Type**: Not defined
|
143
|
-
- **Accept**:
|
166
|
+
- **Accept**: application/json
|
144
167
|
|
145
168
|
|
146
169
|
|
147
170
|
# **remove**
|
148
|
-
> remove(update_session_id,
|
171
|
+
> remove(update_session_id, request_body)
|
149
172
|
|
150
173
|
Requests a file to be removed. The file will only be effectively removed when the update session is completed.
|
151
174
|
|
@@ -153,14 +176,21 @@ Requests a file to be removed. The file will only be effectively removed when th
|
|
153
176
|
```ruby
|
154
177
|
# load the gem
|
155
178
|
require 'vsphere-automation-content'
|
179
|
+
# setup authorization
|
180
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
181
|
+
# Configure API key authorization: api_key
|
182
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
183
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
184
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
185
|
+
end
|
156
186
|
|
157
187
|
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
158
188
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session.
|
159
|
-
|
189
|
+
request_body = Content::ContentLibraryItemUpdatesessionFileRemove.new # ContentLibraryItemUpdatesessionFileRemove |
|
160
190
|
|
161
191
|
begin
|
162
192
|
#Requests a file to be removed. The file will only be effectively removed when the update session is completed.
|
163
|
-
api_instance.remove(update_session_id,
|
193
|
+
api_instance.remove(update_session_id, request_body)
|
164
194
|
rescue VSphereAutomation::ApiError => e
|
165
195
|
puts "Exception when calling LibraryItemUpdatesessionFileApi->remove: #{e}"
|
166
196
|
end
|
@@ -171,7 +201,7 @@ end
|
|
171
201
|
Name | Type | Description | Notes
|
172
202
|
------------- | ------------- | ------------- | -------------
|
173
203
|
**update_session_id** | **String**| Identifier of the update session. |
|
174
|
-
**
|
204
|
+
**request_body** | [**ContentLibraryItemUpdatesessionFileRemove**](ContentLibraryItemUpdatesessionFileRemove.md)| |
|
175
205
|
|
176
206
|
### Return type
|
177
207
|
|
@@ -179,12 +209,12 @@ nil (empty response body)
|
|
179
209
|
|
180
210
|
### Authorization
|
181
211
|
|
182
|
-
|
212
|
+
[api_key](../README.md#api_key)
|
183
213
|
|
184
214
|
### HTTP request headers
|
185
215
|
|
186
216
|
- **Content-Type**: application/json
|
187
|
-
- **Accept**:
|
217
|
+
- **Accept**: application/json
|
188
218
|
|
189
219
|
|
190
220
|
|
@@ -197,6 +227,13 @@ Validates the files in the update session with the referenced identifier and ens
|
|
197
227
|
```ruby
|
198
228
|
# load the gem
|
199
229
|
require 'vsphere-automation-content'
|
230
|
+
# setup authorization
|
231
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
232
|
+
# Configure API key authorization: api_key
|
233
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
234
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
235
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
236
|
+
end
|
200
237
|
|
201
238
|
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
202
239
|
update_session_id = 'update_session_id_example' # String | Identifier of the update session to validate.
|
@@ -222,12 +259,12 @@ Name | Type | Description | Notes
|
|
222
259
|
|
223
260
|
### Authorization
|
224
261
|
|
225
|
-
|
262
|
+
[api_key](../README.md#api_key)
|
226
263
|
|
227
264
|
### HTTP request headers
|
228
265
|
|
229
266
|
- **Content-Type**: Not defined
|
230
|
-
- **Accept**:
|
267
|
+
- **Accept**: application/json
|
231
268
|
|
232
269
|
|
233
270
|
|
@@ -4,12 +4,12 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**evict**](LibrarySubscribedItemApi.md#evict) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id}
|
7
|
+
[**evict**](LibrarySubscribedItemApi.md#evict) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id} | Evicts the cached content of a library item in a subscribed library. <p> This {@term operation} allows the cached content of a library item to be removed to free up storage capacity. This {@term operation} will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set {@link ItemModel#cached} to false.
|
8
8
|
[**sync**](LibrarySubscribedItemApi.md#sync) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id}?~action=sync | Forces the synchronization of an individual library item in a subscribed library. <p> Synchronizing an individual item will update that item's metadata from the remote source. If the source library item on the remote library has been deleted, this {@term operation} will delete the library item from the subscribed library as well. <p> The default behavior of the synchronization is determined by the {@link SubscriptionInfo} of the library which owns the library item. <ul> <li>If {@link SubscriptionInfo#onDemand} is true, then the file content is not synchronized by default. In this case, only the library item metadata is synchronized. The file content may still be forcefully synchronized by passing true for the {@param.name forceSyncContent} {@term parameter}.</li> <li>If {@link SubscriptionInfo#onDemand} is false, then this call will always synchronize the file content. The {@param.name forceSyncContent} {@term parameter} is ignored when the subscription is not on-demand.</li> </ul> When the file content has been synchronized, the {@link ItemModel#cached} {@term field} will be true. <p> This {@term operation} will return immediately and create an asynchronous task to perform the synchronization.
|
9
9
|
|
10
10
|
|
11
11
|
# **evict**
|
12
|
-
> evict(library_item_id)
|
12
|
+
> evict(library_item_id, action)
|
13
13
|
|
14
14
|
Evicts the cached content of a library item in a subscribed library. <p> This {@term operation} allows the cached content of a library item to be removed to free up storage capacity. This {@term operation} will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set {@link ItemModel#cached} to false.
|
15
15
|
|
@@ -17,13 +17,21 @@ Evicts the cached content of a library item in a subscribed library. <p> This {@
|
|
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::LibrarySubscribedItemApi.new
|
22
29
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item whose content should be evicted.
|
30
|
+
action = 'action_example' # String | ~action=evict
|
23
31
|
|
24
32
|
begin
|
25
33
|
#Evicts the cached content of a library item in a subscribed library. <p> This {@term operation} allows the cached content of a library item to be removed to free up storage capacity. This {@term operation} will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set {@link ItemModel#cached} to false.
|
26
|
-
api_instance.evict(library_item_id)
|
34
|
+
api_instance.evict(library_item_id, action)
|
27
35
|
rescue VSphereAutomation::ApiError => e
|
28
36
|
puts "Exception when calling LibrarySubscribedItemApi->evict: #{e}"
|
29
37
|
end
|
@@ -34,6 +42,7 @@ end
|
|
34
42
|
Name | Type | Description | Notes
|
35
43
|
------------- | ------------- | ------------- | -------------
|
36
44
|
**library_item_id** | **String**| Identifier of the library item whose content should be evicted. |
|
45
|
+
**action** | **String**| ~action=evict |
|
37
46
|
|
38
47
|
### Return type
|
39
48
|
|
@@ -41,17 +50,17 @@ nil (empty response body)
|
|
41
50
|
|
42
51
|
### Authorization
|
43
52
|
|
44
|
-
|
53
|
+
[api_key](../README.md#api_key)
|
45
54
|
|
46
55
|
### HTTP request headers
|
47
56
|
|
48
57
|
- **Content-Type**: Not defined
|
49
|
-
- **Accept**:
|
58
|
+
- **Accept**: application/json
|
50
59
|
|
51
60
|
|
52
61
|
|
53
62
|
# **sync**
|
54
|
-
> sync(library_item_id,
|
63
|
+
> sync(library_item_id, request_body)
|
55
64
|
|
56
65
|
Forces the synchronization of an individual library item in a subscribed library. <p> Synchronizing an individual item will update that item's metadata from the remote source. If the source library item on the remote library has been deleted, this {@term operation} will delete the library item from the subscribed library as well. <p> The default behavior of the synchronization is determined by the {@link SubscriptionInfo} of the library which owns the library item. <ul> <li>If {@link SubscriptionInfo#onDemand} is true, then the file content is not synchronized by default. In this case, only the library item metadata is synchronized. The file content may still be forcefully synchronized by passing true for the {@param.name forceSyncContent} {@term parameter}.</li> <li>If {@link SubscriptionInfo#onDemand} is false, then this call will always synchronize the file content. The {@param.name forceSyncContent} {@term parameter} is ignored when the subscription is not on-demand.</li> </ul> When the file content has been synchronized, the {@link ItemModel#cached} {@term field} will be true. <p> This {@term operation} will return immediately and create an asynchronous task to perform the synchronization.
|
57
66
|
|
@@ -59,14 +68,21 @@ Forces the synchronization of an individual library item in a subscribed library
|
|
59
68
|
```ruby
|
60
69
|
# load the gem
|
61
70
|
require 'vsphere-automation-content'
|
71
|
+
# setup authorization
|
72
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
73
|
+
# Configure API key authorization: api_key
|
74
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
75
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
76
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
77
|
+
end
|
62
78
|
|
63
79
|
api_instance = VSphereAutomation::Content::LibrarySubscribedItemApi.new
|
64
80
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item to synchronize.
|
65
|
-
|
81
|
+
request_body = Content::ContentLibrarySubscribedItemSync.new # ContentLibrarySubscribedItemSync |
|
66
82
|
|
67
83
|
begin
|
68
84
|
#Forces the synchronization of an individual library item in a subscribed library. <p> Synchronizing an individual item will update that item's metadata from the remote source. If the source library item on the remote library has been deleted, this {@term operation} will delete the library item from the subscribed library as well. <p> The default behavior of the synchronization is determined by the {@link SubscriptionInfo} of the library which owns the library item. <ul> <li>If {@link SubscriptionInfo#onDemand} is true, then the file content is not synchronized by default. In this case, only the library item metadata is synchronized. The file content may still be forcefully synchronized by passing true for the {@param.name forceSyncContent} {@term parameter}.</li> <li>If {@link SubscriptionInfo#onDemand} is false, then this call will always synchronize the file content. The {@param.name forceSyncContent} {@term parameter} is ignored when the subscription is not on-demand.</li> </ul> When the file content has been synchronized, the {@link ItemModel#cached} {@term field} will be true. <p> This {@term operation} will return immediately and create an asynchronous task to perform the synchronization.
|
69
|
-
api_instance.sync(library_item_id,
|
85
|
+
api_instance.sync(library_item_id, request_body)
|
70
86
|
rescue VSphereAutomation::ApiError => e
|
71
87
|
puts "Exception when calling LibrarySubscribedItemApi->sync: #{e}"
|
72
88
|
end
|
@@ -77,7 +93,7 @@ end
|
|
77
93
|
Name | Type | Description | Notes
|
78
94
|
------------- | ------------- | ------------- | -------------
|
79
95
|
**library_item_id** | **String**| Identifier of the library item to synchronize. |
|
80
|
-
**
|
96
|
+
**request_body** | [**ContentLibrarySubscribedItemSync**](ContentLibrarySubscribedItemSync.md)| |
|
81
97
|
|
82
98
|
### Return type
|
83
99
|
|
@@ -85,12 +101,12 @@ nil (empty response body)
|
|
85
101
|
|
86
102
|
### Authorization
|
87
103
|
|
88
|
-
|
104
|
+
[api_key](../README.md#api_key)
|
89
105
|
|
90
106
|
### HTTP request headers
|
91
107
|
|
92
108
|
- **Content-Type**: application/json
|
93
|
-
- **Accept**:
|
109
|
+
- **Accept**: application/json
|
94
110
|
|
95
111
|
|
96
112
|
|
@@ -0,0 +1,269 @@
|
|
1
|
+
# VSphereAutomation::Content::LibrarySubscriptionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://<vcenter>/rest*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](LibrarySubscriptionsApi.md#create) | **POST** /com/vmware/content/library/subscriptions/id:{library} | Creates a subscription of the published library.
|
8
|
+
[**delete**](LibrarySubscriptionsApi.md#delete) | **POST** /com/vmware/content/library/subscriptions/id:{library}?~action=delete | Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted.
|
9
|
+
[**get**](LibrarySubscriptionsApi.md#get) | **POST** /com/vmware/content/library/subscriptions/id:{library}?~action=get | Returns information about the specified subscription of the published library.
|
10
|
+
[**list**](LibrarySubscriptionsApi.md#list) | **GET** /com/vmware/content/library/subscriptions | Lists the subscriptions of the published library.
|
11
|
+
[**update**](LibrarySubscriptionsApi.md#update) | **PATCH** /com/vmware/content/library/subscriptions/id:{library} | Updates the specified subscription of the published library. <p> This is an incremental update to the subscription. Except for the {@link UpdateSpecPlacement} {@term structure}, {@term fields} that are {@term unset} in the update specification will be left unchanged. If {@param.name spec#subscribedLibraryPlacement} is specified, all {@term fields} of the current subscribed library placement will be replaced by this placement.
|
12
|
+
|
13
|
+
|
14
|
+
# **create**
|
15
|
+
> ContentLibrarySubscriptionsCreateResult create(library, request_body)
|
16
|
+
|
17
|
+
Creates a subscription of the published library.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'vsphere-automation-content'
|
23
|
+
# setup authorization
|
24
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
25
|
+
# Configure API key authorization: api_key
|
26
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
|
32
|
+
library = 'library_example' # String | Identifier of the published library.
|
33
|
+
request_body = Content::ContentLibrarySubscriptionsCreate.new # ContentLibrarySubscriptionsCreate |
|
34
|
+
|
35
|
+
begin
|
36
|
+
#Creates a subscription of the published library.
|
37
|
+
result = api_instance.create(library, request_body)
|
38
|
+
p result
|
39
|
+
rescue VSphereAutomation::ApiError => e
|
40
|
+
puts "Exception when calling LibrarySubscriptionsApi->create: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**library** | **String**| Identifier of the published library. |
|
49
|
+
**request_body** | [**ContentLibrarySubscriptionsCreate**](ContentLibrarySubscriptionsCreate.md)| |
|
50
|
+
|
51
|
+
### Return type
|
52
|
+
|
53
|
+
[**ContentLibrarySubscriptionsCreateResult**](ContentLibrarySubscriptionsCreateResult.md)
|
54
|
+
|
55
|
+
### Authorization
|
56
|
+
|
57
|
+
[api_key](../README.md#api_key)
|
58
|
+
|
59
|
+
### HTTP request headers
|
60
|
+
|
61
|
+
- **Content-Type**: application/json
|
62
|
+
- **Accept**: application/json
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
# **delete**
|
67
|
+
> delete(library, request_body)
|
68
|
+
|
69
|
+
Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted.
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'vsphere-automation-content'
|
75
|
+
# setup authorization
|
76
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
77
|
+
# Configure API key authorization: api_key
|
78
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
79
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
80
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
81
|
+
end
|
82
|
+
|
83
|
+
api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
|
84
|
+
library = 'library_example' # String | Identifier of the published library.
|
85
|
+
request_body = Content::ContentLibrarySubscriptionsDelete.new # ContentLibrarySubscriptionsDelete |
|
86
|
+
|
87
|
+
begin
|
88
|
+
#Deletes the specified subscription of the published library. The subscribed library associated with the subscription will not be deleted.
|
89
|
+
api_instance.delete(library, request_body)
|
90
|
+
rescue VSphereAutomation::ApiError => e
|
91
|
+
puts "Exception when calling LibrarySubscriptionsApi->delete: #{e}"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
### Parameters
|
96
|
+
|
97
|
+
Name | Type | Description | Notes
|
98
|
+
------------- | ------------- | ------------- | -------------
|
99
|
+
**library** | **String**| Identifier of the published library. |
|
100
|
+
**request_body** | [**ContentLibrarySubscriptionsDelete**](ContentLibrarySubscriptionsDelete.md)| |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
nil (empty response body)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[api_key](../README.md#api_key)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: application/json
|
113
|
+
- **Accept**: application/json
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# **get**
|
118
|
+
> ContentLibrarySubscriptionsResult get(library, request_body)
|
119
|
+
|
120
|
+
Returns information about the specified subscription of the published library.
|
121
|
+
|
122
|
+
### Example
|
123
|
+
```ruby
|
124
|
+
# load the gem
|
125
|
+
require 'vsphere-automation-content'
|
126
|
+
# setup authorization
|
127
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
128
|
+
# Configure API key authorization: api_key
|
129
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
130
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
131
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
132
|
+
end
|
133
|
+
|
134
|
+
api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
|
135
|
+
library = 'library_example' # String | Identifier of the published library.
|
136
|
+
request_body = Content::ContentLibrarySubscriptionsGet.new # ContentLibrarySubscriptionsGet |
|
137
|
+
|
138
|
+
begin
|
139
|
+
#Returns information about the specified subscription of the published library.
|
140
|
+
result = api_instance.get(library, request_body)
|
141
|
+
p result
|
142
|
+
rescue VSphereAutomation::ApiError => e
|
143
|
+
puts "Exception when calling LibrarySubscriptionsApi->get: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
|
149
|
+
Name | Type | Description | Notes
|
150
|
+
------------- | ------------- | ------------- | -------------
|
151
|
+
**library** | **String**| Identifier of the published library. |
|
152
|
+
**request_body** | [**ContentLibrarySubscriptionsGet**](ContentLibrarySubscriptionsGet.md)| |
|
153
|
+
|
154
|
+
### Return type
|
155
|
+
|
156
|
+
[**ContentLibrarySubscriptionsResult**](ContentLibrarySubscriptionsResult.md)
|
157
|
+
|
158
|
+
### Authorization
|
159
|
+
|
160
|
+
[api_key](../README.md#api_key)
|
161
|
+
|
162
|
+
### HTTP request headers
|
163
|
+
|
164
|
+
- **Content-Type**: application/json
|
165
|
+
- **Accept**: application/json
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
# **list**
|
170
|
+
> ContentLibrarySubscriptionsListResult list(library)
|
171
|
+
|
172
|
+
Lists the subscriptions of the published library.
|
173
|
+
|
174
|
+
### Example
|
175
|
+
```ruby
|
176
|
+
# load the gem
|
177
|
+
require 'vsphere-automation-content'
|
178
|
+
# setup authorization
|
179
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
180
|
+
# Configure API key authorization: api_key
|
181
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
182
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
183
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
184
|
+
end
|
185
|
+
|
186
|
+
api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
|
187
|
+
library = 'library_example' # String | Identifier of the published library.
|
188
|
+
|
189
|
+
begin
|
190
|
+
#Lists the subscriptions of the published library.
|
191
|
+
result = api_instance.list(library)
|
192
|
+
p result
|
193
|
+
rescue VSphereAutomation::ApiError => e
|
194
|
+
puts "Exception when calling LibrarySubscriptionsApi->list: #{e}"
|
195
|
+
end
|
196
|
+
```
|
197
|
+
|
198
|
+
### Parameters
|
199
|
+
|
200
|
+
Name | Type | Description | Notes
|
201
|
+
------------- | ------------- | ------------- | -------------
|
202
|
+
**library** | **String**| Identifier of the published library. |
|
203
|
+
|
204
|
+
### Return type
|
205
|
+
|
206
|
+
[**ContentLibrarySubscriptionsListResult**](ContentLibrarySubscriptionsListResult.md)
|
207
|
+
|
208
|
+
### Authorization
|
209
|
+
|
210
|
+
[api_key](../README.md#api_key)
|
211
|
+
|
212
|
+
### HTTP request headers
|
213
|
+
|
214
|
+
- **Content-Type**: Not defined
|
215
|
+
- **Accept**: application/json
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
# **update**
|
220
|
+
> update(library, request_body)
|
221
|
+
|
222
|
+
Updates the specified subscription of the published library. <p> This is an incremental update to the subscription. Except for the {@link UpdateSpecPlacement} {@term structure}, {@term fields} that are {@term unset} in the update specification will be left unchanged. If {@param.name spec#subscribedLibraryPlacement} is specified, all {@term fields} of the current subscribed library placement will be replaced by this placement.
|
223
|
+
|
224
|
+
### Example
|
225
|
+
```ruby
|
226
|
+
# load the gem
|
227
|
+
require 'vsphere-automation-content'
|
228
|
+
# setup authorization
|
229
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
230
|
+
# Configure API key authorization: api_key
|
231
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
232
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
233
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
234
|
+
end
|
235
|
+
|
236
|
+
api_instance = VSphereAutomation::Content::LibrarySubscriptionsApi.new
|
237
|
+
library = 'library_example' # String | Identifier of the published library.
|
238
|
+
request_body = Content::ContentLibrarySubscriptionsUpdate.new # ContentLibrarySubscriptionsUpdate |
|
239
|
+
|
240
|
+
begin
|
241
|
+
#Updates the specified subscription of the published library. <p> This is an incremental update to the subscription. Except for the {@link UpdateSpecPlacement} {@term structure}, {@term fields} that are {@term unset} in the update specification will be left unchanged. If {@param.name spec#subscribedLibraryPlacement} is specified, all {@term fields} of the current subscribed library placement will be replaced by this placement.
|
242
|
+
api_instance.update(library, request_body)
|
243
|
+
rescue VSphereAutomation::ApiError => e
|
244
|
+
puts "Exception when calling LibrarySubscriptionsApi->update: #{e}"
|
245
|
+
end
|
246
|
+
```
|
247
|
+
|
248
|
+
### Parameters
|
249
|
+
|
250
|
+
Name | Type | Description | Notes
|
251
|
+
------------- | ------------- | ------------- | -------------
|
252
|
+
**library** | **String**| Identifier of the published library. |
|
253
|
+
**request_body** | [**ContentLibrarySubscriptionsUpdate**](ContentLibrarySubscriptionsUpdate.md)| |
|
254
|
+
|
255
|
+
### Return type
|
256
|
+
|
257
|
+
nil (empty response body)
|
258
|
+
|
259
|
+
### Authorization
|
260
|
+
|
261
|
+
[api_key](../README.md#api_key)
|
262
|
+
|
263
|
+
### HTTP request headers
|
264
|
+
|
265
|
+
- **Content-Type**: application/json
|
266
|
+
- **Accept**: application/json
|
267
|
+
|
268
|
+
|
269
|
+
|