Module: VSphereAutomation

Defined in:
lib/vsphere-automation-vapi.rb,
lib/vsphere-automation-vapi/version.rb,
lib/vsphere-automation-vapi/api_error.rb,
lib/vsphere-automation-vapi/api_client.rb,
lib/vsphere-automation-vapi/configuration.rb,
lib/vsphere-automation-vapi/api/vcenter_activation_api.rb,
lib/vsphere-automation-vapi/api/metadata_cli_command_api.rb,
lib/vsphere-automation-vapi/api/rest_navigation_root_api.rb,
lib/vsphere-automation-vapi/api/metadata_cli_namespace_api.rb,
lib/vsphere-automation-vapi/api/rest_navigation_options_api.rb,
lib/vsphere-automation-vapi/api/rest_navigation_service_api.rb,
lib/vsphere-automation-vapi/api/rest_navigation_resource_api.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_link.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_not_found.rb,
lib/vsphere-automation-vapi/api/rest_navigation_component_api.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_package_api.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_service_api.rb,
lib/vsphere-automation-vapi/api/metadata_privilege_package_api.rb,
lib/vsphere-automation-vapi/api/metadata_privilege_service_api.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_resource_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_unauthorized.rb,
lib/vsphere-automation-vapi/models/vapi_std_localizable_message.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_component_api.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_structure_api.rb,
lib/vsphere-automation-vapi/api/metadata_privilege_component_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_get.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_info.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_operation.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_reference.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_root_info.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_enumeration_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_get.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_not_found_error.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_unauthenticated.rb,
lib/vsphere-automation-vapi/api/metadata_authentication_package_api.rb,
lib/vsphere-automation-vapi/api/metadata_authentication_service_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_info.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_http_method.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_options_get.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_root_result.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_service_info.rb,
lib/vsphere-automation-vapi/api/metadata_authentication_component_api.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_resource_model_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_identity.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_error_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_field_info.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_resource_info.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_unauthorized_error.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_map.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_component_info.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_options_result.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_service_unavailable.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_identity.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_info.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_resource_result.rb,
lib/vsphere-automation-vapi/api/metadata_metamodel_service_operation_api.rb,
lib/vsphere-automation-vapi/api/metadata_privilege_service_operation_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_option_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_output_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_constant_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_value.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type_category.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_unauthenticated_error.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_generic_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_data.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_constant_value.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_operation_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_data.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_operation_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_privilege_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_primitive_value.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_formatter_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_result.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_service_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type_builtin_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_user_defined_type.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_resource_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_service_unavailable_error.rb,
lib/vsphere-automation-vapi/api/metadata_authentication_service_operation_api.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_value_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_result.rb,
lib/vsphere-automation-vapi/models/vapi_rest_navigation_component_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_data.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_operation_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_output_field_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_info_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_fingerprint_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_map_elements.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_primitive_value_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_resource_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_not_allowed_in_current_state.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_generic_instantiation.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_operation_result_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info_services.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_info_services.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_operation_get.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_fingerprint_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_value_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_info_constants.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_info_metadata.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_info_packages.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_constant_value_category.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info_structures.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_info_operations.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_info_packages.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_info_operations.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_authentication_info.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_operation_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_operation_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info_enumerations.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_info_services.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_operation_get.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_resource_model_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_std_errors_not_allowed_in_current_state_error.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_info_packages.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_info_operations.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_fingerprint_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_fingerprint_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_operation_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_operation_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_operation_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_fingerprint_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_operation_list_result.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_generic_instantiation_generic_type.rb,
lib/vsphere-automation-vapi/models/vapi_metadata_authentication_authentication_info_scheme_type.rb

Defined Under Namespace

Modules: VAPI 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.



182
183
184
185
186
187
188
# File 'lib/vsphere-automation-vapi.rb', line 182

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