Module: VSphereAutomation

Defined in:
lib/vsphere-automation-content.rb,
lib/vsphere-automation-content/version.rb,
lib/vsphere-automation-content/api_error.rb,
lib/vsphere-automation-content/api_client.rb,
lib/vsphere-automation-content/configuration.rb,
lib/vsphere-automation-content/api/library_api.rb,
lib/vsphere-automation-content/api/library_item_api.rb,
lib/vsphere-automation-content/api/configuration_api.rb,
lib/vsphere-automation-content/api/local_library_api.rb,
lib/vsphere-automation-content/api/library_item_file_api.rb,
lib/vsphere-automation-content/api/subscribed_library_api.rb,
lib/vsphere-automation-content/models/content_library_find.rb,
lib/vsphere-automation-content/api/library_item_storage_api.rb,
lib/vsphere-automation-content/models/content_library_model.rb,
lib/vsphere-automation-content/models/vapi_std_errors_error.rb,
lib/vsphere-automation-content/api/library_subscriptions_api.rb,
lib/vsphere-automation-content/models/content_library_result.rb,
lib/vsphere-automation-content/models/content_library_update.rb,
lib/vsphere-automation-content/api/library_subscribed_item_api.rb,
lib/vsphere-automation-content/models/content_library_find_spec.rb,
lib/vsphere-automation-content/models/content_library_item_copy.rb,
lib/vsphere-automation-content/models/content_library_item_find.rb,
lib/vsphere-automation-content/models/vapi_std_errors_not_found.rb,
lib/vsphere-automation-content/models/content_library_item_model.rb,
lib/vsphere-automation-content/models/content_configuration_model.rb,
lib/vsphere-automation-content/models/content_library_find_result.rb,
lib/vsphere-automation-content/models/content_library_item_create.rb,
lib/vsphere-automation-content/models/content_library_item_result.rb,
lib/vsphere-automation-content/models/content_library_item_update.rb,
lib/vsphere-automation-content/models/content_library_list_result.rb,
lib/vsphere-automation-content/models/content_library_source_info.rb,
lib/vsphere-automation-content/models/vapi_std_errors_error_error.rb,
lib/vsphere-automation-content/models/vapi_std_errors_unsupported.rb,
lib/vsphere-automation-content/api/library_item_update_session_api.rb,
lib/vsphere-automation-content/models/content_configuration_result.rb,
lib/vsphere-automation-content/models/content_configuration_update.rb,
lib/vsphere-automation-content/models/content_library_item_publish.rb,
lib/vsphere-automation-content/models/content_library_publish_info.rb,
lib/vsphere-automation-content/models/content_local_library_create.rb,
lib/vsphere-automation-content/models/content_local_library_result.rb,
lib/vsphere-automation-content/models/content_local_library_update.rb,
lib/vsphere-automation-content/models/vapi_std_errors_unauthorized.rb,
lib/vsphere-automation-content/models/vapi_std_localizable_message.rb,
lib/vsphere-automation-content/models/content_library_item_file_get.rb,
lib/vsphere-automation-content/models/content_local_library_publish.rb,
lib/vsphere-automation-content/models/vapi_std_errors_resource_busy.rb,
lib/vsphere-automation-content/api/library_item_download_session_api.rb,
lib/vsphere-automation-content/models/content_library_item_file_info.rb,
lib/vsphere-automation-content/models/content_library_item_find_spec.rb,
lib/vsphere-automation-content/models/vapi_std_errors_already_exists.rb,
lib/vsphere-automation-content/models/content_library_storage_backing.rb,
lib/vsphere-automation-content/models/vapi_std_errors_not_found_error.rb,
lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated.rb,
lib/vsphere-automation-content/api/library_item_updatesession_file_api.rb,
lib/vsphere-automation-content/models/content_library_item_copy_result.rb,
lib/vsphere-automation-content/models/content_library_item_file_result.rb,
lib/vsphere-automation-content/models/content_library_item_find_result.rb,
lib/vsphere-automation-content/models/content_library_item_list_result.rb,
lib/vsphere-automation-content/models/content_library_item_storage_get.rb,
lib/vsphere-automation-content/models/content_subscribed_library_probe.rb,
lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument.rb,
lib/vsphere-automation-content/models/content_library_item_storage_info.rb,
lib/vsphere-automation-content/models/content_library_optimization_info.rb,
lib/vsphere-automation-content/models/content_library_subscription_info.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_get.rb,
lib/vsphere-automation-content/models/content_local_library_list_result.rb,
lib/vsphere-automation-content/models/content_subscribed_library_create.rb,
lib/vsphere-automation-content/models/content_subscribed_library_result.rb,
lib/vsphere-automation-content/models/content_subscribed_library_update.rb,
lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change.rb,
lib/vsphere-automation-content/models/vapi_std_errors_unsupported_error.rb,
lib/vsphere-automation-content/api/library_item_downloadsession_file_api.rb,
lib/vsphere-automation-content/models/content_library_item_create_result.rb,
lib/vsphere-automation-content/models/content_library_model_library_type.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_info.rb,
lib/vsphere-automation-content/models/vapi_std_errors_unauthorized_error.rb,
lib/vsphere-automation-content/models/content_library_item_storage_result.rb,
lib/vsphere-automation-content/models/content_local_library_create_result.rb,
lib/vsphere-automation-content/models/vapi_std_errors_resource_busy_error.rb,
lib/vsphere-automation-content/models/content_library_item_transfer_status.rb,
lib/vsphere-automation-content/models/content_library_storage_backing_type.rb,
lib/vsphere-automation-content/models/content_library_subscribed_item_sync.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_delete.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_result.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_update.rb,
lib/vsphere-automation-content/models/vapi_std_errors_already_exists_error.rb,
lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type.rb,
lib/vsphere-automation-content/models/content_library_item_destination_spec.rb,
lib/vsphere-automation-content/models/content_library_item_file_list_result.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_summary.rb,
lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible.rb,
lib/vsphere-automation-content/models/vapi_std_errors_unauthenticated_error.rb,
lib/vsphere-automation-content/models/content_library_item_transfer_endpoint.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_location.rb,
lib/vsphere-automation-content/models/content_local_library_destination_spec.rb,
lib/vsphere-automation-content/models/content_subscribed_library_list_result.rb,
lib/vsphere-automation-content/models/vapi_std_errors_invalid_argument_error.rb,
lib/vsphere-automation-content/models/content_library_item_file_checksum_info.rb,
lib/vsphere-automation-content/models/content_subscribed_library_probe_result.rb,
lib/vsphere-automation-content/models/vapi_std_errors_concurrent_change_error.rb,
lib/vsphere-automation-content/models/content_library_item_storage_list_result.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_fail.rb,
lib/vsphere-automation-content/models/content_subscribed_library_create_result.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_model.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_spec.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_list_result.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_update_spec.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_fail.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_create.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_result.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_update.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_vcenter_info.rb,
lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_type_error.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_model.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_add.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_get.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_result.rb,
lib/vsphere-automation-content/models/vapi_std_errors_resource_inaccessible_error.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_create.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_result.rb,
lib/vsphere-automation-content/models/content_library_item_file_checksum_algorithm.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_info.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_placement_info.rb,
lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_get.rb,
lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_info.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_keep_alive.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_remove.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_result.rb,
lib/vsphere-automation-content/models/content_subscribed_library_probe_result_status.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_list_result.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_model_state.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_warning_type.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_keep_alive.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_result.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_spec.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_list_result.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_model_state.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare.rb,
lib/vsphere-automation-content/models/content_library_item_update_session_create_result.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_vcenter.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_vcenter.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_add_result.rb,
lib/vsphere-automation-content/models/content_library_publish_info_authentication_method.rb,
lib/vsphere-automation-content/models/vapi_std_errors_not_allowed_in_current_state_error.rb,
lib/vsphere-automation-content/models/content_library_item_download_session_create_result.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_certificate_info.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_list_result.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_source_type.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_warning_behavior.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_placement.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_update_spec_placement.rb,
lib/vsphere-automation-content/models/vapi_std_errors_invalid_element_configuration_error.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_list_result.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_preview_info_state.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_endpoint_type.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_validate_result.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_preview_warning_info.rb,
lib/vsphere-automation-content/models/content_library_subscription_info_authentication_method.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_result.rb,
lib/vsphere-automation-content/models/content_library_item_downloadsession_file_prepare_status.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_error.rb,
lib/vsphere-automation-content/models/content_library_item_updatesession_file_validation_result.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_new_subscribed_library.rb,
lib/vsphere-automation-content/models/content_library_subscriptions_create_spec_subscribed_library_target.rb

Defined Under Namespace

Modules: Content Classes: ApiClient, ApiError, Configuration

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

VSphereAutomation.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



191
192
193
194
195
196
197
# File 'lib/vsphere-automation-content.rb', line 191

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end