class OneviewSDK::API200::UnmanagedDevice
Unmanaged Device resource implementation
Constants
- BASE_URI
Public Class Methods
Gets a list of unmanaged devices @param [OneviewSDK::Client] client The client object for the OneView appliance @return [Array] list of unmanaged devices
# 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
Public Instance Methods
Add the resource on OneView using the current data @note Calls the refresh method to set additional data @raise [OneviewSDK::IncompleteResource] if the client is not set @raise [StandardError] if the resource creation fails @return [OneviewSDK::UnmanagedDevice] self
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api200/unmanaged_device.rb, line 33 def create(*) unavailable_method end
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api200/unmanaged_device.rb, line 39 def delete(*) unavailable_method end
Get settings that describe the environmental configuration
# 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 resource from OneView @return [true] if resource was removed successfully