class OneviewSDK::API500::C7000::ServerHardware

Server Hardware resource implementation on API500 C7000

Public Class Methods

new(client, params = {}, api_ver = nil) click to toggle source

Create a resource object, associate it with a client, and set its properties. @param [OneviewSDK::Client] client The client object for the OneView appliance @param [Hash] params The options for this resource (key-value pairs) @param [Integer] api_ver The api version to use when interracting with this resource.

# File lib/oneview-sdk/resource/api500/c7000/server_hardware.rb, line 24
def initialize(client, params = {}, api_ver = nil)
  @data ||= {}
  # Default values:
  @data['type'] ||= 'server-hardware-7'
  super
end

Public Instance Methods

get_physical_server_hardware() click to toggle source

Gets the information describing an 'SDX' partition including a list of physical server blades represented by a server hardware. @note Used with SDX enclosures only @return [Hash] Hash with the physical server hardware inventory

# File lib/oneview-sdk/resource/api500/c7000/server_hardware.rb, line 34
def get_physical_server_hardware
  ensure_client && ensure_uri
  response = @client.rest_get(@data['uri'] + '/physicalServerHardware')
  @client.response_handler(response)
end