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
data/docs/LibraryApi.md
DELETED
@@ -1,209 +0,0 @@
|
|
1
|
-
# VSphereAutomation::Content::LibraryApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://<vcenter>/rest*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**find**](LibraryApi.md#find) | **POST** /com/vmware/content/library?~action=find | Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
8
|
-
[**get**](LibraryApi.md#get) | **GET** /com/vmware/content/library/id:{library_id} | Returns a given {@link LibraryModel}.
|
9
|
-
[**list**](LibraryApi.md#list) | **GET** /com/vmware/content/library | Returns the identifiers of all libraries of any type in the Content Library.
|
10
|
-
[**update**](LibraryApi.md#update) | **PATCH** /com/vmware/content/library/id:{library_id} | Updates the properties of a library. <p> This is an incremental update to the library. Any {@term field} in the {@link LibraryModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the common properties for all library types. This will not, for example, update the {@link LibraryModel#publishInfo} of a local library, nor the {@link LibraryModel#subscriptionInfo} of a subscribed library. Specific properties are updated in {@link LocalLibrary#update} and {@link SubscribedLibrary#update}.
|
11
|
-
|
12
|
-
|
13
|
-
# **find**
|
14
|
-
> ContentLibraryFindResult find(request_body)
|
15
|
-
|
16
|
-
Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
17
|
-
|
18
|
-
### Example
|
19
|
-
```ruby
|
20
|
-
# load the gem
|
21
|
-
require 'vsphere-automation-content'
|
22
|
-
# setup authorization
|
23
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
24
|
-
# Configure API key authorization: api_key
|
25
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
26
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = VSphereAutomation::Content::LibraryApi.new
|
31
|
-
request_body = Content::ContentLibraryFind.new # ContentLibraryFind |
|
32
|
-
|
33
|
-
begin
|
34
|
-
#Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
35
|
-
result = api_instance.find(request_body)
|
36
|
-
p result
|
37
|
-
rescue VSphereAutomation::ApiError => e
|
38
|
-
puts "Exception when calling LibraryApi->find: #{e}"
|
39
|
-
end
|
40
|
-
```
|
41
|
-
|
42
|
-
### Parameters
|
43
|
-
|
44
|
-
Name | Type | Description | Notes
|
45
|
-
------------- | ------------- | ------------- | -------------
|
46
|
-
**request_body** | [**ContentLibraryFind**](ContentLibraryFind.md)| |
|
47
|
-
|
48
|
-
### Return type
|
49
|
-
|
50
|
-
[**ContentLibraryFindResult**](ContentLibraryFindResult.md)
|
51
|
-
|
52
|
-
### Authorization
|
53
|
-
|
54
|
-
[api_key](../README.md#api_key)
|
55
|
-
|
56
|
-
### HTTP request headers
|
57
|
-
|
58
|
-
- **Content-Type**: application/json
|
59
|
-
- **Accept**: application/json
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
# **get**
|
64
|
-
> ContentLibraryResult get(library_id)
|
65
|
-
|
66
|
-
Returns a given {@link LibraryModel}.
|
67
|
-
|
68
|
-
### Example
|
69
|
-
```ruby
|
70
|
-
# load the gem
|
71
|
-
require 'vsphere-automation-content'
|
72
|
-
# setup authorization
|
73
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
74
|
-
# Configure API key authorization: api_key
|
75
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
76
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
77
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
78
|
-
end
|
79
|
-
|
80
|
-
api_instance = VSphereAutomation::Content::LibraryApi.new
|
81
|
-
library_id = 'library_id_example' # String | Identifier of the library to return.
|
82
|
-
|
83
|
-
begin
|
84
|
-
#Returns a given {@link LibraryModel}.
|
85
|
-
result = api_instance.get(library_id)
|
86
|
-
p result
|
87
|
-
rescue VSphereAutomation::ApiError => e
|
88
|
-
puts "Exception when calling LibraryApi->get: #{e}"
|
89
|
-
end
|
90
|
-
```
|
91
|
-
|
92
|
-
### Parameters
|
93
|
-
|
94
|
-
Name | Type | Description | Notes
|
95
|
-
------------- | ------------- | ------------- | -------------
|
96
|
-
**library_id** | **String**| Identifier of the library to return. |
|
97
|
-
|
98
|
-
### Return type
|
99
|
-
|
100
|
-
[**ContentLibraryResult**](ContentLibraryResult.md)
|
101
|
-
|
102
|
-
### Authorization
|
103
|
-
|
104
|
-
[api_key](../README.md#api_key)
|
105
|
-
|
106
|
-
### HTTP request headers
|
107
|
-
|
108
|
-
- **Content-Type**: Not defined
|
109
|
-
- **Accept**: application/json
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
# **list**
|
114
|
-
> ContentLibraryListResult list
|
115
|
-
|
116
|
-
Returns the identifiers of all libraries of any type in the Content Library.
|
117
|
-
|
118
|
-
### Example
|
119
|
-
```ruby
|
120
|
-
# load the gem
|
121
|
-
require 'vsphere-automation-content'
|
122
|
-
# setup authorization
|
123
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
124
|
-
# Configure API key authorization: api_key
|
125
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
126
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
127
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
128
|
-
end
|
129
|
-
|
130
|
-
api_instance = VSphereAutomation::Content::LibraryApi.new
|
131
|
-
|
132
|
-
begin
|
133
|
-
#Returns the identifiers of all libraries of any type in the Content Library.
|
134
|
-
result = api_instance.list
|
135
|
-
p result
|
136
|
-
rescue VSphereAutomation::ApiError => e
|
137
|
-
puts "Exception when calling LibraryApi->list: #{e}"
|
138
|
-
end
|
139
|
-
```
|
140
|
-
|
141
|
-
### Parameters
|
142
|
-
This endpoint does not need any parameter.
|
143
|
-
|
144
|
-
### Return type
|
145
|
-
|
146
|
-
[**ContentLibraryListResult**](ContentLibraryListResult.md)
|
147
|
-
|
148
|
-
### Authorization
|
149
|
-
|
150
|
-
[api_key](../README.md#api_key)
|
151
|
-
|
152
|
-
### HTTP request headers
|
153
|
-
|
154
|
-
- **Content-Type**: Not defined
|
155
|
-
- **Accept**: application/json
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
# **update**
|
160
|
-
> update(library_id, request_body)
|
161
|
-
|
162
|
-
Updates the properties of a library. <p> This is an incremental update to the library. Any {@term field} in the {@link LibraryModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the common properties for all library types. This will not, for example, update the {@link LibraryModel#publishInfo} of a local library, nor the {@link LibraryModel#subscriptionInfo} of a subscribed library. Specific properties are updated in {@link LocalLibrary#update} and {@link SubscribedLibrary#update}.
|
163
|
-
|
164
|
-
### Example
|
165
|
-
```ruby
|
166
|
-
# load the gem
|
167
|
-
require 'vsphere-automation-content'
|
168
|
-
# setup authorization
|
169
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
170
|
-
# Configure API key authorization: api_key
|
171
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
172
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
173
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
174
|
-
end
|
175
|
-
|
176
|
-
api_instance = VSphereAutomation::Content::LibraryApi.new
|
177
|
-
library_id = 'library_id_example' # String | Identifier of the library to update.
|
178
|
-
request_body = Content::ContentLibraryUpdate.new # ContentLibraryUpdate |
|
179
|
-
|
180
|
-
begin
|
181
|
-
#Updates the properties of a library. <p> This is an incremental update to the library. Any {@term field} in the {@link LibraryModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the common properties for all library types. This will not, for example, update the {@link LibraryModel#publishInfo} of a local library, nor the {@link LibraryModel#subscriptionInfo} of a subscribed library. Specific properties are updated in {@link LocalLibrary#update} and {@link SubscribedLibrary#update}.
|
182
|
-
api_instance.update(library_id, request_body)
|
183
|
-
rescue VSphereAutomation::ApiError => e
|
184
|
-
puts "Exception when calling LibraryApi->update: #{e}"
|
185
|
-
end
|
186
|
-
```
|
187
|
-
|
188
|
-
### Parameters
|
189
|
-
|
190
|
-
Name | Type | Description | Notes
|
191
|
-
------------- | ------------- | ------------- | -------------
|
192
|
-
**library_id** | **String**| Identifier of the library to update. |
|
193
|
-
**request_body** | [**ContentLibraryUpdate**](ContentLibraryUpdate.md)| |
|
194
|
-
|
195
|
-
### Return type
|
196
|
-
|
197
|
-
nil (empty response body)
|
198
|
-
|
199
|
-
### Authorization
|
200
|
-
|
201
|
-
[api_key](../README.md#api_key)
|
202
|
-
|
203
|
-
### HTTP request headers
|
204
|
-
|
205
|
-
- **Content-Type**: application/json
|
206
|
-
- **Accept**: application/json
|
207
|
-
|
208
|
-
|
209
|
-
|
data/docs/LibraryItemApi.md
DELETED
@@ -1,419 +0,0 @@
|
|
1
|
-
# VSphereAutomation::Content::LibraryItemApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://<vcenter>/rest*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**copy**](LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id}?~action=copy | Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
|
8
|
-
[**create**](LibraryItemApi.md#create) | **POST** /com/vmware/content/library/item | Creates a new library item. <p> A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. <p> A library item cannot be created in a subscribed library.
|
9
|
-
[**delete**](LibraryItemApi.md#delete) | **DELETE** /com/vmware/content/library/item/id:{library_item_id} | Deletes a library item. <p> This {@term operation} will immediately remove the item from the library that owns it. The content of the item will be asynchronously removed from the storage backings. The content deletion can be tracked with a task. In the event that the task fails, an administrator may need to manually remove the files from the storage backing. <p> This {@term operation} cannot be used to delete a library item that is a member of a subscribed library. Removing an item from a subscribed library requires deleting the item from the original published local library and syncing the subscribed library.
|
10
|
-
[**find**](LibraryItemApi.md#find) | **POST** /com/vmware/content/library/item?~action=find | Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
11
|
-
[**get**](LibraryItemApi.md#get) | **GET** /com/vmware/content/library/item/id:{library_item_id} | Returns the {@link ItemModel} with the given identifier.
|
12
|
-
[**list**](LibraryItemApi.md#list) | **GET** /com/vmware/content/library/item | Returns the identifiers of all items in the given library.
|
13
|
-
[**publish**](LibraryItemApi.md#publish) | **POST** /com/vmware/content/library/item/id:{library_item_id}?~action=publish | Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library.
|
14
|
-
[**update**](LibraryItemApi.md#update) | **PATCH** /com/vmware/content/library/item/id:{library_item_id} | Updates the specified properties of a library item. <p> This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. <p> This {@term operation} cannot update a library item that is a member of a subscribed library. Those items must be updated in the source published library and synchronized to the subscribed library.
|
15
|
-
|
16
|
-
|
17
|
-
# **copy**
|
18
|
-
> ContentLibraryItemCopyResult copy(source_library_item_id, request_body)
|
19
|
-
|
20
|
-
Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
|
21
|
-
|
22
|
-
### Example
|
23
|
-
```ruby
|
24
|
-
# load the gem
|
25
|
-
require 'vsphere-automation-content'
|
26
|
-
# setup authorization
|
27
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
28
|
-
# Configure API key authorization: api_key
|
29
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
30
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
32
|
-
end
|
33
|
-
|
34
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
35
|
-
source_library_item_id = 'source_library_item_id_example' # String | Identifier of the existing library item from which the content will be copied.
|
36
|
-
request_body = Content::ContentLibraryItemCopy.new # ContentLibraryItemCopy |
|
37
|
-
|
38
|
-
begin
|
39
|
-
#Copies a library item. <p> Copying a library item allows a duplicate to be made within the same or different library. The copy occurs by first creating a new library item, whose identifier is returned. The content of the library item is then copied asynchronously. This copy can be tracked as a task. <p> If the copy fails, Content Library Service will roll back the copy by deleting any content that was already copied, and removing the new library item. A failure during rollback may require manual cleanup by an administrator. <p> A library item cannot be copied into a subscribed library.
|
40
|
-
result = api_instance.copy(source_library_item_id, request_body)
|
41
|
-
p result
|
42
|
-
rescue VSphereAutomation::ApiError => e
|
43
|
-
puts "Exception when calling LibraryItemApi->copy: #{e}"
|
44
|
-
end
|
45
|
-
```
|
46
|
-
|
47
|
-
### Parameters
|
48
|
-
|
49
|
-
Name | Type | Description | Notes
|
50
|
-
------------- | ------------- | ------------- | -------------
|
51
|
-
**source_library_item_id** | **String**| Identifier of the existing library item from which the content will be copied. |
|
52
|
-
**request_body** | [**ContentLibraryItemCopy**](ContentLibraryItemCopy.md)| |
|
53
|
-
|
54
|
-
### Return type
|
55
|
-
|
56
|
-
[**ContentLibraryItemCopyResult**](ContentLibraryItemCopyResult.md)
|
57
|
-
|
58
|
-
### Authorization
|
59
|
-
|
60
|
-
[api_key](../README.md#api_key)
|
61
|
-
|
62
|
-
### HTTP request headers
|
63
|
-
|
64
|
-
- **Content-Type**: application/json
|
65
|
-
- **Accept**: application/json
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
# **create**
|
70
|
-
> ContentLibraryItemCreateResult create(request_body)
|
71
|
-
|
72
|
-
Creates a new library item. <p> A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. <p> A library item cannot be created in a subscribed library.
|
73
|
-
|
74
|
-
### Example
|
75
|
-
```ruby
|
76
|
-
# load the gem
|
77
|
-
require 'vsphere-automation-content'
|
78
|
-
# setup authorization
|
79
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
80
|
-
# Configure API key authorization: api_key
|
81
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
82
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
83
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
84
|
-
end
|
85
|
-
|
86
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
87
|
-
request_body = Content::ContentLibraryItemCreate.new # ContentLibraryItemCreate |
|
88
|
-
|
89
|
-
begin
|
90
|
-
#Creates a new library item. <p> A new library item is created without any content. After creation, content can be added through the {@link UpdateSession} and {@link File} {@term services}. <p> A library item cannot be created in a subscribed library.
|
91
|
-
result = api_instance.create(request_body)
|
92
|
-
p result
|
93
|
-
rescue VSphereAutomation::ApiError => e
|
94
|
-
puts "Exception when calling LibraryItemApi->create: #{e}"
|
95
|
-
end
|
96
|
-
```
|
97
|
-
|
98
|
-
### Parameters
|
99
|
-
|
100
|
-
Name | Type | Description | Notes
|
101
|
-
------------- | ------------- | ------------- | -------------
|
102
|
-
**request_body** | [**ContentLibraryItemCreate**](ContentLibraryItemCreate.md)| |
|
103
|
-
|
104
|
-
### Return type
|
105
|
-
|
106
|
-
[**ContentLibraryItemCreateResult**](ContentLibraryItemCreateResult.md)
|
107
|
-
|
108
|
-
### Authorization
|
109
|
-
|
110
|
-
[api_key](../README.md#api_key)
|
111
|
-
|
112
|
-
### HTTP request headers
|
113
|
-
|
114
|
-
- **Content-Type**: application/json
|
115
|
-
- **Accept**: application/json
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
# **delete**
|
120
|
-
> delete(library_item_id)
|
121
|
-
|
122
|
-
Deletes a library item. <p> This {@term operation} will immediately remove the item from the library that owns it. The content of the item will be asynchronously removed from the storage backings. The content deletion can be tracked with a task. In the event that the task fails, an administrator may need to manually remove the files from the storage backing. <p> This {@term operation} cannot be used to delete a library item that is a member of a subscribed library. Removing an item from a subscribed library requires deleting the item from the original published local library and syncing the subscribed library.
|
123
|
-
|
124
|
-
### Example
|
125
|
-
```ruby
|
126
|
-
# load the gem
|
127
|
-
require 'vsphere-automation-content'
|
128
|
-
# setup authorization
|
129
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
130
|
-
# Configure API key authorization: api_key
|
131
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
132
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
133
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
134
|
-
end
|
135
|
-
|
136
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
137
|
-
library_item_id = 'library_item_id_example' # String | Identifier of the library item to delete.
|
138
|
-
|
139
|
-
begin
|
140
|
-
#Deletes a library item. <p> This {@term operation} will immediately remove the item from the library that owns it. The content of the item will be asynchronously removed from the storage backings. The content deletion can be tracked with a task. In the event that the task fails, an administrator may need to manually remove the files from the storage backing. <p> This {@term operation} cannot be used to delete a library item that is a member of a subscribed library. Removing an item from a subscribed library requires deleting the item from the original published local library and syncing the subscribed library.
|
141
|
-
api_instance.delete(library_item_id)
|
142
|
-
rescue VSphereAutomation::ApiError => e
|
143
|
-
puts "Exception when calling LibraryItemApi->delete: #{e}"
|
144
|
-
end
|
145
|
-
```
|
146
|
-
|
147
|
-
### Parameters
|
148
|
-
|
149
|
-
Name | Type | Description | Notes
|
150
|
-
------------- | ------------- | ------------- | -------------
|
151
|
-
**library_item_id** | **String**| Identifier of the library item to delete. |
|
152
|
-
|
153
|
-
### Return type
|
154
|
-
|
155
|
-
nil (empty response body)
|
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
|
-
# **find**
|
169
|
-
> ContentLibraryItemFindResult find(request_body)
|
170
|
-
|
171
|
-
Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
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::LibraryItemApi.new
|
186
|
-
request_body = Content::ContentLibraryItemFind.new # ContentLibraryItemFind |
|
187
|
-
|
188
|
-
begin
|
189
|
-
#Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
190
|
-
result = api_instance.find(request_body)
|
191
|
-
p result
|
192
|
-
rescue VSphereAutomation::ApiError => e
|
193
|
-
puts "Exception when calling LibraryItemApi->find: #{e}"
|
194
|
-
end
|
195
|
-
```
|
196
|
-
|
197
|
-
### Parameters
|
198
|
-
|
199
|
-
Name | Type | Description | Notes
|
200
|
-
------------- | ------------- | ------------- | -------------
|
201
|
-
**request_body** | [**ContentLibraryItemFind**](ContentLibraryItemFind.md)| |
|
202
|
-
|
203
|
-
### Return type
|
204
|
-
|
205
|
-
[**ContentLibraryItemFindResult**](ContentLibraryItemFindResult.md)
|
206
|
-
|
207
|
-
### Authorization
|
208
|
-
|
209
|
-
[api_key](../README.md#api_key)
|
210
|
-
|
211
|
-
### HTTP request headers
|
212
|
-
|
213
|
-
- **Content-Type**: application/json
|
214
|
-
- **Accept**: application/json
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
# **get**
|
219
|
-
> ContentLibraryItemResult get(library_item_id)
|
220
|
-
|
221
|
-
Returns the {@link ItemModel} with the given identifier.
|
222
|
-
|
223
|
-
### Example
|
224
|
-
```ruby
|
225
|
-
# load the gem
|
226
|
-
require 'vsphere-automation-content'
|
227
|
-
# setup authorization
|
228
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
229
|
-
# Configure API key authorization: api_key
|
230
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
231
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
232
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
233
|
-
end
|
234
|
-
|
235
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
236
|
-
library_item_id = 'library_item_id_example' # String | Identifier of the library item to return.
|
237
|
-
|
238
|
-
begin
|
239
|
-
#Returns the {@link ItemModel} with the given identifier.
|
240
|
-
result = api_instance.get(library_item_id)
|
241
|
-
p result
|
242
|
-
rescue VSphereAutomation::ApiError => e
|
243
|
-
puts "Exception when calling LibraryItemApi->get: #{e}"
|
244
|
-
end
|
245
|
-
```
|
246
|
-
|
247
|
-
### Parameters
|
248
|
-
|
249
|
-
Name | Type | Description | Notes
|
250
|
-
------------- | ------------- | ------------- | -------------
|
251
|
-
**library_item_id** | **String**| Identifier of the library item to return. |
|
252
|
-
|
253
|
-
### Return type
|
254
|
-
|
255
|
-
[**ContentLibraryItemResult**](ContentLibraryItemResult.md)
|
256
|
-
|
257
|
-
### Authorization
|
258
|
-
|
259
|
-
[api_key](../README.md#api_key)
|
260
|
-
|
261
|
-
### HTTP request headers
|
262
|
-
|
263
|
-
- **Content-Type**: Not defined
|
264
|
-
- **Accept**: application/json
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
# **list**
|
269
|
-
> ContentLibraryItemListResult list(library_id)
|
270
|
-
|
271
|
-
Returns the identifiers of all items in the given library.
|
272
|
-
|
273
|
-
### Example
|
274
|
-
```ruby
|
275
|
-
# load the gem
|
276
|
-
require 'vsphere-automation-content'
|
277
|
-
# setup authorization
|
278
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
279
|
-
# Configure API key authorization: api_key
|
280
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
281
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
282
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
283
|
-
end
|
284
|
-
|
285
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
286
|
-
library_id = 'library_id_example' # String | Identifier of the library whose items should be returned.
|
287
|
-
|
288
|
-
begin
|
289
|
-
#Returns the identifiers of all items in the given library.
|
290
|
-
result = api_instance.list(library_id)
|
291
|
-
p result
|
292
|
-
rescue VSphereAutomation::ApiError => e
|
293
|
-
puts "Exception when calling LibraryItemApi->list: #{e}"
|
294
|
-
end
|
295
|
-
```
|
296
|
-
|
297
|
-
### Parameters
|
298
|
-
|
299
|
-
Name | Type | Description | Notes
|
300
|
-
------------- | ------------- | ------------- | -------------
|
301
|
-
**library_id** | **String**| Identifier of the library whose items should be returned. |
|
302
|
-
|
303
|
-
### Return type
|
304
|
-
|
305
|
-
[**ContentLibraryItemListResult**](ContentLibraryItemListResult.md)
|
306
|
-
|
307
|
-
### Authorization
|
308
|
-
|
309
|
-
[api_key](../README.md#api_key)
|
310
|
-
|
311
|
-
### HTTP request headers
|
312
|
-
|
313
|
-
- **Content-Type**: Not defined
|
314
|
-
- **Accept**: application/json
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
# **publish**
|
319
|
-
> publish(library_item_id, request_body)
|
320
|
-
|
321
|
-
Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library.
|
322
|
-
|
323
|
-
### Example
|
324
|
-
```ruby
|
325
|
-
# load the gem
|
326
|
-
require 'vsphere-automation-content'
|
327
|
-
# setup authorization
|
328
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
329
|
-
# Configure API key authorization: api_key
|
330
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
331
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
332
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
333
|
-
end
|
334
|
-
|
335
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
336
|
-
library_item_id = 'library_item_id_example' # String | Library item identifier.
|
337
|
-
request_body = Content::ContentLibraryItemPublish.new # ContentLibraryItemPublish |
|
338
|
-
|
339
|
-
begin
|
340
|
-
#Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library.
|
341
|
-
api_instance.publish(library_item_id, request_body)
|
342
|
-
rescue VSphereAutomation::ApiError => e
|
343
|
-
puts "Exception when calling LibraryItemApi->publish: #{e}"
|
344
|
-
end
|
345
|
-
```
|
346
|
-
|
347
|
-
### Parameters
|
348
|
-
|
349
|
-
Name | Type | Description | Notes
|
350
|
-
------------- | ------------- | ------------- | -------------
|
351
|
-
**library_item_id** | **String**| Library item identifier. |
|
352
|
-
**request_body** | [**ContentLibraryItemPublish**](ContentLibraryItemPublish.md)| |
|
353
|
-
|
354
|
-
### Return type
|
355
|
-
|
356
|
-
nil (empty response body)
|
357
|
-
|
358
|
-
### Authorization
|
359
|
-
|
360
|
-
[api_key](../README.md#api_key)
|
361
|
-
|
362
|
-
### HTTP request headers
|
363
|
-
|
364
|
-
- **Content-Type**: application/json
|
365
|
-
- **Accept**: application/json
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
# **update**
|
370
|
-
> update(library_item_id, request_body)
|
371
|
-
|
372
|
-
Updates the specified properties of a library item. <p> This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. <p> This {@term operation} cannot update a library item that is a member of a subscribed library. Those items must be updated in the source published library and synchronized to the subscribed library.
|
373
|
-
|
374
|
-
### Example
|
375
|
-
```ruby
|
376
|
-
# load the gem
|
377
|
-
require 'vsphere-automation-content'
|
378
|
-
# setup authorization
|
379
|
-
VSphereAutomation::Configuration.new.tap do |config|
|
380
|
-
# Configure API key authorization: api_key
|
381
|
-
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
382
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
383
|
-
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
384
|
-
end
|
385
|
-
|
386
|
-
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
387
|
-
library_item_id = 'library_item_id_example' # String | Identifier of the library item to update.
|
388
|
-
request_body = Content::ContentLibraryItemUpdate.new # ContentLibraryItemUpdate |
|
389
|
-
|
390
|
-
begin
|
391
|
-
#Updates the specified properties of a library item. <p> This is an incremental update to the library item. {@term Fields} that are {@term unset} in the update specification are left unchanged. <p> This {@term operation} cannot update a library item that is a member of a subscribed library. Those items must be updated in the source published library and synchronized to the subscribed library.
|
392
|
-
api_instance.update(library_item_id, request_body)
|
393
|
-
rescue VSphereAutomation::ApiError => e
|
394
|
-
puts "Exception when calling LibraryItemApi->update: #{e}"
|
395
|
-
end
|
396
|
-
```
|
397
|
-
|
398
|
-
### Parameters
|
399
|
-
|
400
|
-
Name | Type | Description | Notes
|
401
|
-
------------- | ------------- | ------------- | -------------
|
402
|
-
**library_item_id** | **String**| Identifier of the library item to update. |
|
403
|
-
**request_body** | [**ContentLibraryItemUpdate**](ContentLibraryItemUpdate.md)| |
|
404
|
-
|
405
|
-
### Return type
|
406
|
-
|
407
|
-
nil (empty response body)
|
408
|
-
|
409
|
-
### Authorization
|
410
|
-
|
411
|
-
[api_key](../README.md#api_key)
|
412
|
-
|
413
|
-
### HTTP request headers
|
414
|
-
|
415
|
-
- **Content-Type**: application/json
|
416
|
-
- **Accept**: application/json
|
417
|
-
|
418
|
-
|
419
|
-
|