Class: ESX::Datastore

Inherits:
Object
  • Object
show all
Defined in:
lib/esx.rb

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Object) accessible

Returns the value of attribute accessible



238
239
240
# File 'lib/esx.rb', line 238

def accessible
  @accessible
end

- (Object) capacity

Returns the value of attribute capacity



238
239
240
# File 'lib/esx.rb', line 238

def capacity
  @capacity
end

- (Object) datastore_type

Returns the value of attribute datastore_type



238
239
240
# File 'lib/esx.rb', line 238

def datastore_type
  @datastore_type
end

- (Object) free_space

Returns the value of attribute free_space



238
239
240
# File 'lib/esx.rb', line 238

def free_space
  @free_space
end

- (Object) name

Returns the value of attribute name



238
239
240
# File 'lib/esx.rb', line 238

def name
  @name
end

- (Object) url

Returns the value of attribute url



239
240
241
# File 'lib/esx.rb', line 239

def url
  @url
end

Class Method Details

+ (Object) wrap(ds)

Internal method. Do not use



244
245
246
247
248
249
250
251
252
253
254
# File 'lib/esx.rb', line 244

def self.wrap(ds)
  @_datastore = ds
  _ds = Datastore.new
  _ds.name = ds.summary.name
  _ds.capacity = ds.summary.capacity
  _ds.free_space = ds.summary.freeSpace
  _ds.datastore_type = ds.summary.type
  _ds.accessible = ds.summary.accessible
  _ds.url = ds.summary.url
  _ds
end