vsphere-automation-content 0.4.2 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +20 -0
- data/lib/vsphere-automation-content/api_client.rb +260 -0
- data/lib/vsphere-automation-content/api_error.rb +34 -0
- data/lib/vsphere-automation-content/configuration.rb +212 -0
- data/lib/vsphere-automation-content/version.rb +1 -1
- metadata +15 -513
- data/Gemfile +0 -14
- data/Gemfile.lock +0 -86
- data/README.md +0 -276
- data/Rakefile +0 -18
- data/docs/ConfigurationApi.md +0 -105
- data/docs/ContentConfigurationModel.md +0 -11
- data/docs/ContentConfigurationResult.md +0 -8
- data/docs/ContentConfigurationUpdate.md +0 -8
- data/docs/ContentLibraryFind.md +0 -8
- data/docs/ContentLibraryFindResult.md +0 -8
- data/docs/ContentLibraryFindSpec.md +0 -9
- data/docs/ContentLibraryItemCopy.md +0 -9
- data/docs/ContentLibraryItemCopyResult.md +0 -8
- data/docs/ContentLibraryItemCreate.md +0 -9
- data/docs/ContentLibraryItemCreateResult.md +0 -8
- data/docs/ContentLibraryItemDestinationSpec.md +0 -8
- data/docs/ContentLibraryItemDownloadSessionCreate.md +0 -9
- data/docs/ContentLibraryItemDownloadSessionCreateResult.md +0 -8
- data/docs/ContentLibraryItemDownloadSessionFail.md +0 -8
- data/docs/ContentLibraryItemDownloadSessionKeepAlive.md +0 -8
- data/docs/ContentLibraryItemDownloadSessionListResult.md +0 -8
- data/docs/ContentLibraryItemDownloadSessionModel.md +0 -14
- data/docs/ContentLibraryItemDownloadSessionModelState.md +0 -7
- data/docs/ContentLibraryItemDownloadSessionResult.md +0 -8
- data/docs/ContentLibraryItemDownloadsessionFileEndpointType.md +0 -7
- data/docs/ContentLibraryItemDownloadsessionFileGet.md +0 -8
- data/docs/ContentLibraryItemDownloadsessionFileInfo.md +0 -14
- data/docs/ContentLibraryItemDownloadsessionFileListResult.md +0 -8
- data/docs/ContentLibraryItemDownloadsessionFilePrepare.md +0 -9
- data/docs/ContentLibraryItemDownloadsessionFilePrepareResult.md +0 -8
- data/docs/ContentLibraryItemDownloadsessionFilePrepareStatus.md +0 -7
- data/docs/ContentLibraryItemDownloadsessionFileResult.md +0 -8
- data/docs/ContentLibraryItemFileChecksumAlgorithm.md +0 -7
- data/docs/ContentLibraryItemFileChecksumInfo.md +0 -9
- data/docs/ContentLibraryItemFileGet.md +0 -8
- data/docs/ContentLibraryItemFileInfo.md +0 -12
- data/docs/ContentLibraryItemFileListResult.md +0 -8
- data/docs/ContentLibraryItemFileResult.md +0 -8
- data/docs/ContentLibraryItemFind.md +0 -8
- data/docs/ContentLibraryItemFindResult.md +0 -8
- data/docs/ContentLibraryItemFindSpec.md +0 -12
- data/docs/ContentLibraryItemListResult.md +0 -8
- data/docs/ContentLibraryItemModel.md +0 -21
- data/docs/ContentLibraryItemPublish.md +0 -9
- data/docs/ContentLibraryItemResult.md +0 -8
- data/docs/ContentLibraryItemStorageGet.md +0 -8
- data/docs/ContentLibraryItemStorageInfo.md +0 -14
- data/docs/ContentLibraryItemStorageListResult.md +0 -8
- data/docs/ContentLibraryItemStorageResult.md +0 -8
- data/docs/ContentLibraryItemTransferEndpoint.md +0 -9
- data/docs/ContentLibraryItemTransferStatus.md +0 -7
- data/docs/ContentLibraryItemUpdate.md +0 -8
- data/docs/ContentLibraryItemUpdateSessionCreate.md +0 -9
- data/docs/ContentLibraryItemUpdateSessionCreateResult.md +0 -8
- data/docs/ContentLibraryItemUpdateSessionFail.md +0 -8
- data/docs/ContentLibraryItemUpdateSessionKeepAlive.md +0 -8
- data/docs/ContentLibraryItemUpdateSessionListResult.md +0 -8
- data/docs/ContentLibraryItemUpdateSessionModel.md +0 -16
- data/docs/ContentLibraryItemUpdateSessionModelState.md +0 -7
- data/docs/ContentLibraryItemUpdateSessionResult.md +0 -8
- data/docs/ContentLibraryItemUpdateSessionUpdate.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionCertificateInfo.md +0 -11
- data/docs/ContentLibraryItemUpdatesessionFileAdd.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileAddResult.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileAddSpec.md +0 -12
- data/docs/ContentLibraryItemUpdatesessionFileGet.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileInfo.md +0 -17
- data/docs/ContentLibraryItemUpdatesessionFileListResult.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileRemove.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileResult.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileSourceType.md +0 -7
- data/docs/ContentLibraryItemUpdatesessionFileValidateResult.md +0 -8
- data/docs/ContentLibraryItemUpdatesessionFileValidationError.md +0 -9
- data/docs/ContentLibraryItemUpdatesessionFileValidationResult.md +0 -10
- data/docs/ContentLibraryItemUpdatesessionPreviewInfo.md +0 -10
- data/docs/ContentLibraryItemUpdatesessionPreviewInfoState.md +0 -7
- data/docs/ContentLibraryItemUpdatesessionPreviewWarningInfo.md +0 -10
- data/docs/ContentLibraryItemUpdatesessionWarningBehavior.md +0 -9
- data/docs/ContentLibraryItemUpdatesessionWarningType.md +0 -7
- data/docs/ContentLibraryListResult.md +0 -8
- data/docs/ContentLibraryModel.md +0 -20
- data/docs/ContentLibraryModelLibraryType.md +0 -7
- data/docs/ContentLibraryOptimizationInfo.md +0 -8
- data/docs/ContentLibraryPublishInfo.md +0 -14
- data/docs/ContentLibraryPublishInfoAuthenticationMethod.md +0 -7
- data/docs/ContentLibraryResult.md +0 -8
- data/docs/ContentLibrarySourceInfo.md +0 -9
- data/docs/ContentLibraryStorageBacking.md +0 -10
- data/docs/ContentLibraryStorageBackingType.md +0 -7
- data/docs/ContentLibrarySubscribedItemSync.md +0 -8
- data/docs/ContentLibrarySubscriptionInfo.md +0 -15
- data/docs/ContentLibrarySubscriptionInfoAuthenticationMethod.md +0 -7
- data/docs/ContentLibrarySubscriptionsCreate.md +0 -9
- data/docs/ContentLibrarySubscriptionsCreateResult.md +0 -8
- data/docs/ContentLibrarySubscriptionsCreateSpec.md +0 -8
- data/docs/ContentLibrarySubscriptionsCreateSpecNewSubscribedLibrary.md +0 -12
- data/docs/ContentLibrarySubscriptionsCreateSpecPlacement.md +0 -12
- data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibrary.md +0 -13
- data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibraryTarget.md +0 -7
- data/docs/ContentLibrarySubscriptionsCreateSpecVcenter.md +0 -9
- data/docs/ContentLibrarySubscriptionsDelete.md +0 -8
- data/docs/ContentLibrarySubscriptionsGet.md +0 -8
- data/docs/ContentLibrarySubscriptionsInfo.md +0 -12
- data/docs/ContentLibrarySubscriptionsListResult.md +0 -8
- data/docs/ContentLibrarySubscriptionsLocation.md +0 -7
- data/docs/ContentLibrarySubscriptionsPlacementInfo.md +0 -12
- data/docs/ContentLibrarySubscriptionsResult.md +0 -8
- data/docs/ContentLibrarySubscriptionsSummary.md +0 -11
- data/docs/ContentLibrarySubscriptionsUpdate.md +0 -9
- data/docs/ContentLibrarySubscriptionsUpdateSpec.md +0 -9
- data/docs/ContentLibrarySubscriptionsUpdateSpecPlacement.md +0 -12
- data/docs/ContentLibrarySubscriptionsUpdateSpecVcenter.md +0 -9
- data/docs/ContentLibrarySubscriptionsVcenterInfo.md +0 -10
- data/docs/ContentLibraryUpdate.md +0 -8
- data/docs/ContentLocalLibraryCreate.md +0 -9
- data/docs/ContentLocalLibraryCreateResult.md +0 -8
- data/docs/ContentLocalLibraryDestinationSpec.md +0 -8
- data/docs/ContentLocalLibraryListResult.md +0 -8
- data/docs/ContentLocalLibraryPublish.md +0 -8
- data/docs/ContentLocalLibraryResult.md +0 -8
- data/docs/ContentLocalLibraryUpdate.md +0 -8
- data/docs/ContentSubscribedLibraryCreate.md +0 -9
- data/docs/ContentSubscribedLibraryCreateResult.md +0 -8
- data/docs/ContentSubscribedLibraryListResult.md +0 -8
- data/docs/ContentSubscribedLibraryProbe.md +0 -8
- data/docs/ContentSubscribedLibraryProbeResult.md +0 -10
- data/docs/ContentSubscribedLibraryProbeResultStatus.md +0 -7
- data/docs/ContentSubscribedLibraryResult.md +0 -8
- data/docs/ContentSubscribedLibraryUpdate.md +0 -8
- data/docs/LibraryApi.md +0 -209
- data/docs/LibraryItemApi.md +0 -419
- data/docs/LibraryItemDownloadSessionApi.md +0 -369
- data/docs/LibraryItemDownloadsessionFileApi.md +0 -165
- data/docs/LibraryItemFileApi.md +0 -112
- data/docs/LibraryItemStorageApi.md +0 -112
- data/docs/LibraryItemUpdateSessionApi.md +0 -471
- data/docs/LibraryItemUpdatesessionFileApi.md +0 -268
- data/docs/LibrarySubscribedItemApi.md +0 -110
- data/docs/LibrarySubscriptionsApi.md +0 -269
- data/docs/LocalLibraryApi.md +0 -313
- data/docs/SubscribedLibraryApi.md +0 -410
- data/docs/VapiStdErrorsAlreadyExists.md +0 -9
- data/docs/VapiStdErrorsAlreadyExistsError.md +0 -9
- data/docs/VapiStdErrorsConcurrentChange.md +0 -9
- data/docs/VapiStdErrorsConcurrentChangeError.md +0 -9
- data/docs/VapiStdErrorsError.md +0 -9
- data/docs/VapiStdErrorsErrorError.md +0 -9
- data/docs/VapiStdErrorsInvalidArgument.md +0 -9
- data/docs/VapiStdErrorsInvalidArgumentError.md +0 -9
- data/docs/VapiStdErrorsInvalidElementConfiguration.md +0 -9
- data/docs/VapiStdErrorsInvalidElementConfigurationError.md +0 -9
- data/docs/VapiStdErrorsInvalidElementType.md +0 -9
- data/docs/VapiStdErrorsInvalidElementTypeError.md +0 -9
- data/docs/VapiStdErrorsNotAllowedInCurrentState.md +0 -9
- data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +0 -9
- data/docs/VapiStdErrorsNotFound.md +0 -9
- data/docs/VapiStdErrorsNotFoundError.md +0 -9
- data/docs/VapiStdErrorsResourceBusy.md +0 -9
- data/docs/VapiStdErrorsResourceBusyError.md +0 -9
- data/docs/VapiStdErrorsResourceInaccessible.md +0 -9
- data/docs/VapiStdErrorsResourceInaccessibleError.md +0 -9
- data/docs/VapiStdErrorsUnauthenticated.md +0 -9
- data/docs/VapiStdErrorsUnauthenticatedError.md +0 -9
- data/docs/VapiStdErrorsUnauthorized.md +0 -9
- data/docs/VapiStdErrorsUnauthorizedError.md +0 -9
- data/docs/VapiStdErrorsUnsupported.md +0 -9
- data/docs/VapiStdErrorsUnsupportedError.md +0 -9
- data/docs/VapiStdLocalizableMessage.md +0 -10
- data/git_push.sh +0 -55
- data/pkg/vsphere-automation-content-0.4.1.gem +0 -0
- data/pkg/vsphere-automation-content-0.4.2.gem +0 -0
- data/spec/api/configuration_api_spec.rb +0 -52
- data/spec/api/library_api_spec.rb +0 -75
- data/spec/api/library_item_api_spec.rb +0 -122
- data/spec/api/library_item_download_session_api_spec.rb +0 -110
- data/spec/api/library_item_downloadsession_file_api_spec.rb +0 -66
- data/spec/api/library_item_file_api_spec.rb +0 -54
- data/spec/api/library_item_storage_api_spec.rb +0 -54
- data/spec/api/library_item_update_session_api_spec.rb +0 -133
- data/spec/api/library_item_updatesession_file_api_spec.rb +0 -89
- data/spec/api/library_subscribed_item_api_spec.rb +0 -54
- data/spec/api/library_subscriptions_api_spec.rb +0 -90
- data/spec/api/local_library_api_spec.rb +0 -98
- data/spec/api/subscribed_library_api_spec.rb +0 -119
- data/spec/models/content_configuration_model_spec.rb +0 -55
- data/spec/models/content_configuration_result_spec.rb +0 -37
- data/spec/models/content_configuration_update_spec.rb +0 -37
- data/spec/models/content_library_find_result_spec.rb +0 -37
- data/spec/models/content_library_find_spec.rb +0 -37
- data/spec/models/content_library_find_spec_spec.rb +0 -43
- data/spec/models/content_library_item_copy_result_spec.rb +0 -37
- data/spec/models/content_library_item_copy_spec.rb +0 -43
- data/spec/models/content_library_item_create_result_spec.rb +0 -37
- data/spec/models/content_library_item_create_spec.rb +0 -43
- data/spec/models/content_library_item_destination_spec_spec.rb +0 -37
- data/spec/models/content_library_item_download_session_create_result_spec.rb +0 -37
- data/spec/models/content_library_item_download_session_create_spec.rb +0 -43
- data/spec/models/content_library_item_download_session_fail_spec.rb +0 -37
- data/spec/models/content_library_item_download_session_keep_alive_spec.rb +0 -37
- data/spec/models/content_library_item_download_session_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_download_session_model_spec.rb +0 -73
- data/spec/models/content_library_item_download_session_model_state_spec.rb +0 -31
- data/spec/models/content_library_item_download_session_result_spec.rb +0 -37
- data/spec/models/content_library_item_downloadsession_file_endpoint_type_spec.rb +0 -31
- data/spec/models/content_library_item_downloadsession_file_get_spec.rb +0 -37
- data/spec/models/content_library_item_downloadsession_file_info_spec.rb +0 -73
- data/spec/models/content_library_item_downloadsession_file_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_downloadsession_file_prepare_result_spec.rb +0 -37
- data/spec/models/content_library_item_downloadsession_file_prepare_spec.rb +0 -43
- data/spec/models/content_library_item_downloadsession_file_prepare_status_spec.rb +0 -31
- data/spec/models/content_library_item_downloadsession_file_result_spec.rb +0 -37
- data/spec/models/content_library_item_file_checksum_algorithm_spec.rb +0 -31
- data/spec/models/content_library_item_file_checksum_info_spec.rb +0 -43
- data/spec/models/content_library_item_file_get_spec.rb +0 -37
- data/spec/models/content_library_item_file_info_spec.rb +0 -61
- data/spec/models/content_library_item_file_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_file_result_spec.rb +0 -37
- data/spec/models/content_library_item_find_result_spec.rb +0 -37
- data/spec/models/content_library_item_find_spec.rb +0 -37
- data/spec/models/content_library_item_find_spec_spec.rb +0 -61
- data/spec/models/content_library_item_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_model_spec.rb +0 -115
- data/spec/models/content_library_item_publish_spec.rb +0 -43
- data/spec/models/content_library_item_result_spec.rb +0 -37
- data/spec/models/content_library_item_storage_get_spec.rb +0 -37
- data/spec/models/content_library_item_storage_info_spec.rb +0 -73
- data/spec/models/content_library_item_storage_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_storage_result_spec.rb +0 -37
- data/spec/models/content_library_item_transfer_endpoint_spec.rb +0 -43
- data/spec/models/content_library_item_transfer_status_spec.rb +0 -31
- data/spec/models/content_library_item_update_session_create_result_spec.rb +0 -37
- data/spec/models/content_library_item_update_session_create_spec.rb +0 -43
- data/spec/models/content_library_item_update_session_fail_spec.rb +0 -37
- data/spec/models/content_library_item_update_session_keep_alive_spec.rb +0 -37
- data/spec/models/content_library_item_update_session_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_update_session_model_spec.rb +0 -85
- data/spec/models/content_library_item_update_session_model_state_spec.rb +0 -31
- data/spec/models/content_library_item_update_session_result_spec.rb +0 -37
- data/spec/models/content_library_item_update_session_update_spec.rb +0 -37
- data/spec/models/content_library_item_update_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_certificate_info_spec.rb +0 -55
- data/spec/models/content_library_item_updatesession_file_add_result_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_add_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_add_spec_spec.rb +0 -61
- data/spec/models/content_library_item_updatesession_file_get_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_info_spec.rb +0 -91
- data/spec/models/content_library_item_updatesession_file_list_result_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_remove_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_result_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_source_type_spec.rb +0 -31
- data/spec/models/content_library_item_updatesession_file_validate_result_spec.rb +0 -37
- data/spec/models/content_library_item_updatesession_file_validation_error_spec.rb +0 -43
- data/spec/models/content_library_item_updatesession_file_validation_result_spec.rb +0 -49
- data/spec/models/content_library_item_updatesession_preview_info_spec.rb +0 -49
- data/spec/models/content_library_item_updatesession_preview_info_state_spec.rb +0 -31
- data/spec/models/content_library_item_updatesession_preview_warning_info_spec.rb +0 -49
- data/spec/models/content_library_item_updatesession_warning_behavior_spec.rb +0 -43
- data/spec/models/content_library_item_updatesession_warning_type_spec.rb +0 -31
- data/spec/models/content_library_list_result_spec.rb +0 -37
- data/spec/models/content_library_model_library_type_spec.rb +0 -31
- data/spec/models/content_library_model_spec.rb +0 -109
- data/spec/models/content_library_optimization_info_spec.rb +0 -37
- data/spec/models/content_library_publish_info_authentication_method_spec.rb +0 -31
- data/spec/models/content_library_publish_info_spec.rb +0 -73
- data/spec/models/content_library_result_spec.rb +0 -37
- data/spec/models/content_library_source_info_spec.rb +0 -43
- data/spec/models/content_library_storage_backing_spec.rb +0 -49
- data/spec/models/content_library_storage_backing_type_spec.rb +0 -31
- data/spec/models/content_library_subscribed_item_sync_spec.rb +0 -37
- data/spec/models/content_library_subscription_info_authentication_method_spec.rb +0 -31
- data/spec/models/content_library_subscription_info_spec.rb +0 -79
- data/spec/models/content_library_subscriptions_create_result_spec.rb +0 -37
- data/spec/models/content_library_subscriptions_create_spec.rb +0 -43
- data/spec/models/content_library_subscriptions_create_spec_new_subscribed_library_spec.rb +0 -61
- data/spec/models/content_library_subscriptions_create_spec_placement_spec.rb +0 -61
- data/spec/models/content_library_subscriptions_create_spec_spec.rb +0 -37
- data/spec/models/content_library_subscriptions_create_spec_subscribed_library_spec.rb +0 -67
- data/spec/models/content_library_subscriptions_create_spec_subscribed_library_target_spec.rb +0 -31
- data/spec/models/content_library_subscriptions_create_spec_vcenter_spec.rb +0 -43
- data/spec/models/content_library_subscriptions_delete_spec.rb +0 -37
- data/spec/models/content_library_subscriptions_get_spec.rb +0 -37
- data/spec/models/content_library_subscriptions_info_spec.rb +0 -61
- data/spec/models/content_library_subscriptions_list_result_spec.rb +0 -37
- data/spec/models/content_library_subscriptions_location_spec.rb +0 -31
- data/spec/models/content_library_subscriptions_placement_info_spec.rb +0 -61
- data/spec/models/content_library_subscriptions_result_spec.rb +0 -37
- data/spec/models/content_library_subscriptions_summary_spec.rb +0 -55
- data/spec/models/content_library_subscriptions_update_spec.rb +0 -43
- data/spec/models/content_library_subscriptions_update_spec_placement_spec.rb +0 -61
- data/spec/models/content_library_subscriptions_update_spec_spec.rb +0 -43
- data/spec/models/content_library_subscriptions_update_spec_vcenter_spec.rb +0 -43
- data/spec/models/content_library_subscriptions_vcenter_info_spec.rb +0 -49
- data/spec/models/content_library_update_spec.rb +0 -37
- data/spec/models/content_local_library_create_result_spec.rb +0 -37
- data/spec/models/content_local_library_create_spec.rb +0 -43
- data/spec/models/content_local_library_destination_spec_spec.rb +0 -37
- data/spec/models/content_local_library_list_result_spec.rb +0 -37
- data/spec/models/content_local_library_publish_spec.rb +0 -37
- data/spec/models/content_local_library_result_spec.rb +0 -37
- data/spec/models/content_local_library_update_spec.rb +0 -37
- data/spec/models/content_subscribed_library_create_result_spec.rb +0 -37
- data/spec/models/content_subscribed_library_create_spec.rb +0 -43
- data/spec/models/content_subscribed_library_list_result_spec.rb +0 -37
- data/spec/models/content_subscribed_library_probe_result_spec.rb +0 -49
- data/spec/models/content_subscribed_library_probe_result_status_spec.rb +0 -31
- data/spec/models/content_subscribed_library_probe_spec.rb +0 -37
- data/spec/models/content_subscribed_library_result_spec.rb +0 -37
- data/spec/models/content_subscribed_library_update_spec.rb +0 -37
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_already_exists_spec.rb +0 -43
- data/spec/models/vapi_std_errors_concurrent_change_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_concurrent_change_spec.rb +0 -43
- data/spec/models/vapi_std_errors_error_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_element_configuration_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_element_configuration_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_element_type_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_element_type_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_found_spec.rb +0 -43
- data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_resource_busy_spec.rb +0 -43
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unsupported_spec.rb +0 -43
- data/spec/models/vapi_std_localizable_message_spec.rb +0 -49
- data/spec/spec_helper.rb +0 -110
- data/vsphere-automation-content.gemspec +0 -40
@@ -1,268 +0,0 @@
|
|
1
|
-
# VSphereAutomation::Content::LibraryItemUpdatesessionFileApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://<vcenter>/rest*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**add**](LibraryItemUpdatesessionFileApi.md#add) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=add | 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
|
-
[**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
|
-
[**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
|
-
[**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.
|
11
|
-
[**validate**](LibraryItemUpdatesessionFileApi.md#validate) | **POST** /com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=validate | Validates the files in the update session with the referenced identifier and ensures all necessary files are received. In the case where a file is missing, this {@term operation} will return its name in the {@link ValidationResult#missingFiles} set. The user can add the missing files and try re-validating. For other type of errors, {@link ValidationResult#invalidFiles} will contain the list of invalid files.
|
12
|
-
|
13
|
-
|
14
|
-
# **add**
|
15
|
-
> ContentLibraryItemUpdatesessionFileAddResult add(update_session_id, request_body)
|
16
|
-
|
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
|
-
|
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::LibraryItemUpdatesessionFileApi.new
|
32
|
-
update_session_id = 'update_session_id_example' # String | Identifier of the update session to be modified.
|
33
|
-
request_body = Content::ContentLibraryItemUpdatesessionFileAdd.new # ContentLibraryItemUpdatesessionFileAdd |
|
34
|
-
|
35
|
-
begin
|
36
|
-
#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.
|
37
|
-
result = api_instance.add(update_session_id, request_body)
|
38
|
-
p result
|
39
|
-
rescue VSphereAutomation::ApiError => e
|
40
|
-
puts "Exception when calling LibraryItemUpdatesessionFileApi->add: #{e}"
|
41
|
-
end
|
42
|
-
```
|
43
|
-
|
44
|
-
### Parameters
|
45
|
-
|
46
|
-
Name | Type | Description | Notes
|
47
|
-
------------- | ------------- | ------------- | -------------
|
48
|
-
**update_session_id** | **String**| Identifier of the update session to be modified. |
|
49
|
-
**request_body** | [**ContentLibraryItemUpdatesessionFileAdd**](ContentLibraryItemUpdatesessionFileAdd.md)| |
|
50
|
-
|
51
|
-
### Return type
|
52
|
-
|
53
|
-
[**ContentLibraryItemUpdatesessionFileAddResult**](ContentLibraryItemUpdatesessionFileAddResult.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
|
-
# **get**
|
67
|
-
> ContentLibraryItemUpdatesessionFileResult get(update_session_id, request_body)
|
68
|
-
|
69
|
-
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
|
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::LibraryItemUpdatesessionFileApi.new
|
84
|
-
update_session_id = 'update_session_id_example' # String | Identifier of the update session.
|
85
|
-
request_body = Content::ContentLibraryItemUpdatesessionFileGet.new # ContentLibraryItemUpdatesessionFileGet |
|
86
|
-
|
87
|
-
begin
|
88
|
-
#Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
|
89
|
-
result = api_instance.get(update_session_id, request_body)
|
90
|
-
p result
|
91
|
-
rescue VSphereAutomation::ApiError => e
|
92
|
-
puts "Exception when calling LibraryItemUpdatesessionFileApi->get: #{e}"
|
93
|
-
end
|
94
|
-
```
|
95
|
-
|
96
|
-
### Parameters
|
97
|
-
|
98
|
-
Name | Type | Description | Notes
|
99
|
-
------------- | ------------- | ------------- | -------------
|
100
|
-
**update_session_id** | **String**| Identifier of the update session. |
|
101
|
-
**request_body** | [**ContentLibraryItemUpdatesessionFileGet**](ContentLibraryItemUpdatesessionFileGet.md)| |
|
102
|
-
|
103
|
-
### Return type
|
104
|
-
|
105
|
-
[**ContentLibraryItemUpdatesessionFileResult**](ContentLibraryItemUpdatesessionFileResult.md)
|
106
|
-
|
107
|
-
### Authorization
|
108
|
-
|
109
|
-
[api_key](../README.md#api_key)
|
110
|
-
|
111
|
-
### HTTP request headers
|
112
|
-
|
113
|
-
- **Content-Type**: application/json
|
114
|
-
- **Accept**: application/json
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
# **list**
|
119
|
-
> ContentLibraryItemUpdatesessionFileListResult list(update_session_id)
|
120
|
-
|
121
|
-
Lists all files in the library item associated with the update session.
|
122
|
-
|
123
|
-
### Example
|
124
|
-
```ruby
|
125
|
-
# load the gem
|
126
|
-
require 'vsphere-automation-content'
|
127
|
-
# setup authorization
|
128
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
129
|
-
# Configure API key authorization: api_key
|
130
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
131
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
132
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
133
|
-
end
|
134
|
-
|
135
|
-
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
136
|
-
update_session_id = 'update_session_id_example' # String | Identifier of the update session.
|
137
|
-
|
138
|
-
begin
|
139
|
-
#Lists all files in the library item associated with the update session.
|
140
|
-
result = api_instance.list(update_session_id)
|
141
|
-
p result
|
142
|
-
rescue VSphereAutomation::ApiError => e
|
143
|
-
puts "Exception when calling LibraryItemUpdatesessionFileApi->list: #{e}"
|
144
|
-
end
|
145
|
-
```
|
146
|
-
|
147
|
-
### Parameters
|
148
|
-
|
149
|
-
Name | Type | Description | Notes
|
150
|
-
------------- | ------------- | ------------- | -------------
|
151
|
-
**update_session_id** | **String**| Identifier of the update session. |
|
152
|
-
|
153
|
-
### Return type
|
154
|
-
|
155
|
-
[**ContentLibraryItemUpdatesessionFileListResult**](ContentLibraryItemUpdatesessionFileListResult.md)
|
156
|
-
|
157
|
-
### Authorization
|
158
|
-
|
159
|
-
[api_key](../README.md#api_key)
|
160
|
-
|
161
|
-
### HTTP request headers
|
162
|
-
|
163
|
-
- **Content-Type**: Not defined
|
164
|
-
- **Accept**: application/json
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
# **remove**
|
169
|
-
> remove(update_session_id, request_body)
|
170
|
-
|
171
|
-
Requests a file to be removed. The file will only be effectively removed when the update session is completed.
|
172
|
-
|
173
|
-
### Example
|
174
|
-
```ruby
|
175
|
-
# load the gem
|
176
|
-
require 'vsphere-automation-content'
|
177
|
-
# setup authorization
|
178
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
179
|
-
# Configure API key authorization: api_key
|
180
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
181
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
182
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
183
|
-
end
|
184
|
-
|
185
|
-
api_instance = VSphereAutomation::Content::LibraryItemUpdatesessionFileApi.new
|
186
|
-
update_session_id = 'update_session_id_example' # String | Identifier of the update session.
|
187
|
-
request_body = Content::ContentLibraryItemUpdatesessionFileRemove.new # ContentLibraryItemUpdatesessionFileRemove |
|
188
|
-
|
189
|
-
begin
|
190
|
-
#Requests a file to be removed. The file will only be effectively removed when the update session is completed.
|
191
|
-
api_instance.remove(update_session_id, request_body)
|
192
|
-
rescue VSphereAutomation::ApiError => e
|
193
|
-
puts "Exception when calling LibraryItemUpdatesessionFileApi->remove: #{e}"
|
194
|
-
end
|
195
|
-
```
|
196
|
-
|
197
|
-
### Parameters
|
198
|
-
|
199
|
-
Name | Type | Description | Notes
|
200
|
-
------------- | ------------- | ------------- | -------------
|
201
|
-
**update_session_id** | **String**| Identifier of the update session. |
|
202
|
-
**request_body** | [**ContentLibraryItemUpdatesessionFileRemove**](ContentLibraryItemUpdatesessionFileRemove.md)| |
|
203
|
-
|
204
|
-
### Return type
|
205
|
-
|
206
|
-
nil (empty response body)
|
207
|
-
|
208
|
-
### Authorization
|
209
|
-
|
210
|
-
[api_key](../README.md#api_key)
|
211
|
-
|
212
|
-
### HTTP request headers
|
213
|
-
|
214
|
-
- **Content-Type**: application/json
|
215
|
-
- **Accept**: application/json
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
# **validate**
|
220
|
-
> ContentLibraryItemUpdatesessionFileValidateResult validate(update_session_id)
|
221
|
-
|
222
|
-
Validates the files in the update session with the referenced identifier and ensures all necessary files are received. In the case where a file is missing, this {@term operation} will return its name in the {@link ValidationResult#missingFiles} set. The user can add the missing files and try re-validating. For other type of errors, {@link ValidationResult#invalidFiles} will contain the list of invalid files.
|
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::LibraryItemUpdatesessionFileApi.new
|
237
|
-
update_session_id = 'update_session_id_example' # String | Identifier of the update session to validate.
|
238
|
-
|
239
|
-
begin
|
240
|
-
#Validates the files in the update session with the referenced identifier and ensures all necessary files are received. In the case where a file is missing, this {@term operation} will return its name in the {@link ValidationResult#missingFiles} set. The user can add the missing files and try re-validating. For other type of errors, {@link ValidationResult#invalidFiles} will contain the list of invalid files.
|
241
|
-
result = api_instance.validate(update_session_id)
|
242
|
-
p result
|
243
|
-
rescue VSphereAutomation::ApiError => e
|
244
|
-
puts "Exception when calling LibraryItemUpdatesessionFileApi->validate: #{e}"
|
245
|
-
end
|
246
|
-
```
|
247
|
-
|
248
|
-
### Parameters
|
249
|
-
|
250
|
-
Name | Type | Description | Notes
|
251
|
-
------------- | ------------- | ------------- | -------------
|
252
|
-
**update_session_id** | **String**| Identifier of the update session to validate. |
|
253
|
-
|
254
|
-
### Return type
|
255
|
-
|
256
|
-
[**ContentLibraryItemUpdatesessionFileValidateResult**](ContentLibraryItemUpdatesessionFileValidateResult.md)
|
257
|
-
|
258
|
-
### Authorization
|
259
|
-
|
260
|
-
[api_key](../README.md#api_key)
|
261
|
-
|
262
|
-
### HTTP request headers
|
263
|
-
|
264
|
-
- **Content-Type**: Not defined
|
265
|
-
- **Accept**: application/json
|
266
|
-
|
267
|
-
|
268
|
-
|
@@ -1,110 +0,0 @@
|
|
1
|
-
# VSphereAutomation::Content::LibrarySubscribedItemApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://<vcenter>/rest*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**evict**](LibrarySubscribedItemApi.md#evict) | **POST** /com/vmware/content/library/subscribed-item/id:{library_item_id}?~action=evict | 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
|
-
[**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
|
-
|
10
|
-
|
11
|
-
# **evict**
|
12
|
-
> evict(library_item_id)
|
13
|
-
|
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
|
-
|
16
|
-
### Example
|
17
|
-
```ruby
|
18
|
-
# load the gem
|
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
|
27
|
-
|
28
|
-
api_instance = VSphereAutomation::Content::LibrarySubscribedItemApi.new
|
29
|
-
library_item_id = 'library_item_id_example' # String | Identifier of the library item whose content should be evicted.
|
30
|
-
|
31
|
-
begin
|
32
|
-
#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.
|
33
|
-
api_instance.evict(library_item_id)
|
34
|
-
rescue VSphereAutomation::ApiError => e
|
35
|
-
puts "Exception when calling LibrarySubscribedItemApi->evict: #{e}"
|
36
|
-
end
|
37
|
-
```
|
38
|
-
|
39
|
-
### Parameters
|
40
|
-
|
41
|
-
Name | Type | Description | Notes
|
42
|
-
------------- | ------------- | ------------- | -------------
|
43
|
-
**library_item_id** | **String**| Identifier of the library item whose content should be evicted. |
|
44
|
-
|
45
|
-
### Return type
|
46
|
-
|
47
|
-
nil (empty response body)
|
48
|
-
|
49
|
-
### Authorization
|
50
|
-
|
51
|
-
[api_key](../README.md#api_key)
|
52
|
-
|
53
|
-
### HTTP request headers
|
54
|
-
|
55
|
-
- **Content-Type**: Not defined
|
56
|
-
- **Accept**: application/json
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
# **sync**
|
61
|
-
> sync(library_item_id, request_body)
|
62
|
-
|
63
|
-
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.
|
64
|
-
|
65
|
-
### Example
|
66
|
-
```ruby
|
67
|
-
# load the gem
|
68
|
-
require 'vsphere-automation-content'
|
69
|
-
# setup authorization
|
70
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
71
|
-
# Configure API key authorization: api_key
|
72
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
73
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
74
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
75
|
-
end
|
76
|
-
|
77
|
-
api_instance = VSphereAutomation::Content::LibrarySubscribedItemApi.new
|
78
|
-
library_item_id = 'library_item_id_example' # String | Identifier of the library item to synchronize.
|
79
|
-
request_body = Content::ContentLibrarySubscribedItemSync.new # ContentLibrarySubscribedItemSync |
|
80
|
-
|
81
|
-
begin
|
82
|
-
#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.
|
83
|
-
api_instance.sync(library_item_id, request_body)
|
84
|
-
rescue VSphereAutomation::ApiError => e
|
85
|
-
puts "Exception when calling LibrarySubscribedItemApi->sync: #{e}"
|
86
|
-
end
|
87
|
-
```
|
88
|
-
|
89
|
-
### Parameters
|
90
|
-
|
91
|
-
Name | Type | Description | Notes
|
92
|
-
------------- | ------------- | ------------- | -------------
|
93
|
-
**library_item_id** | **String**| Identifier of the library item to synchronize. |
|
94
|
-
**request_body** | [**ContentLibrarySubscribedItemSync**](ContentLibrarySubscribedItemSync.md)| |
|
95
|
-
|
96
|
-
### Return type
|
97
|
-
|
98
|
-
nil (empty response body)
|
99
|
-
|
100
|
-
### Authorization
|
101
|
-
|
102
|
-
[api_key](../README.md#api_key)
|
103
|
-
|
104
|
-
### HTTP request headers
|
105
|
-
|
106
|
-
- **Content-Type**: application/json
|
107
|
-
- **Accept**: application/json
|
108
|
-
|
109
|
-
|
110
|
-
|
@@ -1,269 +0,0 @@
|
|
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
|
-
|