Module: VSphereAutomation

Defined in:
lib/vsphere-automation-runtime.rb,
lib/vsphere-automation-runtime/version.rb,
lib/vsphere-automation-runtime/api_error.rb,
lib/vsphere-automation-runtime/api_client.rb,
lib/vsphere-automation-runtime/configuration.rb

Overview

APIs

Defined Under Namespace

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



27
28
29
30
31
32
33
# File 'lib/vsphere-automation-runtime.rb', line 27

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