vsphere-automation-content 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +12 -1
- data/Gemfile.lock +57 -44
- data/README.md +61 -13
- data/Rakefile +8 -0
- data/docs/ConfigurationApi.md +30 -12
- data/docs/ContentConfigurationModel.md +1 -1
- data/docs/ContentLibraryItemDestinationSpec.md +8 -0
- data/docs/ContentLibraryItemFileInfo.md +1 -1
- data/docs/ContentLibraryItemFindSpec.md +1 -1
- data/docs/ContentLibraryItemModel.md +1 -1
- data/docs/ContentLibraryItemPublish.md +9 -0
- data/docs/ContentLibraryItemStorageInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionCertificateInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionFileInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionFileValidationResult.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionPreviewWarningInfo.md +1 -1
- data/docs/ContentLibraryItemUpdatesessionWarningBehavior.md +1 -1
- data/docs/ContentLibraryOptimizationInfo.md +1 -1
- data/docs/ContentLibraryPublishInfo.md +2 -2
- data/docs/ContentLibrarySourceInfo.md +9 -0
- data/docs/ContentLibrarySubscribedItemSync.md +1 -1
- data/docs/ContentLibrarySubscriptionInfo.md +3 -2
- data/docs/ContentLibrarySubscriptionsCreate.md +9 -0
- data/docs/ContentLibrarySubscriptionsCreateResult.md +8 -0
- data/docs/ContentLibrarySubscriptionsCreateSpec.md +8 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecNewSubscribedLibrary.md +12 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecPlacement.md +12 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibrary.md +13 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecSubscribedLibraryTarget.md +7 -0
- data/docs/ContentLibrarySubscriptionsCreateSpecVcenter.md +9 -0
- data/docs/ContentLibrarySubscriptionsDelete.md +8 -0
- data/docs/ContentLibrarySubscriptionsGet.md +8 -0
- data/docs/ContentLibrarySubscriptionsInfo.md +12 -0
- data/docs/ContentLibrarySubscriptionsListResult.md +8 -0
- data/docs/ContentLibrarySubscriptionsLocation.md +7 -0
- data/docs/ContentLibrarySubscriptionsPlacementInfo.md +12 -0
- data/docs/ContentLibrarySubscriptionsResult.md +8 -0
- data/docs/ContentLibrarySubscriptionsSummary.md +11 -0
- data/docs/ContentLibrarySubscriptionsUpdate.md +9 -0
- data/docs/ContentLibrarySubscriptionsUpdateSpec.md +9 -0
- data/docs/ContentLibrarySubscriptionsUpdateSpecPlacement.md +12 -0
- data/docs/ContentLibrarySubscriptionsUpdateSpecVcenter.md +9 -0
- data/docs/ContentLibrarySubscriptionsVcenterInfo.md +10 -0
- data/docs/ContentLocalLibraryDestinationSpec.md +8 -0
- data/docs/ContentLocalLibraryPublish.md +8 -0
- data/docs/LibraryApi.md +47 -17
- data/docs/LibraryItemApi.md +136 -31
- data/docs/LibraryItemDownloadSessionApi.md +76 -25
- data/docs/LibraryItemDownloadsessionFileApi.md +38 -15
- data/docs/LibraryItemFileApi.md +25 -9
- data/docs/LibraryItemStorageApi.md +25 -9
- data/docs/LibraryItemUpdateSessionApi.md +100 -35
- data/docs/LibraryItemUpdatesessionFileApi.md +60 -23
- data/docs/LibrarySubscribedItemApi.md +27 -11
- data/docs/LibrarySubscriptionsApi.md +269 -0
- data/docs/LocalLibraryApi.md +109 -18
- data/docs/SubscribedLibraryApi.md +89 -31
- data/docs/VapiStdErrorsAlreadyExists.md +9 -0
- data/docs/VapiStdErrorsAlreadyExistsError.md +9 -0
- data/docs/VapiStdErrorsError.md +9 -0
- data/docs/VapiStdErrorsErrorError.md +9 -0
- data/docs/VapiStdErrorsUnauthenticated.md +9 -0
- data/docs/VapiStdErrorsUnauthenticatedError.md +9 -0
- data/lib/vsphere-automation-content.rb +40 -9
- data/lib/vsphere-automation-content/api/configuration_api.rb +32 -23
- data/lib/vsphere-automation-content/api/library_api.rb +42 -33
- data/lib/vsphere-automation-content/api/library_item_api.rb +140 -62
- data/lib/vsphere-automation-content/api/library_item_download_session_api.rb +51 -42
- data/lib/vsphere-automation-content/api/library_item_downloadsession_file_api.rb +40 -31
- data/lib/vsphere-automation-content/api/library_item_file_api.rb +29 -20
- data/lib/vsphere-automation-content/api/library_item_storage_api.rb +29 -20
- data/lib/vsphere-automation-content/api/library_item_update_session_api.rb +67 -58
- data/lib/vsphere-automation-content/api/library_item_updatesession_file_api.rb +53 -44
- data/lib/vsphere-automation-content/api/library_subscribed_item_api.rb +32 -23
- data/lib/vsphere-automation-content/api/library_subscriptions_api.rb +325 -0
- data/lib/vsphere-automation-content/api/local_library_api.rb +97 -34
- data/lib/vsphere-automation-content/api/subscribed_library_api.rb +62 -53
- data/lib/vsphere-automation-content/api_client.rb +9 -5
- data/lib/vsphere-automation-content/api_error.rb +4 -6
- data/lib/vsphere-automation-content/configuration.rb +18 -6
- data/lib/vsphere-automation-content/models/content_configuration_model.rb +5 -7
- data/lib/vsphere-automation-content/models/content_configuration_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_configuration_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_find.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_find_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_find_spec.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_copy.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_copy_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_destination_spec.rb +187 -0
- data/lib/vsphere-automation-content/models/content_library_item_download_session_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_fail.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_keep_alive.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_model.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_download_session_model_state.rb +7 -9
- data/lib/vsphere-automation-content/models/content_library_item_download_session_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_info.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status.rb +9 -11
- data/lib/vsphere-automation-content/models/content_library_item_downloadsession_file_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_checksum_algorithm.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_item_file_checksum_info.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_file_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_file_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_find.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_find_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_find_spec.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_model.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_publish.rb +199 -0
- data/lib/vsphere-automation-content/models/content_library_item_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_storage_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_storage_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_storage_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_storage_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_transfer_endpoint.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_transfer_status.rb +9 -11
- data/lib/vsphere-automation-content/models/content_library_item_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_fail.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_keep_alive.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_model.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_model_state.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_item_update_session_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_update_session_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_certificate_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_spec.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_get.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_remove.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_source_type.rb +7 -9
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validate_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_error.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_result.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info_state.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_behavior.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_item_updatesession_warning_type.rb +8 -10
- data/lib/vsphere-automation-content/models/content_library_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_model.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_model_library_type.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_optimization_info.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_publish_info.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_publish_info_authentication_method.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_source_info.rb +192 -0
- data/lib/vsphere-automation-content/models/content_library_storage_backing.rb +4 -6
- data/lib/vsphere-automation-content/models/content_library_storage_backing_type.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_subscribed_item_sync.rb +5 -7
- data/lib/vsphere-automation-content/models/content_library_subscription_info.rb +19 -12
- data/lib/vsphere-automation-content/models/content_library_subscription_info_authentication_method.rb +6 -8
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create.rb +196 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_result.rb +186 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec.rb +186 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_new_subscribed_library.rb +244 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_placement.rb +222 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library.rb +237 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library_target.rb +28 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_vcenter.rb +197 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_delete.rb +187 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_get.rb +187 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_info.rb +239 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_list_result.rb +188 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_location.rb +28 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_placement_info.rb +222 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_result.rb +186 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_summary.rb +227 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update.rb +201 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec.rb +190 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_placement.rb +222 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_vcenter.rb +192 -0
- data/lib/vsphere-automation-content/models/content_library_subscriptions_vcenter_info.rb +212 -0
- data/lib/vsphere-automation-content/models/content_library_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_destination_spec.rb +187 -0
- data/lib/vsphere-automation-content/models/content_local_library_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_publish.rb +184 -0
- data/lib/vsphere-automation-content/models/content_local_library_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_local_library_update.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_create.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_create_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_list_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_probe.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_probe_result_status.rb +12 -14
- data/lib/vsphere-automation-content/models/content_subscribed_library_result.rb +4 -6
- data/lib/vsphere-automation-content/models/content_subscribed_library_update.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_already_exists.rb +199 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_already_exists_error.rb +190 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_error.rb +199 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_error_error.rb +190 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_found.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_not_found_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_busy_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated.rb +199 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated_error.rb +190 -0
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unauthorized_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_errors_unsupported_error.rb +4 -6
- data/lib/vsphere-automation-content/models/vapi_std_localizable_message.rb +4 -6
- data/lib/vsphere-automation-content/version.rb +5 -7
- data/spec/api/configuration_api_spec.rb +6 -7
- data/spec/api/library_api_spec.rb +7 -8
- data/spec/api/library_item_api_spec.rb +22 -10
- data/spec/api/library_item_download_session_api_spec.rb +8 -9
- data/spec/api/library_item_downloadsession_file_api_spec.rb +7 -8
- data/spec/api/library_item_file_api_spec.rb +6 -7
- data/spec/api/library_item_storage_api_spec.rb +6 -7
- data/spec/api/library_item_update_session_api_spec.rb +9 -10
- data/spec/api/library_item_updatesession_file_api_spec.rb +8 -9
- data/spec/api/library_subscribed_item_api_spec.rb +6 -7
- data/spec/api/library_subscriptions_api_spec.rb +90 -0
- data/spec/api/local_library_api_spec.rb +19 -8
- data/spec/api/subscribed_library_api_spec.rb +8 -9
- data/spec/api_client_spec.rb +4 -6
- data/spec/configuration_spec.rb +4 -6
- data/spec/models/content_configuration_model_spec.rb +4 -6
- data/spec/models/content_configuration_result_spec.rb +4 -6
- data/spec/models/content_configuration_update_spec.rb +4 -6
- data/spec/models/content_library_find_result_spec.rb +4 -6
- data/spec/models/content_library_find_spec.rb +4 -6
- data/spec/models/content_library_find_spec_spec.rb +4 -6
- data/spec/models/content_library_item_copy_result_spec.rb +4 -6
- data/spec/models/content_library_item_copy_spec.rb +4 -6
- data/spec/models/content_library_item_create_result_spec.rb +4 -6
- data/spec/models/content_library_item_create_spec.rb +4 -6
- data/spec/models/content_library_item_destination_spec_spec.rb +37 -0
- data/spec/models/content_library_item_download_session_create_result_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_create_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_fail_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_keep_alive_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_model_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_model_state_spec.rb +4 -6
- data/spec/models/content_library_item_download_session_result_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_endpoint_type_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_get_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_info_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_prepare_result_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_prepare_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_prepare_status_spec.rb +4 -6
- data/spec/models/content_library_item_downloadsession_file_result_spec.rb +4 -6
- data/spec/models/content_library_item_file_checksum_algorithm_spec.rb +4 -6
- data/spec/models/content_library_item_file_checksum_info_spec.rb +4 -6
- data/spec/models/content_library_item_file_get_spec.rb +4 -6
- data/spec/models/content_library_item_file_info_spec.rb +4 -6
- data/spec/models/content_library_item_file_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_file_result_spec.rb +4 -6
- data/spec/models/content_library_item_find_result_spec.rb +4 -6
- data/spec/models/content_library_item_find_spec.rb +4 -6
- data/spec/models/content_library_item_find_spec_spec.rb +4 -6
- data/spec/models/content_library_item_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_model_spec.rb +4 -6
- data/spec/models/content_library_item_publish_spec.rb +43 -0
- data/spec/models/content_library_item_result_spec.rb +4 -6
- data/spec/models/content_library_item_storage_get_spec.rb +4 -6
- data/spec/models/content_library_item_storage_info_spec.rb +4 -6
- data/spec/models/content_library_item_storage_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_storage_result_spec.rb +4 -6
- data/spec/models/content_library_item_transfer_endpoint_spec.rb +4 -6
- data/spec/models/content_library_item_transfer_status_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_create_result_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_create_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_fail_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_keep_alive_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_model_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_model_state_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_result_spec.rb +4 -6
- data/spec/models/content_library_item_update_session_update_spec.rb +4 -6
- data/spec/models/content_library_item_update_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_certificate_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_add_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_add_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_add_spec_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_get_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_list_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_remove_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_source_type_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_validate_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_validation_error_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_file_validation_result_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_preview_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_preview_info_state_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_preview_warning_info_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_warning_behavior_spec.rb +4 -6
- data/spec/models/content_library_item_updatesession_warning_type_spec.rb +4 -6
- data/spec/models/content_library_list_result_spec.rb +4 -6
- data/spec/models/content_library_model_library_type_spec.rb +4 -6
- data/spec/models/content_library_model_spec.rb +4 -6
- data/spec/models/content_library_optimization_info_spec.rb +4 -6
- data/spec/models/content_library_publish_info_authentication_method_spec.rb +4 -6
- data/spec/models/content_library_publish_info_spec.rb +4 -6
- data/spec/models/content_library_result_spec.rb +4 -6
- data/spec/models/content_library_source_info_spec.rb +43 -0
- data/spec/models/content_library_storage_backing_spec.rb +4 -6
- data/spec/models/content_library_storage_backing_type_spec.rb +4 -6
- data/spec/models/content_library_subscribed_item_sync_spec.rb +4 -6
- data/spec/models/content_library_subscription_info_authentication_method_spec.rb +4 -6
- data/spec/models/content_library_subscription_info_spec.rb +10 -6
- data/spec/models/content_library_subscriptions_create_result_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_create_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_create_spec_new_subscribed_library_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_create_spec_placement_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_create_spec_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_create_spec_subscribed_library_spec.rb +67 -0
- data/spec/models/content_library_subscriptions_create_spec_subscribed_library_target_spec.rb +31 -0
- data/spec/models/content_library_subscriptions_create_spec_vcenter_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_delete_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_get_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_info_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_list_result_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_location_spec.rb +31 -0
- data/spec/models/content_library_subscriptions_placement_info_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_result_spec.rb +37 -0
- data/spec/models/content_library_subscriptions_summary_spec.rb +55 -0
- data/spec/models/content_library_subscriptions_update_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_update_spec_placement_spec.rb +61 -0
- data/spec/models/content_library_subscriptions_update_spec_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_update_spec_vcenter_spec.rb +43 -0
- data/spec/models/content_library_subscriptions_vcenter_info_spec.rb +49 -0
- data/spec/models/content_library_update_spec.rb +4 -6
- data/spec/models/content_local_library_create_result_spec.rb +4 -6
- data/spec/models/content_local_library_create_spec.rb +4 -6
- data/spec/models/content_local_library_destination_spec_spec.rb +37 -0
- data/spec/models/content_local_library_list_result_spec.rb +4 -6
- data/spec/models/content_local_library_publish_spec.rb +37 -0
- data/spec/models/content_local_library_result_spec.rb +4 -6
- data/spec/models/content_local_library_update_spec.rb +4 -6
- data/spec/models/content_subscribed_library_create_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_create_spec.rb +4 -6
- data/spec/models/content_subscribed_library_list_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_probe_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_probe_result_status_spec.rb +4 -6
- data/spec/models/content_subscribed_library_probe_spec.rb +4 -6
- data/spec/models/content_subscribed_library_result_spec.rb +4 -6
- data/spec/models/content_subscribed_library_update_spec.rb +4 -6
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_already_exists_spec.rb +43 -0
- data/spec/models/vapi_std_errors_concurrent_change_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_concurrent_change_spec.rb +4 -6
- data/spec/models/vapi_std_errors_error_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_configuration_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_configuration_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_type_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_element_type_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_busy_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +43 -0
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +43 -0
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_spec.rb +4 -6
- data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
- data/spec/spec_helper.rb +4 -6
- data/vsphere-automation-content.gemspec +11 -14
- metadata +150 -33
data/docs/LibraryApi.md
CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**find**](LibraryApi.md#find) | **POST** /com/vmware/content/library
|
7
|
+
[**find**](LibraryApi.md#find) | **POST** /com/vmware/content/library | Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
8
8
|
[**get**](LibraryApi.md#get) | **GET** /com/vmware/content/library/id:{library_id} | Returns a given {@link LibraryModel}.
|
9
9
|
[**list**](LibraryApi.md#list) | **GET** /com/vmware/content/library | Returns the identifiers of all libraries of any type in the Content Library.
|
10
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
11
|
|
12
12
|
|
13
13
|
# **find**
|
14
|
-
> ContentLibraryFindResult find(
|
14
|
+
> ContentLibraryFindResult find(action, request_body)
|
15
15
|
|
16
16
|
Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
17
17
|
|
@@ -19,13 +19,21 @@ Returns a list of all the visible (as determined by authorization policy) librar
|
|
19
19
|
```ruby
|
20
20
|
# load the gem
|
21
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
|
22
29
|
|
23
30
|
api_instance = VSphereAutomation::Content::LibraryApi.new
|
24
|
-
|
31
|
+
action = 'action_example' # String | ~action=find
|
32
|
+
request_body = Content::ContentLibraryFind.new # ContentLibraryFind |
|
25
33
|
|
26
34
|
begin
|
27
35
|
#Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
28
|
-
result = api_instance.find(
|
36
|
+
result = api_instance.find(action, request_body)
|
29
37
|
p result
|
30
38
|
rescue VSphereAutomation::ApiError => e
|
31
39
|
puts "Exception when calling LibraryApi->find: #{e}"
|
@@ -36,7 +44,8 @@ end
|
|
36
44
|
|
37
45
|
Name | Type | Description | Notes
|
38
46
|
------------- | ------------- | ------------- | -------------
|
39
|
-
**
|
47
|
+
**action** | **String**| ~action=find |
|
48
|
+
**request_body** | [**ContentLibraryFind**](ContentLibraryFind.md)| |
|
40
49
|
|
41
50
|
### Return type
|
42
51
|
|
@@ -44,12 +53,12 @@ Name | Type | Description | Notes
|
|
44
53
|
|
45
54
|
### Authorization
|
46
55
|
|
47
|
-
|
56
|
+
[api_key](../README.md#api_key)
|
48
57
|
|
49
58
|
### HTTP request headers
|
50
59
|
|
51
60
|
- **Content-Type**: application/json
|
52
|
-
- **Accept**:
|
61
|
+
- **Accept**: application/json
|
53
62
|
|
54
63
|
|
55
64
|
|
@@ -62,6 +71,13 @@ Returns a given {@link LibraryModel}.
|
|
62
71
|
```ruby
|
63
72
|
# load the gem
|
64
73
|
require 'vsphere-automation-content'
|
74
|
+
# setup authorization
|
75
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
76
|
+
# Configure API key authorization: api_key
|
77
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
78
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
79
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
80
|
+
end
|
65
81
|
|
66
82
|
api_instance = VSphereAutomation::Content::LibraryApi.new
|
67
83
|
library_id = 'library_id_example' # String | Identifier of the library to return.
|
@@ -87,12 +103,12 @@ Name | Type | Description | Notes
|
|
87
103
|
|
88
104
|
### Authorization
|
89
105
|
|
90
|
-
|
106
|
+
[api_key](../README.md#api_key)
|
91
107
|
|
92
108
|
### HTTP request headers
|
93
109
|
|
94
110
|
- **Content-Type**: Not defined
|
95
|
-
- **Accept**:
|
111
|
+
- **Accept**: application/json
|
96
112
|
|
97
113
|
|
98
114
|
|
@@ -105,6 +121,13 @@ Returns the identifiers of all libraries of any type in the Content Library.
|
|
105
121
|
```ruby
|
106
122
|
# load the gem
|
107
123
|
require 'vsphere-automation-content'
|
124
|
+
# setup authorization
|
125
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
126
|
+
# Configure API key authorization: api_key
|
127
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
128
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
129
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
130
|
+
end
|
108
131
|
|
109
132
|
api_instance = VSphereAutomation::Content::LibraryApi.new
|
110
133
|
|
@@ -126,17 +149,17 @@ This endpoint does not need any parameter.
|
|
126
149
|
|
127
150
|
### Authorization
|
128
151
|
|
129
|
-
|
152
|
+
[api_key](../README.md#api_key)
|
130
153
|
|
131
154
|
### HTTP request headers
|
132
155
|
|
133
156
|
- **Content-Type**: Not defined
|
134
|
-
- **Accept**:
|
157
|
+
- **Accept**: application/json
|
135
158
|
|
136
159
|
|
137
160
|
|
138
161
|
# **update**
|
139
|
-
> update(library_id,
|
162
|
+
> update(library_id, request_body)
|
140
163
|
|
141
164
|
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}.
|
142
165
|
|
@@ -144,14 +167,21 @@ Updates the properties of a library. <p> This is an incremental update to the li
|
|
144
167
|
```ruby
|
145
168
|
# load the gem
|
146
169
|
require 'vsphere-automation-content'
|
170
|
+
# setup authorization
|
171
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
172
|
+
# Configure API key authorization: api_key
|
173
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
174
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
175
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
176
|
+
end
|
147
177
|
|
148
178
|
api_instance = VSphereAutomation::Content::LibraryApi.new
|
149
179
|
library_id = 'library_id_example' # String | Identifier of the library to update.
|
150
|
-
|
180
|
+
request_body = Content::ContentLibraryUpdate.new # ContentLibraryUpdate |
|
151
181
|
|
152
182
|
begin
|
153
183
|
#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}.
|
154
|
-
api_instance.update(library_id,
|
184
|
+
api_instance.update(library_id, request_body)
|
155
185
|
rescue VSphereAutomation::ApiError => e
|
156
186
|
puts "Exception when calling LibraryApi->update: #{e}"
|
157
187
|
end
|
@@ -162,7 +192,7 @@ end
|
|
162
192
|
Name | Type | Description | Notes
|
163
193
|
------------- | ------------- | ------------- | -------------
|
164
194
|
**library_id** | **String**| Identifier of the library to update. |
|
165
|
-
**
|
195
|
+
**request_body** | [**ContentLibraryUpdate**](ContentLibraryUpdate.md)| |
|
166
196
|
|
167
197
|
### Return type
|
168
198
|
|
@@ -170,12 +200,12 @@ nil (empty response body)
|
|
170
200
|
|
171
201
|
### Authorization
|
172
202
|
|
173
|
-
|
203
|
+
[api_key](../README.md#api_key)
|
174
204
|
|
175
205
|
### HTTP request headers
|
176
206
|
|
177
207
|
- **Content-Type**: application/json
|
178
|
-
- **Accept**:
|
208
|
+
- **Accept**: application/json
|
179
209
|
|
180
210
|
|
181
211
|
|
data/docs/LibraryItemApi.md
CHANGED
@@ -4,17 +4,18 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**copy**](LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id}
|
7
|
+
[**copy**](LibraryItemApi.md#copy) | **POST** /com/vmware/content/library/item/id:{source_library_item_id} | 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
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
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
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
11
|
[**get**](LibraryItemApi.md#get) | **GET** /com/vmware/content/library/item/id:{library_item_id} | Returns the {@link ItemModel} with the given identifier.
|
12
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} | 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.
|
13
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.
|
14
15
|
|
15
16
|
|
16
17
|
# **copy**
|
17
|
-
> ContentLibraryItemCopyResult copy(source_library_item_id,
|
18
|
+
> ContentLibraryItemCopyResult copy(source_library_item_id, action, request_body)
|
18
19
|
|
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.
|
20
21
|
|
@@ -22,14 +23,22 @@ Copies a library item. <p> Copying a library item allows a duplicate to be made
|
|
22
23
|
```ruby
|
23
24
|
# load the gem
|
24
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
|
25
33
|
|
26
34
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
27
35
|
source_library_item_id = 'source_library_item_id_example' # String | Identifier of the existing library item from which the content will be copied.
|
28
|
-
|
36
|
+
action = 'action_example' # String | ~action=copy
|
37
|
+
request_body = Content::ContentLibraryItemCopy.new # ContentLibraryItemCopy |
|
29
38
|
|
30
39
|
begin
|
31
40
|
#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.
|
32
|
-
result = api_instance.copy(source_library_item_id,
|
41
|
+
result = api_instance.copy(source_library_item_id, action, request_body)
|
33
42
|
p result
|
34
43
|
rescue VSphereAutomation::ApiError => e
|
35
44
|
puts "Exception when calling LibraryItemApi->copy: #{e}"
|
@@ -41,7 +50,8 @@ end
|
|
41
50
|
Name | Type | Description | Notes
|
42
51
|
------------- | ------------- | ------------- | -------------
|
43
52
|
**source_library_item_id** | **String**| Identifier of the existing library item from which the content will be copied. |
|
44
|
-
**
|
53
|
+
**action** | **String**| ~action=copy |
|
54
|
+
**request_body** | [**ContentLibraryItemCopy**](ContentLibraryItemCopy.md)| |
|
45
55
|
|
46
56
|
### Return type
|
47
57
|
|
@@ -49,17 +59,17 @@ Name | Type | Description | Notes
|
|
49
59
|
|
50
60
|
### Authorization
|
51
61
|
|
52
|
-
|
62
|
+
[api_key](../README.md#api_key)
|
53
63
|
|
54
64
|
### HTTP request headers
|
55
65
|
|
56
66
|
- **Content-Type**: application/json
|
57
|
-
- **Accept**:
|
67
|
+
- **Accept**: application/json
|
58
68
|
|
59
69
|
|
60
70
|
|
61
71
|
# **create**
|
62
|
-
> ContentLibraryItemCreateResult create(
|
72
|
+
> ContentLibraryItemCreateResult create(request_body)
|
63
73
|
|
64
74
|
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.
|
65
75
|
|
@@ -67,13 +77,20 @@ Creates a new library item. <p> A new library item is created without any conten
|
|
67
77
|
```ruby
|
68
78
|
# load the gem
|
69
79
|
require 'vsphere-automation-content'
|
80
|
+
# setup authorization
|
81
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
82
|
+
# Configure API key authorization: api_key
|
83
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
84
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
85
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
86
|
+
end
|
70
87
|
|
71
88
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
72
|
-
|
89
|
+
request_body = Content::ContentLibraryItemCreate.new # ContentLibraryItemCreate |
|
73
90
|
|
74
91
|
begin
|
75
92
|
#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.
|
76
|
-
result = api_instance.create(
|
93
|
+
result = api_instance.create(request_body)
|
77
94
|
p result
|
78
95
|
rescue VSphereAutomation::ApiError => e
|
79
96
|
puts "Exception when calling LibraryItemApi->create: #{e}"
|
@@ -84,7 +101,7 @@ end
|
|
84
101
|
|
85
102
|
Name | Type | Description | Notes
|
86
103
|
------------- | ------------- | ------------- | -------------
|
87
|
-
**
|
104
|
+
**request_body** | [**ContentLibraryItemCreate**](ContentLibraryItemCreate.md)| |
|
88
105
|
|
89
106
|
### Return type
|
90
107
|
|
@@ -92,12 +109,12 @@ Name | Type | Description | Notes
|
|
92
109
|
|
93
110
|
### Authorization
|
94
111
|
|
95
|
-
|
112
|
+
[api_key](../README.md#api_key)
|
96
113
|
|
97
114
|
### HTTP request headers
|
98
115
|
|
99
116
|
- **Content-Type**: application/json
|
100
|
-
- **Accept**:
|
117
|
+
- **Accept**: application/json
|
101
118
|
|
102
119
|
|
103
120
|
|
@@ -110,6 +127,13 @@ Deletes a library item. <p> This {@term operation} will immediately remove the i
|
|
110
127
|
```ruby
|
111
128
|
# load the gem
|
112
129
|
require 'vsphere-automation-content'
|
130
|
+
# setup authorization
|
131
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
132
|
+
# Configure API key authorization: api_key
|
133
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
134
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
135
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
136
|
+
end
|
113
137
|
|
114
138
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
115
139
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item to delete.
|
@@ -134,17 +158,17 @@ nil (empty response body)
|
|
134
158
|
|
135
159
|
### Authorization
|
136
160
|
|
137
|
-
|
161
|
+
[api_key](../README.md#api_key)
|
138
162
|
|
139
163
|
### HTTP request headers
|
140
164
|
|
141
165
|
- **Content-Type**: Not defined
|
142
|
-
- **Accept**:
|
166
|
+
- **Accept**: application/json
|
143
167
|
|
144
168
|
|
145
169
|
|
146
170
|
# **find**
|
147
|
-
> ContentLibraryItemFindResult find(
|
171
|
+
> ContentLibraryItemFindResult find(request_body)
|
148
172
|
|
149
173
|
Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
150
174
|
|
@@ -152,13 +176,20 @@ Returns identifiers of all the visible (as determined by authorization policy) l
|
|
152
176
|
```ruby
|
153
177
|
# load the gem
|
154
178
|
require 'vsphere-automation-content'
|
179
|
+
# setup authorization
|
180
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
181
|
+
# Configure API key authorization: api_key
|
182
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
183
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
184
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
185
|
+
end
|
155
186
|
|
156
187
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
157
|
-
|
188
|
+
request_body = Content::ContentLibraryItemFind.new # ContentLibraryItemFind |
|
158
189
|
|
159
190
|
begin
|
160
191
|
#Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested {@link Item.FindSpec}.
|
161
|
-
result = api_instance.find(
|
192
|
+
result = api_instance.find(request_body)
|
162
193
|
p result
|
163
194
|
rescue VSphereAutomation::ApiError => e
|
164
195
|
puts "Exception when calling LibraryItemApi->find: #{e}"
|
@@ -169,7 +200,7 @@ end
|
|
169
200
|
|
170
201
|
Name | Type | Description | Notes
|
171
202
|
------------- | ------------- | ------------- | -------------
|
172
|
-
**
|
203
|
+
**request_body** | [**ContentLibraryItemFind**](ContentLibraryItemFind.md)| |
|
173
204
|
|
174
205
|
### Return type
|
175
206
|
|
@@ -177,12 +208,12 @@ Name | Type | Description | Notes
|
|
177
208
|
|
178
209
|
### Authorization
|
179
210
|
|
180
|
-
|
211
|
+
[api_key](../README.md#api_key)
|
181
212
|
|
182
213
|
### HTTP request headers
|
183
214
|
|
184
215
|
- **Content-Type**: application/json
|
185
|
-
- **Accept**:
|
216
|
+
- **Accept**: application/json
|
186
217
|
|
187
218
|
|
188
219
|
|
@@ -195,6 +226,13 @@ Returns the {@link ItemModel} with the given identifier.
|
|
195
226
|
```ruby
|
196
227
|
# load the gem
|
197
228
|
require 'vsphere-automation-content'
|
229
|
+
# setup authorization
|
230
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
231
|
+
# Configure API key authorization: api_key
|
232
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
233
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
234
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
235
|
+
end
|
198
236
|
|
199
237
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
200
238
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item to return.
|
@@ -220,12 +258,12 @@ Name | Type | Description | Notes
|
|
220
258
|
|
221
259
|
### Authorization
|
222
260
|
|
223
|
-
|
261
|
+
[api_key](../README.md#api_key)
|
224
262
|
|
225
263
|
### HTTP request headers
|
226
264
|
|
227
265
|
- **Content-Type**: Not defined
|
228
|
-
- **Accept**:
|
266
|
+
- **Accept**: application/json
|
229
267
|
|
230
268
|
|
231
269
|
|
@@ -238,6 +276,13 @@ Returns the identifiers of all items in the given library.
|
|
238
276
|
```ruby
|
239
277
|
# load the gem
|
240
278
|
require 'vsphere-automation-content'
|
279
|
+
# setup authorization
|
280
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
281
|
+
# Configure API key authorization: api_key
|
282
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
283
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
284
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
285
|
+
end
|
241
286
|
|
242
287
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
243
288
|
library_id = 'library_id_example' # String | Identifier of the library whose items should be returned.
|
@@ -263,17 +308,70 @@ Name | Type | Description | Notes
|
|
263
308
|
|
264
309
|
### Authorization
|
265
310
|
|
266
|
-
|
311
|
+
[api_key](../README.md#api_key)
|
267
312
|
|
268
313
|
### HTTP request headers
|
269
314
|
|
270
315
|
- **Content-Type**: Not defined
|
271
|
-
- **Accept**:
|
316
|
+
- **Accept**: application/json
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
# **publish**
|
321
|
+
> publish(library_item_id, action, request_body)
|
322
|
+
|
323
|
+
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.
|
324
|
+
|
325
|
+
### Example
|
326
|
+
```ruby
|
327
|
+
# load the gem
|
328
|
+
require 'vsphere-automation-content'
|
329
|
+
# setup authorization
|
330
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
331
|
+
# Configure API key authorization: api_key
|
332
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
333
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
334
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
335
|
+
end
|
336
|
+
|
337
|
+
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
338
|
+
library_item_id = 'library_item_id_example' # String | Library item identifier.
|
339
|
+
action = 'action_example' # String | ~action=publish
|
340
|
+
request_body = Content::ContentLibraryItemPublish.new # ContentLibraryItemPublish |
|
341
|
+
|
342
|
+
begin
|
343
|
+
#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.
|
344
|
+
api_instance.publish(library_item_id, action, request_body)
|
345
|
+
rescue VSphereAutomation::ApiError => e
|
346
|
+
puts "Exception when calling LibraryItemApi->publish: #{e}"
|
347
|
+
end
|
348
|
+
```
|
349
|
+
|
350
|
+
### Parameters
|
351
|
+
|
352
|
+
Name | Type | Description | Notes
|
353
|
+
------------- | ------------- | ------------- | -------------
|
354
|
+
**library_item_id** | **String**| Library item identifier. |
|
355
|
+
**action** | **String**| ~action=publish |
|
356
|
+
**request_body** | [**ContentLibraryItemPublish**](ContentLibraryItemPublish.md)| |
|
357
|
+
|
358
|
+
### Return type
|
359
|
+
|
360
|
+
nil (empty response body)
|
361
|
+
|
362
|
+
### Authorization
|
363
|
+
|
364
|
+
[api_key](../README.md#api_key)
|
365
|
+
|
366
|
+
### HTTP request headers
|
367
|
+
|
368
|
+
- **Content-Type**: application/json
|
369
|
+
- **Accept**: application/json
|
272
370
|
|
273
371
|
|
274
372
|
|
275
373
|
# **update**
|
276
|
-
> update(library_item_id,
|
374
|
+
> update(library_item_id, request_body)
|
277
375
|
|
278
376
|
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.
|
279
377
|
|
@@ -281,14 +379,21 @@ Updates the specified properties of a library item. <p> This is an incremental u
|
|
281
379
|
```ruby
|
282
380
|
# load the gem
|
283
381
|
require 'vsphere-automation-content'
|
382
|
+
# setup authorization
|
383
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
384
|
+
# Configure API key authorization: api_key
|
385
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
386
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
387
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
388
|
+
end
|
284
389
|
|
285
390
|
api_instance = VSphereAutomation::Content::LibraryItemApi.new
|
286
391
|
library_item_id = 'library_item_id_example' # String | Identifier of the library item to update.
|
287
|
-
|
392
|
+
request_body = Content::ContentLibraryItemUpdate.new # ContentLibraryItemUpdate |
|
288
393
|
|
289
394
|
begin
|
290
395
|
#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.
|
291
|
-
api_instance.update(library_item_id,
|
396
|
+
api_instance.update(library_item_id, request_body)
|
292
397
|
rescue VSphereAutomation::ApiError => e
|
293
398
|
puts "Exception when calling LibraryItemApi->update: #{e}"
|
294
399
|
end
|
@@ -299,7 +404,7 @@ end
|
|
299
404
|
Name | Type | Description | Notes
|
300
405
|
------------- | ------------- | ------------- | -------------
|
301
406
|
**library_item_id** | **String**| Identifier of the library item to update. |
|
302
|
-
**
|
407
|
+
**request_body** | [**ContentLibraryItemUpdate**](ContentLibraryItemUpdate.md)| |
|
303
408
|
|
304
409
|
### Return type
|
305
410
|
|
@@ -307,12 +412,12 @@ nil (empty response body)
|
|
307
412
|
|
308
413
|
### Authorization
|
309
414
|
|
310
|
-
|
415
|
+
[api_key](../README.md#api_key)
|
311
416
|
|
312
417
|
### HTTP request headers
|
313
418
|
|
314
419
|
- **Content-Type**: application/json
|
315
|
-
- **Accept**:
|
420
|
+
- **Accept**: application/json
|
316
421
|
|
317
422
|
|
318
423
|
|