Class: OneviewSDK::API200::UnmanagedDevice
- Defined in:
- lib/oneview-sdk/resource/api200/unmanaged_device.rb
Overview
Unmanaged Device resource implementation
Direct Known Subclasses
OneviewSDK::API300::C7000::UnmanagedDevice, OneviewSDK::API300::Synergy::UnmanagedDevice
Constant Summary collapse
- BASE_URI =
'/rest/unmanaged-devices'.freeze
Constants inherited from Resource
Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS
Instance Attribute Summary
Attributes inherited from Resource
#api_version, #client, #data, #logger
Class Method Summary collapse
-
.get_devices(client) ⇒ Array
Gets a list of unmanaged devices.
Instance Method Summary collapse
-
#add ⇒ OneviewSDK::UnmanagedDevice
Add the resource on OneView using the current data.
-
#create ⇒ Object
Method is not available.
-
#delete ⇒ Object
Method is not available.
-
#environmental_configuration ⇒ Object
Get settings that describe the environmental configuration.
-
#remove ⇒ true
Remove resource from OneView.
Methods inherited from Resource
#==, #[], #[]=, build_query, #create!, #deep_merge!, #each, #eql?, #exists?, find_by, find_with_pagination, from_file, get_all, get_all_with_query, #initialize, #like?, #refresh, #retrieve!, #schema, schema, #set, #set_all, #to_file, #update
Constructor Details
This class inherits a constructor from OneviewSDK::Resource
Class Method Details
.get_devices(client) ⇒ Array
Gets a list of unmanaged devices
46 47 48 49 |
# File 'lib/oneview-sdk/resource/api200/unmanaged_device.rb', line 46 def self.get_devices(client) response = client.rest_get(BASE_URI) client.response_handler(response)['members'] end |
Instance Method Details
#add ⇒ OneviewSDK::UnmanagedDevice
Calls the refresh method to set additional data
Add the resource on OneView using the current data
25 |
# File 'lib/oneview-sdk/resource/api200/unmanaged_device.rb', line 25 alias add create |
#create ⇒ Object
Method is not available
33 34 35 |
# File 'lib/oneview-sdk/resource/api200/unmanaged_device.rb', line 33 def create(*) unavailable_method end |
#delete ⇒ Object
Method is not available
39 40 41 |
# File 'lib/oneview-sdk/resource/api200/unmanaged_device.rb', line 39 def delete(*) unavailable_method end |
#environmental_configuration ⇒ Object
Get settings that describe the environmental configuration
52 53 54 55 56 |
# File 'lib/oneview-sdk/resource/api200/unmanaged_device.rb', line 52 def environmental_configuration ensure_client && ensure_uri response = @client.rest_get(@data['uri'] + '/environmentalConfiguration') @client.response_handler(response) end |
#remove ⇒ true
Remove resource from OneView
29 |
# File 'lib/oneview-sdk/resource/api200/unmanaged_device.rb', line 29 alias remove delete |