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/LocalLibraryApi.md
CHANGED
@@ -8,11 +8,12 @@ Method | HTTP request | Description
|
|
8
8
|
[**delete**](LocalLibraryApi.md#delete) | **DELETE** /com/vmware/content/local-library/id:{library_id} | Deletes the specified local library. <p> Deleting a local library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
|
9
9
|
[**get**](LocalLibraryApi.md#get) | **GET** /com/vmware/content/local-library/id:{library_id} | Returns a given local library.
|
10
10
|
[**list**](LocalLibraryApi.md#list) | **GET** /com/vmware/content/local-library | Returns the identifiers of all local libraries in the Content Library.
|
11
|
+
[**publish**](LocalLibraryApi.md#publish) | **POST** /com/vmware/content/local-library/id:{library_id} | Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions.
|
11
12
|
[**update**](LocalLibraryApi.md#update) | **PATCH** /com/vmware/content/local-library/id:{library_id} | Updates the properties of a local library. <p> This is an incremental update to the local library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
|
12
13
|
|
13
14
|
|
14
15
|
# **create**
|
15
|
-
> ContentLocalLibraryCreateResult create(
|
16
|
+
> ContentLocalLibraryCreateResult create(request_body)
|
16
17
|
|
17
18
|
Creates a new local library.
|
18
19
|
|
@@ -20,13 +21,20 @@ Creates a new local library.
|
|
20
21
|
```ruby
|
21
22
|
# load the gem
|
22
23
|
require 'vsphere-automation-content'
|
24
|
+
# setup authorization
|
25
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
26
|
+
# Configure API key authorization: api_key
|
27
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
30
|
+
end
|
23
31
|
|
24
32
|
api_instance = VSphereAutomation::Content::LocalLibraryApi.new
|
25
|
-
|
33
|
+
request_body = Content::ContentLocalLibraryCreate.new # ContentLocalLibraryCreate |
|
26
34
|
|
27
35
|
begin
|
28
36
|
#Creates a new local library.
|
29
|
-
result = api_instance.create(
|
37
|
+
result = api_instance.create(request_body)
|
30
38
|
p result
|
31
39
|
rescue VSphereAutomation::ApiError => e
|
32
40
|
puts "Exception when calling LocalLibraryApi->create: #{e}"
|
@@ -37,7 +45,7 @@ end
|
|
37
45
|
|
38
46
|
Name | Type | Description | Notes
|
39
47
|
------------- | ------------- | ------------- | -------------
|
40
|
-
**
|
48
|
+
**request_body** | [**ContentLocalLibraryCreate**](ContentLocalLibraryCreate.md)| |
|
41
49
|
|
42
50
|
### Return type
|
43
51
|
|
@@ -45,12 +53,12 @@ Name | Type | Description | Notes
|
|
45
53
|
|
46
54
|
### Authorization
|
47
55
|
|
48
|
-
|
56
|
+
[api_key](../README.md#api_key)
|
49
57
|
|
50
58
|
### HTTP request headers
|
51
59
|
|
52
60
|
- **Content-Type**: application/json
|
53
|
-
- **Accept**:
|
61
|
+
- **Accept**: application/json
|
54
62
|
|
55
63
|
|
56
64
|
|
@@ -63,6 +71,13 @@ Deletes the specified local library. <p> Deleting a local library will remove th
|
|
63
71
|
```ruby
|
64
72
|
# load the gem
|
65
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
|
66
81
|
|
67
82
|
api_instance = VSphereAutomation::Content::LocalLibraryApi.new
|
68
83
|
library_id = 'library_id_example' # String | Identifier of the local library to delete.
|
@@ -87,12 +102,12 @@ nil (empty response body)
|
|
87
102
|
|
88
103
|
### Authorization
|
89
104
|
|
90
|
-
|
105
|
+
[api_key](../README.md#api_key)
|
91
106
|
|
92
107
|
### HTTP request headers
|
93
108
|
|
94
109
|
- **Content-Type**: Not defined
|
95
|
-
- **Accept**:
|
110
|
+
- **Accept**: application/json
|
96
111
|
|
97
112
|
|
98
113
|
|
@@ -105,6 +120,13 @@ Returns a given local library.
|
|
105
120
|
```ruby
|
106
121
|
# load the gem
|
107
122
|
require 'vsphere-automation-content'
|
123
|
+
# setup authorization
|
124
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
125
|
+
# Configure API key authorization: api_key
|
126
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
127
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
128
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
129
|
+
end
|
108
130
|
|
109
131
|
api_instance = VSphereAutomation::Content::LocalLibraryApi.new
|
110
132
|
library_id = 'library_id_example' # String | Identifier of the local library to return.
|
@@ -130,12 +152,12 @@ Name | Type | Description | Notes
|
|
130
152
|
|
131
153
|
### Authorization
|
132
154
|
|
133
|
-
|
155
|
+
[api_key](../README.md#api_key)
|
134
156
|
|
135
157
|
### HTTP request headers
|
136
158
|
|
137
159
|
- **Content-Type**: Not defined
|
138
|
-
- **Accept**:
|
160
|
+
- **Accept**: application/json
|
139
161
|
|
140
162
|
|
141
163
|
|
@@ -148,6 +170,13 @@ Returns the identifiers of all local libraries in the Content Library.
|
|
148
170
|
```ruby
|
149
171
|
# load the gem
|
150
172
|
require 'vsphere-automation-content'
|
173
|
+
# setup authorization
|
174
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
175
|
+
# Configure API key authorization: api_key
|
176
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
177
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
178
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
179
|
+
end
|
151
180
|
|
152
181
|
api_instance = VSphereAutomation::Content::LocalLibraryApi.new
|
153
182
|
|
@@ -169,17 +198,72 @@ This endpoint does not need any parameter.
|
|
169
198
|
|
170
199
|
### Authorization
|
171
200
|
|
172
|
-
|
201
|
+
[api_key](../README.md#api_key)
|
173
202
|
|
174
203
|
### HTTP request headers
|
175
204
|
|
176
205
|
- **Content-Type**: Not defined
|
177
|
-
- **Accept**:
|
206
|
+
- **Accept**: application/json
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
# **publish**
|
211
|
+
> publish(library_id, action, opts)
|
212
|
+
|
213
|
+
Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions.
|
214
|
+
|
215
|
+
### Example
|
216
|
+
```ruby
|
217
|
+
# load the gem
|
218
|
+
require 'vsphere-automation-content'
|
219
|
+
# setup authorization
|
220
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
221
|
+
# Configure API key authorization: api_key
|
222
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
223
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
224
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
225
|
+
end
|
226
|
+
|
227
|
+
api_instance = VSphereAutomation::Content::LocalLibraryApi.new
|
228
|
+
library_id = 'library_id_example' # String | Identifier of the published library.
|
229
|
+
action = 'action_example' # String | ~action=publish
|
230
|
+
opts = {
|
231
|
+
request_body: Content::ContentLocalLibraryPublish.new # ContentLocalLibraryPublish |
|
232
|
+
}
|
233
|
+
|
234
|
+
begin
|
235
|
+
#Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions.
|
236
|
+
api_instance.publish(library_id, action, opts)
|
237
|
+
rescue VSphereAutomation::ApiError => e
|
238
|
+
puts "Exception when calling LocalLibraryApi->publish: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
### Parameters
|
243
|
+
|
244
|
+
Name | Type | Description | Notes
|
245
|
+
------------- | ------------- | ------------- | -------------
|
246
|
+
**library_id** | **String**| Identifier of the published library. |
|
247
|
+
**action** | **String**| ~action=publish |
|
248
|
+
**request_body** | [**ContentLocalLibraryPublish**](ContentLocalLibraryPublish.md)| | [optional]
|
249
|
+
|
250
|
+
### Return type
|
251
|
+
|
252
|
+
nil (empty response body)
|
253
|
+
|
254
|
+
### Authorization
|
255
|
+
|
256
|
+
[api_key](../README.md#api_key)
|
257
|
+
|
258
|
+
### HTTP request headers
|
259
|
+
|
260
|
+
- **Content-Type**: application/json
|
261
|
+
- **Accept**: application/json
|
178
262
|
|
179
263
|
|
180
264
|
|
181
265
|
# **update**
|
182
|
-
> update(library_id,
|
266
|
+
> update(library_id, request_body)
|
183
267
|
|
184
268
|
Updates the properties of a local library. <p> This is an incremental update to the local library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
|
185
269
|
|
@@ -187,14 +271,21 @@ Updates the properties of a local library. <p> This is an incremental update to
|
|
187
271
|
```ruby
|
188
272
|
# load the gem
|
189
273
|
require 'vsphere-automation-content'
|
274
|
+
# setup authorization
|
275
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
276
|
+
# Configure API key authorization: api_key
|
277
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
278
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
279
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
280
|
+
end
|
190
281
|
|
191
282
|
api_instance = VSphereAutomation::Content::LocalLibraryApi.new
|
192
283
|
library_id = 'library_id_example' # String | Identifier of the local library to update.
|
193
|
-
|
284
|
+
request_body = Content::ContentLocalLibraryUpdate.new # ContentLocalLibraryUpdate |
|
194
285
|
|
195
286
|
begin
|
196
287
|
#Updates the properties of a local library. <p> This is an incremental update to the local library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
|
197
|
-
api_instance.update(library_id,
|
288
|
+
api_instance.update(library_id, request_body)
|
198
289
|
rescue VSphereAutomation::ApiError => e
|
199
290
|
puts "Exception when calling LocalLibraryApi->update: #{e}"
|
200
291
|
end
|
@@ -205,7 +296,7 @@ end
|
|
205
296
|
Name | Type | Description | Notes
|
206
297
|
------------- | ------------- | ------------- | -------------
|
207
298
|
**library_id** | **String**| Identifier of the local library to update. |
|
208
|
-
**
|
299
|
+
**request_body** | [**ContentLocalLibraryUpdate**](ContentLocalLibraryUpdate.md)| |
|
209
300
|
|
210
301
|
### Return type
|
211
302
|
|
@@ -213,12 +304,12 @@ nil (empty response body)
|
|
213
304
|
|
214
305
|
### Authorization
|
215
306
|
|
216
|
-
|
307
|
+
[api_key](../README.md#api_key)
|
217
308
|
|
218
309
|
### HTTP request headers
|
219
310
|
|
220
311
|
- **Content-Type**: application/json
|
221
|
-
- **Accept**:
|
312
|
+
- **Accept**: application/json
|
222
313
|
|
223
314
|
|
224
315
|
|
@@ -10,12 +10,12 @@ Method | HTTP request | Description
|
|
10
10
|
[**get**](SubscribedLibraryApi.md#get) | **GET** /com/vmware/content/subscribed-library/id:{library_id} | Returns a given subscribed library.
|
11
11
|
[**list**](SubscribedLibraryApi.md#list) | **GET** /com/vmware/content/subscribed-library | Returns the identifiers of all subscribed libraries in the Content Library.
|
12
12
|
[**probe**](SubscribedLibraryApi.md#probe) | **POST** /com/vmware/content/subscribed-library?~action=probe | Probes remote library subscription information, including URL, SSL certificate and password. The resulting {@link ProbeResult} {@term structure} describes whether or not the subscription configuration is successful.
|
13
|
-
[**sync**](SubscribedLibraryApi.md#sync) | **POST** /com/vmware/content/subscribed-library/id:{library_id}
|
13
|
+
[**sync**](SubscribedLibraryApi.md#sync) | **POST** /com/vmware/content/subscribed-library/id:{library_id} | Forces the synchronization of the subscribed library. <p> Synchronizing a subscribed library forcefully with this {@term operation} will perform the same synchronization behavior as would run periodically for the library. The {@link SubscriptionInfo#onDemand} setting is respected. Calling this {@term operation} on a library that is already in the process of synchronizing will have no effect.
|
14
14
|
[**update**](SubscribedLibraryApi.md#update) | **PATCH** /com/vmware/content/subscribed-library/id:{library_id} | Updates the properties of a subscribed library. <p> This is an incremental update to the subscribed library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
|
15
15
|
|
16
16
|
|
17
17
|
# **create**
|
18
|
-
> ContentSubscribedLibraryCreateResult create(
|
18
|
+
> ContentSubscribedLibraryCreateResult create(request_body)
|
19
19
|
|
20
20
|
Creates a new subscribed library. <p> Once created, the subscribed library will be empty. If the {@link LibraryModel#subscriptionInfo} property is set, the Content Library Service will attempt to synchronize to the remote source. This is an asynchronous operation so the content of the published library may not immediately appear.
|
21
21
|
|
@@ -23,13 +23,20 @@ Creates a new subscribed library. <p> Once created, the subscribed library will
|
|
23
23
|
```ruby
|
24
24
|
# load the gem
|
25
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
|
26
33
|
|
27
34
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
28
|
-
|
35
|
+
request_body = Content::ContentSubscribedLibraryCreate.new # ContentSubscribedLibraryCreate |
|
29
36
|
|
30
37
|
begin
|
31
38
|
#Creates a new subscribed library. <p> Once created, the subscribed library will be empty. If the {@link LibraryModel#subscriptionInfo} property is set, the Content Library Service will attempt to synchronize to the remote source. This is an asynchronous operation so the content of the published library may not immediately appear.
|
32
|
-
result = api_instance.create(
|
39
|
+
result = api_instance.create(request_body)
|
33
40
|
p result
|
34
41
|
rescue VSphereAutomation::ApiError => e
|
35
42
|
puts "Exception when calling SubscribedLibraryApi->create: #{e}"
|
@@ -40,7 +47,7 @@ end
|
|
40
47
|
|
41
48
|
Name | Type | Description | Notes
|
42
49
|
------------- | ------------- | ------------- | -------------
|
43
|
-
**
|
50
|
+
**request_body** | [**ContentSubscribedLibraryCreate**](ContentSubscribedLibraryCreate.md)| |
|
44
51
|
|
45
52
|
### Return type
|
46
53
|
|
@@ -48,12 +55,12 @@ Name | Type | Description | Notes
|
|
48
55
|
|
49
56
|
### Authorization
|
50
57
|
|
51
|
-
|
58
|
+
[api_key](../README.md#api_key)
|
52
59
|
|
53
60
|
### HTTP request headers
|
54
61
|
|
55
62
|
- **Content-Type**: application/json
|
56
|
-
- **Accept**:
|
63
|
+
- **Accept**: application/json
|
57
64
|
|
58
65
|
|
59
66
|
|
@@ -66,6 +73,13 @@ Deletes the specified subscribed library. <p> Deleting a subscribed library will
|
|
66
73
|
```ruby
|
67
74
|
# load the gem
|
68
75
|
require 'vsphere-automation-content'
|
76
|
+
# setup authorization
|
77
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
78
|
+
# Configure API key authorization: api_key
|
79
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
82
|
+
end
|
69
83
|
|
70
84
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
71
85
|
library_id = 'library_id_example' # String | Identifier of the subscribed library to delete.
|
@@ -90,12 +104,12 @@ nil (empty response body)
|
|
90
104
|
|
91
105
|
### Authorization
|
92
106
|
|
93
|
-
|
107
|
+
[api_key](../README.md#api_key)
|
94
108
|
|
95
109
|
### HTTP request headers
|
96
110
|
|
97
111
|
- **Content-Type**: Not defined
|
98
|
-
- **Accept**:
|
112
|
+
- **Accept**: application/json
|
99
113
|
|
100
114
|
|
101
115
|
|
@@ -108,6 +122,13 @@ Evicts the cached content of an on-demand subscribed library. <p> This {@term op
|
|
108
122
|
```ruby
|
109
123
|
# load the gem
|
110
124
|
require 'vsphere-automation-content'
|
125
|
+
# setup authorization
|
126
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
127
|
+
# Configure API key authorization: api_key
|
128
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
129
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
130
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
131
|
+
end
|
111
132
|
|
112
133
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
113
134
|
library_id = 'library_id_example' # String | Identifier of the subscribed library whose content should be evicted.
|
@@ -132,12 +153,12 @@ nil (empty response body)
|
|
132
153
|
|
133
154
|
### Authorization
|
134
155
|
|
135
|
-
|
156
|
+
[api_key](../README.md#api_key)
|
136
157
|
|
137
158
|
### HTTP request headers
|
138
159
|
|
139
160
|
- **Content-Type**: Not defined
|
140
|
-
- **Accept**:
|
161
|
+
- **Accept**: application/json
|
141
162
|
|
142
163
|
|
143
164
|
|
@@ -150,6 +171,13 @@ Returns a given subscribed library.
|
|
150
171
|
```ruby
|
151
172
|
# load the gem
|
152
173
|
require 'vsphere-automation-content'
|
174
|
+
# setup authorization
|
175
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
176
|
+
# Configure API key authorization: api_key
|
177
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
178
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
179
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
180
|
+
end
|
153
181
|
|
154
182
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
155
183
|
library_id = 'library_id_example' # String | Identifier of the subscribed library to return.
|
@@ -175,12 +203,12 @@ Name | Type | Description | Notes
|
|
175
203
|
|
176
204
|
### Authorization
|
177
205
|
|
178
|
-
|
206
|
+
[api_key](../README.md#api_key)
|
179
207
|
|
180
208
|
### HTTP request headers
|
181
209
|
|
182
210
|
- **Content-Type**: Not defined
|
183
|
-
- **Accept**:
|
211
|
+
- **Accept**: application/json
|
184
212
|
|
185
213
|
|
186
214
|
|
@@ -193,6 +221,13 @@ Returns the identifiers of all subscribed libraries in the Content Library.
|
|
193
221
|
```ruby
|
194
222
|
# load the gem
|
195
223
|
require 'vsphere-automation-content'
|
224
|
+
# setup authorization
|
225
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
226
|
+
# Configure API key authorization: api_key
|
227
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
228
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
229
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
230
|
+
end
|
196
231
|
|
197
232
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
198
233
|
|
@@ -214,17 +249,17 @@ This endpoint does not need any parameter.
|
|
214
249
|
|
215
250
|
### Authorization
|
216
251
|
|
217
|
-
|
252
|
+
[api_key](../README.md#api_key)
|
218
253
|
|
219
254
|
### HTTP request headers
|
220
255
|
|
221
256
|
- **Content-Type**: Not defined
|
222
|
-
- **Accept**:
|
257
|
+
- **Accept**: application/json
|
223
258
|
|
224
259
|
|
225
260
|
|
226
261
|
# **probe**
|
227
|
-
> ContentSubscribedLibraryProbeResult probe(
|
262
|
+
> ContentSubscribedLibraryProbeResult probe(request_body)
|
228
263
|
|
229
264
|
Probes remote library subscription information, including URL, SSL certificate and password. The resulting {@link ProbeResult} {@term structure} describes whether or not the subscription configuration is successful.
|
230
265
|
|
@@ -232,13 +267,20 @@ Probes remote library subscription information, including URL, SSL certificate a
|
|
232
267
|
```ruby
|
233
268
|
# load the gem
|
234
269
|
require 'vsphere-automation-content'
|
270
|
+
# setup authorization
|
271
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
272
|
+
# Configure API key authorization: api_key
|
273
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
274
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
275
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
276
|
+
end
|
235
277
|
|
236
278
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
237
|
-
|
279
|
+
request_body = Content::ContentSubscribedLibraryProbe.new # ContentSubscribedLibraryProbe |
|
238
280
|
|
239
281
|
begin
|
240
282
|
#Probes remote library subscription information, including URL, SSL certificate and password. The resulting {@link ProbeResult} {@term structure} describes whether or not the subscription configuration is successful.
|
241
|
-
result = api_instance.probe(
|
283
|
+
result = api_instance.probe(request_body)
|
242
284
|
p result
|
243
285
|
rescue VSphereAutomation::ApiError => e
|
244
286
|
puts "Exception when calling SubscribedLibraryApi->probe: #{e}"
|
@@ -249,7 +291,7 @@ end
|
|
249
291
|
|
250
292
|
Name | Type | Description | Notes
|
251
293
|
------------- | ------------- | ------------- | -------------
|
252
|
-
**
|
294
|
+
**request_body** | [**ContentSubscribedLibraryProbe**](ContentSubscribedLibraryProbe.md)| |
|
253
295
|
|
254
296
|
### Return type
|
255
297
|
|
@@ -257,17 +299,17 @@ Name | Type | Description | Notes
|
|
257
299
|
|
258
300
|
### Authorization
|
259
301
|
|
260
|
-
|
302
|
+
[api_key](../README.md#api_key)
|
261
303
|
|
262
304
|
### HTTP request headers
|
263
305
|
|
264
306
|
- **Content-Type**: application/json
|
265
|
-
- **Accept**:
|
307
|
+
- **Accept**: application/json
|
266
308
|
|
267
309
|
|
268
310
|
|
269
311
|
# **sync**
|
270
|
-
> sync(library_id)
|
312
|
+
> sync(library_id, action)
|
271
313
|
|
272
314
|
Forces the synchronization of the subscribed library. <p> Synchronizing a subscribed library forcefully with this {@term operation} will perform the same synchronization behavior as would run periodically for the library. The {@link SubscriptionInfo#onDemand} setting is respected. Calling this {@term operation} on a library that is already in the process of synchronizing will have no effect.
|
273
315
|
|
@@ -275,13 +317,21 @@ Forces the synchronization of the subscribed library. <p> Synchronizing a subscr
|
|
275
317
|
```ruby
|
276
318
|
# load the gem
|
277
319
|
require 'vsphere-automation-content'
|
320
|
+
# setup authorization
|
321
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
322
|
+
# Configure API key authorization: api_key
|
323
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
324
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
325
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
326
|
+
end
|
278
327
|
|
279
328
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
280
329
|
library_id = 'library_id_example' # String | Identifier of the subscribed library to synchronize.
|
330
|
+
action = 'action_example' # String | ~action=sync
|
281
331
|
|
282
332
|
begin
|
283
333
|
#Forces the synchronization of the subscribed library. <p> Synchronizing a subscribed library forcefully with this {@term operation} will perform the same synchronization behavior as would run periodically for the library. The {@link SubscriptionInfo#onDemand} setting is respected. Calling this {@term operation} on a library that is already in the process of synchronizing will have no effect.
|
284
|
-
api_instance.sync(library_id)
|
334
|
+
api_instance.sync(library_id, action)
|
285
335
|
rescue VSphereAutomation::ApiError => e
|
286
336
|
puts "Exception when calling SubscribedLibraryApi->sync: #{e}"
|
287
337
|
end
|
@@ -292,6 +342,7 @@ end
|
|
292
342
|
Name | Type | Description | Notes
|
293
343
|
------------- | ------------- | ------------- | -------------
|
294
344
|
**library_id** | **String**| Identifier of the subscribed library to synchronize. |
|
345
|
+
**action** | **String**| ~action=sync |
|
295
346
|
|
296
347
|
### Return type
|
297
348
|
|
@@ -299,17 +350,17 @@ nil (empty response body)
|
|
299
350
|
|
300
351
|
### Authorization
|
301
352
|
|
302
|
-
|
353
|
+
[api_key](../README.md#api_key)
|
303
354
|
|
304
355
|
### HTTP request headers
|
305
356
|
|
306
357
|
- **Content-Type**: Not defined
|
307
|
-
- **Accept**:
|
358
|
+
- **Accept**: application/json
|
308
359
|
|
309
360
|
|
310
361
|
|
311
362
|
# **update**
|
312
|
-
> update(library_id,
|
363
|
+
> update(library_id, request_body)
|
313
364
|
|
314
365
|
Updates the properties of a subscribed library. <p> This is an incremental update to the subscribed library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
|
315
366
|
|
@@ -317,14 +368,21 @@ Updates the properties of a subscribed library. <p> This is an incremental updat
|
|
317
368
|
```ruby
|
318
369
|
# load the gem
|
319
370
|
require 'vsphere-automation-content'
|
371
|
+
# setup authorization
|
372
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
373
|
+
# Configure API key authorization: api_key
|
374
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
375
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
376
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
377
|
+
end
|
320
378
|
|
321
379
|
api_instance = VSphereAutomation::Content::SubscribedLibraryApi.new
|
322
380
|
library_id = 'library_id_example' # String | Identifier of the subscribed library to update.
|
323
|
-
|
381
|
+
request_body = Content::ContentSubscribedLibraryUpdate.new # ContentSubscribedLibraryUpdate |
|
324
382
|
|
325
383
|
begin
|
326
384
|
#Updates the properties of a subscribed library. <p> This is an incremental update to the subscribed library. {@term Fields} that are {@term unset} in the update specification will be left unchanged.
|
327
|
-
api_instance.update(library_id,
|
385
|
+
api_instance.update(library_id, request_body)
|
328
386
|
rescue VSphereAutomation::ApiError => e
|
329
387
|
puts "Exception when calling SubscribedLibraryApi->update: #{e}"
|
330
388
|
end
|
@@ -335,7 +393,7 @@ end
|
|
335
393
|
Name | Type | Description | Notes
|
336
394
|
------------- | ------------- | ------------- | -------------
|
337
395
|
**library_id** | **String**| Identifier of the subscribed library to update. |
|
338
|
-
**
|
396
|
+
**request_body** | [**ContentSubscribedLibraryUpdate**](ContentSubscribedLibraryUpdate.md)| |
|
339
397
|
|
340
398
|
### Return type
|
341
399
|
|
@@ -343,12 +401,12 @@ nil (empty response body)
|
|
343
401
|
|
344
402
|
### Authorization
|
345
403
|
|
346
|
-
|
404
|
+
[api_key](../README.md#api_key)
|
347
405
|
|
348
406
|
### HTTP request headers
|
349
407
|
|
350
408
|
- **Content-Type**: application/json
|
351
|
-
- **Accept**:
|
409
|
+
- **Accept**: application/json
|
352
410
|
|
353
411
|
|
354
412
|
|