class OneviewSDK::API200::UnmanagedDevice

Unmanaged Device resource implementation

Constants

BASE_URI

Public Class Methods

get_devices(client) click to toggle source

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(*)

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

Alias for: create
create(*) click to toggle source

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
Also aliased as: add
delete(*) click to toggle source

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
Also aliased as: remove
environmental_configuration() click to toggle source

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(*)

Remove resource from OneView @return [true] if resource was removed successfully

Alias for: delete