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
@@ -0,0 +1,9 @@
|
|
1
|
+
# VSphereAutomation::Content::VapiStdErrorsAlreadyExists
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**messages** | [**Array<VapiStdLocalizableMessage>**](VapiStdLocalizableMessage.md) | Stack of one or more localizable messages for human {@term error} consumers. <p> The message at the top of the stack (first in the list) describes the {@term error} from the perspective of the {@term operation} the client invoked. Each subsequent message in the stack describes the \"cause\" of the prior message. |
|
7
|
+
**data** | [**Object**](.md) | Data to facilitate clients responding to the {@term operation} reporting a standard {@term error} to indicating that it was unable to complete successfully. <p> {@term Operations} may provide data that clients can use when responding to {@term errors}. Since the data that clients need may be specific to the context of the {@term operation} reporting the {@term error}, different {@term operations} that report the same {@term error} may provide different data in the {@term error}. The documentation for each each {@term operation} will describe what, if any, data it provides for each {@term error} it reports. The {@link ArgumentLocations}, {@link FileLocations}, and {@link TransientIndication} {@term structures} are intended as possible values for this {@term field}. {@link vapi.std.DynamicID} may also be useful as a value for this {@term field} (although that is not its primary purpose). Some {@term services} may provide their own specific {@term structures} for use as the value of this {@term field} when reporting {@term errors} from their {@term operations}. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# VSphereAutomation::Content::VapiStdErrorsAlreadyExistsError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | | [optional]
|
7
|
+
**value** | [**VapiStdErrorsAlreadyExists**](VapiStdErrorsAlreadyExists.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# VSphereAutomation::Content::VapiStdErrorsError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**messages** | [**Array<VapiStdLocalizableMessage>**](VapiStdLocalizableMessage.md) | Stack of one or more localizable messages for human {@term error} consumers. <p> The message at the top of the stack (first in the list) describes the {@term error} from the perspective of the {@term operation} the client invoked. Each subsequent message in the stack describes the \"cause\" of the prior message. |
|
7
|
+
**data** | [**Object**](.md) | Data to facilitate clients responding to the {@term operation} reporting a standard {@term error} to indicating that it was unable to complete successfully. <p> {@term Operations} may provide data that clients can use when responding to {@term errors}. Since the data that clients need may be specific to the context of the {@term operation} reporting the {@term error}, different {@term operations} that report the same {@term error} may provide different data in the {@term error}. The documentation for each each {@term operation} will describe what, if any, data it provides for each {@term error} it reports. The {@link ArgumentLocations}, {@link FileLocations}, and {@link TransientIndication} {@term structures} are intended as possible values for this {@term field}. {@link vapi.std.DynamicID} may also be useful as a value for this {@term field} (although that is not its primary purpose). Some {@term services} may provide their own specific {@term structures} for use as the value of this {@term field} when reporting {@term errors} from their {@term operations}. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# VSphereAutomation::Content::VapiStdErrorsErrorError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | | [optional]
|
7
|
+
**value** | [**VapiStdErrorsError**](VapiStdErrorsError.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# VSphereAutomation::Content::VapiStdErrorsUnauthenticated
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**messages** | [**Array<VapiStdLocalizableMessage>**](VapiStdLocalizableMessage.md) | Stack of one or more localizable messages for human {@term error} consumers. <p> The message at the top of the stack (first in the list) describes the {@term error} from the perspective of the {@term operation} the client invoked. Each subsequent message in the stack describes the \"cause\" of the prior message. |
|
7
|
+
**data** | [**Object**](.md) | Data to facilitate clients responding to the {@term operation} reporting a standard {@term error} to indicating that it was unable to complete successfully. <p> {@term Operations} may provide data that clients can use when responding to {@term errors}. Since the data that clients need may be specific to the context of the {@term operation} reporting the {@term error}, different {@term operations} that report the same {@term error} may provide different data in the {@term error}. The documentation for each each {@term operation} will describe what, if any, data it provides for each {@term error} it reports. The {@link ArgumentLocations}, {@link FileLocations}, and {@link TransientIndication} {@term structures} are intended as possible values for this {@term field}. {@link vapi.std.DynamicID} may also be useful as a value for this {@term field} (although that is not its primary purpose). Some {@term services} may provide their own specific {@term structures} for use as the value of this {@term field} when reporting {@term errors} from their {@term operations}. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# VSphereAutomation::Content::VapiStdErrorsUnauthenticatedError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | | [optional]
|
7
|
+
**value** | [**VapiStdErrorsUnauthenticated**](VapiStdErrorsUnauthenticated.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -1,18 +1,16 @@
|
|
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
|
# Common files
|
12
|
-
require 'vsphere-automation-
|
13
|
-
require 'vsphere-automation-
|
10
|
+
require 'vsphere-automation-runtime/api_client'
|
11
|
+
require 'vsphere-automation-runtime/api_error'
|
12
|
+
require 'vsphere-automation-runtime/configuration'
|
14
13
|
require 'vsphere-automation-content/version'
|
15
|
-
require 'vsphere-automation-content/configuration'
|
16
14
|
|
17
15
|
# Models
|
18
16
|
require 'vsphere-automation-content/models/content_configuration_model'
|
@@ -25,6 +23,7 @@ require 'vsphere-automation-content/models/content_library_item_copy'
|
|
25
23
|
require 'vsphere-automation-content/models/content_library_item_copy_result'
|
26
24
|
require 'vsphere-automation-content/models/content_library_item_create'
|
27
25
|
require 'vsphere-automation-content/models/content_library_item_create_result'
|
26
|
+
require 'vsphere-automation-content/models/content_library_item_destination_spec'
|
28
27
|
require 'vsphere-automation-content/models/content_library_item_download_session_create'
|
29
28
|
require 'vsphere-automation-content/models/content_library_item_download_session_create_result'
|
30
29
|
require 'vsphere-automation-content/models/content_library_item_download_session_fail'
|
@@ -52,6 +51,7 @@ require 'vsphere-automation-content/models/content_library_item_find_result'
|
|
52
51
|
require 'vsphere-automation-content/models/content_library_item_find_spec'
|
53
52
|
require 'vsphere-automation-content/models/content_library_item_list_result'
|
54
53
|
require 'vsphere-automation-content/models/content_library_item_model'
|
54
|
+
require 'vsphere-automation-content/models/content_library_item_publish'
|
55
55
|
require 'vsphere-automation-content/models/content_library_item_result'
|
56
56
|
require 'vsphere-automation-content/models/content_library_item_storage_get'
|
57
57
|
require 'vsphere-automation-content/models/content_library_item_storage_info'
|
@@ -94,15 +94,39 @@ require 'vsphere-automation-content/models/content_library_optimization_info'
|
|
94
94
|
require 'vsphere-automation-content/models/content_library_publish_info'
|
95
95
|
require 'vsphere-automation-content/models/content_library_publish_info_authentication_method'
|
96
96
|
require 'vsphere-automation-content/models/content_library_result'
|
97
|
+
require 'vsphere-automation-content/models/content_library_source_info'
|
97
98
|
require 'vsphere-automation-content/models/content_library_storage_backing'
|
98
99
|
require 'vsphere-automation-content/models/content_library_storage_backing_type'
|
99
100
|
require 'vsphere-automation-content/models/content_library_subscribed_item_sync'
|
100
101
|
require 'vsphere-automation-content/models/content_library_subscription_info'
|
101
102
|
require 'vsphere-automation-content/models/content_library_subscription_info_authentication_method'
|
103
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create'
|
104
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_result'
|
105
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_spec'
|
106
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_new_subscribed_library'
|
107
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_placement'
|
108
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library'
|
109
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library_target'
|
110
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_create_spec_vcenter'
|
111
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_delete'
|
112
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_get'
|
113
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_info'
|
114
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_list_result'
|
115
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_location'
|
116
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_placement_info'
|
117
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_result'
|
118
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_summary'
|
119
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_update'
|
120
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_update_spec'
|
121
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_update_spec_placement'
|
122
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_update_spec_vcenter'
|
123
|
+
require 'vsphere-automation-content/models/content_library_subscriptions_vcenter_info'
|
102
124
|
require 'vsphere-automation-content/models/content_library_update'
|
103
125
|
require 'vsphere-automation-content/models/content_local_library_create'
|
104
126
|
require 'vsphere-automation-content/models/content_local_library_create_result'
|
127
|
+
require 'vsphere-automation-content/models/content_local_library_destination_spec'
|
105
128
|
require 'vsphere-automation-content/models/content_local_library_list_result'
|
129
|
+
require 'vsphere-automation-content/models/content_local_library_publish'
|
106
130
|
require 'vsphere-automation-content/models/content_local_library_result'
|
107
131
|
require 'vsphere-automation-content/models/content_local_library_update'
|
108
132
|
require 'vsphere-automation-content/models/content_subscribed_library_create'
|
@@ -113,8 +137,12 @@ require 'vsphere-automation-content/models/content_subscribed_library_probe_resu
|
|
113
137
|
require 'vsphere-automation-content/models/content_subscribed_library_probe_result_status'
|
114
138
|
require 'vsphere-automation-content/models/content_subscribed_library_result'
|
115
139
|
require 'vsphere-automation-content/models/content_subscribed_library_update'
|
140
|
+
require 'vsphere-automation-content/models/vapi_std_errors_already_exists'
|
141
|
+
require 'vsphere-automation-content/models/vapi_std_errors_already_exists_error'
|
116
142
|
require 'vsphere-automation-content/models/vapi_std_errors_concurrent_change'
|
117
143
|
require 'vsphere-automation-content/models/vapi_std_errors_concurrent_change_error'
|
144
|
+
require 'vsphere-automation-content/models/vapi_std_errors_error'
|
145
|
+
require 'vsphere-automation-content/models/vapi_std_errors_error_error'
|
118
146
|
require 'vsphere-automation-content/models/vapi_std_errors_invalid_argument'
|
119
147
|
require 'vsphere-automation-content/models/vapi_std_errors_invalid_argument_error'
|
120
148
|
require 'vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration'
|
@@ -129,6 +157,8 @@ require 'vsphere-automation-content/models/vapi_std_errors_resource_busy'
|
|
129
157
|
require 'vsphere-automation-content/models/vapi_std_errors_resource_busy_error'
|
130
158
|
require 'vsphere-automation-content/models/vapi_std_errors_resource_inaccessible'
|
131
159
|
require 'vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error'
|
160
|
+
require 'vsphere-automation-content/models/vapi_std_errors_unauthenticated'
|
161
|
+
require 'vsphere-automation-content/models/vapi_std_errors_unauthenticated_error'
|
132
162
|
require 'vsphere-automation-content/models/vapi_std_errors_unauthorized'
|
133
163
|
require 'vsphere-automation-content/models/vapi_std_errors_unauthorized_error'
|
134
164
|
require 'vsphere-automation-content/models/vapi_std_errors_unsupported'
|
@@ -146,6 +176,7 @@ require 'vsphere-automation-content/api/library_item_storage_api'
|
|
146
176
|
require 'vsphere-automation-content/api/library_item_update_session_api'
|
147
177
|
require 'vsphere-automation-content/api/library_item_updatesession_file_api'
|
148
178
|
require 'vsphere-automation-content/api/library_subscribed_item_api'
|
179
|
+
require 'vsphere-automation-content/api/library_subscriptions_api'
|
149
180
|
require 'vsphere-automation-content/api/local_library_api'
|
150
181
|
require 'vsphere-automation-content/api/subscribed_library_api'
|
151
182
|
|
@@ -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,38 +17,49 @@ module VSphereAutomation
|
|
19
17
|
@api_client = api_client
|
20
18
|
end
|
21
19
|
# Retrieves the current configuration values.
|
20
|
+
# @param action ~action=get
|
22
21
|
# @param [Hash] opts the optional parameters
|
23
22
|
# @return [ContentConfigurationResult|]
|
24
|
-
def get(opts = {})
|
25
|
-
data, _status_code, _headers = get_with_http_info(opts)
|
23
|
+
def get(action, opts = {})
|
24
|
+
data, _status_code, _headers = get_with_http_info(action, opts)
|
26
25
|
data
|
27
26
|
end
|
28
27
|
|
29
28
|
# Retrieves the current configuration values.
|
30
29
|
# @api private
|
30
|
+
# @param action ~action=get
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
32
|
# @return [Array<(ContentConfigurationResult|, Fixnum, Hash)>] data, response status code and response headers
|
33
|
-
def get_with_http_info(opts = {})
|
33
|
+
def get_with_http_info(action, opts = {})
|
34
34
|
if @api_client.config.debugging
|
35
35
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get ...'
|
36
36
|
end
|
37
|
+
# verify the required parameter 'action' is set
|
38
|
+
if @api_client.config.client_side_validation && action.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling ConfigurationApi.get"
|
40
|
+
end
|
41
|
+
# verify enum value
|
42
|
+
if @api_client.config.client_side_validation && !['get'].include?(action)
|
43
|
+
fail ArgumentError, "invalid value for 'action', must be one of get"
|
44
|
+
end
|
37
45
|
# resource path
|
38
|
-
local_var_path = '/com/vmware/content/configuration
|
46
|
+
local_var_path = '/com/vmware/content/configuration'
|
39
47
|
|
40
48
|
# query parameters
|
41
49
|
query_params = {}
|
50
|
+
query_params[:'~action'] = action
|
42
51
|
|
43
52
|
# header parameters
|
44
53
|
header_params = {}
|
45
54
|
# HTTP header 'Accept' (if needed)
|
46
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
47
56
|
|
48
57
|
# form parameters
|
49
58
|
form_params = {}
|
50
59
|
|
51
60
|
# http body (model)
|
52
61
|
post_body = nil
|
53
|
-
auth_names = []
|
62
|
+
auth_names = ['api_key']
|
54
63
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
55
64
|
:header_params => header_params,
|
56
65
|
:query_params => query_params,
|
@@ -66,26 +75,26 @@ module VSphereAutomation
|
|
66
75
|
return data, status_code, headers
|
67
76
|
end
|
68
77
|
# Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn't guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
|
69
|
-
# @param
|
78
|
+
# @param request_body
|
70
79
|
# @param [Hash] opts the optional parameters
|
71
80
|
# @return [|VapiStdErrorsInvalidArgumentError|nil]
|
72
|
-
def update(
|
73
|
-
update_with_http_info(
|
81
|
+
def update(request_body, opts = {})
|
82
|
+
update_with_http_info(request_body, opts)
|
74
83
|
nil
|
75
84
|
end
|
76
85
|
|
77
86
|
# Updates the configuration. The update is incremental. Any {@term field} in the {@link ConfigurationModel} {@term structure} that is {@term unset} will not be modified. Note that this update {@term operation} doesn't guarantee an atomic change of all the properties. In the case of a system crash or failure, some of the properties could be left unchanged while others may be updated.
|
78
87
|
# @api private
|
79
|
-
# @param
|
88
|
+
# @param request_body
|
80
89
|
# @param [Hash] opts the optional parameters
|
81
90
|
# @return [Array<(|VapiStdErrorsInvalidArgumentError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
82
|
-
def update_with_http_info(
|
91
|
+
def update_with_http_info(request_body, opts = {})
|
83
92
|
if @api_client.config.debugging
|
84
93
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.update ...'
|
85
94
|
end
|
86
|
-
# verify the required parameter '
|
87
|
-
if @api_client.config.client_side_validation &&
|
88
|
-
fail ArgumentError, "Missing the required parameter '
|
95
|
+
# verify the required parameter 'request_body' is set
|
96
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling ConfigurationApi.update"
|
89
98
|
end
|
90
99
|
# resource path
|
91
100
|
local_var_path = '/com/vmware/content/configuration'
|
@@ -96,7 +105,7 @@ module VSphereAutomation
|
|
96
105
|
# header parameters
|
97
106
|
header_params = {}
|
98
107
|
# HTTP header 'Accept' (if needed)
|
99
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
100
109
|
# HTTP header 'Content-Type'
|
101
110
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
102
111
|
|
@@ -104,8 +113,8 @@ module VSphereAutomation
|
|
104
113
|
form_params = {}
|
105
114
|
|
106
115
|
# http body (model)
|
107
|
-
post_body = @api_client.object_to_http_body(
|
108
|
-
auth_names = []
|
116
|
+
post_body = @api_client.object_to_http_body(request_body)
|
117
|
+
auth_names = ['api_key']
|
109
118
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
110
119
|
:header_params => header_params,
|
111
120
|
: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,37 +17,48 @@ module VSphereAutomation
|
|
19
17
|
@api_client = api_client
|
20
18
|
end
|
21
19
|
# Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
22
|
-
# @param
|
20
|
+
# @param action ~action=find
|
21
|
+
# @param request_body
|
23
22
|
# @param [Hash] opts the optional parameters
|
24
23
|
# @return [ContentLibraryFindResult|VapiStdErrorsInvalidArgumentError|]
|
25
|
-
def find(
|
26
|
-
data, _status_code, _headers = find_with_http_info(
|
24
|
+
def find(action, request_body, opts = {})
|
25
|
+
data, _status_code, _headers = find_with_http_info(action, request_body, opts)
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
29
|
# Returns a list of all the visible (as determined by authorization policy) libraries matching the requested {@link Library.FindSpec}.
|
31
30
|
# @api private
|
32
|
-
# @param
|
31
|
+
# @param action ~action=find
|
32
|
+
# @param request_body
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(ContentLibraryFindResult|VapiStdErrorsInvalidArgumentError|, Fixnum, Hash)>] data, response status code and response headers
|
35
|
-
def find_with_http_info(
|
35
|
+
def find_with_http_info(action, request_body, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: LibraryApi.find ...'
|
38
38
|
end
|
39
|
-
# verify the required parameter '
|
40
|
-
if @api_client.config.client_side_validation &&
|
41
|
-
fail ArgumentError, "Missing the required parameter '
|
39
|
+
# verify the required parameter 'action' is set
|
40
|
+
if @api_client.config.client_side_validation && action.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryApi.find"
|
42
|
+
end
|
43
|
+
# verify enum value
|
44
|
+
if @api_client.config.client_side_validation && !['find'].include?(action)
|
45
|
+
fail ArgumentError, "invalid value for 'action', must be one of find"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'request_body' is set
|
48
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryApi.find"
|
42
50
|
end
|
43
51
|
# resource path
|
44
|
-
local_var_path = '/com/vmware/content/library
|
52
|
+
local_var_path = '/com/vmware/content/library'
|
45
53
|
|
46
54
|
# query parameters
|
47
55
|
query_params = {}
|
56
|
+
query_params[:'~action'] = action
|
48
57
|
|
49
58
|
# header parameters
|
50
59
|
header_params = {}
|
51
60
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
62
|
# HTTP header 'Content-Type'
|
54
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
64
|
|
@@ -57,8 +66,8 @@ module VSphereAutomation
|
|
57
66
|
form_params = {}
|
58
67
|
|
59
68
|
# http body (model)
|
60
|
-
post_body = @api_client.object_to_http_body(
|
61
|
-
auth_names = []
|
69
|
+
post_body = @api_client.object_to_http_body(request_body)
|
70
|
+
auth_names = ['api_key']
|
62
71
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
72
|
:header_params => header_params,
|
64
73
|
:query_params => query_params,
|
@@ -105,14 +114,14 @@ module VSphereAutomation
|
|
105
114
|
# header parameters
|
106
115
|
header_params = {}
|
107
116
|
# HTTP header 'Accept' (if needed)
|
108
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
117
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
118
|
|
110
119
|
# form parameters
|
111
120
|
form_params = {}
|
112
121
|
|
113
122
|
# http body (model)
|
114
123
|
post_body = nil
|
115
|
-
auth_names = []
|
124
|
+
auth_names = ['api_key']
|
116
125
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
117
126
|
:header_params => header_params,
|
118
127
|
:query_params => query_params,
|
@@ -153,14 +162,14 @@ module VSphereAutomation
|
|
153
162
|
# header parameters
|
154
163
|
header_params = {}
|
155
164
|
# HTTP header 'Accept' (if needed)
|
156
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
165
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
157
166
|
|
158
167
|
# form parameters
|
159
168
|
form_params = {}
|
160
169
|
|
161
170
|
# http body (model)
|
162
171
|
post_body = nil
|
163
|
-
auth_names = []
|
172
|
+
auth_names = ['api_key']
|
164
173
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
165
174
|
:header_params => header_params,
|
166
175
|
:query_params => query_params,
|
@@ -177,21 +186,21 @@ module VSphereAutomation
|
|
177
186
|
end
|
178
187
|
# Updates the properties of a library. <p> This is an incremental update to the library. Any {@term field} in the {@link LibraryModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the common properties for all library types. This will not, for example, update the {@link LibraryModel#publishInfo} of a local library, nor the {@link LibraryModel#subscriptionInfo} of a subscribed library. Specific properties are updated in {@link LocalLibrary#update} and {@link SubscribedLibrary#update}.
|
179
188
|
# @param library_id Identifier of the library to update.
|
180
|
-
# @param
|
189
|
+
# @param request_body
|
181
190
|
# @param [Hash] opts the optional parameters
|
182
191
|
# @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil]
|
183
|
-
def update(library_id,
|
184
|
-
update_with_http_info(library_id,
|
192
|
+
def update(library_id, request_body, opts = {})
|
193
|
+
update_with_http_info(library_id, request_body, opts)
|
185
194
|
nil
|
186
195
|
end
|
187
196
|
|
188
197
|
# Updates the properties of a library. <p> This is an incremental update to the library. Any {@term field} in the {@link LibraryModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the common properties for all library types. This will not, for example, update the {@link LibraryModel#publishInfo} of a local library, nor the {@link LibraryModel#subscriptionInfo} of a subscribed library. Specific properties are updated in {@link LocalLibrary#update} and {@link SubscribedLibrary#update}.
|
189
198
|
# @api private
|
190
199
|
# @param library_id Identifier of the library to update.
|
191
|
-
# @param
|
200
|
+
# @param request_body
|
192
201
|
# @param [Hash] opts the optional parameters
|
193
202
|
# @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
194
|
-
def update_with_http_info(library_id,
|
203
|
+
def update_with_http_info(library_id, request_body, opts = {})
|
195
204
|
if @api_client.config.debugging
|
196
205
|
@api_client.config.logger.debug 'Calling API: LibraryApi.update ...'
|
197
206
|
end
|
@@ -199,9 +208,9 @@ module VSphereAutomation
|
|
199
208
|
if @api_client.config.client_side_validation && library_id.nil?
|
200
209
|
fail ArgumentError, "Missing the required parameter 'library_id' when calling LibraryApi.update"
|
201
210
|
end
|
202
|
-
# verify the required parameter '
|
203
|
-
if @api_client.config.client_side_validation &&
|
204
|
-
fail ArgumentError, "Missing the required parameter '
|
211
|
+
# verify the required parameter 'request_body' is set
|
212
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
213
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryApi.update"
|
205
214
|
end
|
206
215
|
# resource path
|
207
216
|
local_var_path = '/com/vmware/content/library/id:{library_id}'.sub('{' + 'library_id' + '}', library_id.to_s)
|
@@ -212,7 +221,7 @@ module VSphereAutomation
|
|
212
221
|
# header parameters
|
213
222
|
header_params = {}
|
214
223
|
# HTTP header 'Accept' (if needed)
|
215
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
216
225
|
# HTTP header 'Content-Type'
|
217
226
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
218
227
|
|
@@ -220,8 +229,8 @@ module VSphereAutomation
|
|
220
229
|
form_params = {}
|
221
230
|
|
222
231
|
# http body (model)
|
223
|
-
post_body = @api_client.object_to_http_body(
|
224
|
-
auth_names = []
|
232
|
+
post_body = @api_client.object_to_http_body(request_body)
|
233
|
+
auth_names = ['api_key']
|
225
234
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
226
235
|
:header_params => header_params,
|
227
236
|
:query_params => query_params,
|