In Files

Class/Module Index [+]

Quicksearch

Fog

AFAICT - This is basically undocumented - 6/18/2010 - freeformz


AFAICT this is basically undocumented ATM - 6/18/2010 - freeformz


<RasdItemsList xmlns="www.vmware.com/vcloud/v1" xmlns:rasd="schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="vcd01.esx.dev.int.realestate.com.au/api/v1.0/vApp/vm-329805878/virtualHardwareSection/disks" xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd www.vmware.com/vcloud/v1 vcd01.esx.dev.int.realestate.com.au/api/v1.0/schema/master.xsd">

<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcd01.esx.dev.int.realestate.com.au/api/v1.0/vApp/vm-329805878/virtualHardwareSection/disks"/>
<Item>
    <rasd:Address>0</rasd:Address>
    <rasd:Description>SCSI Controller</rasd:Description>
    <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
    <rasd:InstanceID>2</rasd:InstanceID>
    <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
    <rasd:ResourceType>6</rasd:ResourceType>
</Item>
<Item>
    <rasd:AddressOnParent>0</rasd:AddressOnParent>
    <rasd:Description>Hard disk</rasd:Description>
    <rasd:ElementName>Hard disk 1</rasd:ElementName>
    <rasd:HostResource xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:capacity="8192" vcloud:busType="6" vcloud:busSubType="lsilogic"></rasd:HostResource>
    <rasd:InstanceID>2000</rasd:InstanceID>
    <rasd:Parent>2</rasd:Parent>
    <rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
    <rasd:Address>0</rasd:Address>
    <rasd:Description>IDE Controller</rasd:Description>
    <rasd:ElementName>IDE Controller 0</rasd:ElementName>
    <rasd:InstanceID>3</rasd:InstanceID>
    <rasd:ResourceType>5</rasd:ResourceType>
</Item>

</RasdItemsList>


require 'fog/aws/models/dns/records'


See docs.amazonwebservices.com/general/latest/gr/signature-version-4.html


See docs.amazonwebservices.com/general/latest/gr/signature-version-4.html

Constants

VERSION

Public Class Methods

available_providers() click to toggle source
# File lib/fog/bin.rb, line 6
def available_providers
      Kernel.const_get('Ninefold')
  @available_providers ||= Fog.providers.values.select {|provider| Kernel.const_get(provider).available?}.sort
end
credential() click to toggle source

@return [String, Symbol] The credential to use in Fog

# File lib/fog/core/credentials.rb, line 15
def self.credential
  @credential ||= ( ENV["FOG_CREDENTIAL"] && ENV["FOG_CREDENTIAL"].to_sym ) || :default
end
credential=(new_credential) click to toggle source

Assign a new credential to use from configuration file

@param [String, Symbol] new_credential name of new credential to use
@ return [Symbol] name of the new credential
# File lib/fog/core/credentials.rb, line 9
def self.credential=(new_credential)
  @credentials = nil
  @credential = new_credential && new_credential.to_sym
end
credentials() click to toggle source

@return [Hash] The credentials pulled from the configuration file @raise [LoadError] Configuration unavailable in configuration file

# File lib/fog/core/credentials.rb, line 37
def self.credentials
  @credentials  ||= begin
    if credentials_path && File.exists?(credentials_path)
      credentials = self.symbolize_credentials(YAML.load_file(credentials_path))
      (credentials && credentials[credential]) || Fog::Errors.missing_credentials
    else
      {}
    end
  end
end
credentials=(new_credentials) click to toggle source

@return [Hash] The newly assigned credentials

# File lib/fog/core/credentials.rb, line 49
def self.credentials=(new_credentials)
  @credentials = new_credentials
end
credentials_path() click to toggle source

@return [String] The path for configuration_file

# File lib/fog/core/credentials.rb, line 20
def self.credentials_path
  @credential_path ||= begin
    path = ENV["FOG_RC"] || (ENV['HOME'] && File.directory?(ENV['HOME']) && '~/.fog')
    File.expand_path(path) if path
  rescue
    nil
  end
end
credentials_path=(new_credentials_path) click to toggle source

@return [String] The new path for credentials file

# File lib/fog/core/credentials.rb, line 30
def self.credentials_path=(new_credentials_path)
  @credentials = nil
  @credential_path = new_credentials_path
end
mock!() click to toggle source
# File lib/fog/core/mock.rb, line 5
def self.mock!
  @mocking = true
end
mock?() click to toggle source
# File lib/fog/core/mock.rb, line 13
def self.mock?
  @mocking
end
mocking?() click to toggle source
# File lib/fog/core/mock.rb, line 17
def self.mocking?
  @mocking
end
providers() click to toggle source
# File lib/fog/core/provider.rb, line 3
def self.providers
  @providers ||= {}
end
providers=(new_providers) click to toggle source
# File lib/fog/core/provider.rb, line 7
def self.providers=(new_providers)
  @providers = new_providers
end
registered_providers() click to toggle source
# File lib/fog/bin.rb, line 11
def registered_providers
  @registered_providers ||= Fog.providers.values.sort
end
services() click to toggle source
# File lib/fog/core/service.rb, line 3
def self.services
  @services ||= {}
end
symbolize_credentials(args) click to toggle source
# File lib/fog/core/credentials.rb, line 53
def self.symbolize_credentials(args)
  if args.is_a? Hash
    copy = Array.new
    args.each do |key, value|
      copy.push(key.to_sym, self.symbolize_credentials(value))
    end
    Hash[*copy]
  else
    args
  end
end
timeout() click to toggle source
# File lib/fog/core/timeout.rb, line 3
def self.timeout
  @timeout
end
timeout=(timeout) click to toggle source
# File lib/fog/core/timeout.rb, line 7
def self.timeout=(timeout)
  raise ArgumentError, "timeout must be non-negative" unless timeout >= 0
  @timeout = timeout
end
unmock!() click to toggle source
# File lib/fog/core/mock.rb, line 9
def self.unmock!
  @mocking = false
end
wait_for(timeout=Fog.timeout, interval=1, &block) click to toggle source
# File lib/fog/core/wait_for.rb, line 2
def self.wait_for(timeout=Fog.timeout, interval=1, &block)
  duration = 0
  start = Time.now
  until yield || duration > timeout
    sleep(interval.to_f)
    duration = Time.now - start
  end
  if duration > timeout
    raise Errors::TimeoutError.new("The specified wait_for timeout (#{timeout} seconds) was exceeded")
  else
    { :duration => duration }
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.