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
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# content
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -19,26 +17,26 @@ module VSphereAutomation
|
|
19
17
|
@api_client = api_client
|
20
18
|
end
|
21
19
|
# Creates a new local library.
|
22
|
-
# @param
|
20
|
+
# @param request_body
|
23
21
|
# @param [Hash] opts the optional parameters
|
24
22
|
# @return [ContentLocalLibraryCreateResult|VapiStdErrorsUnsupportedError|]
|
25
|
-
def create(
|
26
|
-
data, _status_code, _headers = create_with_http_info(
|
23
|
+
def create(request_body, opts = {})
|
24
|
+
data, _status_code, _headers = create_with_http_info(request_body, opts)
|
27
25
|
data
|
28
26
|
end
|
29
27
|
|
30
28
|
# Creates a new local library.
|
31
29
|
# @api private
|
32
|
-
# @param
|
30
|
+
# @param request_body
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(ContentLocalLibraryCreateResult|VapiStdErrorsUnsupportedError|, Fixnum, Hash)>] data, response status code and response headers
|
35
|
-
def create_with_http_info(
|
33
|
+
def create_with_http_info(request_body, opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: LocalLibraryApi.create ...'
|
38
36
|
end
|
39
|
-
# verify the required parameter '
|
40
|
-
if @api_client.config.client_side_validation &&
|
41
|
-
fail ArgumentError, "Missing the required parameter '
|
37
|
+
# verify the required parameter 'request_body' is set
|
38
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LocalLibraryApi.create"
|
42
40
|
end
|
43
41
|
# resource path
|
44
42
|
local_var_path = '/com/vmware/content/local-library'
|
@@ -49,7 +47,7 @@ module VSphereAutomation
|
|
49
47
|
# header parameters
|
50
48
|
header_params = {}
|
51
49
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
51
|
# HTTP header 'Content-Type'
|
54
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
53
|
|
@@ -57,8 +55,8 @@ module VSphereAutomation
|
|
57
55
|
form_params = {}
|
58
56
|
|
59
57
|
# http body (model)
|
60
|
-
post_body = @api_client.object_to_http_body(
|
61
|
-
auth_names = []
|
58
|
+
post_body = @api_client.object_to_http_body(request_body)
|
59
|
+
auth_names = ['api_key']
|
62
60
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
61
|
:header_params => header_params,
|
64
62
|
:query_params => query_params,
|
@@ -105,14 +103,14 @@ module VSphereAutomation
|
|
105
103
|
# header parameters
|
106
104
|
header_params = {}
|
107
105
|
# HTTP header 'Accept' (if needed)
|
108
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
107
|
|
110
108
|
# form parameters
|
111
109
|
form_params = {}
|
112
110
|
|
113
111
|
# http body (model)
|
114
112
|
post_body = nil
|
115
|
-
auth_names = []
|
113
|
+
auth_names = ['api_key']
|
116
114
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
117
115
|
:header_params => header_params,
|
118
116
|
:query_params => query_params,
|
@@ -155,14 +153,14 @@ module VSphereAutomation
|
|
155
153
|
# header parameters
|
156
154
|
header_params = {}
|
157
155
|
# HTTP header 'Accept' (if needed)
|
158
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
159
157
|
|
160
158
|
# form parameters
|
161
159
|
form_params = {}
|
162
160
|
|
163
161
|
# http body (model)
|
164
162
|
post_body = nil
|
165
|
-
auth_names = []
|
163
|
+
auth_names = ['api_key']
|
166
164
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
167
165
|
:header_params => header_params,
|
168
166
|
:query_params => query_params,
|
@@ -204,14 +202,14 @@ module VSphereAutomation
|
|
204
202
|
# header parameters
|
205
203
|
header_params = {}
|
206
204
|
# HTTP header 'Accept' (if needed)
|
207
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
205
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
208
206
|
|
209
207
|
# form parameters
|
210
208
|
form_params = {}
|
211
209
|
|
212
210
|
# http body (model)
|
213
211
|
post_body = nil
|
214
|
-
auth_names = []
|
212
|
+
auth_names = ['api_key']
|
215
213
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
216
214
|
:header_params => header_params,
|
217
215
|
:query_params => query_params,
|
@@ -226,23 +224,88 @@ module VSphereAutomation
|
|
226
224
|
end
|
227
225
|
return data, status_code, headers
|
228
226
|
end
|
227
|
+
# Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions.
|
228
|
+
# @param library_id Identifier of the published library.
|
229
|
+
# @param action ~action=publish
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [ContentLocalLibraryPublish] :request_body
|
232
|
+
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
233
|
+
def publish(library_id, action, opts = {})
|
234
|
+
publish_with_http_info(library_id, action, opts)
|
235
|
+
nil
|
236
|
+
end
|
237
|
+
|
238
|
+
# Publishes the library to specified subscriptions. If no subscriptions are specified, then publishes the library to all its subscriptions.
|
239
|
+
# @api private
|
240
|
+
# @param library_id Identifier of the published library.
|
241
|
+
# @param action ~action=publish
|
242
|
+
# @param [Hash] opts the optional parameters
|
243
|
+
# @option opts [ContentLocalLibraryPublish] :request_body
|
244
|
+
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
245
|
+
def publish_with_http_info(library_id, action, opts = {})
|
246
|
+
if @api_client.config.debugging
|
247
|
+
@api_client.config.logger.debug 'Calling API: LocalLibraryApi.publish ...'
|
248
|
+
end
|
249
|
+
# verify the required parameter 'library_id' is set
|
250
|
+
if @api_client.config.client_side_validation && library_id.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'library_id' when calling LocalLibraryApi.publish"
|
252
|
+
end
|
253
|
+
# verify the required parameter 'action' is set
|
254
|
+
if @api_client.config.client_side_validation && action.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LocalLibraryApi.publish"
|
256
|
+
end
|
257
|
+
# verify enum value
|
258
|
+
if @api_client.config.client_side_validation && !['publish'].include?(action)
|
259
|
+
fail ArgumentError, "invalid value for 'action', must be one of publish"
|
260
|
+
end
|
261
|
+
# resource path
|
262
|
+
local_var_path = '/com/vmware/content/local-library/id:{library_id}'.sub('{' + 'library_id' + '}', library_id.to_s)
|
263
|
+
|
264
|
+
# query parameters
|
265
|
+
query_params = {}
|
266
|
+
query_params[:'~action'] = action
|
267
|
+
|
268
|
+
# header parameters
|
269
|
+
header_params = {}
|
270
|
+
# HTTP header 'Accept' (if needed)
|
271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
272
|
+
# HTTP header 'Content-Type'
|
273
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
274
|
+
|
275
|
+
# form parameters
|
276
|
+
form_params = {}
|
277
|
+
|
278
|
+
# http body (model)
|
279
|
+
post_body = @api_client.object_to_http_body(opts[:'request_body'])
|
280
|
+
auth_names = ['api_key']
|
281
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
282
|
+
:header_params => header_params,
|
283
|
+
:query_params => query_params,
|
284
|
+
:form_params => form_params,
|
285
|
+
:body => post_body,
|
286
|
+
:auth_names => auth_names)
|
287
|
+
if @api_client.config.debugging
|
288
|
+
@api_client.config.logger.debug "API called: LocalLibraryApi#publish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
289
|
+
end
|
290
|
+
return data, status_code, headers
|
291
|
+
end
|
229
292
|
# 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.
|
230
293
|
# @param library_id Identifier of the local library to update.
|
231
|
-
# @param
|
294
|
+
# @param request_body
|
232
295
|
# @param [Hash] opts the optional parameters
|
233
296
|
# @return [|VapiStdErrorsConcurrentChangeError|VapiStdErrorsNotFoundError|nil]
|
234
|
-
def update(library_id,
|
235
|
-
update_with_http_info(library_id,
|
297
|
+
def update(library_id, request_body, opts = {})
|
298
|
+
update_with_http_info(library_id, request_body, opts)
|
236
299
|
nil
|
237
300
|
end
|
238
301
|
|
239
302
|
# 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.
|
240
303
|
# @api private
|
241
304
|
# @param library_id Identifier of the local library to update.
|
242
|
-
# @param
|
305
|
+
# @param request_body
|
243
306
|
# @param [Hash] opts the optional parameters
|
244
307
|
# @return [Array<(|VapiStdErrorsConcurrentChangeError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
245
|
-
def update_with_http_info(library_id,
|
308
|
+
def update_with_http_info(library_id, request_body, opts = {})
|
246
309
|
if @api_client.config.debugging
|
247
310
|
@api_client.config.logger.debug 'Calling API: LocalLibraryApi.update ...'
|
248
311
|
end
|
@@ -250,9 +313,9 @@ module VSphereAutomation
|
|
250
313
|
if @api_client.config.client_side_validation && library_id.nil?
|
251
314
|
fail ArgumentError, "Missing the required parameter 'library_id' when calling LocalLibraryApi.update"
|
252
315
|
end
|
253
|
-
# verify the required parameter '
|
254
|
-
if @api_client.config.client_side_validation &&
|
255
|
-
fail ArgumentError, "Missing the required parameter '
|
316
|
+
# verify the required parameter 'request_body' is set
|
317
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LocalLibraryApi.update"
|
256
319
|
end
|
257
320
|
# resource path
|
258
321
|
local_var_path = '/com/vmware/content/local-library/id:{library_id}'.sub('{' + 'library_id' + '}', library_id.to_s)
|
@@ -263,7 +326,7 @@ module VSphereAutomation
|
|
263
326
|
# header parameters
|
264
327
|
header_params = {}
|
265
328
|
# HTTP header 'Accept' (if needed)
|
266
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
329
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
267
330
|
# HTTP header 'Content-Type'
|
268
331
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
269
332
|
|
@@ -271,8 +334,8 @@ module VSphereAutomation
|
|
271
334
|
form_params = {}
|
272
335
|
|
273
336
|
# http body (model)
|
274
|
-
post_body = @api_client.object_to_http_body(
|
275
|
-
auth_names = []
|
337
|
+
post_body = @api_client.object_to_http_body(request_body)
|
338
|
+
auth_names = ['api_key']
|
276
339
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
277
340
|
:header_params => header_params,
|
278
341
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# content
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# content - VMware vSphere® Content Library empowers vSphere Admins to effectively manage VM templates, vApps, ISO images and scripts with ease.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -19,26 +17,26 @@ module VSphereAutomation
|
|
19
17
|
@api_client = api_client
|
20
18
|
end
|
21
19
|
# 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.
|
22
|
-
# @param
|
20
|
+
# @param request_body
|
23
21
|
# @param [Hash] opts the optional parameters
|
24
22
|
# @return [ContentSubscribedLibraryCreateResult|VapiStdErrorsResourceInaccessibleError|]
|
25
|
-
def create(
|
26
|
-
data, _status_code, _headers = create_with_http_info(
|
23
|
+
def create(request_body, opts = {})
|
24
|
+
data, _status_code, _headers = create_with_http_info(request_body, opts)
|
27
25
|
data
|
28
26
|
end
|
29
27
|
|
30
28
|
# 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.
|
31
29
|
# @api private
|
32
|
-
# @param
|
30
|
+
# @param request_body
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(ContentSubscribedLibraryCreateResult|VapiStdErrorsResourceInaccessibleError|, Fixnum, Hash)>] data, response status code and response headers
|
35
|
-
def create_with_http_info(
|
33
|
+
def create_with_http_info(request_body, opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: SubscribedLibraryApi.create ...'
|
38
36
|
end
|
39
|
-
# verify the required parameter '
|
40
|
-
if @api_client.config.client_side_validation &&
|
41
|
-
fail ArgumentError, "Missing the required parameter '
|
37
|
+
# verify the required parameter 'request_body' is set
|
38
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling SubscribedLibraryApi.create"
|
42
40
|
end
|
43
41
|
# resource path
|
44
42
|
local_var_path = '/com/vmware/content/subscribed-library'
|
@@ -49,7 +47,7 @@ module VSphereAutomation
|
|
49
47
|
# header parameters
|
50
48
|
header_params = {}
|
51
49
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
51
|
# HTTP header 'Content-Type'
|
54
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
53
|
|
@@ -57,8 +55,8 @@ module VSphereAutomation
|
|
57
55
|
form_params = {}
|
58
56
|
|
59
57
|
# http body (model)
|
60
|
-
post_body = @api_client.object_to_http_body(
|
61
|
-
auth_names = []
|
58
|
+
post_body = @api_client.object_to_http_body(request_body)
|
59
|
+
auth_names = ['api_key']
|
62
60
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
61
|
:header_params => header_params,
|
64
62
|
:query_params => query_params,
|
@@ -105,14 +103,14 @@ module VSphereAutomation
|
|
105
103
|
# header parameters
|
106
104
|
header_params = {}
|
107
105
|
# HTTP header 'Accept' (if needed)
|
108
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
107
|
|
110
108
|
# form parameters
|
111
109
|
form_params = {}
|
112
110
|
|
113
111
|
# http body (model)
|
114
112
|
post_body = nil
|
115
|
-
auth_names = []
|
113
|
+
auth_names = ['api_key']
|
116
114
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
117
115
|
:header_params => header_params,
|
118
116
|
:query_params => query_params,
|
@@ -155,14 +153,14 @@ module VSphereAutomation
|
|
155
153
|
# header parameters
|
156
154
|
header_params = {}
|
157
155
|
# HTTP header 'Accept' (if needed)
|
158
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
159
157
|
|
160
158
|
# form parameters
|
161
159
|
form_params = {}
|
162
160
|
|
163
161
|
# http body (model)
|
164
162
|
post_body = nil
|
165
|
-
auth_names = []
|
163
|
+
auth_names = ['api_key']
|
166
164
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
167
165
|
:header_params => header_params,
|
168
166
|
:query_params => query_params,
|
@@ -205,14 +203,14 @@ module VSphereAutomation
|
|
205
203
|
# header parameters
|
206
204
|
header_params = {}
|
207
205
|
# HTTP header 'Accept' (if needed)
|
208
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
206
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
209
207
|
|
210
208
|
# form parameters
|
211
209
|
form_params = {}
|
212
210
|
|
213
211
|
# http body (model)
|
214
212
|
post_body = nil
|
215
|
-
auth_names = []
|
213
|
+
auth_names = ['api_key']
|
216
214
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
217
215
|
:header_params => header_params,
|
218
216
|
:query_params => query_params,
|
@@ -254,14 +252,14 @@ module VSphereAutomation
|
|
254
252
|
# header parameters
|
255
253
|
header_params = {}
|
256
254
|
# HTTP header 'Accept' (if needed)
|
257
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
255
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
258
256
|
|
259
257
|
# form parameters
|
260
258
|
form_params = {}
|
261
259
|
|
262
260
|
# http body (model)
|
263
261
|
post_body = nil
|
264
|
-
auth_names = []
|
262
|
+
auth_names = ['api_key']
|
265
263
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
266
264
|
:header_params => header_params,
|
267
265
|
:query_params => query_params,
|
@@ -277,26 +275,26 @@ module VSphereAutomation
|
|
277
275
|
return data, status_code, headers
|
278
276
|
end
|
279
277
|
# 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.
|
280
|
-
# @param
|
278
|
+
# @param request_body
|
281
279
|
# @param [Hash] opts the optional parameters
|
282
280
|
# @return [ContentSubscribedLibraryProbeResult|]
|
283
|
-
def probe(
|
284
|
-
data, _status_code, _headers = probe_with_http_info(
|
281
|
+
def probe(request_body, opts = {})
|
282
|
+
data, _status_code, _headers = probe_with_http_info(request_body, opts)
|
285
283
|
data
|
286
284
|
end
|
287
285
|
|
288
286
|
# 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.
|
289
287
|
# @api private
|
290
|
-
# @param
|
288
|
+
# @param request_body
|
291
289
|
# @param [Hash] opts the optional parameters
|
292
290
|
# @return [Array<(ContentSubscribedLibraryProbeResult|, Fixnum, Hash)>] data, response status code and response headers
|
293
|
-
def probe_with_http_info(
|
291
|
+
def probe_with_http_info(request_body, opts = {})
|
294
292
|
if @api_client.config.debugging
|
295
293
|
@api_client.config.logger.debug 'Calling API: SubscribedLibraryApi.probe ...'
|
296
294
|
end
|
297
|
-
# verify the required parameter '
|
298
|
-
if @api_client.config.client_side_validation &&
|
299
|
-
fail ArgumentError, "Missing the required parameter '
|
295
|
+
# verify the required parameter 'request_body' is set
|
296
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling SubscribedLibraryApi.probe"
|
300
298
|
end
|
301
299
|
# resource path
|
302
300
|
local_var_path = '/com/vmware/content/subscribed-library?~action=probe'
|
@@ -307,7 +305,7 @@ module VSphereAutomation
|
|
307
305
|
# header parameters
|
308
306
|
header_params = {}
|
309
307
|
# HTTP header 'Accept' (if needed)
|
310
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
308
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
311
309
|
# HTTP header 'Content-Type'
|
312
310
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
313
311
|
|
@@ -315,8 +313,8 @@ module VSphereAutomation
|
|
315
313
|
form_params = {}
|
316
314
|
|
317
315
|
# http body (model)
|
318
|
-
post_body = @api_client.object_to_http_body(
|
319
|
-
auth_names = []
|
316
|
+
post_body = @api_client.object_to_http_body(request_body)
|
317
|
+
auth_names = ['api_key']
|
320
318
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
321
319
|
:header_params => header_params,
|
322
320
|
:query_params => query_params,
|
@@ -333,19 +331,21 @@ module VSphereAutomation
|
|
333
331
|
end
|
334
332
|
# 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.
|
335
333
|
# @param library_id Identifier of the subscribed library to synchronize.
|
334
|
+
# @param action ~action=sync
|
336
335
|
# @param [Hash] opts the optional parameters
|
337
336
|
# @return [|VapiStdErrorsResourceInaccessibleError|VapiStdErrorsNotFoundError|nil]
|
338
|
-
def sync(library_id, opts = {})
|
339
|
-
sync_with_http_info(library_id, opts)
|
337
|
+
def sync(library_id, action, opts = {})
|
338
|
+
sync_with_http_info(library_id, action, opts)
|
340
339
|
nil
|
341
340
|
end
|
342
341
|
|
343
342
|
# 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.
|
344
343
|
# @api private
|
345
344
|
# @param library_id Identifier of the subscribed library to synchronize.
|
345
|
+
# @param action ~action=sync
|
346
346
|
# @param [Hash] opts the optional parameters
|
347
347
|
# @return [Array<(|VapiStdErrorsResourceInaccessibleError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
348
|
-
def sync_with_http_info(library_id, opts = {})
|
348
|
+
def sync_with_http_info(library_id, action, opts = {})
|
349
349
|
if @api_client.config.debugging
|
350
350
|
@api_client.config.logger.debug 'Calling API: SubscribedLibraryApi.sync ...'
|
351
351
|
end
|
@@ -353,23 +353,32 @@ module VSphereAutomation
|
|
353
353
|
if @api_client.config.client_side_validation && library_id.nil?
|
354
354
|
fail ArgumentError, "Missing the required parameter 'library_id' when calling SubscribedLibraryApi.sync"
|
355
355
|
end
|
356
|
+
# verify the required parameter 'action' is set
|
357
|
+
if @api_client.config.client_side_validation && action.nil?
|
358
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling SubscribedLibraryApi.sync"
|
359
|
+
end
|
360
|
+
# verify enum value
|
361
|
+
if @api_client.config.client_side_validation && !['sync'].include?(action)
|
362
|
+
fail ArgumentError, "invalid value for 'action', must be one of sync"
|
363
|
+
end
|
356
364
|
# resource path
|
357
|
-
local_var_path = '/com/vmware/content/subscribed-library/id:{library_id}
|
365
|
+
local_var_path = '/com/vmware/content/subscribed-library/id:{library_id}'.sub('{' + 'library_id' + '}', library_id.to_s)
|
358
366
|
|
359
367
|
# query parameters
|
360
368
|
query_params = {}
|
369
|
+
query_params[:'~action'] = action
|
361
370
|
|
362
371
|
# header parameters
|
363
372
|
header_params = {}
|
364
373
|
# HTTP header 'Accept' (if needed)
|
365
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
374
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
366
375
|
|
367
376
|
# form parameters
|
368
377
|
form_params = {}
|
369
378
|
|
370
379
|
# http body (model)
|
371
380
|
post_body = nil
|
372
|
-
auth_names = []
|
381
|
+
auth_names = ['api_key']
|
373
382
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
374
383
|
:header_params => header_params,
|
375
384
|
:query_params => query_params,
|
@@ -383,21 +392,21 @@ module VSphereAutomation
|
|
383
392
|
end
|
384
393
|
# 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.
|
385
394
|
# @param library_id Identifier of the subscribed library to update.
|
386
|
-
# @param
|
395
|
+
# @param request_body
|
387
396
|
# @param [Hash] opts the optional parameters
|
388
397
|
# @return [|VapiStdErrorsConcurrentChangeError|VapiStdErrorsNotFoundError|nil]
|
389
|
-
def update(library_id,
|
390
|
-
update_with_http_info(library_id,
|
398
|
+
def update(library_id, request_body, opts = {})
|
399
|
+
update_with_http_info(library_id, request_body, opts)
|
391
400
|
nil
|
392
401
|
end
|
393
402
|
|
394
403
|
# 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.
|
395
404
|
# @api private
|
396
405
|
# @param library_id Identifier of the subscribed library to update.
|
397
|
-
# @param
|
406
|
+
# @param request_body
|
398
407
|
# @param [Hash] opts the optional parameters
|
399
408
|
# @return [Array<(|VapiStdErrorsConcurrentChangeError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
400
|
-
def update_with_http_info(library_id,
|
409
|
+
def update_with_http_info(library_id, request_body, opts = {})
|
401
410
|
if @api_client.config.debugging
|
402
411
|
@api_client.config.logger.debug 'Calling API: SubscribedLibraryApi.update ...'
|
403
412
|
end
|
@@ -405,9 +414,9 @@ module VSphereAutomation
|
|
405
414
|
if @api_client.config.client_side_validation && library_id.nil?
|
406
415
|
fail ArgumentError, "Missing the required parameter 'library_id' when calling SubscribedLibraryApi.update"
|
407
416
|
end
|
408
|
-
# verify the required parameter '
|
409
|
-
if @api_client.config.client_side_validation &&
|
410
|
-
fail ArgumentError, "Missing the required parameter '
|
417
|
+
# verify the required parameter 'request_body' is set
|
418
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
419
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling SubscribedLibraryApi.update"
|
411
420
|
end
|
412
421
|
# resource path
|
413
422
|
local_var_path = '/com/vmware/content/subscribed-library/id:{library_id}'.sub('{' + 'library_id' + '}', library_id.to_s)
|
@@ -418,7 +427,7 @@ module VSphereAutomation
|
|
418
427
|
# header parameters
|
419
428
|
header_params = {}
|
420
429
|
# HTTP header 'Accept' (if needed)
|
421
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
422
431
|
# HTTP header 'Content-Type'
|
423
432
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
424
433
|
|
@@ -426,8 +435,8 @@ module VSphereAutomation
|
|
426
435
|
form_params = {}
|
427
436
|
|
428
437
|
# http body (model)
|
429
|
-
post_body = @api_client.object_to_http_body(
|
430
|
-
auth_names = []
|
438
|
+
post_body = @api_client.object_to_http_body(request_body)
|
439
|
+
auth_names = ['api_key']
|
431
440
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
432
441
|
:header_params => header_params,
|
433
442
|
:query_params => query_params,
|