Module: DeltacloudVM::Client::Methods::HardwareProfile

Included in:
Connection, Instance
Defined in:
lib/deltacloud_vm/client/methods/hardware_profile.rb

Instance Method Summary collapse

Instance Method Details

#hardware_profile(hwp_id) ⇒ Object

Retrieve the given hardware_profile

  • hwp_id -> hardware_profile to retrieve



34
35
36
37
# File 'lib/deltacloud_vm/client/methods/hardware_profile.rb', line 34

def hardware_profile(hwp_id)
  from_resource :hardware_profile,
    connection.get(api_uri("hardware_profiles/#{hwp_id}"))
end

#hardware_profiles(filter_opts = {}) ⇒ Object

Retrieve list of all hardware_profiles

  • filter_opts:

    • :id -> Filter hardware_profiles using their ‘id’



25
26
27
28
# File 'lib/deltacloud_vm/client/methods/hardware_profile.rb', line 25

def hardware_profiles(filter_opts={})
  from_collection :hardware_profiles,
    connection.get(api_uri('hardware_profiles'), filter_opts)
end