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
|
|
@@ -20,21 +18,21 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Retrieves file download information for a specific file.
|
22
20
|
# @param download_session_id Identifier of the download session.
|
23
|
-
# @param
|
21
|
+
# @param request_body
|
24
22
|
# @param [Hash] opts the optional parameters
|
25
23
|
# @return [ContentLibraryItemDownloadsessionFileResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|]
|
26
|
-
def get(download_session_id,
|
27
|
-
data, _status_code, _headers = get_with_http_info(download_session_id,
|
24
|
+
def get(download_session_id, request_body, opts = {})
|
25
|
+
data, _status_code, _headers = get_with_http_info(download_session_id, request_body, opts)
|
28
26
|
data
|
29
27
|
end
|
30
28
|
|
31
29
|
# Retrieves file download information for a specific file.
|
32
30
|
# @api private
|
33
31
|
# @param download_session_id Identifier of the download session.
|
34
|
-
# @param
|
32
|
+
# @param request_body
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(ContentLibraryItemDownloadsessionFileResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def get_with_http_info(download_session_id,
|
35
|
+
def get_with_http_info(download_session_id, request_body, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: LibraryItemDownloadsessionFileApi.get ...'
|
40
38
|
end
|
@@ -42,9 +40,9 @@ module VSphereAutomation
|
|
42
40
|
if @api_client.config.client_side_validation && download_session_id.nil?
|
43
41
|
fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadsessionFileApi.get"
|
44
42
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
43
|
+
# verify the required parameter 'request_body' is set
|
44
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemDownloadsessionFileApi.get"
|
48
46
|
end
|
49
47
|
# resource path
|
50
48
|
local_var_path = '/com/vmware/content/library/item/downloadsession/file/id:{download_session_id}?~action=get'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
|
@@ -55,7 +53,7 @@ module VSphereAutomation
|
|
55
53
|
# header parameters
|
56
54
|
header_params = {}
|
57
55
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
57
|
# HTTP header 'Content-Type'
|
60
58
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
59
|
|
@@ -63,8 +61,8 @@ module VSphereAutomation
|
|
63
61
|
form_params = {}
|
64
62
|
|
65
63
|
# http body (model)
|
66
|
-
post_body = @api_client.object_to_http_body(
|
67
|
-
auth_names = []
|
64
|
+
post_body = @api_client.object_to_http_body(request_body)
|
65
|
+
auth_names = ['api_key']
|
68
66
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
67
|
:header_params => header_params,
|
70
68
|
:query_params => query_params,
|
@@ -113,14 +111,14 @@ module VSphereAutomation
|
|
113
111
|
# header parameters
|
114
112
|
header_params = {}
|
115
113
|
# HTTP header 'Accept' (if needed)
|
116
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
117
115
|
|
118
116
|
# form parameters
|
119
117
|
form_params = {}
|
120
118
|
|
121
119
|
# http body (model)
|
122
120
|
post_body = nil
|
123
|
-
auth_names = []
|
121
|
+
auth_names = ['api_key']
|
124
122
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
125
123
|
:header_params => header_params,
|
126
124
|
:query_params => query_params,
|
@@ -138,21 +136,23 @@ module VSphereAutomation
|
|
138
136
|
end
|
139
137
|
# Requests a file to be prepared for download.
|
140
138
|
# @param download_session_id Identifier of the download session.
|
141
|
-
# @param
|
139
|
+
# @param action ~action=prepare
|
140
|
+
# @param request_body
|
142
141
|
# @param [Hash] opts the optional parameters
|
143
142
|
# @return [ContentLibraryItemDownloadsessionFilePrepareResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
144
|
-
def prepare(download_session_id,
|
145
|
-
data, _status_code, _headers = prepare_with_http_info(download_session_id,
|
143
|
+
def prepare(download_session_id, action, request_body, opts = {})
|
144
|
+
data, _status_code, _headers = prepare_with_http_info(download_session_id, action, request_body, opts)
|
146
145
|
data
|
147
146
|
end
|
148
147
|
|
149
148
|
# Requests a file to be prepared for download.
|
150
149
|
# @api private
|
151
150
|
# @param download_session_id Identifier of the download session.
|
152
|
-
# @param
|
151
|
+
# @param action ~action=prepare
|
152
|
+
# @param request_body
|
153
153
|
# @param [Hash] opts the optional parameters
|
154
154
|
# @return [Array<(ContentLibraryItemDownloadsessionFilePrepareResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
155
|
-
def prepare_with_http_info(download_session_id,
|
155
|
+
def prepare_with_http_info(download_session_id, action, request_body, opts = {})
|
156
156
|
if @api_client.config.debugging
|
157
157
|
@api_client.config.logger.debug 'Calling API: LibraryItemDownloadsessionFileApi.prepare ...'
|
158
158
|
end
|
@@ -160,20 +160,29 @@ module VSphereAutomation
|
|
160
160
|
if @api_client.config.client_side_validation && download_session_id.nil?
|
161
161
|
fail ArgumentError, "Missing the required parameter 'download_session_id' when calling LibraryItemDownloadsessionFileApi.prepare"
|
162
162
|
end
|
163
|
-
# verify the required parameter '
|
164
|
-
if @api_client.config.client_side_validation &&
|
165
|
-
fail ArgumentError, "Missing the required parameter '
|
163
|
+
# verify the required parameter 'action' is set
|
164
|
+
if @api_client.config.client_side_validation && action.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemDownloadsessionFileApi.prepare"
|
166
|
+
end
|
167
|
+
# verify enum value
|
168
|
+
if @api_client.config.client_side_validation && !['prepare'].include?(action)
|
169
|
+
fail ArgumentError, "invalid value for 'action', must be one of prepare"
|
170
|
+
end
|
171
|
+
# verify the required parameter 'request_body' is set
|
172
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
173
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemDownloadsessionFileApi.prepare"
|
166
174
|
end
|
167
175
|
# resource path
|
168
|
-
local_var_path = '/com/vmware/content/library/item/downloadsession/file/id:{download_session_id}
|
176
|
+
local_var_path = '/com/vmware/content/library/item/downloadsession/file/id:{download_session_id}'.sub('{' + 'download_session_id' + '}', download_session_id.to_s)
|
169
177
|
|
170
178
|
# query parameters
|
171
179
|
query_params = {}
|
180
|
+
query_params[:'~action'] = action
|
172
181
|
|
173
182
|
# header parameters
|
174
183
|
header_params = {}
|
175
184
|
# HTTP header 'Accept' (if needed)
|
176
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
186
|
# HTTP header 'Content-Type'
|
178
187
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
179
188
|
|
@@ -181,8 +190,8 @@ module VSphereAutomation
|
|
181
190
|
form_params = {}
|
182
191
|
|
183
192
|
# http body (model)
|
184
|
-
post_body = @api_client.object_to_http_body(
|
185
|
-
auth_names = []
|
193
|
+
post_body = @api_client.object_to_http_body(request_body)
|
194
|
+
auth_names = ['api_key']
|
186
195
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
187
196
|
:header_params => header_params,
|
188
197
|
: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
|
|
@@ -20,21 +18,23 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Retrieves the information for a single file in a library item by its name.
|
22
20
|
# @param library_item_id Identifier of the library item whose file information should be returned.
|
23
|
-
# @param
|
21
|
+
# @param action ~action=get
|
22
|
+
# @param request_body
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [ContentLibraryItemFileResult|VapiStdErrorsNotFoundError|]
|
26
|
-
def get(library_item_id,
|
27
|
-
data, _status_code, _headers = get_with_http_info(library_item_id,
|
25
|
+
def get(library_item_id, action, request_body, opts = {})
|
26
|
+
data, _status_code, _headers = get_with_http_info(library_item_id, action, request_body, opts)
|
28
27
|
data
|
29
28
|
end
|
30
29
|
|
31
30
|
# Retrieves the information for a single file in a library item by its name.
|
32
31
|
# @api private
|
33
32
|
# @param library_item_id Identifier of the library item whose file information should be returned.
|
34
|
-
# @param
|
33
|
+
# @param action ~action=get
|
34
|
+
# @param request_body
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(ContentLibraryItemFileResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def get_with_http_info(library_item_id,
|
37
|
+
def get_with_http_info(library_item_id, action, request_body, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: LibraryItemFileApi.get ...'
|
40
40
|
end
|
@@ -42,20 +42,29 @@ module VSphereAutomation
|
|
42
42
|
if @api_client.config.client_side_validation && library_item_id.nil?
|
43
43
|
fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemFileApi.get"
|
44
44
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
45
|
+
# verify the required parameter 'action' is set
|
46
|
+
if @api_client.config.client_side_validation && action.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemFileApi.get"
|
48
|
+
end
|
49
|
+
# verify enum value
|
50
|
+
if @api_client.config.client_side_validation && !['get'].include?(action)
|
51
|
+
fail ArgumentError, "invalid value for 'action', must be one of get"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'request_body' is set
|
54
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemFileApi.get"
|
48
56
|
end
|
49
57
|
# resource path
|
50
|
-
local_var_path = '/com/vmware/content/library/item/file/id:{library_item_id}
|
58
|
+
local_var_path = '/com/vmware/content/library/item/file/id:{library_item_id}'.sub('{' + 'library_item_id' + '}', library_item_id.to_s)
|
51
59
|
|
52
60
|
# query parameters
|
53
61
|
query_params = {}
|
62
|
+
query_params[:'~action'] = action
|
54
63
|
|
55
64
|
# header parameters
|
56
65
|
header_params = {}
|
57
66
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
68
|
# HTTP header 'Content-Type'
|
60
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
70
|
|
@@ -63,8 +72,8 @@ module VSphereAutomation
|
|
63
72
|
form_params = {}
|
64
73
|
|
65
74
|
# http body (model)
|
66
|
-
post_body = @api_client.object_to_http_body(
|
67
|
-
auth_names = []
|
75
|
+
post_body = @api_client.object_to_http_body(request_body)
|
76
|
+
auth_names = ['api_key']
|
68
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
78
|
:header_params => header_params,
|
70
79
|
:query_params => query_params,
|
@@ -112,14 +121,14 @@ module VSphereAutomation
|
|
112
121
|
# header parameters
|
113
122
|
header_params = {}
|
114
123
|
# HTTP header 'Accept' (if needed)
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
116
125
|
|
117
126
|
# form parameters
|
118
127
|
form_params = {}
|
119
128
|
|
120
129
|
# http body (model)
|
121
130
|
post_body = nil
|
122
|
-
auth_names = []
|
131
|
+
auth_names = ['api_key']
|
123
132
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
124
133
|
:header_params => header_params,
|
125
134
|
: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
|
|
@@ -20,21 +18,23 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Retrieves the storage information for a specific file in a library item.
|
22
20
|
# @param library_item_id Identifier of the library item whose storage information should be retrieved.
|
23
|
-
# @param
|
21
|
+
# @param action ~action=get
|
22
|
+
# @param request_body
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [ContentLibraryItemStorageResult|VapiStdErrorsNotFoundError|]
|
26
|
-
def get(library_item_id,
|
27
|
-
data, _status_code, _headers = get_with_http_info(library_item_id,
|
25
|
+
def get(library_item_id, action, request_body, opts = {})
|
26
|
+
data, _status_code, _headers = get_with_http_info(library_item_id, action, request_body, opts)
|
28
27
|
data
|
29
28
|
end
|
30
29
|
|
31
30
|
# Retrieves the storage information for a specific file in a library item.
|
32
31
|
# @api private
|
33
32
|
# @param library_item_id Identifier of the library item whose storage information should be retrieved.
|
34
|
-
# @param
|
33
|
+
# @param action ~action=get
|
34
|
+
# @param request_body
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(ContentLibraryItemStorageResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def get_with_http_info(library_item_id,
|
37
|
+
def get_with_http_info(library_item_id, action, request_body, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: LibraryItemStorageApi.get ...'
|
40
40
|
end
|
@@ -42,20 +42,29 @@ module VSphereAutomation
|
|
42
42
|
if @api_client.config.client_side_validation && library_item_id.nil?
|
43
43
|
fail ArgumentError, "Missing the required parameter 'library_item_id' when calling LibraryItemStorageApi.get"
|
44
44
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
45
|
+
# verify the required parameter 'action' is set
|
46
|
+
if @api_client.config.client_side_validation && action.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemStorageApi.get"
|
48
|
+
end
|
49
|
+
# verify enum value
|
50
|
+
if @api_client.config.client_side_validation && !['get'].include?(action)
|
51
|
+
fail ArgumentError, "invalid value for 'action', must be one of get"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'request_body' is set
|
54
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemStorageApi.get"
|
48
56
|
end
|
49
57
|
# resource path
|
50
|
-
local_var_path = '/com/vmware/content/library/item/storage/id:{library_item_id}
|
58
|
+
local_var_path = '/com/vmware/content/library/item/storage/id:{library_item_id}'.sub('{' + 'library_item_id' + '}', library_item_id.to_s)
|
51
59
|
|
52
60
|
# query parameters
|
53
61
|
query_params = {}
|
62
|
+
query_params[:'~action'] = action
|
54
63
|
|
55
64
|
# header parameters
|
56
65
|
header_params = {}
|
57
66
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
68
|
# HTTP header 'Content-Type'
|
60
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
70
|
|
@@ -63,8 +72,8 @@ module VSphereAutomation
|
|
63
72
|
form_params = {}
|
64
73
|
|
65
74
|
# http body (model)
|
66
|
-
post_body = @api_client.object_to_http_body(
|
67
|
-
auth_names = []
|
75
|
+
post_body = @api_client.object_to_http_body(request_body)
|
76
|
+
auth_names = ['api_key']
|
68
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
78
|
:header_params => header_params,
|
70
79
|
:query_params => query_params,
|
@@ -112,14 +121,14 @@ module VSphereAutomation
|
|
112
121
|
# header parameters
|
113
122
|
header_params = {}
|
114
123
|
# HTTP header 'Accept' (if needed)
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
116
125
|
|
117
126
|
# form parameters
|
118
127
|
form_params = {}
|
119
128
|
|
120
129
|
# http body (model)
|
121
130
|
post_body = nil
|
122
|
-
auth_names = []
|
131
|
+
auth_names = ['api_key']
|
123
132
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
124
133
|
:header_params => header_params,
|
125
134
|
: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
|
|
@@ -49,14 +47,14 @@ 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
|
|
54
52
|
# form parameters
|
55
53
|
form_params = {}
|
56
54
|
|
57
55
|
# http body (model)
|
58
56
|
post_body = nil
|
59
|
-
auth_names = []
|
57
|
+
auth_names = ['api_key']
|
60
58
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
61
59
|
:header_params => header_params,
|
62
60
|
:query_params => query_params,
|
@@ -70,19 +68,21 @@ module VSphereAutomation
|
|
70
68
|
end
|
71
69
|
# Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. <p> Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. <p> Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
|
72
70
|
# @param update_session_id Identifier of the update session that should be completed.
|
71
|
+
# @param action ~action=complete
|
73
72
|
# @param [Hash] opts the optional parameters
|
74
73
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
|
75
|
-
def complete(update_session_id, opts = {})
|
76
|
-
complete_with_http_info(update_session_id, opts)
|
74
|
+
def complete(update_session_id, action, opts = {})
|
75
|
+
complete_with_http_info(update_session_id, action, opts)
|
77
76
|
nil
|
78
77
|
end
|
79
78
|
|
80
79
|
# Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state. <p> Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the {@link content.library.item.updatesession.File#validate} {@term operation}. <p> Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
|
81
80
|
# @api private
|
82
81
|
# @param update_session_id Identifier of the update session that should be completed.
|
82
|
+
# @param action ~action=complete
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
85
|
-
def complete_with_http_info(update_session_id, opts = {})
|
85
|
+
def complete_with_http_info(update_session_id, action, opts = {})
|
86
86
|
if @api_client.config.debugging
|
87
87
|
@api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.complete ...'
|
88
88
|
end
|
@@ -90,23 +90,32 @@ module VSphereAutomation
|
|
90
90
|
if @api_client.config.client_side_validation && update_session_id.nil?
|
91
91
|
fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.complete"
|
92
92
|
end
|
93
|
+
# verify the required parameter 'action' is set
|
94
|
+
if @api_client.config.client_side_validation && action.nil?
|
95
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling LibraryItemUpdateSessionApi.complete"
|
96
|
+
end
|
97
|
+
# verify enum value
|
98
|
+
if @api_client.config.client_side_validation && !['complete'].include?(action)
|
99
|
+
fail ArgumentError, "invalid value for 'action', must be one of complete"
|
100
|
+
end
|
93
101
|
# resource path
|
94
|
-
local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}
|
102
|
+
local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
|
95
103
|
|
96
104
|
# query parameters
|
97
105
|
query_params = {}
|
106
|
+
query_params[:'~action'] = action
|
98
107
|
|
99
108
|
# header parameters
|
100
109
|
header_params = {}
|
101
110
|
# HTTP header 'Accept' (if needed)
|
102
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
103
112
|
|
104
113
|
# form parameters
|
105
114
|
form_params = {}
|
106
115
|
|
107
116
|
# http body (model)
|
108
117
|
post_body = nil
|
109
|
-
auth_names = []
|
118
|
+
auth_names = ['api_key']
|
110
119
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
111
120
|
:header_params => header_params,
|
112
121
|
:query_params => query_params,
|
@@ -119,26 +128,26 @@ module VSphereAutomation
|
|
119
128
|
return data, status_code, headers
|
120
129
|
end
|
121
130
|
# Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. <p> Content Library Service allows only one single update session to be active for a specific library item.
|
122
|
-
# @param
|
131
|
+
# @param request_body
|
123
132
|
# @param [Hash] opts the optional parameters
|
124
133
|
# @return [ContentLibraryItemUpdateSessionCreateResult|VapiStdErrorsResourceBusyError|VapiStdErrorsNotFoundError|]
|
125
|
-
def create(
|
126
|
-
data, _status_code, _headers = create_with_http_info(
|
134
|
+
def create(request_body, opts = {})
|
135
|
+
data, _status_code, _headers = create_with_http_info(request_body, opts)
|
127
136
|
data
|
128
137
|
end
|
129
138
|
|
130
139
|
# Creates a new update session. An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received. <p> Content Library Service allows only one single update session to be active for a specific library item.
|
131
140
|
# @api private
|
132
|
-
# @param
|
141
|
+
# @param request_body
|
133
142
|
# @param [Hash] opts the optional parameters
|
134
143
|
# @return [Array<(ContentLibraryItemUpdateSessionCreateResult|VapiStdErrorsResourceBusyError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
135
|
-
def create_with_http_info(
|
144
|
+
def create_with_http_info(request_body, opts = {})
|
136
145
|
if @api_client.config.debugging
|
137
146
|
@api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.create ...'
|
138
147
|
end
|
139
|
-
# verify the required parameter '
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
fail ArgumentError, "Missing the required parameter '
|
148
|
+
# verify the required parameter 'request_body' is set
|
149
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
150
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemUpdateSessionApi.create"
|
142
151
|
end
|
143
152
|
# resource path
|
144
153
|
local_var_path = '/com/vmware/content/library/item/update-session'
|
@@ -149,7 +158,7 @@ module VSphereAutomation
|
|
149
158
|
# header parameters
|
150
159
|
header_params = {}
|
151
160
|
# HTTP header 'Accept' (if needed)
|
152
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
153
162
|
# HTTP header 'Content-Type'
|
154
163
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
155
164
|
|
@@ -157,8 +166,8 @@ module VSphereAutomation
|
|
157
166
|
form_params = {}
|
158
167
|
|
159
168
|
# http body (model)
|
160
|
-
post_body = @api_client.object_to_http_body(
|
161
|
-
auth_names = []
|
169
|
+
post_body = @api_client.object_to_http_body(request_body)
|
170
|
+
auth_names = ['api_key']
|
162
171
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
163
172
|
:header_params => header_params,
|
164
173
|
:query_params => query_params,
|
@@ -206,14 +215,14 @@ module VSphereAutomation
|
|
206
215
|
# header parameters
|
207
216
|
header_params = {}
|
208
217
|
# HTTP header 'Accept' (if needed)
|
209
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
210
219
|
|
211
220
|
# form parameters
|
212
221
|
form_params = {}
|
213
222
|
|
214
223
|
# http body (model)
|
215
224
|
post_body = nil
|
216
|
-
auth_names = []
|
225
|
+
auth_names = ['api_key']
|
217
226
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
218
227
|
:header_params => header_params,
|
219
228
|
:query_params => query_params,
|
@@ -227,21 +236,21 @@ module VSphereAutomation
|
|
227
236
|
end
|
228
237
|
# Terminates the update session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
|
229
238
|
# @param update_session_id Identifier of the update session to fail.
|
230
|
-
# @param
|
239
|
+
# @param request_body
|
231
240
|
# @param [Hash] opts the optional parameters
|
232
241
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
|
233
|
-
def fail(update_session_id,
|
234
|
-
fail_with_http_info(update_session_id,
|
242
|
+
def fail(update_session_id, request_body, opts = {})
|
243
|
+
fail_with_http_info(update_session_id, request_body, opts)
|
235
244
|
nil
|
236
245
|
end
|
237
246
|
|
238
247
|
# Terminates the update session with a client specified error message. <p> This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
|
239
248
|
# @api private
|
240
249
|
# @param update_session_id Identifier of the update session to fail.
|
241
|
-
# @param
|
250
|
+
# @param request_body
|
242
251
|
# @param [Hash] opts the optional parameters
|
243
252
|
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
244
|
-
def fail_with_http_info(update_session_id,
|
253
|
+
def fail_with_http_info(update_session_id, request_body, opts = {})
|
245
254
|
if @api_client.config.debugging
|
246
255
|
@api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.fail ...'
|
247
256
|
end
|
@@ -249,9 +258,9 @@ module VSphereAutomation
|
|
249
258
|
if @api_client.config.client_side_validation && update_session_id.nil?
|
250
259
|
fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.fail"
|
251
260
|
end
|
252
|
-
# verify the required parameter '
|
253
|
-
if @api_client.config.client_side_validation &&
|
254
|
-
fail ArgumentError, "Missing the required parameter '
|
261
|
+
# verify the required parameter 'request_body' is set
|
262
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
263
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemUpdateSessionApi.fail"
|
255
264
|
end
|
256
265
|
# resource path
|
257
266
|
local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}?~action=fail'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
|
@@ -262,7 +271,7 @@ module VSphereAutomation
|
|
262
271
|
# header parameters
|
263
272
|
header_params = {}
|
264
273
|
# HTTP header 'Accept' (if needed)
|
265
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
266
275
|
# HTTP header 'Content-Type'
|
267
276
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
268
277
|
|
@@ -270,8 +279,8 @@ module VSphereAutomation
|
|
270
279
|
form_params = {}
|
271
280
|
|
272
281
|
# http body (model)
|
273
|
-
post_body = @api_client.object_to_http_body(
|
274
|
-
auth_names = []
|
282
|
+
post_body = @api_client.object_to_http_body(request_body)
|
283
|
+
auth_names = ['api_key']
|
275
284
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
276
285
|
:header_params => header_params,
|
277
286
|
:query_params => query_params,
|
@@ -314,14 +323,14 @@ module VSphereAutomation
|
|
314
323
|
# header parameters
|
315
324
|
header_params = {}
|
316
325
|
# HTTP header 'Accept' (if needed)
|
317
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
327
|
|
319
328
|
# form parameters
|
320
329
|
form_params = {}
|
321
330
|
|
322
331
|
# http body (model)
|
323
332
|
post_body = nil
|
324
|
-
auth_names = []
|
333
|
+
auth_names = ['api_key']
|
325
334
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
326
335
|
:header_params => header_params,
|
327
336
|
:query_params => query_params,
|
@@ -340,7 +349,7 @@ module VSphereAutomation
|
|
340
349
|
# Keeps an update session alive. <p> If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this {@term operation} enables a client to specifically extend the lifetime of the update session.
|
341
350
|
# @param update_session_id Identifier of the update session whose lifetime should be extended.
|
342
351
|
# @param [Hash] opts the optional parameters
|
343
|
-
# @option opts [ContentLibraryItemUpdateSessionKeepAlive] :
|
352
|
+
# @option opts [ContentLibraryItemUpdateSessionKeepAlive] :request_body
|
344
353
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil]
|
345
354
|
def keep_alive(update_session_id, opts = {})
|
346
355
|
keep_alive_with_http_info(update_session_id, opts)
|
@@ -351,7 +360,7 @@ module VSphereAutomation
|
|
351
360
|
# @api private
|
352
361
|
# @param update_session_id Identifier of the update session whose lifetime should be extended.
|
353
362
|
# @param [Hash] opts the optional parameters
|
354
|
-
# @option opts [ContentLibraryItemUpdateSessionKeepAlive] :
|
363
|
+
# @option opts [ContentLibraryItemUpdateSessionKeepAlive] :request_body
|
355
364
|
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
356
365
|
def keep_alive_with_http_info(update_session_id, opts = {})
|
357
366
|
if @api_client.config.debugging
|
@@ -370,7 +379,7 @@ module VSphereAutomation
|
|
370
379
|
# header parameters
|
371
380
|
header_params = {}
|
372
381
|
# HTTP header 'Accept' (if needed)
|
373
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
382
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
374
383
|
# HTTP header 'Content-Type'
|
375
384
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
376
385
|
|
@@ -378,8 +387,8 @@ module VSphereAutomation
|
|
378
387
|
form_params = {}
|
379
388
|
|
380
389
|
# http body (model)
|
381
|
-
post_body = @api_client.object_to_http_body(opts[:'
|
382
|
-
auth_names = []
|
390
|
+
post_body = @api_client.object_to_http_body(opts[:'request_body'])
|
391
|
+
auth_names = ['api_key']
|
383
392
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
384
393
|
:header_params => header_params,
|
385
394
|
:query_params => query_params,
|
@@ -419,14 +428,14 @@ module VSphereAutomation
|
|
419
428
|
# header parameters
|
420
429
|
header_params = {}
|
421
430
|
# HTTP header 'Accept' (if needed)
|
422
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
431
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
423
432
|
|
424
433
|
# form parameters
|
425
434
|
form_params = {}
|
426
435
|
|
427
436
|
# http body (model)
|
428
437
|
post_body = nil
|
429
|
-
auth_names = []
|
438
|
+
auth_names = ['api_key']
|
430
439
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
431
440
|
:header_params => header_params,
|
432
441
|
:query_params => query_params,
|
@@ -444,21 +453,21 @@ module VSphereAutomation
|
|
444
453
|
end
|
445
454
|
# Updates the properties of an update session. <p> This is an incremental update to the update session. Any {@term field} in the {@link UpdateSessionModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the property {@link UpdateSessionModel#warningBehavior} of the update session. This will not, for example, update the {@link UpdateSessionModel#libraryItemId} or {@link UpdateSessionModel#state} of an update session. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state.
|
446
455
|
# @param update_session_id Identifer of the update session that should be updated.
|
447
|
-
# @param
|
456
|
+
# @param request_body
|
448
457
|
# @param [Hash] opts the optional parameters
|
449
458
|
# @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil]
|
450
|
-
def update(update_session_id,
|
451
|
-
update_with_http_info(update_session_id,
|
459
|
+
def update(update_session_id, request_body, opts = {})
|
460
|
+
update_with_http_info(update_session_id, request_body, opts)
|
452
461
|
nil
|
453
462
|
end
|
454
463
|
|
455
464
|
# Updates the properties of an update session. <p> This is an incremental update to the update session. Any {@term field} in the {@link UpdateSessionModel} {@term structure} that is {@term unset} will not be modified. <p> This {@term operation} will only update the property {@link UpdateSessionModel#warningBehavior} of the update session. This will not, for example, update the {@link UpdateSessionModel#libraryItemId} or {@link UpdateSessionModel#state} of an update session. <p> This {@term operation} requires the session to be in the {@link UpdateSessionModel.State#ACTIVE} state.
|
456
465
|
# @api private
|
457
466
|
# @param update_session_id Identifer of the update session that should be updated.
|
458
|
-
# @param
|
467
|
+
# @param request_body
|
459
468
|
# @param [Hash] opts the optional parameters
|
460
469
|
# @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
461
|
-
def update_with_http_info(update_session_id,
|
470
|
+
def update_with_http_info(update_session_id, request_body, opts = {})
|
462
471
|
if @api_client.config.debugging
|
463
472
|
@api_client.config.logger.debug 'Calling API: LibraryItemUpdateSessionApi.update ...'
|
464
473
|
end
|
@@ -466,9 +475,9 @@ module VSphereAutomation
|
|
466
475
|
if @api_client.config.client_side_validation && update_session_id.nil?
|
467
476
|
fail ArgumentError, "Missing the required parameter 'update_session_id' when calling LibraryItemUpdateSessionApi.update"
|
468
477
|
end
|
469
|
-
# verify the required parameter '
|
470
|
-
if @api_client.config.client_side_validation &&
|
471
|
-
fail ArgumentError, "Missing the required parameter '
|
478
|
+
# verify the required parameter 'request_body' is set
|
479
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
480
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling LibraryItemUpdateSessionApi.update"
|
472
481
|
end
|
473
482
|
# resource path
|
474
483
|
local_var_path = '/com/vmware/content/library/item/update-session/id:{update_session_id}'.sub('{' + 'update_session_id' + '}', update_session_id.to_s)
|
@@ -479,7 +488,7 @@ module VSphereAutomation
|
|
479
488
|
# header parameters
|
480
489
|
header_params = {}
|
481
490
|
# HTTP header 'Accept' (if needed)
|
482
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
491
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
483
492
|
# HTTP header 'Content-Type'
|
484
493
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
485
494
|
|
@@ -487,8 +496,8 @@ module VSphereAutomation
|
|
487
496
|
form_params = {}
|
488
497
|
|
489
498
|
# http body (model)
|
490
|
-
post_body = @api_client.object_to_http_body(
|
491
|
-
auth_names = []
|
499
|
+
post_body = @api_client.object_to_http_body(request_body)
|
500
|
+
auth_names = ['api_key']
|
492
501
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
493
502
|
:header_params => header_params,
|
494
503
|
:query_params => query_params,
|