Module: XClarityClient::Mixins::StorageMixin

Included in:
Client
Defined in:
lib/xclarity_client/mixins/storage_mixin.rb

Overview

Exposes StorageManagement features

Instance Method Summary collapse

Instance Method Details

#discover_storages(opts = {}) ⇒ Object



6
7
8
# File 'lib/xclarity_client/mixins/storage_mixin.rb', line 6

def discover_storages(opts = {})
  StorageManagement.new(@config).fetch_all(opts)
end

#fetch_storages(uuids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/xclarity_client/mixins/storage_mixin.rb', line 10

def fetch_storages(uuids = nil,
                   include_attributes = nil,
                   exclude_attributes = nil)
  StorageManagement.new(@config).get_object(
    uuids,
    include_attributes,
    exclude_attributes
  )
end